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