]> git.saurik.com Git - android/aapt.git/blob - Android.mk
am 4bb78889: am 40277df7: Merge "Add "television" mode." into honeycomb-mr2
[android/aapt.git] / Android.mk
1 #
2 # Copyright 2006 The Android Open Source Project
3 #
4 # Android Asset Packaging Tool
5 #
6
7 # This tool is prebuilt if we're doing an app-only build.
8 ifeq ($(TARGET_BUILD_APPS),)
9
10 LOCAL_PATH:= $(call my-dir)
11 include $(CLEAR_VARS)
12
13 LOCAL_SRC_FILES := \
14 AaptAssets.cpp \
15 Command.cpp \
16 Main.cpp \
17 Package.cpp \
18 StringPool.cpp \
19 XMLNode.cpp \
20 ResourceTable.cpp \
21 Images.cpp \
22 Resource.cpp \
23 SourcePos.cpp \
24 ZipEntry.cpp \
25 ZipFile.cpp
26
27
28 LOCAL_CFLAGS += -Wno-format-y2k
29
30 LOCAL_C_INCLUDES += external/expat/lib
31 LOCAL_C_INCLUDES += external/libpng
32 LOCAL_C_INCLUDES += external/zlib
33 LOCAL_C_INCLUDES += build/libs/host/include
34
35 #LOCAL_WHOLE_STATIC_LIBRARIES :=
36 LOCAL_STATIC_LIBRARIES := \
37 libhost \
38 libutils \
39 libcutils \
40 libexpat \
41 libpng
42
43 ifeq ($(HOST_OS),linux)
44 LOCAL_LDLIBS += -lrt -lpthread
45 endif
46
47 # Statically link libz for MinGW (Win SDK under Linux),
48 # and dynamically link for all others.
49 ifneq ($(strip $(USE_MINGW)),)
50 LOCAL_STATIC_LIBRARIES += libz
51 else
52 LOCAL_LDLIBS += -lz
53 endif
54
55 LOCAL_MODULE := aapt
56
57 include $(BUILD_HOST_EXECUTABLE)
58
59 endif # TARGET_BUILD_APPS