]>
Commit | Line | Data |
---|---|---|
dadd9c1f TAOSP |
1 | # |
2 | # Copyright 2006 The Android Open Source Project | |
3 | # | |
4 | # Android Asset Packaging Tool | |
5 | # | |
6 | ||
24b51177 JO |
7 | # This tool is prebuilt if we're doing an app-only build. |
8 | ifeq ($(TARGET_BUILD_APPS),) | |
9 | ||
dadd9c1f TAOSP |
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 \ | |
1f170917 MA |
23 | SourcePos.cpp \ |
24 | ZipEntry.cpp \ | |
25 | ZipFile.cpp | |
26 | ||
dadd9c1f TAOSP |
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 | ||
dadd9c1f | 43 | ifeq ($(HOST_OS),linux) |
ca72a28f | 44 | LOCAL_LDLIBS += -lrt -lpthread |
dadd9c1f TAOSP |
45 | endif |
46 | ||
283c2c49 R |
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 | |
dadd9c1f TAOSP |
53 | endif |
54 | ||
55 | LOCAL_MODULE := aapt | |
56 | ||
57 | include $(BUILD_HOST_EXECUTABLE) | |
58 | ||
24b51177 | 59 | endif # TARGET_BUILD_APPS |