blob: d9b06815bf658607637b87b062968fd93c190790 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001#
2# Copyright 2006 The Android Open Source Project
3#
4# Android Asset Packaging Tool
5#
6
Joe Onorato74905e52010-06-10 18:34:55 -07007# This tool is prebuilt if we're doing an app-only build.
8ifeq ($(TARGET_BUILD_APPS),)
9
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080010LOCAL_PATH:= $(call my-dir)
11include $(CLEAR_VARS)
12
13LOCAL_SRC_FILES := \
14 AaptAssets.cpp \
15 Command.cpp \
Josiah Gaskin8a39da82011-06-06 17:00:35 -070016 CrunchCache.cpp \
17 FileFinder.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080018 Main.cpp \
19 Package.cpp \
20 StringPool.cpp \
21 XMLNode.cpp \
Dianne Hackborne6b68032011-10-13 16:26:02 -070022 ResourceFilter.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080023 ResourceTable.cpp \
24 Images.cpp \
25 Resource.cpp \
Mathias Agopian55e3d602009-06-05 14:56:35 -070026 SourcePos.cpp \
27 ZipEntry.cpp \
28 ZipFile.cpp
29
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080030
31LOCAL_CFLAGS += -Wno-format-y2k
Ying Wang41bdb032012-05-30 18:02:55 -070032ifeq (darwin,$(HOST_OS))
33LOCAL_CFLAGS += -D_DARWIN_UNLIMITED_STREAMS
34endif
35
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080036
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080037LOCAL_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 \
Mathias Agopian83c64e62012-02-20 16:58:20 -080044 libandroidfw \
Mathias Agopiancbc69712012-02-21 14:34:47 -080045 libutils \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080046 libcutils \
47 libexpat \
48 libpng
49
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080050ifeq ($(HOST_OS),linux)
Iliyan Malchev64ef6b42011-10-19 22:35:56 -070051LOCAL_LDLIBS += -lrt -ldl -lpthread
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080052endif
53
Raphael29355532010-04-13 15:21:32 -070054# 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
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080060endif
61
62LOCAL_MODULE := aapt
63
64include $(BUILD_HOST_EXECUTABLE)
65
Joe Onorato74905e52010-06-10 18:34:55 -070066endif # TARGET_BUILD_APPS