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 := \ |
| 18 | libutils \ |
| 19 | libcutils |
| 20 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 21 | ifeq ($(HOST_OS),linux) |
| 22 | LOCAL_LDLIBS += -lrt |
| 23 | endif |
| 24 | |
Raphael | 925a327 | 2010-04-14 12:19:12 -0700 | [diff] [blame] | 25 | ifneq ($(strip $(USE_MINGW)),) |
| 26 | LOCAL_STATIC_LIBRARIES += libz |
| 27 | else |
| 28 | LOCAL_LDLIBS += -lz |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 29 | endif |
| 30 | |
| 31 | LOCAL_MODULE := zipalign |
| 32 | |
| 33 | include $(BUILD_HOST_EXECUTABLE) |
| 34 | |