Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 1 | // |
| 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 | |
| 22 | art_cc_defaults { |
| 23 | name: "libart-compiler-defaults", |
| 24 | defaults: ["art_defaults"], |
| 25 | host_supported: true, |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 26 | srcs: [ |
| 27 | "compiled_method.cc", |
| 28 | "debug/elf_debug_writer.cc", |
Andreas Gampe | b95c74b | 2017-04-20 19:43:21 -0700 | [diff] [blame] | 29 | "dex/inline_method_analyser.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 30 | "dex/verified_method.cc", |
| 31 | "dex/verification_results.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 32 | "driver/compiled_method_storage.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 33 | "driver/compiler_options.cc", |
| 34 | "driver/dex_compilation_unit.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 35 | "jit/jit_compiler.cc", |
xueliang.zhong | 383b57d | 2016-10-04 11:19:17 +0100 | [diff] [blame] | 36 | "jit/jit_logger.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 37 | "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 Yang | b0b051a | 2016-11-17 09:04:53 -0800 | [diff] [blame] | 42 | "optimizing/cha_guard_optimization.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 43 | "optimizing/code_generator.cc", |
| 44 | "optimizing/code_generator_utils.cc", |
Nicolas Geoffray | b813ca1 | 2017-02-16 22:08:29 +0000 | [diff] [blame] | 45 | "optimizing/code_sinking.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 46 | "optimizing/constant_folding.cc", |
Igor Murashkin | dd018df | 2017-08-09 10:38:31 -0700 | [diff] [blame] | 47 | "optimizing/constructor_fence_redundancy_elimination.cc", |
Vladimir Marko | 0ebe0d8 | 2017-09-21 22:50:39 +0100 | [diff] [blame] | 48 | "optimizing/data_type.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 49 | "optimizing/dead_code_elimination.cc", |
Aart Bik | 96fd51d | 2016-11-28 11:22:35 -0800 | [diff] [blame] | 50 | "optimizing/escape.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 51 | "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 Marko | eebb821 | 2018-06-05 14:57:24 +0100 | [diff] [blame] | 59 | "optimizing/intrinsic_objects.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 60 | "optimizing/intrinsics.cc", |
| 61 | "optimizing/licm.cc", |
Aart Bik | 9620230 | 2016-10-04 17:33:56 -0700 | [diff] [blame] | 62 | "optimizing/linear_order.cc", |
xueliang.zhong | c239a2b | 2017-04-27 15:31:37 +0100 | [diff] [blame] | 63 | "optimizing/load_store_analysis.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 64 | "optimizing/load_store_elimination.cc", |
| 65 | "optimizing/locations.cc", |
Artem Serov | 121f203 | 2017-10-23 19:19:06 +0100 | [diff] [blame] | 66 | "optimizing/loop_analysis.cc", |
Aart Bik | 281c681 | 2016-08-26 11:31:48 -0700 | [diff] [blame] | 67 | "optimizing/loop_optimization.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 68 | "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 Rames | 22aa54b | 2016-10-18 09:32:29 +0100 | [diff] [blame] | 79 | "optimizing/scheduler.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 80 | "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 Serov | 7f4aff6 | 2017-06-21 17:02:18 +0100 | [diff] [blame] | 86 | "optimizing/superblock_cloner.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 87 | "trampolines/trampoline_compiler.cc", |
| 88 | "utils/assembler.cc", |
| 89 | "utils/jni_macro_assembler.cc", |
| 90 | "utils/swap_space.cc", |
| 91 | "compiler.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 92 | ], |
| 93 | |
| 94 | codegen: { |
| 95 | arm: { |
| 96 | srcs: [ |
| 97 | "jni/quick/arm/calling_convention_arm.cc", |
Scott Wakeling | fe88546 | 2016-09-22 10:24:38 +0100 | [diff] [blame] | 98 | "optimizing/code_generator_arm_vixl.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 99 | "optimizing/code_generator_vector_arm_vixl.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 100 | "optimizing/instruction_simplifier_arm.cc", |
| 101 | "optimizing/instruction_simplifier_shared.cc", |
Anton Kirilov | 5ec6218 | 2016-10-13 20:16:02 +0100 | [diff] [blame] | 102 | "optimizing/intrinsics_arm_vixl.cc", |
Anton Kirilov | 74234da | 2017-01-13 14:42:47 +0000 | [diff] [blame] | 103 | "optimizing/nodes_shared.cc", |
xueliang.zhong | f7caf68 | 2017-03-01 16:07:02 +0000 | [diff] [blame] | 104 | "optimizing/scheduler_arm.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 105 | "utils/arm/assembler_arm_vixl.cc", |
Roland Levillain | c043d00 | 2017-07-14 16:39:16 +0100 | [diff] [blame] | 106 | "utils/arm/constants_arm.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 107 | "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 Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 114 | "optimizing/code_generator_arm64.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 115 | "optimizing/code_generator_vector_arm64.cc", |
Alexandre Rames | 22aa54b | 2016-10-18 09:32:29 +0100 | [diff] [blame] | 116 | "optimizing/scheduler_arm64.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 117 | "optimizing/instruction_simplifier_arm64.cc", |
| 118 | "optimizing/intrinsics_arm64.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 119 | "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 Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 127 | "optimizing/code_generator_mips.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 128 | "optimizing/code_generator_vector_mips.cc", |
Lena Djokic | a290160 | 2017-09-21 13:50:52 +0200 | [diff] [blame] | 129 | "optimizing/instruction_simplifier_mips.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 130 | "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 Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 140 | "optimizing/code_generator_vector_mips64.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 141 | "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 Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 149 | "optimizing/code_generator_x86.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 150 | "optimizing/code_generator_vector_x86.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 151 | "optimizing/intrinsics_x86.cc", |
Shalini Salomi Bodapati | dd121f6 | 2018-10-26 15:03:53 +0530 | [diff] [blame] | 152 | "optimizing/instruction_simplifier_x86_shared.cc", |
| 153 | "optimizing/instruction_simplifier_x86.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 154 | "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 Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 164 | "optimizing/intrinsics_x86_64.cc", |
Shalini Salomi Bodapati | dd121f6 | 2018-10-26 15:03:53 +0530 | [diff] [blame] | 165 | "optimizing/instruction_simplifier_x86_64.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 166 | "optimizing/code_generator_x86_64.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 167 | "optimizing/code_generator_vector_x86_64.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 168 | "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 Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 174 | generated_sources: ["art_compiler_operator_srcs"], |
| 175 | shared_libs: [ |
Andreas Gampe | 525a58b | 2016-09-26 18:09:47 -0700 | [diff] [blame] | 176 | "libbase", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 177 | ], |
| 178 | include_dirs: ["art/disassembler"], |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 179 | header_libs: [ |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 180 | "art_cmdlineparser_headers", // For compiler_options. |
Andreas Gampe | 373a9b5 | 2017-10-18 09:01:57 -0700 | [diff] [blame] | 181 | "libnativehelper_header_only", |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 182 | ], |
| 183 | |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 184 | export_include_dirs: ["."], |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 185 | } |
| 186 | |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 187 | cc_defaults { |
| 188 | name: "libart-compiler_static_base_defaults", |
| 189 | static_libs: [ |
| 190 | "libbase", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 191 | ], |
| 192 | } |
| 193 | |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 194 | gensrcs { |
| 195 | name: "art_compiler_operator_srcs", |
Alex Light | b69d2d3 | 2018-02-21 13:37:17 -0800 | [diff] [blame] | 196 | cmd: "$(location generate_operator_out) art/compiler $(in) > $(out)", |
| 197 | tools: ["generate_operator_out"], |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 198 | srcs: [ |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 199 | "driver/compiler_options.h", |
Vladimir Marko | d8dbc8d | 2017-09-20 13:37:47 +0100 | [diff] [blame] | 200 | "linker/linker_patch.h", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 201 | "optimizing/locations.h", |
Vladimir Marko | cd09e1f | 2017-11-24 15:02:40 +0000 | [diff] [blame] | 202 | "optimizing/optimizing_compiler_stats.h", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 203 | |
| 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 | |
| 211 | art_cc_library { |
| 212 | name: "libart-compiler", |
Pirama Arumuga Nainar | 42d5805 | 2018-04-18 22:59:36 -0700 | [diff] [blame] | 213 | defaults: [ |
| 214 | "libart-compiler-defaults", |
| 215 | "dex2oat-pgo-defaults", |
| 216 | ], |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 217 | codegen: { |
Colin Cross | 766ea43 | 2016-08-25 16:22:04 -0700 | [diff] [blame] | 218 | arm: { |
| 219 | // VIXL assembly support for ARM targets. |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 220 | static: { |
| 221 | whole_static_libs: [ |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 222 | "libvixl", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 223 | ], |
| 224 | }, |
| 225 | shared: { |
| 226 | shared_libs: [ |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 227 | "libvixl", |
Colin Cross | 766ea43 | 2016-08-25 16:22:04 -0700 | [diff] [blame] | 228 | ], |
| 229 | }, |
| 230 | }, |
| 231 | arm64: { |
| 232 | // VIXL assembly support for ARM64 targets. |
| 233 | static: { |
| 234 | whole_static_libs: [ |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 235 | "libvixl", |
Colin Cross | 766ea43 | 2016-08-25 16:22:04 -0700 | [diff] [blame] | 236 | ], |
| 237 | }, |
| 238 | shared: { |
| 239 | shared_libs: [ |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 240 | "libvixl", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 241 | ], |
| 242 | }, |
| 243 | }, |
| 244 | }, |
Jeff Hao | 608f2ce | 2016-10-19 11:17:11 -0700 | [diff] [blame] | 245 | shared_libs: [ |
| 246 | "libart", |
Orion Hodson | 119733d | 2019-01-30 15:14:41 +0000 | [diff] [blame] | 247 | "libartbase", |
| 248 | "libartpalette", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 249 | "libprofile", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 250 | "libdexfile", |
Jeff Hao | 608f2ce | 2016-10-19 11:17:11 -0700 | [diff] [blame] | 251 | ], |
David Srbecky | 2faab00 | 2019-02-12 16:35:48 +0000 | [diff] [blame] | 252 | whole_static_libs: ["libelffile"], |
Pirama Arumuga Nainar | 02f6ed6 | 2018-01-04 10:52:42 -0800 | [diff] [blame] | 253 | |
Yi Kong | 1d894d9 | 2018-01-19 22:01:14 -0800 | [diff] [blame] | 254 | target: { |
| 255 | android: { |
| 256 | lto: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 257 | thin: true, |
Yi Kong | 1d894d9 | 2018-01-19 22:01:14 -0800 | [diff] [blame] | 258 | }, |
| 259 | }, |
| 260 | }, |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 261 | } |
| 262 | |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 263 | cc_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 Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 275 | art_cc_library { |
| 276 | name: "libartd-compiler", |
| 277 | defaults: [ |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 278 | "art_debug_defaults", |
Colin Cross | c564406 | 2016-08-30 15:41:08 -0700 | [diff] [blame] | 279 | "libart-compiler-defaults", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 280 | ], |
| 281 | codegen: { |
Colin Cross | 766ea43 | 2016-08-25 16:22:04 -0700 | [diff] [blame] | 282 | arm: { |
| 283 | // VIXL assembly support for ARM targets. |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 284 | static: { |
| 285 | whole_static_libs: [ |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 286 | "libvixld", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 287 | ], |
| 288 | }, |
| 289 | shared: { |
| 290 | shared_libs: [ |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 291 | "libvixld", |
Colin Cross | 766ea43 | 2016-08-25 16:22:04 -0700 | [diff] [blame] | 292 | ], |
| 293 | }, |
| 294 | }, |
| 295 | arm64: { |
| 296 | // VIXL assembly support for ARM64 targets. |
| 297 | static: { |
| 298 | whole_static_libs: [ |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 299 | "libvixld", |
Colin Cross | 766ea43 | 2016-08-25 16:22:04 -0700 | [diff] [blame] | 300 | ], |
| 301 | }, |
| 302 | shared: { |
| 303 | shared_libs: [ |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 304 | "libvixld", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 305 | ], |
| 306 | }, |
| 307 | }, |
| 308 | }, |
Jeff Hao | 608f2ce | 2016-10-19 11:17:11 -0700 | [diff] [blame] | 309 | shared_libs: [ |
Orion Hodson | 119733d | 2019-01-30 15:14:41 +0000 | [diff] [blame] | 310 | "libartbased", |
Jeff Hao | 608f2ce | 2016-10-19 11:17:11 -0700 | [diff] [blame] | 311 | "libartd", |
Orion Hodson | 119733d | 2019-01-30 15:14:41 +0000 | [diff] [blame] | 312 | "libartpalette", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 313 | "libprofiled", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 314 | "libdexfiled", |
Jeff Hao | 608f2ce | 2016-10-19 11:17:11 -0700 | [diff] [blame] | 315 | ], |
David Srbecky | 2faab00 | 2019-02-12 16:35:48 +0000 | [diff] [blame] | 316 | whole_static_libs: ["libelffiled"], |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 317 | } |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 318 | |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 319 | cc_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 Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 331 | art_cc_library { |
| 332 | name: "libart-compiler-gtest", |
| 333 | defaults: ["libart-gtest-defaults"], |
Vladimir Marko | 815d5e5 | 2019-03-04 10:18:31 +0000 | [diff] [blame] | 334 | srcs: [ |
Vladimir Marko | 815d5e5 | 2019-03-04 10:18:31 +0000 | [diff] [blame] | 335 | "common_compiler_test.cc", |
| 336 | ], |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 337 | shared_libs: [ |
| 338 | "libartd-compiler", |
Andreas Gampe | 2c30e4a | 2017-08-23 11:31:32 -0700 | [diff] [blame] | 339 | "libartd-disassembler", |
Vladimir Marko | b9c29f6 | 2019-03-20 14:22:51 +0000 | [diff] [blame] | 340 | "libartbase-art-gtest", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 341 | "libart-runtime-gtest", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 342 | "libbase", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 343 | ], |
| 344 | } |
| 345 | |
| 346 | art_cc_test { |
| 347 | name: "art_compiler_tests", |
| 348 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 349 | "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 350 | ], |
| 351 | srcs: [ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 352 | "debug/dwarf/dwarf_test.cc", |
Vladimir Marko | d8dbc8d | 2017-09-20 13:37:47 +0100 | [diff] [blame] | 353 | "debug/src_map_elem_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 354 | "driver/compiled_method_storage_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 355 | "exception_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 356 | "jni/jni_compiler_test.cc", |
Vladimir Marko | d8dbc8d | 2017-09-20 13:37:47 +0100 | [diff] [blame] | 357 | "linker/linker_patch_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 358 | "linker/output_stream_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 359 | "optimizing/bounds_check_elimination_test.cc", |
Artem Serov | 5e399b8 | 2017-12-21 14:28:35 +0000 | [diff] [blame] | 360 | "optimizing/superblock_cloner_test.cc", |
Vladimir Marko | 0ebe0d8 | 2017-09-21 22:50:39 +0100 | [diff] [blame] | 361 | "optimizing/data_type_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 362 | "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 Bik | 281c681 | 2016-08-26 11:31:48 -0700 | [diff] [blame] | 371 | "optimizing/loop_optimization_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 372 | "optimizing/nodes_test.cc", |
Aart Bik | b79f4ac | 2017-07-10 10:10:37 -0700 | [diff] [blame] | 373 | "optimizing/nodes_vector_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 374 | "optimizing/parallel_move_test.cc", |
| 375 | "optimizing/pretty_printer_test.cc", |
| 376 | "optimizing/reference_type_propagation_test.cc", |
Artem Serov | 15f95b1 | 2018-06-29 15:30:36 +0100 | [diff] [blame] | 377 | "optimizing/select_generator_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 378 | "optimizing/side_effects_test.cc", |
Vladimir Marko | 356bd28 | 2017-03-01 12:01:11 +0000 | [diff] [blame] | 379 | "optimizing/ssa_liveness_analysis_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 380 | "optimizing/ssa_test.cc", |
| 381 | "optimizing/stack_map_test.cc", |
| 382 | "optimizing/suspend_check_test.cc", |
Mathieu Chartier | 93764b8 | 2017-07-17 14:51:53 -0700 | [diff] [blame] | 383 | "utils/atomic_dex_ref_map_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 384 | "utils/dedupe_set_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 385 | "utils/swap_space_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 386 | |
| 387 | "jni/jni_cfi_test.cc", |
| 388 | "optimizing/codegen_test.cc", |
xueliang.zhong | c239a2b | 2017-04-27 15:31:37 +0100 | [diff] [blame] | 389 | "optimizing/load_store_analysis_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 390 | "optimizing/optimizing_cfi_test.cc", |
Alexandre Rames | 22aa54b | 2016-10-18 09:32:29 +0100 | [diff] [blame] | 391 | "optimizing/scheduler_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 392 | ], |
| 393 | |
| 394 | codegen: { |
| 395 | arm: { |
| 396 | srcs: [ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 397 | "utils/arm/managed_register_arm_test.cc", |
| 398 | ], |
| 399 | }, |
| 400 | arm64: { |
| 401 | srcs: [ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 402 | "utils/arm64/managed_register_arm64_test.cc", |
| 403 | ], |
| 404 | }, |
| 405 | mips: { |
| 406 | srcs: [ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 407 | ], |
| 408 | }, |
Alexey Frunze | 19f6c69 | 2016-11-30 19:19:55 -0800 | [diff] [blame] | 409 | mips64: { |
| 410 | srcs: [ |
Goran Jakovljevic | 65b0263 | 2017-03-22 07:37:26 +0100 | [diff] [blame] | 411 | "utils/mips64/managed_register_mips64_test.cc", |
Alexey Frunze | 19f6c69 | 2016-11-30 19:19:55 -0800 | [diff] [blame] | 412 | ], |
| 413 | }, |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 414 | x86: { |
| 415 | srcs: [ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 416 | "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 Marko | 6d66fcf | 2018-04-12 13:15:27 +0100 | [diff] [blame] | 431 | // Is this test a bit-rotten copy of the x86 test? b/77951326 |
| 432 | // "utils/x86_64/managed_register_x86_64_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 433 | ], |
| 434 | }, |
| 435 | }, |
| 436 | |
Andreas Gampe | 373a9b5 | 2017-10-18 09:01:57 -0700 | [diff] [blame] | 437 | header_libs: [ |
| 438 | "libart_simulator_headers", |
| 439 | "libnativehelper_header_only", |
| 440 | ], |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 441 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 442 | shared_libs: [ |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 443 | "libprofiled", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 444 | "libartd-compiler", |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 445 | "libartd-simulator-container", |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 446 | "libvixld", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 447 | |
| 448 | "libbacktrace", |
| 449 | "libnativeloader", |
| 450 | ], |
Colin Cross | 1b49910 | 2017-06-27 10:22:43 -0700 | [diff] [blame] | 451 | |
| 452 | target: { |
| 453 | host: { |
| 454 | shared_libs: [ |
| 455 | "libartd-simulator", |
| 456 | ], |
| 457 | }, |
| 458 | }, |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 459 | } |
| 460 | |
| 461 | art_cc_test { |
| 462 | name: "art_compiler_host_tests", |
| 463 | device_supported: false, |
| 464 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 465 | "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 466 | ], |
| 467 | codegen: { |
| 468 | arm: { |
| 469 | srcs: [ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 470 | "utils/assembler_thumb_test.cc", |
| 471 | ], |
| 472 | }, |
| 473 | mips: { |
| 474 | srcs: [ |
Goran Jakovljevic | 35dfcaa | 2016-09-22 09:26:01 +0200 | [diff] [blame] | 475 | "optimizing/emit_swap_mips_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 476 | "utils/mips/assembler_mips_test.cc", |
Lena Djokic | 2e0a7e5 | 2017-07-06 11:55:24 +0200 | [diff] [blame] | 477 | "utils/mips/assembler_mips32r5_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 478 | "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 Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 499 | "libvixld", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 500 | ], |
| 501 | } |