blob: 10e24537199f9879412e1f9cd72ec61d966389af [file] [log] [blame]
Ying Wangb335bb02011-11-29 10:23:55 -08001#
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
17LOCAL_PATH:= $(call my-dir)
Keun young Parkd11b3e72012-04-20 16:18:14 -070018
Yohann Roussel40c42d42014-09-08 15:00:54 +020019##################################
20include $(CLEAR_VARS)
21
Allen Hair20658d32016-07-15 11:38:20 -070022LOCAL_MODULE := jack-jacoco-reporter
23LOCAL_SRC_FILES := jack-jacoco-reporter.jar
24LOCAL_MODULE_CLASS := JAVA_LIBRARIES
25MOCAL_MODULE_TAGS := optional
26LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX)
27LOCAL_BUILT_MODULE_STEM := jack-jacoco-reporter$(COMMON_JAVA_PACKAGE_SUFFIX)
28LOCAL_IS_HOST_MODULE := true
29
30include $(BUILD_PREBUILT)
31
Allen Hair462cc832017-01-24 17:55:25 -080032# Distribute the reporter tool for coverage builds
33ifeq (true,$(EMMA_INSTRUMENT))
34$(call dist-for-goals, dist_files, $(LOCAL_BUILT_MODULE))
35endif # EMMA_INSTRUMENT
36
Colin Cross4d46bc62015-12-03 16:57:24 -080037# 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 Cross12861a02016-01-20 16:08:42 -080041ifneq ($(USE_PREBUILT_SDK_TOOLS_IN_PLACE),true)
Colin Cross4d46bc62015-12-03 16:57:24 -080042
43ifneq (,$(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK)))
44
45##################################
46include $(CLEAR_VARS)
47
48# We can't simple call $(BUILD_PREBUILT) here, because $(ACP) is not
49# available yet..
50
51LOCAL_MODULE := acp
52LOCAL_IS_HOST_MODULE := true
53LOCAL_MODULE_CLASS := EXECUTABLES
54LOCAL_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##################################
62include $(CLEAR_VARS)
63
64LOCAL_MODULE := aidl
65LOCAL_SRC_FILES := $(HOST_OS)/bin/aidl$(HOST_EXECUTABLE_SUFFIX)
66LOCAL_MODULE_CLASS := EXECUTABLES
67LOCAL_MODULE_TAGS := optional
68LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
69LOCAL_BUILT_MODULE_STEM := aidl$(HOST_EXECUTABLE_SUFFIX)
70LOCAL_IS_HOST_MODULE := true
71LOCAL_SHARED_LIBRARIES := libc++
72LOCAL_MULTILIB := 32
73
74include $(BUILD_PREBUILT)
75
76##################################
77include $(CLEAR_VARS)
78
79LOCAL_MODULE := aapt
80LOCAL_SRC_FILES := $(HOST_OS)/bin/aapt$(HOST_EXECUTABLE_SUFFIX)
81LOCAL_MODULE_CLASS := EXECUTABLES
82LOCAL_MODULE_TAGS := optional
83LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
84LOCAL_BUILT_MODULE_STEM := aapt$(HOST_EXECUTABLE_SUFFIX)
85LOCAL_IS_HOST_MODULE := true
86LOCAL_SHARED_LIBRARIES := libc++
David Gross0c865d62016-06-15 21:00:28 +000087LOCAL_MULTILIB := 64
Colin Cross4d46bc62015-12-03 16:57:24 -080088
89include $(BUILD_PREBUILT)
90
91##################################
92
93include $(CLEAR_VARS)
94
95LOCAL_MODULE := zipalign
96LOCAL_SRC_FILES := $(HOST_OS)/bin/zipalign$(HOST_EXECUTABLE_SUFFIX)
97LOCAL_MODULE_CLASS := EXECUTABLES
98LOCAL_MODULE_TAGS := optional
99LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
100LOCAL_BUILT_MODULE_STEM := zipalign$(HOST_EXECUTABLE_SUFFIX)
101LOCAL_IS_HOST_MODULE := true
102LOCAL_SHARED_LIBRARIES := libc++
103LOCAL_MULTILIB := 32
104
105include $(BUILD_PREBUILT)
106
107##################################
108include $(CLEAR_VARS)
109
110LOCAL_MODULE := signapk
111LOCAL_SRC_FILES := lib/signapk.jar
112LOCAL_MODULE_CLASS := JAVA_LIBRARIES
113LOCAL_MODULE_TAGS := optional
114LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX)
115LOCAL_BUILT_MODULE_STEM := signapk$(COMMON_JAVA_PACKAGE_SUFFIX)
116LOCAL_IS_HOST_MODULE := true
117
118include $(BUILD_PREBUILT)
119
120##################################
121include $(CLEAR_VARS)
122
123LOCAL_MODULE := dx
124LOCAL_SRC_FILES := lib/dx.jar
125LOCAL_MODULE_CLASS := JAVA_LIBRARIES
126LOCAL_MODULE_TAGS := optional
127LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX)
128LOCAL_BUILT_MODULE_STEM := dx$(COMMON_JAVA_PACKAGE_SUFFIX)
129LOCAL_IS_HOST_MODULE := true
130
131include $(BUILD_PREBUILT)
132
133##################################
134include $(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
139LOCAL_MODULE := dx
140LOCAL_IS_HOST_MODULE := true
141LOCAL_MODULE_CLASS := EXECUTABLES
142LOCAL_MODULE_TAGS := optional
143
144include $(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##################################
153include $(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
159LOCAL_MODULE := mainDexClasses
160LOCAL_IS_HOST_MODULE := true
161LOCAL_MODULE_CLASS := EXECUTABLES
162LOCAL_MODULE_TAGS := optional
163
164include $(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
176include $(CLEAR_VARS)
177
178LOCAL_MODULE := mainDexClasses.rules
179LOCAL_SRC_FILES := mainDexClasses.rules
180LOCAL_MODULE_CLASS := EXECUTABLES
181LOCAL_MODULE_TAGS := optional
182LOCAL_MODULE_SUFFIX :=
183LOCAL_BUILT_MODULE_STEM := mainDexClasses.rules
184LOCAL_IS_HOST_MODULE := true
185
186include $(BUILD_PREBUILT)
187
188##################################
189include $(CLEAR_VARS)
190
191LOCAL_MODULE := shrinkedAndroid
192LOCAL_SRC_FILES := lib/shrinkedAndroid.jar
193LOCAL_MODULE_CLASS := JAVA_LIBRARIES
194LOCAL_MODULE_TAGS := optional
195LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX)
196LOCAL_BUILT_MODULE_STEM := dx$(COMMON_JAVA_PACKAGE_SUFFIX)
197LOCAL_IS_HOST_MODULE := true
198
199include $(BUILD_PREBUILT)
200
201##################################
202
203endif # TARGET_BUILD_APPS or TARGET_BUILD_PDK
204
205# Only use these prebuilts in unbundled branches
206# Don't use prebuilts in PDK
207
208ifneq (,$(TARGET_BUILD_APPS))
209
210##################################
211include $(CLEAR_VARS)
212
213LOCAL_MODULE := llvm-rs-cc
214LOCAL_SRC_FILES := $(HOST_OS)/bin/llvm-rs-cc$(HOST_EXECUTABLE_SUFFIX)
215LOCAL_MODULE_CLASS := EXECUTABLES
216LOCAL_MODULE_TAGS := optional
217LOCAL_SHARED_LIBRARIES := libLLVM libclang libc++
218LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
219LOCAL_BUILT_MODULE_STEM := llvm-rs-cc$(HOST_EXECUTABLE_SUFFIX)
220LOCAL_IS_HOST_MODULE := true
221LOCAL_MULTILIB := 64
222
223include $(BUILD_PREBUILT)
224
225##################################
226include $(CLEAR_VARS)
227
228LOCAL_MODULE := bcc_compat
229LOCAL_SRC_FILES := $(HOST_OS)/bin/$(LOCAL_MODULE)$(HOST_EXECUTABLE_SUFFIX)
230LOCAL_MODULE_CLASS := EXECUTABLES
231LOCAL_MODULE_TAGS := optional
232LOCAL_SHARED_LIBRARIES := libbcc libbcinfo
233LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
234LOCAL_BUILT_MODULE_STEM := $(LOCAL_MODULE)$(HOST_EXECUTABLE_SUFFIX)
235LOCAL_IS_HOST_MODULE := true
236LOCAL_MULTILIB := 64
237
238include $(BUILD_PREBUILT)
239
240##################################
241include $(CLEAR_VARS)
242
243LOCAL_MODULE := libbcc
244LOCAL_SRC_FILES := $(HOST_OS)/lib64/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX)
245LOCAL_MODULE_CLASS := SHARED_LIBRARIES
246LOCAL_MODULE_TAGS := optional
247LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX)
248LOCAL_IS_HOST_MODULE := true
249LOCAL_MULTILIB := 64
250
251include $(BUILD_PREBUILT)
252
253##################################
254include $(CLEAR_VARS)
255
256LOCAL_MODULE := libbcinfo
257LOCAL_SRC_FILES := $(HOST_OS)/lib64/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX)
258LOCAL_MODULE_CLASS := SHARED_LIBRARIES
259LOCAL_MODULE_TAGS := optional
260LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX)
261LOCAL_IS_HOST_MODULE := true
262LOCAL_MULTILIB := 64
263
264include $(BUILD_PREBUILT)
265
266##################################
267include $(CLEAR_VARS)
268
269LOCAL_MODULE := libc++
270LOCAL_SRC_FILES_64 := $(HOST_OS)/lib64/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX)
271LOCAL_SRC_FILES_32 := $(HOST_OS)/lib/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX)
272LOCAL_MODULE_CLASS := SHARED_LIBRARIES
273LOCAL_MODULE_TAGS := optional
274LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX)
275LOCAL_IS_HOST_MODULE := true
276LOCAL_MULTILIB := both
277
278include $(BUILD_PREBUILT)
279
280##################################
281
282endif # TARGET_BUILD_APPS only
283
284endif # old version of build/ project.
285
Colin Crossb706c582016-12-07 12:26:00 -0800286# libLLVM and libclang are defined in Android.bp