From 51b17f5b7e5671593e3d3e2514b0d5cc5f32977d Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 14 Dec 2015 16:13:41 -0800 Subject: Silence warnings. Change-Id: I350efb7c3cdd278863a661f86b1cca447c177de3 --- Android.mk | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/Android.mk b/Android.mk index d8cdd84..3f4c418 100644 --- a/Android.mk +++ b/Android.mk @@ -13,34 +13,37 @@ # limitations under the License. LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) -# measurements show that the ARM version of ZLib is about x1.17 faster -# than the thumb one... -LOCAL_ARM_MODE := arm +bzip_cflags := \ + -O3 \ + -DUSE_MMAP \ + -Wno-unused-parameter \ bzlib_files := \ - blocksort.c \ - huffman.c \ - crctable.c \ - randtable.c \ - compress.c \ - decompress.c \ - bzlib.c + blocksort.c \ + bzlib.c \ + compress.c \ + crctable.c \ + decompress.c \ + huffman.c \ + randtable.c \ -LOCAL_SRC_FILES := $(bzlib_files) +include $(CLEAR_VARS) +# measurements show that the ARM version of ZLib is about x1.17 faster +# than the thumb one... +LOCAL_ARM_MODE := arm LOCAL_MODULE := libbz -LOCAL_CFLAGS += -O3 -DUSE_MMAP +LOCAL_CFLAGS += $(bzip_cflags) +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) ifeq ($(TARGET_ARCH),arm) LOCAL_SDK_VERSION := 9 endif -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) +LOCAL_SRC_FILES := $(bzlib_files) include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) - -LOCAL_SRC_FILES := $(bzlib_files) -LOCAL_MODULE := libbz -LOCAL_CFLAGS += -O3 -DUSE_MMAP +LOCAL_CFLAGS += $(bzip_cflags) LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) +LOCAL_MODULE := libbz +LOCAL_SRC_FILES := $(bzlib_files) include $(BUILD_HOST_STATIC_LIBRARY) -- cgit v1.2.3