The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | # |
Adam Lesinski | fab5087 | 2014-04-16 14:40:42 -0700 | [diff] [blame] | 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. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 15 | # |
| 16 | |
Ying Wang | 74bebf6 | 2014-03-07 15:55:14 -0800 | [diff] [blame] | 17 | ifeq ($(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK)),) |
Joe Onorato | 74905e5 | 2010-06-10 18:34:55 -0700 | [diff] [blame] | 18 | |
Adam Lesinski | fab5087 | 2014-04-16 14:40:42 -0700 | [diff] [blame] | 19 | # ========================================================== |
| 20 | # Setup some common variables for the different build |
| 21 | # targets here. |
| 22 | # ========================================================== |
| 23 | LOCAL_PATH:= $(call my-dir) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 24 | |
Adam Lesinski | fab5087 | 2014-04-16 14:40:42 -0700 | [diff] [blame] | 25 | aaptHostStaticLibs := \ |
| 26 | libandroidfw \ |
| 27 | libpng \ |
Adam Lesinski | fab5087 | 2014-04-16 14:40:42 -0700 | [diff] [blame] | 28 | libutils \ |
Sergio Giro | d90d8d6 | 2016-06-28 18:26:10 +0100 | [diff] [blame] | 29 | liblog \ |
Adam Lesinski | fab5087 | 2014-04-16 14:40:42 -0700 | [diff] [blame] | 30 | libcutils \ |
| 31 | libexpat \ |
Colin Cross | 9a1a3bc | 2016-08-26 11:15:17 -0700 | [diff] [blame] | 32 | libziparchive \ |
Dan Willemsen | 85aee73 | 2017-09-08 21:26:31 -0700 | [diff] [blame] | 33 | libbase \ |
| 34 | libz |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 35 | |
Dan Willemsen | 896f018 | 2017-09-08 22:02:41 -0700 | [diff] [blame] | 36 | aaptCFlags := -Wall -Werror |
Adam Lesinski | ad75122 | 2014-08-18 14:06:38 -0700 | [diff] [blame] | 37 | |
Adam Lesinski | fab5087 | 2014-04-16 14:40:42 -0700 | [diff] [blame] | 38 | # ========================================================== |
Adam Lesinski | fab5087 | 2014-04-16 14:40:42 -0700 | [diff] [blame] | 39 | # Build the host executable: aapt |
| 40 | # ========================================================== |
| 41 | include $(CLEAR_VARS) |
| 42 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 43 | LOCAL_MODULE := aapt |
Dan Willemsen | 4aa679f | 2015-08-19 11:13:56 -0700 | [diff] [blame] | 44 | LOCAL_MODULE_HOST_OS := darwin linux windows |
Dan Willemsen | 896f018 | 2017-09-08 22:02:41 -0700 | [diff] [blame] | 45 | LOCAL_CFLAGS := -DAAPT_VERSION=\"$(BUILD_NUMBER_FROM_FILE)\" $(aaptCFlags) |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 46 | LOCAL_SRC_FILES := Main.cpp |
Dan Willemsen | 4aa679f | 2015-08-19 11:13:56 -0700 | [diff] [blame] | 47 | LOCAL_STATIC_LIBRARIES := libaapt $(aaptHostStaticLibs) |
Adam Lesinski | fab5087 | 2014-04-16 14:40:42 -0700 | [diff] [blame] | 48 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 49 | include $(BUILD_HOST_EXECUTABLE) |
| 50 | |
Ying Wang | 74bebf6 | 2014-03-07 15:55:14 -0800 | [diff] [blame] | 51 | endif # No TARGET_BUILD_APPS or TARGET_BUILD_PDK |