2009-03-03 19:31:44 -08:00
|
|
|
#
|
2014-04-16 14:40:42 -07:00
|
|
|
# Copyright (C) 2014 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2009-03-03 19:31:44 -08:00
|
|
|
#
|
|
|
|
|
2014-03-07 15:55:14 -08:00
|
|
|
ifeq ($(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK)),)
|
2010-06-10 18:34:55 -07:00
|
|
|
|
2014-04-16 14:40:42 -07:00
|
|
|
# ==========================================================
|
|
|
|
# Setup some common variables for the different build
|
|
|
|
# targets here.
|
|
|
|
# ==========================================================
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
2009-03-03 19:31:44 -08:00
|
|
|
|
2014-04-16 14:40:42 -07:00
|
|
|
aaptHostStaticLibs := \
|
|
|
|
libandroidfw \
|
|
|
|
libpng \
|
|
|
|
libutils \
|
2016-06-28 18:26:10 +01:00
|
|
|
liblog \
|
2014-04-16 14:40:42 -07:00
|
|
|
libcutils \
|
|
|
|
libexpat \
|
2016-08-26 11:15:17 -07:00
|
|
|
libziparchive \
|
2017-09-08 21:26:31 -07:00
|
|
|
libbase \
|
|
|
|
libz
|
2009-06-05 14:56:35 -07:00
|
|
|
|
2017-09-08 22:02:41 -07:00
|
|
|
aaptCFlags := -Wall -Werror
|
2014-08-18 14:06:38 -07:00
|
|
|
|
2014-04-16 14:40:42 -07:00
|
|
|
# ==========================================================
|
|
|
|
# Build the host executable: aapt
|
|
|
|
# ==========================================================
|
|
|
|
include $(CLEAR_VARS)
|
2009-03-03 19:31:44 -08:00
|
|
|
|
2014-04-16 14:40:42 -07:00
|
|
|
LOCAL_MODULE := aapt
|
2015-08-19 11:13:56 -07:00
|
|
|
LOCAL_MODULE_HOST_OS := darwin linux windows
|
2017-09-08 22:02:41 -07:00
|
|
|
LOCAL_CFLAGS := -DAAPT_VERSION=\"$(BUILD_NUMBER_FROM_FILE)\" $(aaptCFlags)
|
2017-09-08 22:47:47 -07:00
|
|
|
LOCAL_SRC_FILES := Main.cpp
|
2015-08-19 11:13:56 -07:00
|
|
|
LOCAL_STATIC_LIBRARIES := libaapt $(aaptHostStaticLibs)
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
|
2014-03-07 15:55:14 -08:00
|
|
|
endif # No TARGET_BUILD_APPS or TARGET_BUILD_PDK
|