aboutsummaryrefslogtreecommitdiffstats
path: root/tools/zipalign/Android.mk
blob: 8c0240a27ca00fe62e85ffbf4ecf0c4b1da43004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 
# 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

LOCAL_LDLIBS_linux += -lrt

LOCAL_STATIC_LIBRARIES_windows += libz
LOCAL_LDLIBS_linux += -lz
LOCAL_LDLIBS_darwin += -lz

ifneq ($(strip $(BUILD_HOST_static)),)
LOCAL_LDLIBS += -lpthread
endif # BUILD_HOST_static

LOCAL_MODULE := zipalign
LOCAL_MODULE_HOST_OS := darwin linux windows

include $(BUILD_HOST_EXECUTABLE)