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 | |
| 21 | LOCAL_LDLIBS := -lz |
| 22 | |
| 23 | ifeq ($(HOST_OS),linux) |
| 24 | LOCAL_LDLIBS += -lrt |
| 25 | endif |
| 26 | |
| 27 | # dunno if we need this, but some of the other tools include it |
| 28 | ifeq ($(HOST_OS),windows) |
| 29 | ifeq ($(strip $(USE_CYGWIN),),) |
| 30 | LOCAL_LDLIBS += -lws2_32 |
| 31 | endif |
| 32 | endif |
| 33 | |
| 34 | LOCAL_MODULE := zipalign |
| 35 | |
| 36 | include $(BUILD_HOST_EXECUTABLE) |
| 37 | |