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 | |
Raph Levien | 093d04c | 2014-07-07 16:00:29 -0700 | [diff] [blame] | 15 | LOCAL_C_INCLUDES += external/zlib \ |
| 16 | external/zopfli/src |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 17 | |
| 18 | LOCAL_STATIC_LIBRARIES := \ |
Mathias Agopian | f14d85d | 2013-05-06 20:19:54 -0700 | [diff] [blame] | 19 | libandroidfw \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 20 | libutils \ |
Ying Wang | 8c431c1 | 2013-04-09 22:33:58 -0700 | [diff] [blame] | 21 | libcutils \ |
Raph Levien | 093d04c | 2014-07-07 16:00:29 -0700 | [diff] [blame] | 22 | liblog \ |
| 23 | libzopfli |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 24 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 25 | ifeq ($(HOST_OS),linux) |
| 26 | LOCAL_LDLIBS += -lrt |
| 27 | endif |
| 28 | |
Ying Wang | 594a10a | 2014-08-07 20:08:04 -0700 | [diff] [blame] | 29 | ifdef USE_MINGW |
Raphael | 925a327 | 2010-04-14 12:19:12 -0700 | [diff] [blame] | 30 | LOCAL_STATIC_LIBRARIES += libz |
| 31 | else |
| 32 | LOCAL_LDLIBS += -lz |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 33 | endif |
| 34 | |
Andrew Hsieh | f9613a4 | 2012-04-28 00:35:19 +0800 | [diff] [blame] | 35 | ifneq ($(strip $(BUILD_HOST_static)),) |
| 36 | LOCAL_LDLIBS += -lpthread |
| 37 | endif # BUILD_HOST_static |
| 38 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 39 | LOCAL_MODULE := zipalign |
| 40 | |
| 41 | include $(BUILD_HOST_EXECUTABLE) |