1# 2# Copyright 2008 The Android Open Source Project 3# 4# Zip alignment tool 5# 6 7LOCAL_PATH:= $(call my-dir) 8include $(CLEAR_VARS) 9 10LOCAL_SRC_FILES := \ 11 ZipAlign.cpp \ 12 ZipEntry.cpp \ 13 ZipFile.cpp 14 15LOCAL_C_INCLUDES += external/zlib \ 16 external/zopfli/src 17 18LOCAL_STATIC_LIBRARIES := \ 19 libandroidfw \ 20 libutils \ 21 libcutils \ 22 liblog \ 23 libzopfli 24 25ifeq ($(HOST_OS),linux) 26LOCAL_LDLIBS += -lrt 27endif 28 29ifneq ($(strip $(USE_MINGW)),) 30LOCAL_STATIC_LIBRARIES += libz 31else 32LOCAL_LDLIBS += -lz 33endif 34 35ifneq ($(strip $(BUILD_HOST_static)),) 36LOCAL_LDLIBS += -lpthread 37endif # BUILD_HOST_static 38 39LOCAL_MODULE := zipalign 40 41include $(BUILD_HOST_EXECUTABLE) 42