]> git.saurik.com Git - android/aapt.git/blame - Android.mk
am 532d2c70: am 002f5377: Apply --extra-packages in case --custom-pacakge is also...
[android/aapt.git] / Android.mk
CommitLineData
dadd9c1f
TAOSP
1#
2# Copyright 2006 The Android Open Source Project
3#
4# Android Asset Packaging Tool
5#
6
24b51177
JO
7# This tool is prebuilt if we're doing an app-only build.
8ifeq ($(TARGET_BUILD_APPS),)
9
dadd9c1f
TAOSP
10LOCAL_PATH:= $(call my-dir)
11include $(CLEAR_VARS)
12
13LOCAL_SRC_FILES := \
14 AaptAssets.cpp \
15 Command.cpp \
dddb1fc7
JG
16 CrunchCache.cpp \
17 FileFinder.cpp \
dadd9c1f
TAOSP
18 Main.cpp \
19 Package.cpp \
20 StringPool.cpp \
21 XMLNode.cpp \
e29f4ada 22 ResourceFilter.cpp \
dadd9c1f
TAOSP
23 ResourceTable.cpp \
24 Images.cpp \
25 Resource.cpp \
1f170917
MA
26 SourcePos.cpp \
27 ZipEntry.cpp \
28 ZipFile.cpp
29
dadd9c1f
TAOSP
30
31LOCAL_CFLAGS += -Wno-format-y2k
32
33LOCAL_C_INCLUDES += external/expat/lib
34LOCAL_C_INCLUDES += external/libpng
35LOCAL_C_INCLUDES += external/zlib
36LOCAL_C_INCLUDES += build/libs/host/include
37
38#LOCAL_WHOLE_STATIC_LIBRARIES :=
39LOCAL_STATIC_LIBRARIES := \
40 libhost \
c180a0ff 41 libandroidfw \
1f7e77a0 42 libutils \
dadd9c1f
TAOSP
43 libcutils \
44 libexpat \
45 libpng
46
dadd9c1f 47ifeq ($(HOST_OS),linux)
c356a30a 48LOCAL_LDLIBS += -lrt -ldl -lpthread
dadd9c1f
TAOSP
49endif
50
283c2c49
R
51# Statically link libz for MinGW (Win SDK under Linux),
52# and dynamically link for all others.
53ifneq ($(strip $(USE_MINGW)),)
54 LOCAL_STATIC_LIBRARIES += libz
55else
56 LOCAL_LDLIBS += -lz
dadd9c1f
TAOSP
57endif
58
59LOCAL_MODULE := aapt
60
61include $(BUILD_HOST_EXECUTABLE)
62
24b51177 63endif # TARGET_BUILD_APPS