2009-03-03 19:31:44 -08:00
|
|
|
#
|
|
|
|
# Copyright 2006 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Android Asset Packaging Tool
|
|
|
|
#
|
|
|
|
|
2010-06-10 18:34:55 -07:00
|
|
|
# This tool is prebuilt if we're doing an app-only build.
|
|
|
|
ifeq ($(TARGET_BUILD_APPS),)
|
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
AaptAssets.cpp \
|
|
|
|
Command.cpp \
|
2011-06-06 17:00:35 -07:00
|
|
|
CrunchCache.cpp \
|
|
|
|
FileFinder.cpp \
|
2009-03-03 19:31:44 -08:00
|
|
|
Main.cpp \
|
|
|
|
Package.cpp \
|
|
|
|
StringPool.cpp \
|
|
|
|
XMLNode.cpp \
|
2011-10-13 16:26:02 -07:00
|
|
|
ResourceFilter.cpp \
|
2009-03-03 19:31:44 -08:00
|
|
|
ResourceTable.cpp \
|
|
|
|
Images.cpp \
|
|
|
|
Resource.cpp \
|
2009-06-05 14:56:35 -07:00
|
|
|
SourcePos.cpp \
|
|
|
|
ZipEntry.cpp \
|
|
|
|
ZipFile.cpp
|
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
LOCAL_CFLAGS += -Wno-format-y2k
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES += external/expat/lib
|
|
|
|
LOCAL_C_INCLUDES += external/libpng
|
|
|
|
LOCAL_C_INCLUDES += external/zlib
|
|
|
|
LOCAL_C_INCLUDES += build/libs/host/include
|
|
|
|
|
|
|
|
#LOCAL_WHOLE_STATIC_LIBRARIES :=
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libhost \
|
|
|
|
libutils \
|
|
|
|
libcutils \
|
|
|
|
libexpat \
|
|
|
|
libpng
|
|
|
|
|
|
|
|
ifeq ($(HOST_OS),linux)
|
2011-10-19 22:35:56 -07:00
|
|
|
LOCAL_LDLIBS += -lrt -ldl -lpthread
|
2009-03-03 19:31:44 -08:00
|
|
|
endif
|
|
|
|
|
2010-04-13 15:21:32 -07:00
|
|
|
# Statically link libz for MinGW (Win SDK under Linux),
|
|
|
|
# and dynamically link for all others.
|
|
|
|
ifneq ($(strip $(USE_MINGW)),)
|
|
|
|
LOCAL_STATIC_LIBRARIES += libz
|
|
|
|
else
|
|
|
|
LOCAL_LDLIBS += -lz
|
2009-03-03 19:31:44 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_MODULE := aapt
|
|
|
|
|
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
|
2010-06-10 18:34:55 -07:00
|
|
|
endif # TARGET_BUILD_APPS
|