]> git.saurik.com Git - android/aapt.git/blob - Android.mk
am a1e87397: (-s ours) am 7ae84204: am ba7f0d2a: Merge "Rename (IF_)LOGD(_IF) to...
[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 CrunchCache.cpp \
17 FileFinder.cpp \
18 Main.cpp \
19 Package.cpp \
20 StringPool.cpp \
21 XMLNode.cpp \
22 ResourceFilter.cpp \
23 ResourceTable.cpp \
24 Images.cpp \
25 Resource.cpp \
26 SourcePos.cpp \
27 ZipEntry.cpp \
28 ZipFile.cpp
29
30
31 LOCAL_CFLAGS += -Wno-format-y2k
32
33 LOCAL_C_INCLUDES += external/expat/lib
34 LOCAL_C_INCLUDES += external/libpng
35 LOCAL_C_INCLUDES += external/zlib
36 LOCAL_C_INCLUDES += build/libs/host/include
37
38 #LOCAL_WHOLE_STATIC_LIBRARIES :=
39 LOCAL_STATIC_LIBRARIES := \
40 libhost \
41 libutils \
42 libcutils \
43 libexpat \
44 libpng
45
46 ifeq ($(HOST_OS),linux)
47 LOCAL_LDLIBS += -lrt -ldl -lpthread
48 endif
49
50 # Statically link libz for MinGW (Win SDK under Linux),
51 # and dynamically link for all others.
52 ifneq ($(strip $(USE_MINGW)),)
53 LOCAL_STATIC_LIBRARIES += libz
54 else
55 LOCAL_LDLIBS += -lz
56 endif
57
58 LOCAL_MODULE := aapt
59
60 include $(BUILD_HOST_EXECUTABLE)
61
62 endif # TARGET_BUILD_APPS