]> git.saurik.com Git - android/aapt.git/blob - Android.mk
auto import from //depot/cupcake/@136594
[android/aapt.git] / Android.mk
1 #
2 # Copyright 2006 The Android Open Source Project
3 #
4 # Android Asset Packaging Tool
5 #
6
7 LOCAL_PATH:= $(call my-dir)
8 include $(CLEAR_VARS)
9
10 LOCAL_SRC_FILES := \
11 AaptAssets.cpp \
12 Command.cpp \
13 Main.cpp \
14 Package.cpp \
15 StringPool.cpp \
16 XMLNode.cpp \
17 ResourceTable.cpp \
18 Images.cpp \
19 Resource.cpp \
20 SourcePos.cpp
21
22 LOCAL_CFLAGS += -Wno-format-y2k
23
24 LOCAL_C_INCLUDES += external/expat/lib
25 LOCAL_C_INCLUDES += external/libpng
26 LOCAL_C_INCLUDES += external/zlib
27 LOCAL_C_INCLUDES += build/libs/host/include
28
29 #LOCAL_WHOLE_STATIC_LIBRARIES :=
30 LOCAL_STATIC_LIBRARIES := \
31 libhost \
32 libutils \
33 libcutils \
34 libexpat \
35 libpng
36
37 LOCAL_LDLIBS := -lz
38
39 ifeq ($(HOST_OS),linux)
40 LOCAL_LDLIBS += -lrt
41 endif
42
43 ifeq ($(HOST_OS),windows)
44 ifeq ($(strip $(USE_CYGWIN),),)
45 LOCAL_LDLIBS += -lws2_32
46 endif
47 endif
48
49 LOCAL_MODULE := aapt
50
51 include $(BUILD_HOST_EXECUTABLE)
52