The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2008 The Android Open Source Project |
| 3 | # |
| 4 | # Zip alignment tool |
| 5 | # |
| 6 | |
| 7 | LOCAL_PATH:= $(call my-dir) |
| 8 | include $(CLEAR_VARS) |
| 9 | |
| 10 | LOCAL_SRC_FILES := \ |
Mathias Agopian | 3344b2e | 2009-06-05 14:55:48 -0700 | [diff] [blame] | 11 | ZipAlign.cpp \ |
| 12 | ZipEntry.cpp \ |
| 13 | ZipFile.cpp |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 14 | |
| 15 | LOCAL_C_INCLUDES += external/zlib |
| 16 | |
| 17 | LOCAL_STATIC_LIBRARIES := \ |
Mathias Agopian | f14d85d | 2013-05-06 20:19:54 -0700 | [diff] [blame] | 18 | libandroidfw \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 19 | libutils \ |
Ying Wang | 8c431c1 | 2013-04-09 22:33:58 -0700 | [diff] [blame] | 20 | libcutils \ |
| 21 | liblog |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 22 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 23 | ifeq ($(HOST_OS),linux) |
| 24 | LOCAL_LDLIBS += -lrt |
| 25 | endif |
| 26 | |
Ying Wang | 594a10a | 2014-08-07 20:08:04 -0700 | [diff] [blame^] | 27 | ifdef USE_MINGW |
Raphael | 925a327 | 2010-04-14 12:19:12 -0700 | [diff] [blame] | 28 | LOCAL_STATIC_LIBRARIES += libz |
| 29 | else |
| 30 | LOCAL_LDLIBS += -lz |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 31 | endif |
| 32 | |
Andrew Hsieh | f9613a4 | 2012-04-28 00:35:19 +0800 | [diff] [blame] | 33 | ifneq ($(strip $(BUILD_HOST_static)),) |
| 34 | LOCAL_LDLIBS += -lpthread |
| 35 | endif # BUILD_HOST_static |
| 36 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 37 | LOCAL_MODULE := zipalign |
| 38 | |
| 39 | include $(BUILD_HOST_EXECUTABLE) |