diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:31:38 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:31:38 -0800 |
commit | 9e38dfa2f95fce609707a0941f10af9a785288de (patch) | |
tree | 47887b3ff5805796471f6e92d0d48d5174038ddd /Android.mk | |
parent | bb74fa778c2b03b94ce3fcc0c9f52ed0a4d6c9de (diff) | |
download | zlib-9e38dfa2f95fce609707a0941f10af9a785288de.tar.gz |
auto import from //depot/cupcake/@135843android-sdk-1.5_r3android-sdk-1.5_r1android-sdk-1.5-preandroid-1.5r4android-1.5r3android-1.5r2android-1.5cupcake-release
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..4ea9613 --- /dev/null +++ b/Android.mk @@ -0,0 +1,59 @@ +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 + +LOCAL_SRC_FILES:= \ + adler32.c \ + compress.c \ + crc32.c \ + gzio.c \ + uncompr.c \ + deflate.c \ + trees.c \ + zutil.c \ + inflate.c \ + infback.c \ + inftrees.c \ + inffast.c + +LOCAL_MODULE:= libz + +LOCAL_CFLAGS+= -O3 -DUSE_MMAP + +include $(BUILD_SHARED_LIBRARY) + + + +unzip_files := \ + adler32.c \ + crc32.c \ + zutil.c \ + inflate.c \ + inftrees.c \ + inffast.c + +include $(CLEAR_VARS) +LOCAL_SRC_FILES := $(unzip_files) +LOCAL_MODULE:= libunz +LOCAL_ARM_MODE := arm +include $(BUILD_HOST_STATIC_LIBRARY) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES := $(unzip_files) +LOCAL_MODULE:= libunz +LOCAL_ARM_MODE := arm +include $(BUILD_STATIC_LIBRARY) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES:= \ + minigzip.c + +LOCAL_MODULE:= gzip + +LOCAL_SHARED_LIBRARIES := libz + +include $(BUILD_EXECUTABLE) |