]> git.saurik.com Git - android/aapt.git/blame_incremental - Android.mk
am 1240719a: am bcf2adeb: Merge "aapt: Allow raw "%" in unformatted string-arrays"
[android/aapt.git] / Android.mk
... / ...
CommitLineData
1#
2# Copyright 2006 The Android Open Source Project
3#
4# Android Asset Packaging Tool
5#
6
7# This tool is prebuilt if we're doing an app-only build.
8ifeq ($(TARGET_BUILD_APPS),)
9
10LOCAL_PATH:= $(call my-dir)
11include $(CLEAR_VARS)
12
13LOCAL_SRC_FILES := \
14 AaptAssets.cpp \
15 Command.cpp \
16 Main.cpp \
17 Package.cpp \
18 StringPool.cpp \
19 XMLNode.cpp \
20 ResourceTable.cpp \
21 Images.cpp \
22 Resource.cpp \
23 SourcePos.cpp \
24 ZipEntry.cpp \
25 ZipFile.cpp
26
27
28LOCAL_CFLAGS += -Wno-format-y2k
29
30LOCAL_C_INCLUDES += external/expat/lib
31LOCAL_C_INCLUDES += external/libpng
32LOCAL_C_INCLUDES += external/zlib
33LOCAL_C_INCLUDES += build/libs/host/include
34
35#LOCAL_WHOLE_STATIC_LIBRARIES :=
36LOCAL_STATIC_LIBRARIES := \
37 libhost \
38 libutils \
39 libcutils \
40 libexpat \
41 libpng
42
43ifeq ($(HOST_OS),linux)
44LOCAL_LDLIBS += -lrt -lpthread
45endif
46
47# Statically link libz for MinGW (Win SDK under Linux),
48# and dynamically link for all others.
49ifneq ($(strip $(USE_MINGW)),)
50 LOCAL_STATIC_LIBRARIES += libz
51else
52 LOCAL_LDLIBS += -lz
53endif
54
55LOCAL_MODULE := aapt
56
57include $(BUILD_HOST_EXECUTABLE)
58
59endif # TARGET_BUILD_APPS