]> git.saurik.com Git - android/aapt.git/blame_incremental - Android.mk
am 31820a35: Merge "Add --output-text-symbols option to 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 ResourceTable.cpp \
24 Images.cpp \
25 Resource.cpp \
26 SourcePos.cpp \
27 ZipEntry.cpp \
28 ZipFile.cpp
29
30
31LOCAL_CFLAGS += -Wno-format-y2k
32ifeq (darwin,$(HOST_OS))
33LOCAL_CFLAGS += -D_DARWIN_UNLIMITED_STREAMS
34endif
35
36
37LOCAL_C_INCLUDES += external/libpng
38LOCAL_C_INCLUDES += external/zlib
39LOCAL_C_INCLUDES += build/libs/host/include
40
41#LOCAL_WHOLE_STATIC_LIBRARIES :=
42LOCAL_STATIC_LIBRARIES := \
43 libhost \
44 libandroidfw \
45 libutils \
46 libcutils \
47 libexpat \
48 libpng
49
50ifeq ($(HOST_OS),linux)
51LOCAL_LDLIBS += -lrt -ldl -lpthread
52endif
53
54# Statically link libz for MinGW (Win SDK under Linux),
55# and dynamically link for all others.
56ifneq ($(strip $(USE_MINGW)),)
57 LOCAL_STATIC_LIBRARIES += libz
58else
59 LOCAL_LDLIBS += -lz
60endif
61
62LOCAL_MODULE := aapt
63
64include $(BUILD_HOST_EXECUTABLE)
65
66endif # TARGET_BUILD_APPS