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 | |
Yohann Roussel | 40c42d4 | 2014-09-08 15:00:54 +0200 | [diff] [blame] | 19 | ################################## |
| 20 | include $(CLEAR_VARS) |
| 21 | |
Allen Hair | 20658d3 | 2016-07-15 11:38:20 -0700 | [diff] [blame] | 22 | LOCAL_MODULE := jack-jacoco-reporter |
| 23 | LOCAL_SRC_FILES := jack-jacoco-reporter.jar |
| 24 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 25 | MOCAL_MODULE_TAGS := optional |
| 26 | LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX) |
| 27 | LOCAL_BUILT_MODULE_STEM := jack-jacoco-reporter$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 28 | LOCAL_IS_HOST_MODULE := true |
| 29 | |
| 30 | include $(BUILD_PREBUILT) |
| 31 | |
Allen Hair | 462cc83 | 2017-01-24 17:55:25 -0800 | [diff] [blame] | 32 | # Distribute the reporter tool for coverage builds |
| 33 | ifeq (true,$(EMMA_INSTRUMENT)) |
| 34 | $(call dist-for-goals, dist_files, $(LOCAL_BUILT_MODULE)) |
| 35 | endif # EMMA_INSTRUMENT |
| 36 | |
Colin Cross | 4d46bc6 | 2015-12-03 16:57:24 -0800 | [diff] [blame] | 37 | # New versions of the build/ project reference these tools directly without |
| 38 | # needing to install them, but some unbundled branches use a master version of |
| 39 | # prebuilts/sdk/ with an old version of build/ and look for these tools in the |
| 40 | # installed directories. |
Colin Cross | 12861a0 | 2016-01-20 16:08:42 -0800 | [diff] [blame] | 41 | ifneq ($(USE_PREBUILT_SDK_TOOLS_IN_PLACE),true) |
Colin Cross | 4d46bc6 | 2015-12-03 16:57:24 -0800 | [diff] [blame] | 42 | |
| 43 | ifneq (,$(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK))) |
| 44 | |
| 45 | ################################## |
| 46 | include $(CLEAR_VARS) |
| 47 | |
| 48 | # We can't simple call $(BUILD_PREBUILT) here, because $(ACP) is not |
| 49 | # available yet.. |
| 50 | |
| 51 | LOCAL_MODULE := acp |
| 52 | LOCAL_IS_HOST_MODULE := true |
| 53 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 54 | LOCAL_MODULE_TAGS := optional |
| 55 | |
| 56 | $(ACP): $(LOCAL_PATH)/$(HOST_OS)/bin/acp$(HOST_EXECUTABLE_SUFFIX) |
| 57 | @echo "Copy: acp ($@)" |
| 58 | $(copy-file-to-target-with-cp) |
| 59 | $(hide) chmod 755 $@ |
| 60 | |
| 61 | ################################## |
| 62 | include $(CLEAR_VARS) |
| 63 | |
| 64 | LOCAL_MODULE := aidl |
| 65 | LOCAL_SRC_FILES := $(HOST_OS)/bin/aidl$(HOST_EXECUTABLE_SUFFIX) |
| 66 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 67 | LOCAL_MODULE_TAGS := optional |
| 68 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) |
| 69 | LOCAL_BUILT_MODULE_STEM := aidl$(HOST_EXECUTABLE_SUFFIX) |
| 70 | LOCAL_IS_HOST_MODULE := true |
| 71 | LOCAL_SHARED_LIBRARIES := libc++ |
| 72 | LOCAL_MULTILIB := 32 |
| 73 | |
| 74 | include $(BUILD_PREBUILT) |
| 75 | |
| 76 | ################################## |
| 77 | include $(CLEAR_VARS) |
| 78 | |
| 79 | LOCAL_MODULE := aapt |
| 80 | LOCAL_SRC_FILES := $(HOST_OS)/bin/aapt$(HOST_EXECUTABLE_SUFFIX) |
| 81 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 82 | LOCAL_MODULE_TAGS := optional |
| 83 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) |
| 84 | LOCAL_BUILT_MODULE_STEM := aapt$(HOST_EXECUTABLE_SUFFIX) |
| 85 | LOCAL_IS_HOST_MODULE := true |
| 86 | LOCAL_SHARED_LIBRARIES := libc++ |
David Gross | 0c865d6 | 2016-06-15 21:00:28 +0000 | [diff] [blame] | 87 | LOCAL_MULTILIB := 64 |
Colin Cross | 4d46bc6 | 2015-12-03 16:57:24 -0800 | [diff] [blame] | 88 | |
| 89 | include $(BUILD_PREBUILT) |
| 90 | |
| 91 | ################################## |
| 92 | |
| 93 | include $(CLEAR_VARS) |
| 94 | |
| 95 | LOCAL_MODULE := zipalign |
| 96 | LOCAL_SRC_FILES := $(HOST_OS)/bin/zipalign$(HOST_EXECUTABLE_SUFFIX) |
| 97 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 98 | LOCAL_MODULE_TAGS := optional |
| 99 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) |
| 100 | LOCAL_BUILT_MODULE_STEM := zipalign$(HOST_EXECUTABLE_SUFFIX) |
| 101 | LOCAL_IS_HOST_MODULE := true |
| 102 | LOCAL_SHARED_LIBRARIES := libc++ |
| 103 | LOCAL_MULTILIB := 32 |
| 104 | |
| 105 | include $(BUILD_PREBUILT) |
| 106 | |
| 107 | ################################## |
| 108 | include $(CLEAR_VARS) |
| 109 | |
| 110 | LOCAL_MODULE := signapk |
| 111 | LOCAL_SRC_FILES := lib/signapk.jar |
| 112 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 113 | LOCAL_MODULE_TAGS := optional |
| 114 | LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX) |
| 115 | LOCAL_BUILT_MODULE_STEM := signapk$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 116 | LOCAL_IS_HOST_MODULE := true |
| 117 | |
| 118 | include $(BUILD_PREBUILT) |
| 119 | |
| 120 | ################################## |
| 121 | include $(CLEAR_VARS) |
| 122 | |
| 123 | LOCAL_MODULE := dx |
| 124 | LOCAL_SRC_FILES := lib/dx.jar |
| 125 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 126 | LOCAL_MODULE_TAGS := optional |
| 127 | LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX) |
| 128 | LOCAL_BUILT_MODULE_STEM := dx$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 129 | LOCAL_IS_HOST_MODULE := true |
| 130 | |
| 131 | include $(BUILD_PREBUILT) |
| 132 | |
| 133 | ################################## |
| 134 | include $(CLEAR_VARS) |
| 135 | |
| 136 | # We have to call copy-file-to-new-target instead of simply including |
| 137 | # $(BUILD_PREBUILT) here, because we must put dx.jar as dependecy of dx. |
| 138 | |
| 139 | LOCAL_MODULE := dx |
| 140 | LOCAL_IS_HOST_MODULE := true |
| 141 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 142 | LOCAL_MODULE_TAGS := optional |
| 143 | |
| 144 | include $(BUILD_SYSTEM)/base_rules.mk |
| 145 | |
| 146 | $(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/dx$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 147 | $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/dx | $(ACP) |
| 148 | @echo "Copy: $(PRIVATE_MODULE) ($@)" |
| 149 | $(copy-file-to-new-target) |
| 150 | $(hide) chmod 755 $@ |
| 151 | |
| 152 | ################################## |
| 153 | include $(CLEAR_VARS) |
| 154 | |
| 155 | # We have to call copy-file-to-new-target instead of simply including |
| 156 | # $(BUILD_PREBUILT) here, because we must put dx.jar, shrinkedAndroid.jar and mainDexClasses.rules |
| 157 | # as dependecy of mainDexClasses. |
| 158 | |
| 159 | LOCAL_MODULE := mainDexClasses |
| 160 | LOCAL_IS_HOST_MODULE := true |
| 161 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 162 | LOCAL_MODULE_TAGS := optional |
| 163 | |
| 164 | include $(BUILD_SYSTEM)/base_rules.mk |
| 165 | |
| 166 | $(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/dx$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 167 | $(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/shrinkedAndroid$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 168 | $(LOCAL_BUILT_MODULE): $(HOST_OUT_EXECUTABLES)/mainDexClasses.rules |
| 169 | $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/mainDexClasses | $(ACP) |
| 170 | @echo "Copy: $(PRIVATE_MODULE) ($@)" |
| 171 | $(copy-file-to-new-target) |
| 172 | $(hide) chmod 755 $@ |
| 173 | |
| 174 | ################################## |
| 175 | |
| 176 | include $(CLEAR_VARS) |
| 177 | |
| 178 | LOCAL_MODULE := mainDexClasses.rules |
| 179 | LOCAL_SRC_FILES := mainDexClasses.rules |
| 180 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 181 | LOCAL_MODULE_TAGS := optional |
| 182 | LOCAL_MODULE_SUFFIX := |
| 183 | LOCAL_BUILT_MODULE_STEM := mainDexClasses.rules |
| 184 | LOCAL_IS_HOST_MODULE := true |
| 185 | |
| 186 | include $(BUILD_PREBUILT) |
| 187 | |
| 188 | ################################## |
| 189 | include $(CLEAR_VARS) |
| 190 | |
| 191 | LOCAL_MODULE := shrinkedAndroid |
| 192 | LOCAL_SRC_FILES := lib/shrinkedAndroid.jar |
| 193 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 194 | LOCAL_MODULE_TAGS := optional |
| 195 | LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX) |
| 196 | LOCAL_BUILT_MODULE_STEM := dx$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 197 | LOCAL_IS_HOST_MODULE := true |
| 198 | |
| 199 | include $(BUILD_PREBUILT) |
| 200 | |
| 201 | ################################## |
| 202 | |
| 203 | endif # TARGET_BUILD_APPS or TARGET_BUILD_PDK |
| 204 | |
| 205 | # Only use these prebuilts in unbundled branches |
| 206 | # Don't use prebuilts in PDK |
| 207 | |
| 208 | ifneq (,$(TARGET_BUILD_APPS)) |
| 209 | |
| 210 | ################################## |
| 211 | include $(CLEAR_VARS) |
| 212 | |
| 213 | LOCAL_MODULE := llvm-rs-cc |
| 214 | LOCAL_SRC_FILES := $(HOST_OS)/bin/llvm-rs-cc$(HOST_EXECUTABLE_SUFFIX) |
| 215 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 216 | LOCAL_MODULE_TAGS := optional |
| 217 | LOCAL_SHARED_LIBRARIES := libLLVM libclang libc++ |
| 218 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) |
| 219 | LOCAL_BUILT_MODULE_STEM := llvm-rs-cc$(HOST_EXECUTABLE_SUFFIX) |
| 220 | LOCAL_IS_HOST_MODULE := true |
| 221 | LOCAL_MULTILIB := 64 |
| 222 | |
| 223 | include $(BUILD_PREBUILT) |
| 224 | |
| 225 | ################################## |
| 226 | include $(CLEAR_VARS) |
| 227 | |
| 228 | LOCAL_MODULE := bcc_compat |
| 229 | LOCAL_SRC_FILES := $(HOST_OS)/bin/$(LOCAL_MODULE)$(HOST_EXECUTABLE_SUFFIX) |
| 230 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 231 | LOCAL_MODULE_TAGS := optional |
| 232 | LOCAL_SHARED_LIBRARIES := libbcc libbcinfo |
| 233 | LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) |
| 234 | LOCAL_BUILT_MODULE_STEM := $(LOCAL_MODULE)$(HOST_EXECUTABLE_SUFFIX) |
| 235 | LOCAL_IS_HOST_MODULE := true |
| 236 | LOCAL_MULTILIB := 64 |
| 237 | |
| 238 | include $(BUILD_PREBUILT) |
| 239 | |
| 240 | ################################## |
| 241 | include $(CLEAR_VARS) |
| 242 | |
| 243 | LOCAL_MODULE := libbcc |
| 244 | LOCAL_SRC_FILES := $(HOST_OS)/lib64/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) |
| 245 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 246 | LOCAL_MODULE_TAGS := optional |
| 247 | LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) |
| 248 | LOCAL_IS_HOST_MODULE := true |
| 249 | LOCAL_MULTILIB := 64 |
| 250 | |
| 251 | include $(BUILD_PREBUILT) |
| 252 | |
| 253 | ################################## |
| 254 | include $(CLEAR_VARS) |
| 255 | |
| 256 | LOCAL_MODULE := libbcinfo |
| 257 | LOCAL_SRC_FILES := $(HOST_OS)/lib64/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) |
| 258 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 259 | LOCAL_MODULE_TAGS := optional |
| 260 | LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) |
| 261 | LOCAL_IS_HOST_MODULE := true |
| 262 | LOCAL_MULTILIB := 64 |
| 263 | |
| 264 | include $(BUILD_PREBUILT) |
| 265 | |
| 266 | ################################## |
| 267 | include $(CLEAR_VARS) |
| 268 | |
| 269 | LOCAL_MODULE := libc++ |
| 270 | LOCAL_SRC_FILES_64 := $(HOST_OS)/lib64/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) |
| 271 | LOCAL_SRC_FILES_32 := $(HOST_OS)/lib/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) |
| 272 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 273 | LOCAL_MODULE_TAGS := optional |
| 274 | LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) |
| 275 | LOCAL_IS_HOST_MODULE := true |
| 276 | LOCAL_MULTILIB := both |
| 277 | |
| 278 | include $(BUILD_PREBUILT) |
| 279 | |
| 280 | ################################## |
| 281 | |
| 282 | endif # TARGET_BUILD_APPS only |
| 283 | |
| 284 | endif # old version of build/ project. |
| 285 | |
Colin Cross | b706c58 | 2016-12-07 12:26:00 -0800 | [diff] [blame] | 286 | # libLLVM and libclang are defined in Android.bp |