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