Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2011 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 17 | art_cc_defaults { |
| 18 | name: "libart-dex2oat-defaults", |
| 19 | defaults: ["art_defaults"], |
| 20 | host_supported: true, |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 21 | srcs: [ |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 22 | "dex/dex_to_dex_compiler.cc", |
| 23 | "dex/quick_compiler_callbacks.cc", |
| 24 | "driver/compiler_driver.cc", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 25 | "linker/elf_writer.cc", |
| 26 | "linker/elf_writer_quick.cc", |
| 27 | "linker/image_writer.cc", |
| 28 | "linker/multi_oat_relative_patcher.cc", |
| 29 | "linker/oat_writer.cc", |
Vladimir Marko | 6d66fcf | 2018-04-12 13:15:27 +0100 | [diff] [blame] | 30 | "linker/relative_patcher.cc", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 31 | ], |
Vladimir Marko | 6d66fcf | 2018-04-12 13:15:27 +0100 | [diff] [blame] | 32 | |
| 33 | codegen: { |
| 34 | arm: { |
| 35 | srcs: [ |
| 36 | "linker/arm/relative_patcher_arm_base.cc", |
| 37 | "linker/arm/relative_patcher_thumb2.cc", |
| 38 | ], |
| 39 | }, |
| 40 | arm64: { |
| 41 | srcs: [ |
| 42 | "linker/arm64/relative_patcher_arm64.cc", |
| 43 | ], |
| 44 | }, |
| 45 | mips: { |
| 46 | srcs: [ |
| 47 | "linker/mips/relative_patcher_mips.cc", |
| 48 | ], |
| 49 | }, |
| 50 | mips64: { |
| 51 | srcs: [ |
| 52 | "linker/mips64/relative_patcher_mips64.cc", |
| 53 | ], |
| 54 | }, |
| 55 | x86: { |
| 56 | srcs: [ |
| 57 | "linker/x86/relative_patcher_x86.cc", |
| 58 | "linker/x86/relative_patcher_x86_base.cc", |
| 59 | ], |
| 60 | }, |
| 61 | x86_64: { |
| 62 | srcs: [ |
| 63 | "linker/x86_64/relative_patcher_x86_64.cc", |
| 64 | ], |
| 65 | }, |
| 66 | }, |
| 67 | |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 68 | target: { |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 69 | android: { |
Vladimir Marko | c10a0c6 | 2018-11-16 11:39:22 +0000 | [diff] [blame] | 70 | static_libs: [ |
| 71 | "libz", |
| 72 | ], |
| 73 | }, |
| 74 | host: { |
| 75 | shared_libs: [ |
| 76 | "libz", |
| 77 | ], |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 78 | }, |
| 79 | }, |
| 80 | generated_sources: ["art_dex2oat_operator_srcs"], |
| 81 | shared_libs: [ |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 82 | "libbase", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 83 | ], |
| 84 | export_include_dirs: ["."], |
| 85 | |
| 86 | // For SHA-1 checksumming of build ID |
| 87 | static: { |
| 88 | whole_static_libs: ["libcrypto"], |
| 89 | }, |
| 90 | shared: { |
| 91 | shared_libs: ["libcrypto"], |
| 92 | }, |
| 93 | } |
| 94 | |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 95 | cc_defaults { |
| 96 | name: "libart-dex2oat_static_base_defaults", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 97 | static_libs: [ |
| 98 | "libbase", |
Vladimir Marko | c10a0c6 | 2018-11-16 11:39:22 +0000 | [diff] [blame] | 99 | "libz", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 100 | ], |
| 101 | } |
| 102 | |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 103 | gensrcs { |
| 104 | name: "art_dex2oat_operator_srcs", |
Alex Light | b69d2d3 | 2018-02-21 13:37:17 -0800 | [diff] [blame] | 105 | cmd: "$(location generate_operator_out) art/dex2oat $(in) > $(out)", |
| 106 | tools: ["generate_operator_out"], |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 107 | srcs: [ |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 108 | "dex/dex_to_dex_compiler.h", |
| 109 | "driver/compiler_driver.h", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 110 | "linker/image_writer.h", |
| 111 | ], |
| 112 | output_extension: "operator_out.cc", |
| 113 | } |
| 114 | |
Steven Moreland | 73030ed | 2019-01-03 14:23:28 -0800 | [diff] [blame] | 115 | art_cc_library_static { |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 116 | name: "libart-dex2oat", |
| 117 | defaults: ["libart-dex2oat-defaults"], |
| 118 | shared_libs: [ |
| 119 | "libart-compiler", |
Andreas Gampe | 772bd2f | 2018-01-26 12:56:22 -0800 | [diff] [blame] | 120 | "libart-dexlayout", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 121 | "libart", |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 122 | "libartpalette", |
Andreas Gampe | 11bf265 | 2018-07-10 14:21:15 -0700 | [diff] [blame] | 123 | "libprofile", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 124 | ], |
| 125 | } |
| 126 | |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 127 | cc_defaults { |
| 128 | name: "libart-dex2oat_static_defaults", |
| 129 | defaults: [ |
| 130 | "libart-dex2oat_static_base_defaults", |
| 131 | "libart_static_defaults", |
| 132 | "libprofile_static_defaults", |
| 133 | ], |
| 134 | static_libs: [ |
| 135 | "libart-compiler", |
| 136 | "libart-dexlayout", |
| 137 | "libart-dex2oat", |
| 138 | ], |
| 139 | } |
| 140 | |
Steven Moreland | 73030ed | 2019-01-03 14:23:28 -0800 | [diff] [blame] | 141 | art_cc_library_static { |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 142 | name: "libartd-dex2oat", |
| 143 | defaults: [ |
| 144 | "art_debug_defaults", |
| 145 | "libart-dex2oat-defaults", |
| 146 | ], |
| 147 | shared_libs: [ |
| 148 | "libartd-compiler", |
Andreas Gampe | 772bd2f | 2018-01-26 12:56:22 -0800 | [diff] [blame] | 149 | "libartd-dexlayout", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 150 | "libartd", |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 151 | "libartpalette", |
Andreas Gampe | 11bf265 | 2018-07-10 14:21:15 -0700 | [diff] [blame] | 152 | "libprofiled", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 153 | ], |
| 154 | } |
| 155 | |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 156 | cc_defaults { |
| 157 | name: "libartd-dex2oat_static_defaults", |
| 158 | defaults: [ |
| 159 | "libart-dex2oat_static_base_defaults", |
| 160 | "libartd_static_defaults", |
| 161 | "libprofiled_static_defaults", |
| 162 | ], |
| 163 | static_libs: [ |
| 164 | "libartd-compiler", |
| 165 | "libartd-dexlayout", |
| 166 | "libartd-dex2oat", |
| 167 | ], |
| 168 | } |
| 169 | |
Andreas Gampe | 7b56591 | 2017-03-20 15:48:52 -0700 | [diff] [blame] | 170 | cc_library_headers { |
| 171 | name: "dex2oat_headers", |
| 172 | host_supported: true, |
| 173 | export_include_dirs: ["include"], |
| 174 | } |
| 175 | |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 176 | cc_defaults { |
| 177 | name: "dex2oat-defaults", |
| 178 | host_supported: true, |
| 179 | defaults: ["art_defaults"], |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 180 | srcs: [ |
| 181 | "dex2oat_options.cc", |
| 182 | "dex2oat.cc", |
| 183 | ], |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 184 | |
| 185 | target: { |
| 186 | android: { |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 187 | // Use the 32-bit version of dex2oat on devices. |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 188 | compile_multilib: "prefer32", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 189 | }, |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 190 | }, |
Andreas Gampe | 3157fc2 | 2017-08-23 09:43:46 -0700 | [diff] [blame] | 191 | header_libs: [ |
| 192 | "dex2oat_headers", |
| 193 | "art_cmdlineparser_headers", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 194 | ], |
| 195 | } |
| 196 | |
Pirama Arumuga Nainar | 42d5805 | 2018-04-18 22:59:36 -0700 | [diff] [blame] | 197 | cc_defaults { |
| 198 | name: "dex2oat-pgo-defaults", |
| 199 | pgo: { |
| 200 | instrumentation: true, |
| 201 | benchmarks: ["dex2oat"], |
| 202 | }, |
| 203 | target: { |
| 204 | android_arm64: { |
| 205 | pgo: { |
| 206 | profile_file: "art/dex2oat_arm_arm64.profdata", |
| 207 | }, |
| 208 | }, |
| 209 | android_arm: { |
| 210 | pgo: { |
| 211 | profile_file: "art/dex2oat_arm_arm64.profdata", |
| 212 | }, |
| 213 | }, |
| 214 | android_x86_64: { |
| 215 | pgo: { |
| 216 | profile_file: "art/dex2oat_x86_x86_64.profdata", |
| 217 | }, |
| 218 | }, |
| 219 | android_x86: { |
| 220 | pgo: { |
| 221 | profile_file: "art/dex2oat_x86_x86_64.profdata", |
| 222 | }, |
| 223 | }, |
Pirama Arumuga Nainar | fc1de87 | 2018-04-20 14:11:12 -0700 | [diff] [blame] | 224 | android_mips64: { |
| 225 | pgo: { |
| 226 | profile_file: "art/dex2oat_mips_mips64.profdata", |
| 227 | }, |
| 228 | }, |
| 229 | android_mips: { |
| 230 | pgo: { |
| 231 | profile_file: "art/dex2oat_mips_mips64.profdata", |
| 232 | }, |
| 233 | }, |
Pirama Arumuga Nainar | 42d5805 | 2018-04-18 22:59:36 -0700 | [diff] [blame] | 234 | }, |
| 235 | } |
| 236 | |
Nicolas Geoffray | afa7e45 | 2016-09-14 10:26:56 +0100 | [diff] [blame] | 237 | art_cc_binary { |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 238 | name: "dex2oat", |
| 239 | defaults: [ |
| 240 | "dex2oat-defaults", |
Pirama Arumuga Nainar | 42d5805 | 2018-04-18 22:59:36 -0700 | [diff] [blame] | 241 | "dex2oat-pgo-defaults", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 242 | ], |
| 243 | shared_libs: [ |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 244 | "libprofile", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 245 | "libart-compiler", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 246 | "libart-dexlayout", |
| 247 | "libart", |
David Sehr | 0225f8e | 2018-01-31 08:52:24 +0000 | [diff] [blame] | 248 | "libdexfile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 249 | "libartbase", |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 250 | "libartpalette", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 251 | "libbase", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 252 | "libsigchain", |
| 253 | ], |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 254 | static_libs: [ |
| 255 | "libart-dex2oat", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 256 | ], |
Pirama Arumuga Nainar | 02f6ed6 | 2018-01-04 10:52:42 -0800 | [diff] [blame] | 257 | |
| 258 | pgo: { |
Pirama Arumuga Nainar | 42d5805 | 2018-04-18 22:59:36 -0700 | [diff] [blame] | 259 | // Additional cflags just for dex2oat during PGO instrumentation |
Pirama Arumuga Nainar | 02f6ed6 | 2018-01-04 10:52:42 -0800 | [diff] [blame] | 260 | cflags: [ |
| 261 | // Ignore frame-size increase resulting from instrumentation. |
| 262 | "-Wno-frame-larger-than=", |
| 263 | "-DART_PGO_INSTRUMENTATION", |
| 264 | ], |
Yi Kong | 1d894d9 | 2018-01-19 22:01:14 -0800 | [diff] [blame] | 265 | }, |
| 266 | target: { |
| 267 | android: { |
| 268 | lto: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 269 | thin: true, |
Yi Kong | 1d894d9 | 2018-01-19 22:01:14 -0800 | [diff] [blame] | 270 | }, |
Vladimir Marko | c10a0c6 | 2018-11-16 11:39:22 +0000 | [diff] [blame] | 271 | static_libs: [ |
| 272 | "libz", |
| 273 | ], |
| 274 | }, |
| 275 | host: { |
| 276 | shared_libs: [ |
| 277 | "libz", |
| 278 | ], |
Yi Kong | 1d894d9 | 2018-01-19 22:01:14 -0800 | [diff] [blame] | 279 | }, |
| 280 | }, |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 281 | } |
| 282 | |
Nicolas Geoffray | afa7e45 | 2016-09-14 10:26:56 +0100 | [diff] [blame] | 283 | art_cc_binary { |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 284 | name: "dex2oatd", |
| 285 | defaults: [ |
| 286 | "art_debug_defaults", |
| 287 | "dex2oat-defaults", |
| 288 | ], |
| 289 | shared_libs: [ |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 290 | "libprofiled", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 291 | "libartd-compiler", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 292 | "libartd-dexlayout", |
| 293 | "libartd", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 294 | "libdexfiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 295 | "libartbased", |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 296 | "libartpalette", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 297 | "libbase", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 298 | "libsigchain", |
| 299 | ], |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 300 | static_libs: [ |
| 301 | "libartd-dex2oat", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 302 | ], |
Vladimir Marko | c10a0c6 | 2018-11-16 11:39:22 +0000 | [diff] [blame] | 303 | target: { |
| 304 | android: { |
| 305 | static_libs: [ |
| 306 | "libz", |
| 307 | ], |
Roland Levillain | 9a45d01 | 2019-06-05 13:54:02 +0100 | [diff] [blame] | 308 | compile_multilib: "prefer32", |
Vladimir Marko | c10a0c6 | 2018-11-16 11:39:22 +0000 | [diff] [blame] | 309 | }, |
| 310 | host: { |
| 311 | shared_libs: [ |
| 312 | "libz", |
| 313 | ], |
Alex Light | 907001d | 2019-01-17 00:16:04 +0000 | [diff] [blame] | 314 | compile_multilib: "both", |
Roland Levillain | 9a45d01 | 2019-06-05 13:54:02 +0100 | [diff] [blame] | 315 | symlink_preferred_arch: true, |
Vladimir Marko | c10a0c6 | 2018-11-16 11:39:22 +0000 | [diff] [blame] | 316 | }, |
Roland Levillain | 9a45d01 | 2019-06-05 13:54:02 +0100 | [diff] [blame] | 317 | linux_glibc_x86: { |
Alex Light | 907001d | 2019-01-17 00:16:04 +0000 | [diff] [blame] | 318 | suffix: "32", |
| 319 | }, |
Roland Levillain | 9a45d01 | 2019-06-05 13:54:02 +0100 | [diff] [blame] | 320 | linux_glibc_x86_64: { |
| 321 | suffix: "64", |
| 322 | }, |
| 323 | linux_bionic_x86_64: { |
Alex Light | 907001d | 2019-01-17 00:16:04 +0000 | [diff] [blame] | 324 | suffix: "64", |
| 325 | }, |
| 326 | }, |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 327 | } |
| 328 | |
Andreas Gampe | 11bf265 | 2018-07-10 14:21:15 -0700 | [diff] [blame] | 329 | cc_defaults { |
| 330 | name: "dex2oats-defaults", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 331 | device_supported: false, |
| 332 | static_executable: true, |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 333 | defaults: [ |
| 334 | "dex2oat-defaults", |
| 335 | ], |
Colin Cross | aa63aa2 | 2016-09-13 14:07:00 -0700 | [diff] [blame] | 336 | target: { |
| 337 | darwin: { |
| 338 | enabled: false, |
| 339 | }, |
| 340 | }, |
Colin Cross | 2cfc4ba | 2016-09-13 16:55:55 -0700 | [diff] [blame] | 341 | ldflags: [ |
| 342 | // We need this because GC stress mode makes use of |
| 343 | // _Unwind_GetIP and _Unwind_Backtrace and the symbols are also |
| 344 | // defined in libgcc_eh.a(unwind-dw2.o) |
| 345 | // TODO: Having this is not ideal as it might obscure errors. |
| 346 | // Try to get rid of it. |
| 347 | "-z muldefs", |
| 348 | ], |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 349 | static_libs: [ |
| 350 | "libbase", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 351 | "libsigchain_dummy", |
Vladimir Marko | c10a0c6 | 2018-11-16 11:39:22 +0000 | [diff] [blame] | 352 | "libz", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 353 | ], |
Andreas Gampe | 11bf265 | 2018-07-10 14:21:15 -0700 | [diff] [blame] | 354 | } |
| 355 | |
| 356 | art_cc_binary { |
| 357 | name: "dex2oats", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 358 | defaults: [ |
| 359 | "dex2oats-defaults", |
| 360 | "libart_static_defaults", |
| 361 | "libart-compiler_static_defaults", |
| 362 | "libart-dexlayout_static_defaults", |
| 363 | "libartbase_static_defaults", |
| 364 | "libdexfile_static_defaults", |
| 365 | "libprofile_static_defaults", |
| 366 | "libart-dex2oat_static_defaults", |
Andreas Gampe | 11bf265 | 2018-07-10 14:21:15 -0700 | [diff] [blame] | 367 | ], |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 368 | } |
| 369 | |
Nicolas Geoffray | afa7e45 | 2016-09-14 10:26:56 +0100 | [diff] [blame] | 370 | art_cc_binary { |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 371 | name: "dex2oatds", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 372 | defaults: [ |
| 373 | "art_debug_defaults", |
Andreas Gampe | 11bf265 | 2018-07-10 14:21:15 -0700 | [diff] [blame] | 374 | "dex2oats-defaults", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 375 | "libartd_static_defaults", |
| 376 | "libartd-compiler_static_defaults", |
| 377 | "libartd-dexlayout_static_defaults", |
| 378 | "libartbased_static_defaults", |
| 379 | "libdexfiled_static_defaults", |
| 380 | "libprofiled_static_defaults", |
| 381 | "libartd-dex2oat_static_defaults", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 382 | ], |
Colin Cross | aa63aa2 | 2016-09-13 14:07:00 -0700 | [diff] [blame] | 383 | target: { |
Pirama Arumuga Nainar | 6f5b4d2 | 2018-04-20 12:02:02 -0700 | [diff] [blame] | 384 | linux_glibc_x86_64: { |
| 385 | use_clang_lld: true, |
| 386 | }, |
Colin Cross | aa63aa2 | 2016-09-13 14:07:00 -0700 | [diff] [blame] | 387 | }, |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 388 | } |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 389 | |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 390 | art_cc_library_static { |
| 391 | name: "libart-dex2oat-gtest", |
| 392 | defaults: ["libart-gtest-defaults"], |
| 393 | srcs: [ |
| 394 | "common_compiler_driver_test.cc", |
| 395 | ], |
| 396 | shared_libs: [ |
| 397 | "libartd-compiler", |
| 398 | "libartd-disassembler", |
| 399 | "libart-compiler-gtest", |
| 400 | "libart-runtime-gtest", |
| 401 | "libbase", |
| 402 | ], |
| 403 | static_libs: [ |
| 404 | "libartd-dex2oat", |
| 405 | ], |
| 406 | } |
| 407 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 408 | art_cc_test { |
| 409 | name: "art_dex2oat_tests", |
| 410 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 411 | "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 412 | ], |
Mathieu Chartier | f70fe3d | 2017-06-21 15:24:02 -0700 | [diff] [blame] | 413 | srcs: [ |
| 414 | "dex2oat_test.cc", |
| 415 | "dex2oat_image_test.cc", |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 416 | "dex/dex_to_dex_decompiler_test.cc", |
| 417 | "driver/compiler_driver_test.cc", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 418 | "linker/elf_writer_test.cc", |
| 419 | "linker/image_test.cc", |
| 420 | "linker/image_write_read_test.cc", |
Vladimir Marko | f3c52b4 | 2017-11-17 17:32:12 +0000 | [diff] [blame] | 421 | "linker/index_bss_mapping_encoder_test.cc", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 422 | "linker/multi_oat_relative_patcher_test.cc", |
| 423 | "linker/oat_writer_test.cc", |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 424 | "verifier_deps_test.cc", |
Mathieu Chartier | f70fe3d | 2017-06-21 15:24:02 -0700 | [diff] [blame] | 425 | ], |
Vladimir Marko | 6d66fcf | 2018-04-12 13:15:27 +0100 | [diff] [blame] | 426 | |
| 427 | codegen: { |
| 428 | arm: { |
| 429 | srcs: [ |
| 430 | "linker/arm/relative_patcher_thumb2_test.cc", |
| 431 | ], |
| 432 | }, |
| 433 | arm64: { |
| 434 | srcs: [ |
| 435 | "linker/arm64/relative_patcher_arm64_test.cc", |
| 436 | ], |
| 437 | }, |
| 438 | mips: { |
| 439 | srcs: [ |
| 440 | "linker/mips/relative_patcher_mips_test.cc", |
| 441 | "linker/mips/relative_patcher_mips32r6_test.cc", |
| 442 | ], |
| 443 | }, |
| 444 | mips64: { |
| 445 | srcs: [ |
| 446 | "linker/mips64/relative_patcher_mips64_test.cc", |
| 447 | ], |
| 448 | }, |
| 449 | x86: { |
| 450 | srcs: [ |
| 451 | "linker/x86/relative_patcher_x86_test.cc", |
| 452 | ], |
| 453 | }, |
| 454 | x86_64: { |
| 455 | srcs: [ |
| 456 | "linker/x86_64/relative_patcher_x86_64_test.cc", |
| 457 | ], |
| 458 | }, |
| 459 | }, |
| 460 | |
Andreas Gampe | f788297 | 2017-03-20 16:35:24 -0700 | [diff] [blame] | 461 | header_libs: ["dex2oat_headers"], |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 462 | shared_libs: [ |
Martin Stjernholm | 4355162 | 2018-11-09 15:14:54 +0000 | [diff] [blame] | 463 | "libartbased", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 464 | "libartd-compiler", |
| 465 | "libartd-dexlayout", |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 466 | "libartpalette", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 467 | "libbase", |
Martin Stjernholm | 4355162 | 2018-11-09 15:14:54 +0000 | [diff] [blame] | 468 | "libprofiled", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 469 | "libsigchain", |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 470 | "libziparchive", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 471 | ], |
| 472 | static_libs: [ |
Vladimir Marko | 327497e | 2019-03-04 12:53:20 +0000 | [diff] [blame] | 473 | "libart-dex2oat-gtest", |
Vladimir Marko | 7452797 | 2016-11-29 15:57:32 +0000 | [diff] [blame] | 474 | "libartd-dex2oat", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 475 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 476 | } |