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 \ |
| 22 | ResourceTable.cpp \ |
| 23 | Images.cpp \ |
| 24 | Resource.cpp \ |
Mathias Agopian | 55e3d60 | 2009-06-05 14:56:35 -0700 | [diff] [blame] | 25 | SourcePos.cpp \ |
| 26 | ZipEntry.cpp \ |
| 27 | ZipFile.cpp |
| 28 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 29 | |
| 30 | LOCAL_CFLAGS += -Wno-format-y2k |
| 31 | |
| 32 | LOCAL_C_INCLUDES += external/expat/lib |
| 33 | LOCAL_C_INCLUDES += external/libpng |
| 34 | LOCAL_C_INCLUDES += external/zlib |
| 35 | LOCAL_C_INCLUDES += build/libs/host/include |
| 36 | |
| 37 | #LOCAL_WHOLE_STATIC_LIBRARIES := |
| 38 | LOCAL_STATIC_LIBRARIES := \ |
| 39 | libhost \ |
| 40 | libutils \ |
| 41 | libcutils \ |
| 42 | libexpat \ |
| 43 | libpng |
| 44 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 45 | ifeq ($(HOST_OS),linux) |
hmepas | b7ffaf6 | 2009-01-21 07:41:00 -0800 | [diff] [blame] | 46 | LOCAL_LDLIBS += -lrt -lpthread |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 47 | endif |
| 48 | |
Raphael | 2935553 | 2010-04-13 15:21:32 -0700 | [diff] [blame] | 49 | # Statically link libz for MinGW (Win SDK under Linux), |
| 50 | # and dynamically link for all others. |
| 51 | ifneq ($(strip $(USE_MINGW)),) |
| 52 | LOCAL_STATIC_LIBRARIES += libz |
| 53 | else |
| 54 | LOCAL_LDLIBS += -lz |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 55 | endif |
| 56 | |
| 57 | LOCAL_MODULE := aapt |
| 58 | |
| 59 | include $(BUILD_HOST_EXECUTABLE) |
| 60 | |
Joe Onorato | 74905e5 | 2010-06-10 18:34:55 -0700 | [diff] [blame] | 61 | endif # TARGET_BUILD_APPS |