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 := \ |
| 11 | ZipAlign.cpp |
| 12 | |
| 13 | LOCAL_C_INCLUDES += external/zlib |
| 14 | |
| 15 | LOCAL_STATIC_LIBRARIES := \ |
| 16 | libutils \ |
| 17 | libcutils |
| 18 | |
| 19 | LOCAL_LDLIBS := -lz |
| 20 | |
| 21 | ifeq ($(HOST_OS),linux) |
| 22 | LOCAL_LDLIBS += -lrt |
| 23 | endif |
| 24 | |
| 25 | # dunno if we need this, but some of the other tools include it |
| 26 | ifeq ($(HOST_OS),windows) |
| 27 | ifeq ($(strip $(USE_CYGWIN),),) |
| 28 | LOCAL_LDLIBS += -lws2_32 |
| 29 | endif |
| 30 | endif |
| 31 | |
| 32 | LOCAL_MODULE := zipalign |
| 33 | |
| 34 | include $(BUILD_HOST_EXECUTABLE) |
| 35 | |