The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2006 The Android Open Source Project |
| 3 | # |
| 4 | # Android Asset Packaging Tool |
| 5 | # |
| 6 | |
Joe Onorato | 74905e5 | 2010-06-10 18:34:55 -0700 | [diff] [blame] | 7 | # This tool is prebuilt if we're doing an app-only build. |
| 8 | ifeq ($(TARGET_BUILD_APPS),) |
| 9 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 10 | LOCAL_PATH:= $(call my-dir) |
| 11 | include $(CLEAR_VARS) |
| 12 | |
| 13 | LOCAL_SRC_FILES := \ |
| 14 | AaptAssets.cpp \ |
| 15 | Command.cpp \ |
Josiah Gaskin | 8a39da8 | 2011-06-06 17:00:35 -0700 | [diff] [blame] | 16 | CrunchCache.cpp \ |
| 17 | FileFinder.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 18 | Main.cpp \ |
| 19 | Package.cpp \ |
| 20 | StringPool.cpp \ |
| 21 | XMLNode.cpp \ |
Dianne Hackborn | e6b6803 | 2011-10-13 16:26:02 -0700 | [diff] [blame] | 22 | ResourceFilter.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 23 | ResourceTable.cpp \ |
| 24 | Images.cpp \ |
| 25 | Resource.cpp \ |
Mathias Agopian | 55e3d60 | 2009-06-05 14:56:35 -0700 | [diff] [blame] | 26 | SourcePos.cpp \ |
| 27 | ZipEntry.cpp \ |
| 28 | ZipFile.cpp |
| 29 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 30 | |
| 31 | LOCAL_CFLAGS += -Wno-format-y2k |
Ying Wang | 41bdb03 | 2012-05-30 18:02:55 -0700 | [diff] [blame] | 32 | ifeq (darwin,$(HOST_OS)) |
| 33 | LOCAL_CFLAGS += -D_DARWIN_UNLIMITED_STREAMS |
| 34 | endif |
| 35 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 36 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 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 \ |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 44 | libandroidfw \ |
Mathias Agopian | cbc6971 | 2012-02-21 14:34:47 -0800 | [diff] [blame] | 45 | libutils \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 46 | libcutils \ |
| 47 | libexpat \ |
| 48 | libpng |
| 49 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 50 | ifeq ($(HOST_OS),linux) |
Iliyan Malchev | 64ef6b4 | 2011-10-19 22:35:56 -0700 | [diff] [blame] | 51 | LOCAL_LDLIBS += -lrt -ldl -lpthread |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 52 | endif |
| 53 | |
Raphael | 2935553 | 2010-04-13 15:21:32 -0700 | [diff] [blame] | 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 |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 60 | endif |
| 61 | |
| 62 | LOCAL_MODULE := aapt |
| 63 | |
| 64 | include $(BUILD_HOST_EXECUTABLE) |
| 65 | |
Joe Onorato | 74905e5 | 2010-06-10 18:34:55 -0700 | [diff] [blame] | 66 | endif # TARGET_BUILD_APPS |