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