2009-03-04 04:28:42 +01:00
|
|
|
#
|
|
|
|
# Copyright 2008 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Zip alignment tool
|
|
|
|
#
|
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2009-06-05 23:55:48 +02:00
|
|
|
ZipAlign.cpp \
|
|
|
|
ZipEntry.cpp \
|
|
|
|
ZipFile.cpp
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
LOCAL_C_INCLUDES += external/zlib
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libutils \
|
|
|
|
libcutils
|
|
|
|
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
LOCAL_LDLIBS += -lrt
|
|
|
|
endif
|
|
|
|
|
2010-04-14 21:19:12 +02:00
|
|
|
ifneq ($(strip $(USE_MINGW)),)
|
|
|
|
LOCAL_STATIC_LIBRARIES += libz
|
|
|
|
else
|
|
|
|
LOCAL_LDLIBS += -lz
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
|
|
|
|
2012-04-27 18:35:19 +02:00
|
|
|
ifneq ($(strip $(BUILD_HOST_static)),)
|
|
|
|
LOCAL_LDLIBS += -lpthread
|
|
|
|
endif # BUILD_HOST_static
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_MODULE := zipalign
|
|
|
|
|
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
|