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