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 | |
| 7 | LOCAL_PATH:= $(call my-dir) |
| 8 | include $(CLEAR_VARS) |
| 9 | |
| 10 | LOCAL_SRC_FILES := \ |
| 11 | AaptAssets.cpp \ |
| 12 | Command.cpp \ |
| 13 | Main.cpp \ |
| 14 | Package.cpp \ |
| 15 | StringPool.cpp \ |
| 16 | XMLNode.cpp \ |
| 17 | ResourceTable.cpp \ |
| 18 | Images.cpp \ |
| 19 | Resource.cpp \ |
Mathias Agopian | 55e3d60 | 2009-06-05 14:56:35 -0700 | [diff] [blame] | 20 | SourcePos.cpp \ |
| 21 | ZipEntry.cpp \ |
| 22 | ZipFile.cpp |
| 23 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 24 | |
| 25 | LOCAL_CFLAGS += -Wno-format-y2k |
| 26 | |
| 27 | LOCAL_C_INCLUDES += external/expat/lib |
| 28 | LOCAL_C_INCLUDES += external/libpng |
| 29 | LOCAL_C_INCLUDES += external/zlib |
| 30 | LOCAL_C_INCLUDES += build/libs/host/include |
| 31 | |
| 32 | #LOCAL_WHOLE_STATIC_LIBRARIES := |
| 33 | LOCAL_STATIC_LIBRARIES := \ |
| 34 | libhost \ |
| 35 | libutils \ |
| 36 | libcutils \ |
| 37 | libexpat \ |
| 38 | libpng |
| 39 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 40 | ifeq ($(HOST_OS),linux) |
| 41 | LOCAL_LDLIBS += -lrt |
| 42 | endif |
| 43 | |
Raphael | 2935553 | 2010-04-13 15:21:32 -0700 | [diff] [blame^] | 44 | # Statically link libz for MinGW (Win SDK under Linux), |
| 45 | # and dynamically link for all others. |
| 46 | ifneq ($(strip $(USE_MINGW)),) |
| 47 | LOCAL_STATIC_LIBRARIES += libz |
| 48 | else |
| 49 | LOCAL_LDLIBS += -lz |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 50 | endif |
| 51 | |
| 52 | LOCAL_MODULE := aapt |
| 53 | |
| 54 | include $(BUILD_HOST_EXECUTABLE) |
| 55 | |