OSDN Git Service

eclair snapshot
[android-x86/build.git] / tools / zipalign / Android.mk
1
2 # Copyright 2008 The Android Open Source Project
3 #
4 # Zip alignment tool
5 #
6
7 LOCAL_PATH:= $(call my-dir)
8 include $(CLEAR_VARS)
9
10 LOCAL_SRC_FILES := \
11         ZipAlign.cpp \
12         ZipEntry.cpp \
13         ZipFile.cpp
14
15 LOCAL_C_INCLUDES += external/zlib
16
17 LOCAL_STATIC_LIBRARIES := \
18         libutils \
19         libcutils
20
21 LOCAL_LDLIBS := -lz
22
23 ifeq ($(HOST_OS),linux)
24 LOCAL_LDLIBS += -lrt
25 endif
26
27 # dunno if we need this, but some of the other tools include it
28 ifeq ($(HOST_OS),windows)
29 ifeq ($(strip $(USE_CYGWIN),),)
30 LOCAL_LDLIBS += -lws2_32
31 endif
32 endif
33
34 LOCAL_MODULE := zipalign
35
36 include $(BUILD_HOST_EXECUTABLE)
37