blob: a16d9a2770a9b585973bf92382fbc136be55b585 [file] [log] [blame]
David Sehr334b9d72018-02-12 18:27:56 -08001//
2// Copyright (C) 2011 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
17cc_defaults {
18 name: "libdexfile_defaults",
19 defaults: ["art_defaults"],
20 host_supported: true,
21 srcs: [
David Sehr1f010162018-05-15 08:59:32 -070022 "dex/art_dex_file_loader.cc",
David Sehr334b9d72018-02-12 18:27:56 -080023 "dex/compact_dex_file.cc",
Mathieu Chartier5e3cfa22018-02-20 16:53:37 -080024 "dex/compact_offset_table.cc",
David Sehr334b9d72018-02-12 18:27:56 -080025 "dex/descriptors_names.cc",
26 "dex/dex_file.cc",
27 "dex/dex_file_exception_helpers.cc",
David Sehrc431b9d2018-03-02 12:01:51 -080028 "dex/dex_file_layout.cc",
David Sehr334b9d72018-02-12 18:27:56 -080029 "dex/dex_file_loader.cc",
30 "dex/dex_file_tracking_registrar.cc",
31 "dex/dex_file_verifier.cc",
32 "dex/dex_instruction.cc",
33 "dex/modifiers.cc",
David Sehr67bf42e2018-02-26 16:43:04 -080034 "dex/primitive.cc",
Andreas Gampead1aa632019-01-02 10:30:54 -080035 "dex/signature.cc",
David Sehr334b9d72018-02-12 18:27:56 -080036 "dex/standard_dex_file.cc",
David Sehr9c4a0152018-04-05 12:23:54 -070037 "dex/type_lookup_table.cc",
David Sehr334b9d72018-02-12 18:27:56 -080038 "dex/utf.cc",
39 ],
Orion Hodson00cb81d2020-04-03 06:47:07 +010040 header_libs: ["jni_headers"],
41 export_header_lib_headers: ["jni_headers"],
David Sehr334b9d72018-02-12 18:27:56 -080042 target: {
43 android: {
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000044 static_libs: [
45 "libziparchive",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000046 ],
David Sehr10db8fe2018-07-18 11:01:20 -070047 shared_libs: [
Jiyong Parkb1c8e162020-05-18 19:04:42 +090048 // libz provides a stub from platform, shouldn't be statically linked
49 "libz",
Andreas Gampe0dc93b12019-05-15 10:30:22 -070050 // For MemMap.
51 "libartpalette",
52 "liblog",
53 // For common macros.
54 "libbase",
David Sehr10db8fe2018-07-18 11:01:20 -070055 ],
56 export_shared_lib_headers: [
David Sehr10db8fe2018-07-18 11:01:20 -070057 "libbase",
58 ],
David Sehr334b9d72018-02-12 18:27:56 -080059 },
David Sehr10db8fe2018-07-18 11:01:20 -070060 not_windows: {
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000061 shared_libs: [
62 "libziparchive",
63 "libz",
Andreas Gampe0dc93b12019-05-15 10:30:22 -070064 // For MemMap.
65 "libartpalette",
66 "liblog",
67 // For common macros.
68 "libbase",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000069 ],
David Sehr10db8fe2018-07-18 11:01:20 -070070 export_shared_lib_headers: [
David Sehr10db8fe2018-07-18 11:01:20 -070071 "libbase",
72 ],
73 },
74 windows: {
75 static_libs: [
76 "libziparchive",
77 "libz",
Andreas Gampe0dc93b12019-05-15 10:30:22 -070078 // For MemMap.
79 "libartpalette",
80 "liblog",
81 // For common macros.
82 "libbase",
David Sehr10db8fe2018-07-18 11:01:20 -070083 ],
84 export_static_lib_headers: [
David Sehr10db8fe2018-07-18 11:01:20 -070085 "libbase",
86 ],
87 cflags: ["-Wno-thread-safety"],
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000088 },
David Srbeckyd53f6062019-03-22 14:55:21 +000089 darwin: {
90 enabled: true,
91 },
David Sehr334b9d72018-02-12 18:27:56 -080092 },
93 generated_sources: ["dexfile_operator_srcs"],
David Sehr334b9d72018-02-12 18:27:56 -080094 export_include_dirs: ["."],
David Sehr334b9d72018-02-12 18:27:56 -080095}
96
Andreas Gampeec5ed062018-01-26 16:20:02 -080097cc_defaults {
98 name: "libdexfile_static_base_defaults",
Martin Stjernholm35f765b2020-09-23 00:38:38 +010099 whole_static_libs: [
Andreas Gampeec5ed062018-01-26 16:20:02 -0800100 "libbase",
Andreas Gampeec5ed062018-01-26 16:20:02 -0800101 "liblog",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000102 "libz",
103 "libziparchive",
Andreas Gampeec5ed062018-01-26 16:20:02 -0800104 ],
105}
106
107cc_defaults {
108 name: "libdexfile_static_defaults",
109 defaults: [
110 "libartbase_static_defaults",
111 "libdexfile_static_base_defaults",
112 ],
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100113 defaults_visibility: [
114 "//art:__subpackages__",
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100115 ],
Martin Stjernholm35f765b2020-09-23 00:38:38 +0100116 whole_static_libs: ["libdexfile"],
Andreas Gampeec5ed062018-01-26 16:20:02 -0800117}
118
119cc_defaults {
120 name: "libdexfiled_static_defaults",
121 defaults: [
122 "libartbased_static_defaults",
123 "libdexfile_static_base_defaults",
124 ],
Martin Stjernholm35f765b2020-09-23 00:38:38 +0100125 whole_static_libs: ["libdexfiled"],
Andreas Gampeec5ed062018-01-26 16:20:02 -0800126}
127
David Sehr334b9d72018-02-12 18:27:56 -0800128gensrcs {
129 name: "dexfile_operator_srcs",
Alex Lightb69d2d32018-02-21 13:37:17 -0800130 cmd: "$(location generate_operator_out) art/libdexfile $(in) > $(out)",
131 tools: ["generate_operator_out"],
David Sehr334b9d72018-02-12 18:27:56 -0800132 srcs: [
133 "dex/dex_file.h",
David Sehrc431b9d2018-03-02 12:01:51 -0800134 "dex/dex_file_layout.h",
David Sehr334b9d72018-02-12 18:27:56 -0800135 "dex/dex_instruction.h",
136 "dex/dex_instruction_utils.h",
137 "dex/invoke_type.h",
138 ],
139 output_extension: "operator_out.cc",
140}
141
David Sehr334b9d72018-02-12 18:27:56 -0800142art_cc_library {
143 name: "libdexfile",
Christopher Ferris0d38e852019-12-11 09:37:19 -0800144 defaults: [
145 "libdexfile_defaults",
146 "libart_nativeunwind_defaults",
147 ],
David Sehr10db8fe2018-07-18 11:01:20 -0700148 target: {
David Srbecky7711c352019-04-10 17:50:12 +0100149 android: {
150 shared_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700151 "libartbase",
David Srbecky7711c352019-04-10 17:50:12 +0100152 ],
153 export_shared_lib_headers: [
154 "libartbase",
155 ],
156 },
157 not_windows: {
158 shared_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700159 "libartbase",
David Srbecky7711c352019-04-10 17:50:12 +0100160 ],
161 export_shared_lib_headers: [
162 "libartbase",
163 ],
164 },
David Sehr10db8fe2018-07-18 11:01:20 -0700165 windows: {
166 enabled: true,
167 shared: {
168 enabled: false,
169 },
David Srbecky7711c352019-04-10 17:50:12 +0100170 static_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700171 "libartbase",
David Srbecky7711c352019-04-10 17:50:12 +0100172 ],
173 export_static_lib_headers: [
174 "libartbase",
175 ],
David Sehr10db8fe2018-07-18 11:01:20 -0700176 },
177 },
Jiyong Park066dd9022019-12-19 02:11:59 +0000178 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +0100179 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +0000180 "com.android.art.debug",
Jiyong Park066dd9022019-12-19 02:11:59 +0000181 ],
David Sehr334b9d72018-02-12 18:27:56 -0800182}
183
David Sehrfcbe15c2018-02-15 09:41:13 -0800184art_cc_library {
185 name: "libdexfiled",
186 defaults: [
187 "art_debug_defaults",
188 "libdexfile_defaults",
189 ],
David Sehr10db8fe2018-07-18 11:01:20 -0700190 target: {
David Srbecky7711c352019-04-10 17:50:12 +0100191 android: {
192 shared_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700193 "libartbased",
David Srbecky7711c352019-04-10 17:50:12 +0100194 ],
195 export_shared_lib_headers: [
196 "libartbased",
197 ],
198 },
199 not_windows: {
200 shared_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700201 "libartbased",
David Srbecky7711c352019-04-10 17:50:12 +0100202 ],
203 export_shared_lib_headers: [
204 "libartbased",
205 ],
206 },
David Sehr10db8fe2018-07-18 11:01:20 -0700207 windows: {
208 enabled: true,
209 shared: {
210 enabled: false,
211 },
David Srbecky7711c352019-04-10 17:50:12 +0100212 static_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700213 "libartbased",
David Srbecky7711c352019-04-10 17:50:12 +0100214 ],
215 export_static_lib_headers: [
216 "libartbased",
217 ],
David Sehr10db8fe2018-07-18 11:01:20 -0700218 },
219 },
Jiyong Park066dd9022019-12-19 02:11:59 +0000220 apex_available: [
221 "com.android.art.debug",
222 ],
David Sehrfcbe15c2018-02-15 09:41:13 -0800223}
224
Martin Stjernholmfdb2f602019-01-09 14:47:00 +0000225art_cc_test {
226 name: "art_libdexfile_tests",
227 defaults: [
228 "art_gtest_defaults",
229 ],
230 srcs: [
231 "dex/art_dex_file_loader_test.cc",
232 "dex/class_accessor_test.cc",
233 "dex/code_item_accessors_test.cc",
234 "dex/compact_dex_file_test.cc",
235 "dex/compact_offset_table_test.cc",
236 "dex/descriptors_names_test.cc",
237 "dex/test_dex_file_builder_test.cc",
238 "dex/dex_file_loader_test.cc",
239 "dex/dex_file_verifier_test.cc",
240 "dex/dex_instruction_test.cc",
241 "dex/primitive_test.cc",
242 "dex/string_reference_test.cc",
243 "dex/type_lookup_table_test.cc",
244 "dex/utf_test.cc",
245 ],
David Srbecky4a88a5a2020-05-05 16:21:57 +0100246 data: [
247 ":art-gtest-jars-GetMethodSignature",
248 ":art-gtest-jars-Lookup",
249 ":art-gtest-jars-Main",
250 ":art-gtest-jars-MultiDex",
251 ":art-gtest-jars-Nested",
252 ],
Orion Hodson00cb81d2020-04-03 06:47:07 +0100253 header_libs: ["jni_headers"],
Martin Stjernholmfdb2f602019-01-09 14:47:00 +0000254 shared_libs: [
255 "libbacktrace",
256 "libziparchive",
257 ],
Martin Stjernholmfdb2f602019-01-09 14:47:00 +0000258}
259
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000260cc_library_headers {
261 name: "libdexfile_external_headers",
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100262 visibility: ["//visibility:public"],
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000263 host_supported: true,
264 header_libs: ["libbase_headers"],
265 export_header_lib_headers: ["libbase_headers"],
266 export_include_dirs: ["external/include"],
267
268 target: {
269 windows: {
270 enabled: true,
271 },
272 },
Jiyong Park71f661c2020-04-28 18:20:43 +0900273
274 apex_available: [
275 "//apex_available:platform",
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +0100276 "com.android.art",
Jiyong Park71f661c2020-04-28 18:20:43 +0900277 "com.android.art.debug",
Martin Stjernholm694f0122020-10-30 02:23:24 +0000278 "com.android.media",
279 "com.android.runtime",
Jiyong Park71f661c2020-04-28 18:20:43 +0900280 ],
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000281}
282
Paul Duffin4345aac2019-07-17 15:51:54 +0100283// Make dex_instruction_list.h available for tools/jvmti-agents/titrace
284cc_library_headers {
285 name: "libdexfile_all_headers",
286 visibility: ["//art:__subpackages__"],
287 host_supported: true,
288 export_include_dirs: ["."],
Jiyong Park71f661c2020-04-28 18:20:43 +0900289
290 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +0100291 "com.android.art",
Jiyong Park71f661c2020-04-28 18:20:43 +0900292 "com.android.art.debug",
Jiyong Park71f661c2020-04-28 18:20:43 +0900293 ],
Paul Duffin4345aac2019-07-17 15:51:54 +0100294}
295
David Srbecky7711c352019-04-10 17:50:12 +0100296cc_defaults {
297 name: "libdexfile_external-defaults",
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000298 host_supported: true,
299 srcs: [
300 "external/dex_file_ext.cc",
301 ],
Orion Hodson00cb81d2020-04-03 06:47:07 +0100302 header_libs: [
303 "jni_headers",
304 "libdexfile_external_headers",
305 ],
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000306 shared_libs: [
307 "libbase",
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000308 ],
Martin Stjernholm84bf6982019-02-05 15:07:57 +0000309 stubs: {
310 symbol_file: "external/libdexfile_external.map.txt",
311 versions: ["1"],
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000312 },
Orion Hodson00cb81d2020-04-03 06:47:07 +0100313 export_header_lib_headers: [
314 "jni_headers",
315 "libdexfile_external_headers",
316 ],
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000317}
318
David Srbecky1cf46a32020-06-22 15:39:00 +0100319art_cc_library {
David Srbecky7711c352019-04-10 17:50:12 +0100320 name: "libdexfile_external",
321 defaults: [
322 "art_defaults",
323 "libdexfile_external-defaults",
324 ],
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100325 visibility: ["//visibility:public"],
David Srbecky52fc7ab2019-05-03 11:03:52 +0100326 target: {
327 darwin: {
328 enabled: true,
329 },
330 },
David Srbecky7711c352019-04-10 17:50:12 +0100331 shared_libs: [
332 "libdexfile",
333 ],
Jiyong Park066dd9022019-12-19 02:11:59 +0000334 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +0100335 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +0000336 "com.android.art.debug",
Jiyong Park066dd9022019-12-19 02:11:59 +0000337 ],
David Srbecky7711c352019-04-10 17:50:12 +0100338}
339
David Srbecky1cf46a32020-06-22 15:39:00 +0100340art_cc_library {
David Srbecky7711c352019-04-10 17:50:12 +0100341 name: "libdexfiled_external",
342 defaults: [
343 "art_debug_defaults",
344 "libdexfile_external-defaults",
345 ],
David Srbecky52fc7ab2019-05-03 11:03:52 +0100346 target: {
347 darwin: {
348 enabled: true,
349 },
350 },
David Srbecky7711c352019-04-10 17:50:12 +0100351 shared_libs: [
352 "libdexfiled",
353 ],
Jiyong Park066dd9022019-12-19 02:11:59 +0000354 apex_available: [
355 "com.android.art.debug",
356 ],
David Srbecky7711c352019-04-10 17:50:12 +0100357}
358
Martin Stjernholmfdb2f602019-01-09 14:47:00 +0000359art_cc_test {
360 name: "art_libdexfile_external_tests",
361 host_supported: true,
Martin Stjernholm842555d2020-03-23 14:38:47 +0000362 test_suites: ["general-tests"],
Martin Stjernholmfdb2f602019-01-09 14:47:00 +0000363 srcs: [
364 "external/dex_file_ext_c_test.c",
365 ],
Orion Hodson00cb81d2020-04-03 06:47:07 +0100366 header_libs: [
367 "jni_headers",
368 "libdexfile_external_headers",
369 ],
Martin Stjernholmfdb2f602019-01-09 14:47:00 +0000370}
371
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000372// Support library with a C++ API for accessing the libdexfile API for external
Martin Stjernholmfe94b1c2019-01-31 17:40:39 +0000373// (non-ART) users.
374//
375// This library dlopens libdexfile_external on first use, so there is no build
376// time dependency on dex file logic. It is therefore safe to use from binaries
377// compiled without dex file support, given they won't encounter any dex file
378// stack frames.
David Srbecky1cf46a32020-06-22 15:39:00 +0100379art_cc_library {
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000380 name: "libdexfile_support",
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100381 visibility: ["//visibility:public"],
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000382 host_supported: true,
383 srcs: [
384 "external/dex_file_supp.cc",
385 ],
Martin Stjernholm80892042020-04-21 00:39:00 +0100386 runtime_libs: ["libdexfile_external"],
Martin Stjernholmfe94b1c2019-01-31 17:40:39 +0000387 shared_libs: ["liblog"],
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000388 header_libs: ["libdexfile_external_headers"],
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000389 export_header_lib_headers: ["libdexfile_external_headers"],
Jiyong Park71f661c2020-04-28 18:20:43 +0900390
391 apex_available: [
392 "//apex_available:platform",
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +0100393 "com.android.art",
Jiyong Park71f661c2020-04-28 18:20:43 +0900394 "com.android.art.debug",
Martin Stjernholm694f0122020-10-30 02:23:24 +0000395 "com.android.media",
396 "com.android.media.swcodec",
397 "com.android.runtime",
Jiyong Park71f661c2020-04-28 18:20:43 +0900398 ],
Martin Stjernholmb3d2e832018-11-15 18:09:35 +0000399}
Martin Stjernholm750bf042019-01-09 22:51:12 +0000400
401art_cc_test {
402 name: "art_libdexfile_support_tests",
Roland Levillain61f07162019-06-26 12:44:04 +0100403 defaults: [
404 "art_test_defaults",
405 ],
Martin Stjernholm750bf042019-01-09 22:51:12 +0000406 host_supported: true,
Martin Stjernholm842555d2020-03-23 14:38:47 +0000407 test_suites: ["general-tests"],
Martin Stjernholm750bf042019-01-09 22:51:12 +0000408 srcs: [
409 "external/dex_file_supp_test.cc",
410 ],
411 shared_libs: [
412 "libartbase",
413 "libbase",
414 "libdexfile_external",
415 "libdexfile_support",
416 ],
417}
Martin Stjernholmfe94b1c2019-01-31 17:40:39 +0000418
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100419cc_library_static {
420 name: "libdexfile_support_static",
Martin Stjernholmd3ee98a2019-09-23 16:26:50 +0100421 host_supported: true,
Martin Stjernholmfe94b1c2019-01-31 17:40:39 +0000422 srcs: [
423 "external/dex_file_supp.cc",
424 ],
425 cflags: ["-DSTATIC_LIB"],
Martin Stjernholmfe94b1c2019-01-31 17:40:39 +0000426 header_libs: ["libdexfile_external_headers"],
427 export_header_lib_headers: ["libdexfile_external_headers"],
428}
429
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100430cc_defaults {
431 name: "libdexfile_support_static_defaults",
Martin Stjernholm621afb42019-09-23 22:01:36 +0100432 defaults: [
433 "libdexfile_static_defaults",
Martin Stjernholm621afb42019-09-23 22:01:36 +0100434 ],
Martin Stjernholm35f765b2020-09-23 00:38:38 +0100435 whole_static_libs: [
Martin Stjernholm621afb42019-09-23 22:01:36 +0100436 "libdexfile_external",
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100437 "libdexfile_support_static",
Martin Stjernholm621afb42019-09-23 22:01:36 +0100438 ],
439}
440
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100441cc_defaults {
442 name: "libdexfiled_support_static_defaults",
Martin Stjernholm621afb42019-09-23 22:01:36 +0100443 defaults: [
Martin Stjernholm621afb42019-09-23 22:01:36 +0100444 "libdexfiled_static_defaults",
445 ],
Martin Stjernholm35f765b2020-09-23 00:38:38 +0100446 whole_static_libs: [
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100447 "libdexfile_support_static",
Martin Stjernholm621afb42019-09-23 22:01:36 +0100448 "libdexfiled_external",
449 ],
450}
451
Martin Stjernholmfe94b1c2019-01-31 17:40:39 +0000452art_cc_test {
453 name: "art_libdexfile_support_static_tests",
454 host_supported: true,
Martin Stjernholm842555d2020-03-23 14:38:47 +0000455 test_suites: ["general-tests"],
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100456 defaults: ["libdexfile_support_static_defaults"],
Martin Stjernholmfe94b1c2019-01-31 17:40:39 +0000457 srcs: [
458 "external/dex_file_supp_test.cc",
459 ],
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100460}
461
Martin Stjernholmcbbc8df2020-09-30 22:02:32 +0100462// For use by external packages allowed to link in static libdexfile_support.
463// This is not allowed in any module that may end up in an APEX or platform
464// image, so visibility is restrictive.
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100465cc_library_static {
466 name: "libdexfile_external_static",
467 host_supported: true,
Martin Stjernholmcbbc8df2020-09-30 22:02:32 +0100468 visibility: [
469 // Required for simpleperf, libsimpleperf_record, and libsimpleperf_report
470 // in the NDK.
471 "//system/extras/simpleperf",
472 "//cts/tests/tests/simpleperf",
Martin Stjernholmfe94b1c2019-01-31 17:40:39 +0000473 ],
Martin Stjernholmcbbc8df2020-09-30 22:02:32 +0100474 // Using libdexfile_support_static_defaults will link in external libs like
475 // libbase and libz statically as well, which are likely to cause duplicate
476 // copies in the depending module.
477 // TODO(b/169885605): Avoid exposing symbols from those libs.
478 defaults: [
479 "art_defaults",
480 "libdexfile_support_static_defaults",
481 ],
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100482}
483
484art_cc_test {
485 name: "art_libdexfile_external_static_tests",
486 host_supported: true,
487 test_suites: ["general-tests"],
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100488 srcs: [
489 "external/dex_file_supp_test.cc",
490 ],
Martin Stjernholmcbbc8df2020-09-30 22:02:32 +0100491 static_libs: [
492 "libdexfile_external_static",
493 ],
Martin Stjernholm68e5db52020-09-23 20:43:56 +0100494 enabled: false,
495 target: {
496 linux: {
497 enabled: true,
498 },
499 },
500}
Colin Cross7b550652020-11-17 10:12:52 -0800501
502filegroup {
503 name: "art_libdexfile_dex_instruction_list_header",
504 srcs: ["dex/dex_instruction_list.h"],
505}