platform_build/tools/zipalign/Android.mk
Ying Wang 5a5d443f15 am 8ac188ff: am 6dbbb159: Merge "Consistent use of USE_MINGW"
* commit '8ac188ff0e739ea75ea02166c54428245200f088':
  Consistent use of USE_MINGW
2014-08-08 03:26:07 +00:00

41 lines
627 B
Makefile

#
# Copyright 2008 The Android Open Source Project
#
# Zip alignment tool
#
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
ZipAlign.cpp \
ZipEntry.cpp \
ZipFile.cpp
LOCAL_C_INCLUDES += external/zlib \
external/zopfli/src
LOCAL_STATIC_LIBRARIES := \
libandroidfw \
libutils \
libcutils \
liblog \
libzopfli
ifeq ($(HOST_OS),linux)
LOCAL_LDLIBS += -lrt
endif
ifdef USE_MINGW
LOCAL_STATIC_LIBRARIES += libz
else
LOCAL_LDLIBS += -lz
endif
ifneq ($(strip $(BUILD_HOST_static)),)
LOCAL_LDLIBS += -lpthread
endif # BUILD_HOST_static
LOCAL_MODULE := zipalign
include $(BUILD_HOST_EXECUTABLE)