blob: f90a31c1d585887f9196a582dff9991b1c30fb1c [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
15LOCAL_C_INCLUDES += external/zlib
16
17LOCAL_STATIC_LIBRARIES := \
18 libutils \
19 libcutils
20
21LOCAL_LDLIBS := -lz
22
23ifeq ($(HOST_OS),linux)
24LOCAL_LDLIBS += -lrt
25endif
26
27# dunno if we need this, but some of the other tools include it
28ifeq ($(HOST_OS),windows)
29ifeq ($(strip $(USE_CYGWIN),),)
30LOCAL_LDLIBS += -lws2_32
31endif
32endif
33
34LOCAL_MODULE := zipalign
35
36include $(BUILD_HOST_EXECUTABLE)
37