blob: 4194f816a1d38e34428a1409969419b57f8e6e9f [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001#
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 := \
Mathias Agopian3344b2e2009-06-05 14:55:48 -070011 ZipAlign.cpp \
12 ZipEntry.cpp \
13 ZipFile.cpp
The Android Open Source Project88b60792009-03-03 19:28:42 -080014
Raph Levien093d04c2014-07-07 16:00:29 -070015LOCAL_C_INCLUDES += external/zlib \
16 external/zopfli/src
The Android Open Source Project88b60792009-03-03 19:28:42 -080017
18LOCAL_STATIC_LIBRARIES := \
Mathias Agopianf14d85d2013-05-06 20:19:54 -070019 libandroidfw \
The Android Open Source Project88b60792009-03-03 19:28:42 -080020 libutils \
Ying Wang8c431c12013-04-09 22:33:58 -070021 libcutils \
Raph Levien093d04c2014-07-07 16:00:29 -070022 liblog \
23 libzopfli
The Android Open Source Project88b60792009-03-03 19:28:42 -080024
The Android Open Source Project88b60792009-03-03 19:28:42 -080025ifeq ($(HOST_OS),linux)
26LOCAL_LDLIBS += -lrt
27endif
28
Ying Wang594a10a2014-08-07 20:08:04 -070029ifdef USE_MINGW
Raphael925a3272010-04-14 12:19:12 -070030LOCAL_STATIC_LIBRARIES += libz
31else
32LOCAL_LDLIBS += -lz
The Android Open Source Project88b60792009-03-03 19:28:42 -080033endif
34
Andrew Hsiehf9613a42012-04-28 00:35:19 +080035ifneq ($(strip $(BUILD_HOST_static)),)
36LOCAL_LDLIBS += -lpthread
37endif # BUILD_HOST_static
38
The Android Open Source Project88b60792009-03-03 19:28:42 -080039LOCAL_MODULE := zipalign
40
41include $(BUILD_HOST_EXECUTABLE)