]> git.saurik.com Git - android/aapt.git/blame - Android.mk
am 6abf2f50: am 0b45ca88: am cd01ad7c: am 20339b24: Merge "Remove Debug Code"
[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 \
22 ResourceTable.cpp \
23 Images.cpp \
24 Resource.cpp \
1f170917
MA
25 SourcePos.cpp \
26 ZipEntry.cpp \
27 ZipFile.cpp
28
dadd9c1f
TAOSP
29
30LOCAL_CFLAGS += -Wno-format-y2k
31
32LOCAL_C_INCLUDES += external/expat/lib
33LOCAL_C_INCLUDES += external/libpng
34LOCAL_C_INCLUDES += external/zlib
35LOCAL_C_INCLUDES += build/libs/host/include
36
37#LOCAL_WHOLE_STATIC_LIBRARIES :=
38LOCAL_STATIC_LIBRARIES := \
39 libhost \
40 libutils \
41 libcutils \
42 libexpat \
43 libpng
44
dadd9c1f 45ifeq ($(HOST_OS),linux)
ca72a28f 46LOCAL_LDLIBS += -lrt -lpthread
dadd9c1f
TAOSP
47endif
48
283c2c49
R
49# Statically link libz for MinGW (Win SDK under Linux),
50# and dynamically link for all others.
51ifneq ($(strip $(USE_MINGW)),)
52 LOCAL_STATIC_LIBRARIES += libz
53else
54 LOCAL_LDLIBS += -lz
dadd9c1f
TAOSP
55endif
56
57LOCAL_MODULE := aapt
58
59include $(BUILD_HOST_EXECUTABLE)
60
24b51177 61endif # TARGET_BUILD_APPS