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