]> git.saurik.com Git - android/aapt.git/blame_incremental - Android.mk
am 5f958e9b: am 67b38c44: Cache resource ID lookups in aapt
[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 CrunchCache.cpp \
17 FileFinder.cpp \
18 Main.cpp \
19 Package.cpp \
20 StringPool.cpp \
21 XMLNode.cpp \
22 ResourceFilter.cpp \
23 ResourceIdCache.cpp \
24 ResourceTable.cpp \
25 Images.cpp \
26 Resource.cpp \
27 SourcePos.cpp \
28 ZipEntry.cpp \
29 ZipFile.cpp
30
31
32LOCAL_CFLAGS += -Wno-format-y2k
33ifeq (darwin,$(HOST_OS))
34LOCAL_CFLAGS += -D_DARWIN_UNLIMITED_STREAMS
35endif
36
37
38LOCAL_C_INCLUDES += external/libpng
39LOCAL_C_INCLUDES += external/zlib
40LOCAL_C_INCLUDES += build/libs/host/include
41
42#LOCAL_WHOLE_STATIC_LIBRARIES :=
43LOCAL_STATIC_LIBRARIES := \
44 libhost \
45 libandroidfw \
46 libutils \
47 libcutils \
48 libexpat \
49 libpng
50
51ifeq ($(HOST_OS),linux)
52LOCAL_LDLIBS += -lrt -ldl -lpthread
53endif
54
55# Statically link libz for MinGW (Win SDK under Linux),
56# and dynamically link for all others.
57ifneq ($(strip $(USE_MINGW)),)
58 LOCAL_STATIC_LIBRARIES += libz
59else
60 LOCAL_LDLIBS += -lz
61endif
62
63LOCAL_MODULE := aapt
64
65include $(BUILD_HOST_EXECUTABLE)
66
67endif # TARGET_BUILD_APPS