blob: c7fe77d63195cf99b807c0adb5e4081a67b1e1d6 [file] [log] [blame]
Colin Cross1f7f3bd2016-07-27 10:12:38 -07001//
2// Copyright (C) 2012 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// TODO We should really separate out those files that are actually needed for both variants of an
18// architecture into its own category. Currently we just include all of the 32bit variant in the
19// 64bit variant. It also might be good to allow one to compile only the 64bit variant without the
20// 32bit one.
21
22art_cc_defaults {
23 name: "libart-compiler-defaults",
24 defaults: ["art_defaults"],
25 host_supported: true,
Colin Cross1f7f3bd2016-07-27 10:12:38 -070026 srcs: [
27 "compiled_method.cc",
28 "debug/elf_debug_writer.cc",
Andreas Gampeb95c74b2017-04-20 19:43:21 -070029 "dex/inline_method_analyser.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070030 "dex/verified_method.cc",
31 "dex/verification_results.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070032 "driver/compiled_method_storage.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070033 "driver/compiler_options.cc",
34 "driver/dex_compilation_unit.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070035 "jit/jit_compiler.cc",
xueliang.zhong383b57d2016-10-04 11:19:17 +010036 "jit/jit_logger.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070037 "jni/quick/calling_convention.cc",
38 "jni/quick/jni_compiler.cc",
39 "optimizing/block_builder.cc",
40 "optimizing/bounds_check_elimination.cc",
41 "optimizing/builder.cc",
Mingyao Yangb0b051a2016-11-17 09:04:53 -080042 "optimizing/cha_guard_optimization.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070043 "optimizing/code_generator.cc",
44 "optimizing/code_generator_utils.cc",
Nicolas Geoffrayb813ca12017-02-16 22:08:29 +000045 "optimizing/code_sinking.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070046 "optimizing/constant_folding.cc",
Igor Murashkindd018df2017-08-09 10:38:31 -070047 "optimizing/constructor_fence_redundancy_elimination.cc",
Vladimir Marko0ebe0d82017-09-21 22:50:39 +010048 "optimizing/data_type.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070049 "optimizing/dead_code_elimination.cc",
Aart Bik96fd51d2016-11-28 11:22:35 -080050 "optimizing/escape.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070051 "optimizing/graph_checker.cc",
52 "optimizing/graph_visualizer.cc",
53 "optimizing/gvn.cc",
54 "optimizing/induction_var_analysis.cc",
55 "optimizing/induction_var_range.cc",
56 "optimizing/inliner.cc",
57 "optimizing/instruction_builder.cc",
58 "optimizing/instruction_simplifier.cc",
Vladimir Markoeebb8212018-06-05 14:57:24 +010059 "optimizing/intrinsic_objects.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070060 "optimizing/intrinsics.cc",
61 "optimizing/licm.cc",
Aart Bik96202302016-10-04 17:33:56 -070062 "optimizing/linear_order.cc",
xueliang.zhongc239a2b2017-04-27 15:31:37 +010063 "optimizing/load_store_analysis.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070064 "optimizing/load_store_elimination.cc",
65 "optimizing/locations.cc",
Artem Serov121f2032017-10-23 19:19:06 +010066 "optimizing/loop_analysis.cc",
Aart Bik281c6812016-08-26 11:31:48 -070067 "optimizing/loop_optimization.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070068 "optimizing/nodes.cc",
69 "optimizing/optimization.cc",
70 "optimizing/optimizing_compiler.cc",
71 "optimizing/parallel_move_resolver.cc",
72 "optimizing/prepare_for_register_allocation.cc",
73 "optimizing/reference_type_propagation.cc",
74 "optimizing/register_allocation_resolver.cc",
75 "optimizing/register_allocator.cc",
76 "optimizing/register_allocator_graph_color.cc",
77 "optimizing/register_allocator_linear_scan.cc",
78 "optimizing/select_generator.cc",
Alexandre Rames22aa54b2016-10-18 09:32:29 +010079 "optimizing/scheduler.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070080 "optimizing/sharpening.cc",
81 "optimizing/side_effects_analysis.cc",
82 "optimizing/ssa_builder.cc",
83 "optimizing/ssa_liveness_analysis.cc",
84 "optimizing/ssa_phi_elimination.cc",
85 "optimizing/stack_map_stream.cc",
Artem Serov7f4aff62017-06-21 17:02:18 +010086 "optimizing/superblock_cloner.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070087 "trampolines/trampoline_compiler.cc",
88 "utils/assembler.cc",
89 "utils/jni_macro_assembler.cc",
90 "utils/swap_space.cc",
91 "compiler.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070092 ],
93
94 codegen: {
95 arm: {
96 srcs: [
97 "jni/quick/arm/calling_convention_arm.cc",
Scott Wakelingfe885462016-09-22 10:24:38 +010098 "optimizing/code_generator_arm_vixl.cc",
Aart Bikf8f5a162017-02-06 15:35:29 -080099 "optimizing/code_generator_vector_arm_vixl.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700100 "optimizing/instruction_simplifier_arm.cc",
101 "optimizing/instruction_simplifier_shared.cc",
Anton Kirilov5ec62182016-10-13 20:16:02 +0100102 "optimizing/intrinsics_arm_vixl.cc",
Anton Kirilov74234da2017-01-13 14:42:47 +0000103 "optimizing/nodes_shared.cc",
xueliang.zhongf7caf682017-03-01 16:07:02 +0000104 "optimizing/scheduler_arm.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700105 "utils/arm/assembler_arm_vixl.cc",
Roland Levillainc043d002017-07-14 16:39:16 +0100106 "utils/arm/constants_arm.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700107 "utils/arm/jni_macro_assembler_arm_vixl.cc",
108 "utils/arm/managed_register_arm.cc",
109 ],
110 },
111 arm64: {
112 srcs: [
113 "jni/quick/arm64/calling_convention_arm64.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700114 "optimizing/code_generator_arm64.cc",
Aart Bikf8f5a162017-02-06 15:35:29 -0800115 "optimizing/code_generator_vector_arm64.cc",
Alexandre Rames22aa54b2016-10-18 09:32:29 +0100116 "optimizing/scheduler_arm64.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700117 "optimizing/instruction_simplifier_arm64.cc",
118 "optimizing/intrinsics_arm64.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700119 "utils/arm64/assembler_arm64.cc",
120 "utils/arm64/jni_macro_assembler_arm64.cc",
121 "utils/arm64/managed_register_arm64.cc",
122 ],
123 },
124 mips: {
125 srcs: [
126 "jni/quick/mips/calling_convention_mips.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700127 "optimizing/code_generator_mips.cc",
Aart Bikf8f5a162017-02-06 15:35:29 -0800128 "optimizing/code_generator_vector_mips.cc",
Lena Djokica2901602017-09-21 13:50:52 +0200129 "optimizing/instruction_simplifier_mips.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700130 "optimizing/intrinsics_mips.cc",
131 "optimizing/pc_relative_fixups_mips.cc",
132 "utils/mips/assembler_mips.cc",
133 "utils/mips/managed_register_mips.cc",
134 ],
135 },
136 mips64: {
137 srcs: [
138 "jni/quick/mips64/calling_convention_mips64.cc",
139 "optimizing/code_generator_mips64.cc",
Aart Bikf8f5a162017-02-06 15:35:29 -0800140 "optimizing/code_generator_vector_mips64.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700141 "optimizing/intrinsics_mips64.cc",
142 "utils/mips64/assembler_mips64.cc",
143 "utils/mips64/managed_register_mips64.cc",
144 ],
145 },
146 x86: {
147 srcs: [
148 "jni/quick/x86/calling_convention_x86.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700149 "optimizing/code_generator_x86.cc",
Aart Bikf8f5a162017-02-06 15:35:29 -0800150 "optimizing/code_generator_vector_x86.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700151 "optimizing/intrinsics_x86.cc",
Shalini Salomi Bodapatidd121f62018-10-26 15:03:53 +0530152 "optimizing/instruction_simplifier_x86_shared.cc",
153 "optimizing/instruction_simplifier_x86.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700154 "optimizing/pc_relative_fixups_x86.cc",
155 "optimizing/x86_memory_gen.cc",
156 "utils/x86/assembler_x86.cc",
157 "utils/x86/jni_macro_assembler_x86.cc",
158 "utils/x86/managed_register_x86.cc",
159 ],
160 },
161 x86_64: {
162 srcs: [
163 "jni/quick/x86_64/calling_convention_x86_64.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700164 "optimizing/intrinsics_x86_64.cc",
Shalini Salomi Bodapatidd121f62018-10-26 15:03:53 +0530165 "optimizing/instruction_simplifier_x86_64.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700166 "optimizing/code_generator_x86_64.cc",
Aart Bikf8f5a162017-02-06 15:35:29 -0800167 "optimizing/code_generator_vector_x86_64.cc",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700168 "utils/x86_64/assembler_x86_64.cc",
169 "utils/x86_64/jni_macro_assembler_x86_64.cc",
170 "utils/x86_64/managed_register_x86_64.cc",
171 ],
172 },
173 },
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700174 generated_sources: ["art_compiler_operator_srcs"],
175 shared_libs: [
Andreas Gampe525a58b2016-09-26 18:09:47 -0700176 "libbase",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700177 ],
178 include_dirs: ["art/disassembler"],
Andreas Gampe097f34c2017-08-23 08:57:51 -0700179 header_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700180 "art_cmdlineparser_headers", // For compiler_options.
Andreas Gampe373a9b52017-10-18 09:01:57 -0700181 "libnativehelper_header_only",
Andreas Gampe097f34c2017-08-23 08:57:51 -0700182 ],
183
Colin Crossfe6064a2016-08-30 13:49:26 -0700184 export_include_dirs: ["."],
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700185}
186
Andreas Gampeec5ed062018-01-26 16:20:02 -0800187cc_defaults {
188 name: "libart-compiler_static_base_defaults",
189 static_libs: [
190 "libbase",
Andreas Gampeec5ed062018-01-26 16:20:02 -0800191 ],
192}
193
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700194gensrcs {
195 name: "art_compiler_operator_srcs",
Alex Lightb69d2d32018-02-21 13:37:17 -0800196 cmd: "$(location generate_operator_out) art/compiler $(in) > $(out)",
197 tools: ["generate_operator_out"],
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700198 srcs: [
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700199 "driver/compiler_options.h",
Vladimir Markod8dbc8d2017-09-20 13:37:47 +0100200 "linker/linker_patch.h",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700201 "optimizing/locations.h",
Vladimir Markocd09e1f2017-11-24 15:02:40 +0000202 "optimizing/optimizing_compiler_stats.h",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700203
204 "utils/arm/constants_arm.h",
205 "utils/mips/assembler_mips.h",
206 "utils/mips64/assembler_mips64.h",
207 ],
208 output_extension: "operator_out.cc",
209}
210
211art_cc_library {
212 name: "libart-compiler",
Pirama Arumuga Nainar42d58052018-04-18 22:59:36 -0700213 defaults: [
214 "libart-compiler-defaults",
215 "dex2oat-pgo-defaults",
216 ],
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700217 codegen: {
Colin Cross766ea432016-08-25 16:22:04 -0700218 arm: {
219 // VIXL assembly support for ARM targets.
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700220 static: {
221 whole_static_libs: [
Roland Levillain12dd9ae2018-11-06 13:32:06 +0000222 "libvixl",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700223 ],
224 },
225 shared: {
226 shared_libs: [
Roland Levillain12dd9ae2018-11-06 13:32:06 +0000227 "libvixl",
Colin Cross766ea432016-08-25 16:22:04 -0700228 ],
229 },
230 },
231 arm64: {
232 // VIXL assembly support for ARM64 targets.
233 static: {
234 whole_static_libs: [
Roland Levillain12dd9ae2018-11-06 13:32:06 +0000235 "libvixl",
Colin Cross766ea432016-08-25 16:22:04 -0700236 ],
237 },
238 shared: {
239 shared_libs: [
Roland Levillain12dd9ae2018-11-06 13:32:06 +0000240 "libvixl",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700241 ],
242 },
243 },
244 },
Jeff Hao608f2ce2016-10-19 11:17:11 -0700245 shared_libs: [
246 "libart",
Orion Hodson119733d2019-01-30 15:14:41 +0000247 "libartbase",
248 "libartpalette",
David Sehr82d046e2018-04-23 08:14:19 -0700249 "libprofile",
David Sehrfcbe15c2018-02-15 09:41:13 -0800250 "libdexfile",
Jeff Hao608f2ce2016-10-19 11:17:11 -0700251 ],
David Srbecky2faab002019-02-12 16:35:48 +0000252 whole_static_libs: ["libelffile"],
Pirama Arumuga Nainar02f6ed62018-01-04 10:52:42 -0800253
Yi Kong1d894d92018-01-19 22:01:14 -0800254 target: {
255 android: {
256 lto: {
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700257 thin: true,
Yi Kong1d894d92018-01-19 22:01:14 -0800258 },
259 },
260 },
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700261}
262
Andreas Gampeec5ed062018-01-26 16:20:02 -0800263cc_defaults {
264 name: "libart-compiler_static_defaults",
265 defaults: [
266 "libart-compiler_static_base_defaults",
267 "libart_static_defaults",
268 "libartbase_static_defaults",
269 "libdexfile_static_defaults",
270 "libprofile_static_defaults",
271 ],
272 static_libs: ["libart-compiler"],
273}
274
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700275art_cc_library {
276 name: "libartd-compiler",
277 defaults: [
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700278 "art_debug_defaults",
Colin Crossc5644062016-08-30 15:41:08 -0700279 "libart-compiler-defaults",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700280 ],
281 codegen: {
Colin Cross766ea432016-08-25 16:22:04 -0700282 arm: {
283 // VIXL assembly support for ARM targets.
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700284 static: {
285 whole_static_libs: [
Roland Levillain12dd9ae2018-11-06 13:32:06 +0000286 "libvixld",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700287 ],
288 },
289 shared: {
290 shared_libs: [
Roland Levillain12dd9ae2018-11-06 13:32:06 +0000291 "libvixld",
Colin Cross766ea432016-08-25 16:22:04 -0700292 ],
293 },
294 },
295 arm64: {
296 // VIXL assembly support for ARM64 targets.
297 static: {
298 whole_static_libs: [
Roland Levillain12dd9ae2018-11-06 13:32:06 +0000299 "libvixld",
Colin Cross766ea432016-08-25 16:22:04 -0700300 ],
301 },
302 shared: {
303 shared_libs: [
Roland Levillain12dd9ae2018-11-06 13:32:06 +0000304 "libvixld",
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700305 ],
306 },
307 },
308 },
Jeff Hao608f2ce2016-10-19 11:17:11 -0700309 shared_libs: [
Orion Hodson119733d2019-01-30 15:14:41 +0000310 "libartbased",
Jeff Hao608f2ce2016-10-19 11:17:11 -0700311 "libartd",
Orion Hodson119733d2019-01-30 15:14:41 +0000312 "libartpalette",
David Sehr82d046e2018-04-23 08:14:19 -0700313 "libprofiled",
David Sehrfcbe15c2018-02-15 09:41:13 -0800314 "libdexfiled",
Jeff Hao608f2ce2016-10-19 11:17:11 -0700315 ],
David Srbecky2faab002019-02-12 16:35:48 +0000316 whole_static_libs: ["libelffiled"],
Colin Cross1f7f3bd2016-07-27 10:12:38 -0700317}
Colin Cross6b22aa52016-09-12 14:35:39 -0700318
Andreas Gampeec5ed062018-01-26 16:20:02 -0800319cc_defaults {
320 name: "libartd-compiler_static_defaults",
321 defaults: [
322 "libart-compiler_static_base_defaults",
323 "libartd_static_defaults",
324 "libartbased_static_defaults",
325 "libdexfiled_static_defaults",
326 "libprofiled_static_defaults",
327 ],
328 static_libs: ["libartd-compiler"],
329}
330
Colin Cross6b22aa52016-09-12 14:35:39 -0700331art_cc_library {
332 name: "libart-compiler-gtest",
333 defaults: ["libart-gtest-defaults"],
Vladimir Marko815d5e52019-03-04 10:18:31 +0000334 srcs: [
Vladimir Marko815d5e52019-03-04 10:18:31 +0000335 "common_compiler_test.cc",
336 ],
Colin Cross6b22aa52016-09-12 14:35:39 -0700337 shared_libs: [
338 "libartd-compiler",
Andreas Gampe2c30e4a2017-08-23 11:31:32 -0700339 "libartd-disassembler",
Vladimir Markob9c29f62019-03-20 14:22:51 +0000340 "libartbase-art-gtest",
Colin Cross6e95dd52016-09-12 15:37:10 -0700341 "libart-runtime-gtest",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700342 "libbase",
Colin Cross6e95dd52016-09-12 15:37:10 -0700343 ],
344}
345
346art_cc_test {
347 name: "art_compiler_tests",
348 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700349 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -0700350 ],
351 srcs: [
Colin Cross6e95dd52016-09-12 15:37:10 -0700352 "debug/dwarf/dwarf_test.cc",
Vladimir Markod8dbc8d2017-09-20 13:37:47 +0100353 "debug/src_map_elem_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700354 "driver/compiled_method_storage_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700355 "exception_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700356 "jni/jni_compiler_test.cc",
Vladimir Markod8dbc8d2017-09-20 13:37:47 +0100357 "linker/linker_patch_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700358 "linker/output_stream_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700359 "optimizing/bounds_check_elimination_test.cc",
Artem Serov5e399b82017-12-21 14:28:35 +0000360 "optimizing/superblock_cloner_test.cc",
Vladimir Marko0ebe0d82017-09-21 22:50:39 +0100361 "optimizing/data_type_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700362 "optimizing/dominator_test.cc",
363 "optimizing/find_loops_test.cc",
364 "optimizing/graph_checker_test.cc",
365 "optimizing/graph_test.cc",
366 "optimizing/gvn_test.cc",
367 "optimizing/induction_var_analysis_test.cc",
368 "optimizing/induction_var_range_test.cc",
369 "optimizing/licm_test.cc",
370 "optimizing/live_interval_test.cc",
Aart Bik281c6812016-08-26 11:31:48 -0700371 "optimizing/loop_optimization_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700372 "optimizing/nodes_test.cc",
Aart Bikb79f4ac2017-07-10 10:10:37 -0700373 "optimizing/nodes_vector_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700374 "optimizing/parallel_move_test.cc",
375 "optimizing/pretty_printer_test.cc",
376 "optimizing/reference_type_propagation_test.cc",
Artem Serov15f95b12018-06-29 15:30:36 +0100377 "optimizing/select_generator_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700378 "optimizing/side_effects_test.cc",
Vladimir Marko356bd282017-03-01 12:01:11 +0000379 "optimizing/ssa_liveness_analysis_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700380 "optimizing/ssa_test.cc",
381 "optimizing/stack_map_test.cc",
382 "optimizing/suspend_check_test.cc",
Mathieu Chartier93764b82017-07-17 14:51:53 -0700383 "utils/atomic_dex_ref_map_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700384 "utils/dedupe_set_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700385 "utils/swap_space_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700386
387 "jni/jni_cfi_test.cc",
388 "optimizing/codegen_test.cc",
xueliang.zhongc239a2b2017-04-27 15:31:37 +0100389 "optimizing/load_store_analysis_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700390 "optimizing/optimizing_cfi_test.cc",
Alexandre Rames22aa54b2016-10-18 09:32:29 +0100391 "optimizing/scheduler_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700392 ],
393
394 codegen: {
395 arm: {
396 srcs: [
Colin Cross6e95dd52016-09-12 15:37:10 -0700397 "utils/arm/managed_register_arm_test.cc",
398 ],
399 },
400 arm64: {
401 srcs: [
Colin Cross6e95dd52016-09-12 15:37:10 -0700402 "utils/arm64/managed_register_arm64_test.cc",
403 ],
404 },
405 mips: {
406 srcs: [
Colin Cross6e95dd52016-09-12 15:37:10 -0700407 ],
408 },
Alexey Frunze19f6c692016-11-30 19:19:55 -0800409 mips64: {
410 srcs: [
Goran Jakovljevic65b02632017-03-22 07:37:26 +0100411 "utils/mips64/managed_register_mips64_test.cc",
Alexey Frunze19f6c692016-11-30 19:19:55 -0800412 ],
413 },
Colin Cross6e95dd52016-09-12 15:37:10 -0700414 x86: {
415 srcs: [
Colin Cross6e95dd52016-09-12 15:37:10 -0700416 "utils/x86/managed_register_x86_test.cc",
417
418 // These tests are testing architecture-independent
419 // functionality, but happen to use x86 codegen as part of the
420 // test.
421 "optimizing/constant_folding_test.cc",
422 "optimizing/dead_code_elimination_test.cc",
423 "optimizing/linearize_test.cc",
424 "optimizing/live_ranges_test.cc",
425 "optimizing/liveness_test.cc",
426 "optimizing/register_allocator_test.cc",
427 ],
428 },
429 x86_64: {
430 srcs: [
Vladimir Marko6d66fcf2018-04-12 13:15:27 +0100431 // Is this test a bit-rotten copy of the x86 test? b/77951326
432 // "utils/x86_64/managed_register_x86_64_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700433 ],
434 },
435 },
436
Andreas Gampe373a9b52017-10-18 09:01:57 -0700437 header_libs: [
438 "libart_simulator_headers",
439 "libnativehelper_header_only",
440 ],
Andreas Gampe71da4872017-07-26 10:02:07 -0700441
Colin Cross6e95dd52016-09-12 15:37:10 -0700442 shared_libs: [
David Sehr82d046e2018-04-23 08:14:19 -0700443 "libprofiled",
Colin Cross6e95dd52016-09-12 15:37:10 -0700444 "libartd-compiler",
Andreas Gampe71da4872017-07-26 10:02:07 -0700445 "libartd-simulator-container",
Roland Levillain12dd9ae2018-11-06 13:32:06 +0000446 "libvixld",
Colin Cross6e95dd52016-09-12 15:37:10 -0700447
448 "libbacktrace",
449 "libnativeloader",
450 ],
Colin Cross1b499102017-06-27 10:22:43 -0700451
452 target: {
453 host: {
454 shared_libs: [
455 "libartd-simulator",
456 ],
457 },
458 },
Colin Cross6e95dd52016-09-12 15:37:10 -0700459}
460
461art_cc_test {
462 name: "art_compiler_host_tests",
463 device_supported: false,
464 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700465 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -0700466 ],
467 codegen: {
468 arm: {
469 srcs: [
Colin Cross6e95dd52016-09-12 15:37:10 -0700470 "utils/assembler_thumb_test.cc",
471 ],
472 },
473 mips: {
474 srcs: [
Goran Jakovljevic35dfcaa2016-09-22 09:26:01 +0200475 "optimizing/emit_swap_mips_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700476 "utils/mips/assembler_mips_test.cc",
Lena Djokic2e0a7e52017-07-06 11:55:24 +0200477 "utils/mips/assembler_mips32r5_test.cc",
Colin Cross6e95dd52016-09-12 15:37:10 -0700478 "utils/mips/assembler_mips32r6_test.cc",
479 ],
480 },
481 mips64: {
482 srcs: [
483 "utils/mips64/assembler_mips64_test.cc",
484 ],
485 },
486 x86: {
487 srcs: [
488 "utils/x86/assembler_x86_test.cc",
489 ],
490 },
491 x86_64: {
492 srcs: [
493 "utils/x86_64/assembler_x86_64_test.cc",
494 ],
495 },
496 },
497 shared_libs: [
498 "libartd-compiler",
Roland Levillain12dd9ae2018-11-06 13:32:06 +0000499 "libvixld",
Colin Cross6b22aa52016-09-12 14:35:39 -0700500 ],
501}