Ying Wang | b335bb0 | 2011-11-29 10:23:55 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2010 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 | |
| 17 | LOCAL_PATH:= $(call my-dir) |
Keun young Park | d11b3e7 | 2012-04-20 16:18:14 -0700 | [diff] [blame] | 18 | |
Keun young Park | 5139284 | 2012-04-20 16:42:35 -0700 | [diff] [blame] | 19 | ifneq (,$(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK))) |
Ying Wang | b335bb0 | 2011-11-29 10:23:55 -0800 | [diff] [blame] | 20 | |
| 21 | ################################## |
| 22 | include $(CLEAR_VARS) |
| 23 | |
| 24 | # We can't simple call $(BUILD_PREBUILT) here, because $(ACP) is not |
| 25 | # available yet.. |
| 26 | |
| 27 | LOCAL_MODULE := acp |
| 28 | LOCAL_IS_HOST_MODULE := true |
| 29 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 30 | LOCAL_MODULE_TAGS := optional |
| 31 | |
| 32 | $(ACP): $(LOCAL_PATH)/$(HOST_OS)/acp$(HOST_EXECUTABLE_SUFFIX) |
| 33 | @echo "Copy: acp ($@)" |
| 34 | $(copy-file-to-target-with-cp) |
| 35 | $(hide) chmod 755 $@ |
| 36 | |
| 37 | ################################## |
| 38 | include $(CLEAR_VARS) |
| 39 | |
| 40 | LOCAL_MODULE := aidl |
| 41 | LOCAL_SRC_FILES := $(HOST_OS)/aidl$(HOST_EXECUTABLE_SUFFIX) |
| 42 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 43 | LOCAL_MODULE_TAGS := optional |
| 44 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) |
| 45 | LOCAL_BUILT_MODULE_STEM := aidl$(HOST_EXECUTABLE_SUFFIX) |
| 46 | LOCAL_IS_HOST_MODULE := true |
| 47 | |
| 48 | include $(BUILD_PREBUILT) |
| 49 | |
| 50 | ################################## |
| 51 | include $(CLEAR_VARS) |
| 52 | |
| 53 | LOCAL_MODULE := aapt |
| 54 | LOCAL_SRC_FILES := $(HOST_OS)/aapt$(HOST_EXECUTABLE_SUFFIX) |
| 55 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 56 | LOCAL_MODULE_TAGS := optional |
| 57 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) |
| 58 | LOCAL_BUILT_MODULE_STEM := aapt$(HOST_EXECUTABLE_SUFFIX) |
| 59 | LOCAL_IS_HOST_MODULE := true |
| 60 | |
| 61 | include $(BUILD_PREBUILT) |
| 62 | |
| 63 | ################################## |
Ying Wang | b335bb0 | 2011-11-29 10:23:55 -0800 | [diff] [blame] | 64 | |
Ying Wang | b335bb0 | 2011-11-29 10:23:55 -0800 | [diff] [blame] | 65 | include $(CLEAR_VARS) |
| 66 | |
| 67 | LOCAL_MODULE := zipalign |
| 68 | LOCAL_SRC_FILES := $(HOST_OS)/zipalign$(HOST_EXECUTABLE_SUFFIX) |
| 69 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 70 | LOCAL_MODULE_TAGS := optional |
| 71 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) |
| 72 | LOCAL_BUILT_MODULE_STEM := zipalign$(HOST_EXECUTABLE_SUFFIX) |
| 73 | LOCAL_IS_HOST_MODULE := true |
| 74 | |
| 75 | include $(BUILD_PREBUILT) |
Ying Wang | fd32b77 | 2012-09-19 17:52:28 -0700 | [diff] [blame] | 76 | |
| 77 | ################################## |
| 78 | include $(CLEAR_VARS) |
| 79 | |
| 80 | LOCAL_MODULE := signapk |
| 81 | LOCAL_SRC_FILES := lib/signapk.jar |
| 82 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 83 | LOCAL_MODULE_TAGS := optional |
| 84 | LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX) |
| 85 | LOCAL_BUILT_MODULE_STEM := signapk$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 86 | LOCAL_IS_HOST_MODULE := true |
| 87 | |
| 88 | include $(BUILD_PREBUILT) |
Ying Wang | b335bb0 | 2011-11-29 10:23:55 -0800 | [diff] [blame] | 89 | |
| 90 | ################################## |
| 91 | include $(CLEAR_VARS) |
| 92 | |
| 93 | LOCAL_MODULE := dx |
| 94 | LOCAL_SRC_FILES := lib/dx.jar |
| 95 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 96 | LOCAL_MODULE_TAGS := optional |
| 97 | LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX) |
| 98 | LOCAL_BUILT_MODULE_STEM := dx$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 99 | LOCAL_IS_HOST_MODULE := true |
| 100 | |
| 101 | include $(BUILD_PREBUILT) |
| 102 | |
| 103 | ################################## |
| 104 | include $(CLEAR_VARS) |
| 105 | |
| 106 | # We have to call copy-file-to-new-target instead of simply including |
| 107 | # $(BUILD_PREBUILT) here, because we must put dx.jar as dependecy of dx. |
| 108 | |
| 109 | LOCAL_MODULE := dx |
| 110 | LOCAL_IS_HOST_MODULE := true |
| 111 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 112 | LOCAL_MODULE_TAGS := optional |
| 113 | |
| 114 | include $(BUILD_SYSTEM)/base_rules.mk |
| 115 | |
| 116 | $(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/dx$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 117 | $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/dx | $(ACP) |
| 118 | @echo "Copy: $(PRIVATE_MODULE) ($@)" |
| 119 | $(copy-file-to-new-target) |
| 120 | $(hide) chmod 755 $@ |
| 121 | |
| 122 | ################################## |
keunyoung | 960bd8f | 2013-03-13 15:18:08 -0700 | [diff] [blame] | 123 | |
| 124 | endif # TARGET_BUILD_APPS or TARGET_BUILD_PDK |
| 125 | |
| 126 | # Only use these prebuilts in unbundled branches |
| 127 | # Don't use prebuilts in PDK |
| 128 | |
| 129 | ifneq (,$(TARGET_BUILD_APPS)) |
| 130 | |
| 131 | ################################## |
Keun young Park | 8472059 | 2013-02-05 17:33:48 -0800 | [diff] [blame] | 132 | include $(CLEAR_VARS) |
| 133 | |
| 134 | LOCAL_MODULE := llvm-rs-cc |
| 135 | LOCAL_SRC_FILES := $(HOST_OS)/llvm-rs-cc$(HOST_EXECUTABLE_SUFFIX) |
| 136 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 137 | LOCAL_MODULE_TAGS := optional |
Tim Murray | 88a6d11 | 2013-03-05 10:02:12 -0800 | [diff] [blame] | 138 | LOCAL_REQUIRED_MODULES := libLLVM libclang |
Keun young Park | 8472059 | 2013-02-05 17:33:48 -0800 | [diff] [blame] | 139 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) |
| 140 | LOCAL_BUILT_MODULE_STEM := llvm-rs-cc$(HOST_EXECUTABLE_SUFFIX) |
| 141 | LOCAL_IS_HOST_MODULE := true |
| 142 | |
| 143 | include $(BUILD_PREBUILT) |
| 144 | |
| 145 | ################################## |
Tim Murray | 90bb261 | 2013-02-04 12:52:52 -0800 | [diff] [blame] | 146 | include $(CLEAR_VARS) |
| 147 | |
| 148 | LOCAL_MODULE := bcc_compat |
| 149 | LOCAL_SRC_FILES := $(HOST_OS)/$(LOCAL_MODULE)$(HOST_EXECUTABLE_SUFFIX) |
| 150 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 151 | LOCAL_MODULE_TAGS := optional |
| 152 | LOCAL_REQUIRED_MODULES := libbcc libbcinfo |
| 153 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) |
| 154 | LOCAL_BUILT_MODULE_STEM := $(LOCAL_MODULE)$(HOST_EXECUTABLE_SUFFIX) |
| 155 | LOCAL_IS_HOST_MODULE := true |
| 156 | |
| 157 | include $(BUILD_PREBUILT) |
| 158 | |
| 159 | ################################## |
| 160 | include $(CLEAR_VARS) |
| 161 | |
| 162 | LOCAL_MODULE := libbcc |
Stephen Hines | d5501d1 | 2013-02-05 18:25:49 -0800 | [diff] [blame] | 163 | LOCAL_SRC_FILES := $(HOST_OS)/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) |
Tim Murray | 90bb261 | 2013-02-04 12:52:52 -0800 | [diff] [blame] | 164 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 165 | LOCAL_MODULE_TAGS := optional |
Stephen Hines | d5501d1 | 2013-02-05 18:25:49 -0800 | [diff] [blame] | 166 | LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) |
Tim Murray | 90bb261 | 2013-02-04 12:52:52 -0800 | [diff] [blame] | 167 | LOCAL_IS_HOST_MODULE := true |
| 168 | |
| 169 | include $(BUILD_PREBUILT) |
| 170 | |
| 171 | ################################## |
| 172 | include $(CLEAR_VARS) |
| 173 | |
| 174 | LOCAL_MODULE := libbcinfo |
Stephen Hines | d5501d1 | 2013-02-05 18:25:49 -0800 | [diff] [blame] | 175 | LOCAL_SRC_FILES := $(HOST_OS)/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) |
Tim Murray | 90bb261 | 2013-02-04 12:52:52 -0800 | [diff] [blame] | 176 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 177 | LOCAL_MODULE_TAGS := optional |
Stephen Hines | d5501d1 | 2013-02-05 18:25:49 -0800 | [diff] [blame] | 178 | LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) |
Tim Murray | 90bb261 | 2013-02-04 12:52:52 -0800 | [diff] [blame] | 179 | LOCAL_IS_HOST_MODULE := true |
| 180 | |
| 181 | include $(BUILD_PREBUILT) |
| 182 | |
| 183 | ################################## |
Tim Murray | 90bb261 | 2013-02-04 12:52:52 -0800 | [diff] [blame] | 184 | |
Stephen Hines | a8f63ae | 2013-03-07 15:46:17 -0800 | [diff] [blame] | 185 | include $(CLEAR_VARS) |
| 186 | |
| 187 | LOCAL_MODULE := libLLVM |
| 188 | LOCAL_SRC_FILES := $(HOST_OS)/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) |
| 189 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 190 | LOCAL_MODULE_TAGS := optional |
| 191 | LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) |
| 192 | LOCAL_IS_HOST_MODULE := true |
| 193 | |
| 194 | include $(BUILD_PREBUILT) |
| 195 | |
| 196 | ################################## |
| 197 | include $(CLEAR_VARS) |
| 198 | |
| 199 | LOCAL_MODULE := libclang |
| 200 | LOCAL_SRC_FILES := $(HOST_OS)/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) |
| 201 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 202 | LOCAL_MODULE_TAGS := optional |
| 203 | LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) |
| 204 | LOCAL_IS_HOST_MODULE := true |
| 205 | |
| 206 | include $(BUILD_PREBUILT) |
| 207 | |
| 208 | ################################## |
| 209 | |
Tim Murray | 90bb261 | 2013-02-04 12:52:52 -0800 | [diff] [blame] | 210 | endif # TARGET_BUILD_APPS only |