]>
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 \ | |
dddb1fc7 JG |
16 | CrunchCache.cpp \ |
17 | FileFinder.cpp \ | |
dadd9c1f TAOSP |
18 | Main.cpp \ |
19 | Package.cpp \ | |
20 | StringPool.cpp \ | |
21 | XMLNode.cpp \ | |
e29f4ada | 22 | ResourceFilter.cpp \ |
951317fb | 23 | ResourceIdCache.cpp \ |
dadd9c1f TAOSP |
24 | ResourceTable.cpp \ |
25 | Images.cpp \ | |
26 | Resource.cpp \ | |
1f170917 MA |
27 | SourcePos.cpp \ |
28 | ZipEntry.cpp \ | |
29 | ZipFile.cpp | |
30 | ||
dadd9c1f TAOSP |
31 | |
32 | LOCAL_CFLAGS += -Wno-format-y2k | |
293395f8 YW |
33 | ifeq (darwin,$(HOST_OS)) |
34 | LOCAL_CFLAGS += -D_DARWIN_UNLIMITED_STREAMS | |
35 | endif | |
36 | ||
dadd9c1f | 37 | |
dadd9c1f TAOSP |
38 | LOCAL_C_INCLUDES += external/libpng |
39 | LOCAL_C_INCLUDES += external/zlib | |
40 | LOCAL_C_INCLUDES += build/libs/host/include | |
41 | ||
42 | #LOCAL_WHOLE_STATIC_LIBRARIES := | |
43 | LOCAL_STATIC_LIBRARIES := \ | |
44 | libhost \ | |
c180a0ff | 45 | libandroidfw \ |
1f7e77a0 | 46 | libutils \ |
dadd9c1f TAOSP |
47 | libcutils \ |
48 | libexpat \ | |
49 | libpng | |
50 | ||
dadd9c1f | 51 | ifeq ($(HOST_OS),linux) |
c356a30a | 52 | LOCAL_LDLIBS += -lrt -ldl -lpthread |
dadd9c1f TAOSP |
53 | endif |
54 | ||
283c2c49 R |
55 | # Statically link libz for MinGW (Win SDK under Linux), |
56 | # and dynamically link for all others. | |
57 | ifneq ($(strip $(USE_MINGW)),) | |
58 | LOCAL_STATIC_LIBRARIES += libz | |
59 | else | |
60 | LOCAL_LDLIBS += -lz | |
dadd9c1f TAOSP |
61 | endif |
62 | ||
63 | LOCAL_MODULE := aapt | |
64 | ||
65 | include $(BUILD_HOST_EXECUTABLE) | |
66 | ||
24b51177 | 67 | endif # TARGET_BUILD_APPS |