8c431c157d
Bug: 8580410 Change-Id: Id3c26ff084950f8cbfa87f4425747ee322de7624
38 lines
590 B
Makefile
38 lines
590 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
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libutils \
|
|
libcutils \
|
|
liblog
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
LOCAL_LDLIBS += -lrt
|
|
endif
|
|
|
|
ifneq ($(strip $(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)
|