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", |
| 29 | "dex/dex_to_dex_compiler.cc", |
Andreas Gampe | b95c74b | 2017-04-20 19:43:21 -0700 | [diff] [blame] | 30 | "dex/inline_method_analyser.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 31 | "dex/verified_method.cc", |
| 32 | "dex/verification_results.cc", |
| 33 | "dex/quick_compiler_callbacks.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 34 | "driver/compiled_method_storage.cc", |
| 35 | "driver/compiler_driver.cc", |
| 36 | "driver/compiler_options.cc", |
| 37 | "driver/dex_compilation_unit.cc", |
| 38 | "linker/buffered_output_stream.cc", |
| 39 | "linker/file_output_stream.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 40 | "linker/output_stream.cc", |
| 41 | "linker/vector_output_stream.cc", |
| 42 | "linker/relative_patcher.cc", |
| 43 | "jit/jit_compiler.cc", |
xueliang.zhong | 383b57d | 2016-10-04 11:19:17 +0100 | [diff] [blame] | 44 | "jit/jit_logger.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 45 | "jni/quick/calling_convention.cc", |
| 46 | "jni/quick/jni_compiler.cc", |
| 47 | "optimizing/block_builder.cc", |
| 48 | "optimizing/bounds_check_elimination.cc", |
| 49 | "optimizing/builder.cc", |
Mingyao Yang | b0b051a | 2016-11-17 09:04:53 -0800 | [diff] [blame] | 50 | "optimizing/cha_guard_optimization.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 51 | "optimizing/code_generator.cc", |
| 52 | "optimizing/code_generator_utils.cc", |
Nicolas Geoffray | b813ca1 | 2017-02-16 22:08:29 +0000 | [diff] [blame] | 53 | "optimizing/code_sinking.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 54 | "optimizing/constant_folding.cc", |
Igor Murashkin | dd018df | 2017-08-09 10:38:31 -0700 | [diff] [blame] | 55 | "optimizing/constructor_fence_redundancy_elimination.cc", |
Vladimir Marko | 0ebe0d8 | 2017-09-21 22:50:39 +0100 | [diff] [blame] | 56 | "optimizing/data_type.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 57 | "optimizing/dead_code_elimination.cc", |
Aart Bik | 96fd51d | 2016-11-28 11:22:35 -0800 | [diff] [blame] | 58 | "optimizing/escape.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 59 | "optimizing/graph_checker.cc", |
| 60 | "optimizing/graph_visualizer.cc", |
| 61 | "optimizing/gvn.cc", |
| 62 | "optimizing/induction_var_analysis.cc", |
| 63 | "optimizing/induction_var_range.cc", |
| 64 | "optimizing/inliner.cc", |
| 65 | "optimizing/instruction_builder.cc", |
| 66 | "optimizing/instruction_simplifier.cc", |
| 67 | "optimizing/intrinsics.cc", |
| 68 | "optimizing/licm.cc", |
Aart Bik | 9620230 | 2016-10-04 17:33:56 -0700 | [diff] [blame] | 69 | "optimizing/linear_order.cc", |
xueliang.zhong | c239a2b | 2017-04-27 15:31:37 +0100 | [diff] [blame] | 70 | "optimizing/load_store_analysis.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 71 | "optimizing/load_store_elimination.cc", |
| 72 | "optimizing/locations.cc", |
Aart Bik | 281c681 | 2016-08-26 11:31:48 -0700 | [diff] [blame] | 73 | "optimizing/loop_optimization.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 74 | "optimizing/nodes.cc", |
| 75 | "optimizing/optimization.cc", |
| 76 | "optimizing/optimizing_compiler.cc", |
| 77 | "optimizing/parallel_move_resolver.cc", |
| 78 | "optimizing/prepare_for_register_allocation.cc", |
| 79 | "optimizing/reference_type_propagation.cc", |
| 80 | "optimizing/register_allocation_resolver.cc", |
| 81 | "optimizing/register_allocator.cc", |
| 82 | "optimizing/register_allocator_graph_color.cc", |
| 83 | "optimizing/register_allocator_linear_scan.cc", |
| 84 | "optimizing/select_generator.cc", |
Alexandre Rames | 22aa54b | 2016-10-18 09:32:29 +0100 | [diff] [blame] | 85 | "optimizing/scheduler.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 86 | "optimizing/sharpening.cc", |
| 87 | "optimizing/side_effects_analysis.cc", |
| 88 | "optimizing/ssa_builder.cc", |
| 89 | "optimizing/ssa_liveness_analysis.cc", |
| 90 | "optimizing/ssa_phi_elimination.cc", |
| 91 | "optimizing/stack_map_stream.cc", |
| 92 | "trampolines/trampoline_compiler.cc", |
| 93 | "utils/assembler.cc", |
| 94 | "utils/jni_macro_assembler.cc", |
| 95 | "utils/swap_space.cc", |
| 96 | "compiler.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 97 | ], |
| 98 | |
| 99 | codegen: { |
| 100 | arm: { |
| 101 | srcs: [ |
| 102 | "jni/quick/arm/calling_convention_arm.cc", |
| 103 | "linker/arm/relative_patcher_arm_base.cc", |
| 104 | "linker/arm/relative_patcher_thumb2.cc", |
Scott Wakeling | fe88546 | 2016-09-22 10:24:38 +0100 | [diff] [blame] | 105 | "optimizing/code_generator_arm_vixl.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 106 | "optimizing/code_generator_vector_arm_vixl.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 107 | "optimizing/instruction_simplifier_arm.cc", |
| 108 | "optimizing/instruction_simplifier_shared.cc", |
Anton Kirilov | 5ec6218 | 2016-10-13 20:16:02 +0100 | [diff] [blame] | 109 | "optimizing/intrinsics_arm_vixl.cc", |
Anton Kirilov | 74234da | 2017-01-13 14:42:47 +0000 | [diff] [blame] | 110 | "optimizing/nodes_shared.cc", |
xueliang.zhong | f7caf68 | 2017-03-01 16:07:02 +0000 | [diff] [blame] | 111 | "optimizing/scheduler_arm.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 112 | "utils/arm/assembler_arm_vixl.cc", |
Roland Levillain | c043d00 | 2017-07-14 16:39:16 +0100 | [diff] [blame] | 113 | "utils/arm/constants_arm.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 114 | "utils/arm/jni_macro_assembler_arm_vixl.cc", |
| 115 | "utils/arm/managed_register_arm.cc", |
| 116 | ], |
| 117 | }, |
| 118 | arm64: { |
| 119 | srcs: [ |
| 120 | "jni/quick/arm64/calling_convention_arm64.cc", |
| 121 | "linker/arm64/relative_patcher_arm64.cc", |
| 122 | "optimizing/code_generator_arm64.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 123 | "optimizing/code_generator_vector_arm64.cc", |
Alexandre Rames | 22aa54b | 2016-10-18 09:32:29 +0100 | [diff] [blame] | 124 | "optimizing/scheduler_arm64.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 125 | "optimizing/instruction_simplifier_arm64.cc", |
| 126 | "optimizing/intrinsics_arm64.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 127 | "utils/arm64/assembler_arm64.cc", |
| 128 | "utils/arm64/jni_macro_assembler_arm64.cc", |
| 129 | "utils/arm64/managed_register_arm64.cc", |
| 130 | ], |
| 131 | }, |
| 132 | mips: { |
| 133 | srcs: [ |
| 134 | "jni/quick/mips/calling_convention_mips.cc", |
| 135 | "linker/mips/relative_patcher_mips.cc", |
| 136 | "optimizing/code_generator_mips.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 137 | "optimizing/code_generator_vector_mips.cc", |
Lena Djokic | a290160 | 2017-09-21 13:50:52 +0200 | [diff] [blame] | 138 | "optimizing/instruction_simplifier_mips.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 139 | "optimizing/intrinsics_mips.cc", |
| 140 | "optimizing/pc_relative_fixups_mips.cc", |
| 141 | "utils/mips/assembler_mips.cc", |
| 142 | "utils/mips/managed_register_mips.cc", |
| 143 | ], |
| 144 | }, |
| 145 | mips64: { |
| 146 | srcs: [ |
| 147 | "jni/quick/mips64/calling_convention_mips64.cc", |
Alexey Frunze | 19f6c69 | 2016-11-30 19:19:55 -0800 | [diff] [blame] | 148 | "linker/mips64/relative_patcher_mips64.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 149 | "optimizing/code_generator_mips64.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 150 | "optimizing/code_generator_vector_mips64.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 151 | "optimizing/intrinsics_mips64.cc", |
| 152 | "utils/mips64/assembler_mips64.cc", |
| 153 | "utils/mips64/managed_register_mips64.cc", |
| 154 | ], |
| 155 | }, |
| 156 | x86: { |
| 157 | srcs: [ |
| 158 | "jni/quick/x86/calling_convention_x86.cc", |
| 159 | "linker/x86/relative_patcher_x86.cc", |
| 160 | "linker/x86/relative_patcher_x86_base.cc", |
| 161 | "optimizing/code_generator_x86.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 162 | "optimizing/code_generator_vector_x86.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 163 | "optimizing/intrinsics_x86.cc", |
| 164 | "optimizing/pc_relative_fixups_x86.cc", |
| 165 | "optimizing/x86_memory_gen.cc", |
| 166 | "utils/x86/assembler_x86.cc", |
| 167 | "utils/x86/jni_macro_assembler_x86.cc", |
| 168 | "utils/x86/managed_register_x86.cc", |
| 169 | ], |
| 170 | }, |
| 171 | x86_64: { |
| 172 | srcs: [ |
| 173 | "jni/quick/x86_64/calling_convention_x86_64.cc", |
| 174 | "linker/x86_64/relative_patcher_x86_64.cc", |
| 175 | "optimizing/intrinsics_x86_64.cc", |
| 176 | "optimizing/code_generator_x86_64.cc", |
Aart Bik | f8f5a16 | 2017-02-06 15:35:29 -0800 | [diff] [blame] | 177 | "optimizing/code_generator_vector_x86_64.cc", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 178 | "utils/x86_64/assembler_x86_64.cc", |
| 179 | "utils/x86_64/jni_macro_assembler_x86_64.cc", |
| 180 | "utils/x86_64/managed_register_x86_64.cc", |
| 181 | ], |
| 182 | }, |
| 183 | }, |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 184 | generated_sources: ["art_compiler_operator_srcs"], |
| 185 | shared_libs: [ |
Andreas Gampe | 525a58b | 2016-09-26 18:09:47 -0700 | [diff] [blame] | 186 | "libbase", |
Andreas Gampe | c654816 | 2017-12-08 12:15:22 -0800 | [diff] [blame] | 187 | "libcutils", // for atrace. |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 188 | "liblzma", |
| 189 | ], |
| 190 | include_dirs: ["art/disassembler"], |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 191 | header_libs: [ |
| 192 | "art_cmdlineparser_headers", // For compiler_options. |
Andreas Gampe | 373a9b5 | 2017-10-18 09:01:57 -0700 | [diff] [blame] | 193 | "libnativehelper_header_only", |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 194 | ], |
| 195 | |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 196 | export_include_dirs: ["."], |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 197 | } |
| 198 | |
| 199 | gensrcs { |
| 200 | name: "art_compiler_operator_srcs", |
Colin Cross | f657ed0 | 2016-11-04 15:31:17 -0700 | [diff] [blame] | 201 | cmd: "$(location generate-operator-out.py) art/compiler $(in) > $(out)", |
| 202 | tool_files: ["generate-operator-out.py"], |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 203 | srcs: [ |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 204 | "dex/dex_to_dex_compiler.h", |
| 205 | "driver/compiler_driver.h", |
| 206 | "driver/compiler_options.h", |
Vladimir Marko | d8dbc8d | 2017-09-20 13:37:47 +0100 | [diff] [blame] | 207 | "linker/linker_patch.h", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 208 | "optimizing/locations.h", |
Vladimir Marko | cd09e1f | 2017-11-24 15:02:40 +0000 | [diff] [blame] | 209 | "optimizing/optimizing_compiler_stats.h", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 210 | |
| 211 | "utils/arm/constants_arm.h", |
| 212 | "utils/mips/assembler_mips.h", |
| 213 | "utils/mips64/assembler_mips64.h", |
| 214 | ], |
| 215 | output_extension: "operator_out.cc", |
| 216 | } |
| 217 | |
| 218 | art_cc_library { |
| 219 | name: "libart-compiler", |
| 220 | defaults: ["libart-compiler-defaults"], |
| 221 | codegen: { |
Colin Cross | 766ea43 | 2016-08-25 16:22:04 -0700 | [diff] [blame] | 222 | arm: { |
| 223 | // VIXL assembly support for ARM targets. |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 224 | static: { |
| 225 | whole_static_libs: [ |
| 226 | "libvixl-arm", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 227 | ], |
| 228 | }, |
| 229 | shared: { |
| 230 | shared_libs: [ |
| 231 | "libvixl-arm", |
Colin Cross | 766ea43 | 2016-08-25 16:22:04 -0700 | [diff] [blame] | 232 | ], |
| 233 | }, |
| 234 | }, |
| 235 | arm64: { |
| 236 | // VIXL assembly support for ARM64 targets. |
| 237 | static: { |
| 238 | whole_static_libs: [ |
| 239 | "libvixl-arm64", |
| 240 | ], |
| 241 | }, |
| 242 | shared: { |
| 243 | shared_libs: [ |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 244 | "libvixl-arm64", |
| 245 | ], |
| 246 | }, |
| 247 | }, |
| 248 | }, |
Jeff Hao | 608f2ce | 2016-10-19 11:17:11 -0700 | [diff] [blame] | 249 | shared_libs: [ |
| 250 | "libart", |
Jeff Hao | 608f2ce | 2016-10-19 11:17:11 -0700 | [diff] [blame] | 251 | ], |
Pirama Arumuga Nainar | 02f6ed6 | 2018-01-04 10:52:42 -0800 | [diff] [blame] | 252 | |
| 253 | pgo: { |
| 254 | instrumentation: true, |
| 255 | profile_file: "dex2oat.profdata", |
| 256 | benchmarks: ["dex2oat"], |
| 257 | enable_profile_use: false, |
| 258 | } |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 259 | } |
| 260 | |
| 261 | art_cc_library { |
| 262 | name: "libartd-compiler", |
| 263 | defaults: [ |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 264 | "art_debug_defaults", |
Colin Cross | c564406 | 2016-08-30 15:41:08 -0700 | [diff] [blame] | 265 | "libart-compiler-defaults", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 266 | ], |
| 267 | codegen: { |
Colin Cross | 766ea43 | 2016-08-25 16:22:04 -0700 | [diff] [blame] | 268 | arm: { |
| 269 | // VIXL assembly support for ARM targets. |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 270 | static: { |
| 271 | whole_static_libs: [ |
| 272 | "libvixld-arm", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 273 | ], |
| 274 | }, |
| 275 | shared: { |
| 276 | shared_libs: [ |
| 277 | "libvixld-arm", |
Colin Cross | 766ea43 | 2016-08-25 16:22:04 -0700 | [diff] [blame] | 278 | ], |
| 279 | }, |
| 280 | }, |
| 281 | arm64: { |
| 282 | // VIXL assembly support for ARM64 targets. |
| 283 | static: { |
| 284 | whole_static_libs: [ |
| 285 | "libvixld-arm64", |
| 286 | ], |
| 287 | }, |
| 288 | shared: { |
| 289 | shared_libs: [ |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 290 | "libvixld-arm64", |
| 291 | ], |
| 292 | }, |
| 293 | }, |
| 294 | }, |
Jeff Hao | 608f2ce | 2016-10-19 11:17:11 -0700 | [diff] [blame] | 295 | shared_libs: [ |
| 296 | "libartd", |
Jeff Hao | 608f2ce | 2016-10-19 11:17:11 -0700 | [diff] [blame] | 297 | ], |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 298 | } |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 299 | |
| 300 | art_cc_library { |
| 301 | name: "libart-compiler-gtest", |
| 302 | defaults: ["libart-gtest-defaults"], |
| 303 | srcs: ["common_compiler_test.cc"], |
| 304 | shared_libs: [ |
| 305 | "libartd-compiler", |
Andreas Gampe | 2c30e4a | 2017-08-23 11:31:32 -0700 | [diff] [blame] | 306 | "libartd-disassembler", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 307 | "libart-runtime-gtest", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 308 | "libbase", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 309 | ], |
| 310 | } |
| 311 | |
| 312 | art_cc_test { |
| 313 | name: "art_compiler_tests", |
| 314 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 315 | "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 316 | ], |
| 317 | srcs: [ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 318 | "debug/dwarf/dwarf_test.cc", |
Vladimir Marko | d8dbc8d | 2017-09-20 13:37:47 +0100 | [diff] [blame] | 319 | "debug/src_map_elem_test.cc", |
Nicolas Geoffray | 01b70e8 | 2016-11-17 10:58:36 +0000 | [diff] [blame] | 320 | "dex/dex_to_dex_decompiler_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 321 | "driver/compiled_method_storage_test.cc", |
| 322 | "driver/compiler_driver_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 323 | "exception_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 324 | "jni/jni_compiler_test.cc", |
Vladimir Marko | d8dbc8d | 2017-09-20 13:37:47 +0100 | [diff] [blame] | 325 | "linker/linker_patch_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 326 | "linker/output_stream_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 327 | "optimizing/bounds_check_elimination_test.cc", |
Artem Serov | 5e399b8 | 2017-12-21 14:28:35 +0000 | [diff] [blame] | 328 | "optimizing/superblock_cloner_test.cc", |
Vladimir Marko | 0ebe0d8 | 2017-09-21 22:50:39 +0100 | [diff] [blame] | 329 | "optimizing/data_type_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 330 | "optimizing/dominator_test.cc", |
| 331 | "optimizing/find_loops_test.cc", |
| 332 | "optimizing/graph_checker_test.cc", |
| 333 | "optimizing/graph_test.cc", |
| 334 | "optimizing/gvn_test.cc", |
| 335 | "optimizing/induction_var_analysis_test.cc", |
| 336 | "optimizing/induction_var_range_test.cc", |
| 337 | "optimizing/licm_test.cc", |
| 338 | "optimizing/live_interval_test.cc", |
Aart Bik | 281c681 | 2016-08-26 11:31:48 -0700 | [diff] [blame] | 339 | "optimizing/loop_optimization_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 340 | "optimizing/nodes_test.cc", |
Aart Bik | b79f4ac | 2017-07-10 10:10:37 -0700 | [diff] [blame] | 341 | "optimizing/nodes_vector_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 342 | "optimizing/parallel_move_test.cc", |
| 343 | "optimizing/pretty_printer_test.cc", |
| 344 | "optimizing/reference_type_propagation_test.cc", |
| 345 | "optimizing/side_effects_test.cc", |
Vladimir Marko | 356bd28 | 2017-03-01 12:01:11 +0000 | [diff] [blame] | 346 | "optimizing/ssa_liveness_analysis_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 347 | "optimizing/ssa_test.cc", |
| 348 | "optimizing/stack_map_test.cc", |
| 349 | "optimizing/suspend_check_test.cc", |
Mathieu Chartier | 93764b8 | 2017-07-17 14:51:53 -0700 | [diff] [blame] | 350 | "utils/atomic_dex_ref_map_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 351 | "utils/dedupe_set_test.cc", |
| 352 | "utils/intrusive_forward_list_test.cc", |
| 353 | "utils/string_reference_test.cc", |
| 354 | "utils/swap_space_test.cc", |
| 355 | "utils/test_dex_file_builder_test.cc", |
Nicolas Geoffray | 0802518 | 2016-10-25 17:20:18 +0100 | [diff] [blame] | 356 | "verifier_deps_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 357 | |
| 358 | "jni/jni_cfi_test.cc", |
| 359 | "optimizing/codegen_test.cc", |
xueliang.zhong | c239a2b | 2017-04-27 15:31:37 +0100 | [diff] [blame] | 360 | "optimizing/load_store_analysis_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 361 | "optimizing/optimizing_cfi_test.cc", |
Alexandre Rames | 22aa54b | 2016-10-18 09:32:29 +0100 | [diff] [blame] | 362 | "optimizing/scheduler_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 363 | ], |
| 364 | |
| 365 | codegen: { |
| 366 | arm: { |
| 367 | srcs: [ |
| 368 | "linker/arm/relative_patcher_thumb2_test.cc", |
| 369 | "utils/arm/managed_register_arm_test.cc", |
| 370 | ], |
| 371 | }, |
| 372 | arm64: { |
| 373 | srcs: [ |
| 374 | "linker/arm64/relative_patcher_arm64_test.cc", |
| 375 | "utils/arm64/managed_register_arm64_test.cc", |
| 376 | ], |
| 377 | }, |
| 378 | mips: { |
| 379 | srcs: [ |
| 380 | "linker/mips/relative_patcher_mips_test.cc", |
| 381 | "linker/mips/relative_patcher_mips32r6_test.cc", |
| 382 | ], |
| 383 | }, |
Alexey Frunze | 19f6c69 | 2016-11-30 19:19:55 -0800 | [diff] [blame] | 384 | mips64: { |
| 385 | srcs: [ |
| 386 | "linker/mips64/relative_patcher_mips64_test.cc", |
Goran Jakovljevic | 65b0263 | 2017-03-22 07:37:26 +0100 | [diff] [blame] | 387 | "utils/mips64/managed_register_mips64_test.cc", |
Alexey Frunze | 19f6c69 | 2016-11-30 19:19:55 -0800 | [diff] [blame] | 388 | ], |
| 389 | }, |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 390 | x86: { |
| 391 | srcs: [ |
| 392 | "linker/x86/relative_patcher_x86_test.cc", |
| 393 | "utils/x86/managed_register_x86_test.cc", |
| 394 | |
| 395 | // These tests are testing architecture-independent |
| 396 | // functionality, but happen to use x86 codegen as part of the |
| 397 | // test. |
| 398 | "optimizing/constant_folding_test.cc", |
| 399 | "optimizing/dead_code_elimination_test.cc", |
| 400 | "optimizing/linearize_test.cc", |
| 401 | "optimizing/live_ranges_test.cc", |
| 402 | "optimizing/liveness_test.cc", |
| 403 | "optimizing/register_allocator_test.cc", |
| 404 | ], |
| 405 | }, |
| 406 | x86_64: { |
| 407 | srcs: [ |
| 408 | "linker/x86_64/relative_patcher_x86_64_test.cc", |
| 409 | ], |
| 410 | }, |
| 411 | }, |
| 412 | |
Andreas Gampe | 373a9b5 | 2017-10-18 09:01:57 -0700 | [diff] [blame] | 413 | header_libs: [ |
| 414 | "libart_simulator_headers", |
| 415 | "libnativehelper_header_only", |
| 416 | ], |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 417 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 418 | shared_libs: [ |
| 419 | "libartd-compiler", |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 420 | "libartd-simulator-container", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 421 | "libvixld-arm", |
| 422 | "libvixld-arm64", |
| 423 | |
| 424 | "libbacktrace", |
| 425 | "libnativeloader", |
| 426 | ], |
Colin Cross | 1b49910 | 2017-06-27 10:22:43 -0700 | [diff] [blame] | 427 | |
Andreas Gampe | 238e8fc | 2017-11-01 17:10:10 -0700 | [diff] [blame] | 428 | include_dirs: [ |
| 429 | "external/zlib", |
| 430 | ], |
| 431 | |
Colin Cross | 1b49910 | 2017-06-27 10:22:43 -0700 | [diff] [blame] | 432 | target: { |
| 433 | host: { |
| 434 | shared_libs: [ |
| 435 | "libartd-simulator", |
| 436 | ], |
| 437 | }, |
| 438 | }, |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 439 | } |
| 440 | |
| 441 | art_cc_test { |
| 442 | name: "art_compiler_host_tests", |
| 443 | device_supported: false, |
| 444 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 445 | "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 446 | ], |
| 447 | codegen: { |
| 448 | arm: { |
| 449 | srcs: [ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 450 | "utils/assembler_thumb_test.cc", |
| 451 | ], |
| 452 | }, |
| 453 | mips: { |
| 454 | srcs: [ |
Goran Jakovljevic | 35dfcaa | 2016-09-22 09:26:01 +0200 | [diff] [blame] | 455 | "optimizing/emit_swap_mips_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 456 | "utils/mips/assembler_mips_test.cc", |
Lena Djokic | 2e0a7e5 | 2017-07-06 11:55:24 +0200 | [diff] [blame] | 457 | "utils/mips/assembler_mips32r5_test.cc", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 458 | "utils/mips/assembler_mips32r6_test.cc", |
| 459 | ], |
| 460 | }, |
| 461 | mips64: { |
| 462 | srcs: [ |
| 463 | "utils/mips64/assembler_mips64_test.cc", |
| 464 | ], |
| 465 | }, |
| 466 | x86: { |
| 467 | srcs: [ |
| 468 | "utils/x86/assembler_x86_test.cc", |
| 469 | ], |
| 470 | }, |
| 471 | x86_64: { |
| 472 | srcs: [ |
| 473 | "utils/x86_64/assembler_x86_64_test.cc", |
| 474 | ], |
| 475 | }, |
| 476 | }, |
| 477 | shared_libs: [ |
| 478 | "libartd-compiler", |
| 479 | "libvixld-arm", |
| 480 | "libvixld-arm64", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 481 | ], |
| 482 | } |