• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2014 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17ifeq ($(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK)),)
18
19# ==========================================================
20# Setup some common variables for the different build
21# targets here.
22# ==========================================================
23LOCAL_PATH:= $(call my-dir)
24
25aaptHostStaticLibs := \
26    libandroidfw \
27    libpng \
28    libutils \
29    liblog \
30    libcutils \
31    libexpat \
32    libziparchive \
33    libbase \
34    libz
35
36aaptCFlags := -Wall -Werror
37
38# ==========================================================
39# Build the host executable: aapt
40# ==========================================================
41include $(CLEAR_VARS)
42
43LOCAL_MODULE := aapt
44LOCAL_MODULE_HOST_OS := darwin linux windows
45LOCAL_CFLAGS := -DAAPT_VERSION=\"$(BUILD_NUMBER_FROM_FILE)\" $(aaptCFlags)
46LOCAL_SRC_FILES := Main.cpp
47LOCAL_STATIC_LIBRARIES := libaapt $(aaptHostStaticLibs)
48
49include $(BUILD_HOST_EXECUTABLE)
50
51endif # No TARGET_BUILD_APPS or TARGET_BUILD_PDK
52