OLD | NEW |
1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 # This target will be built if no target is specified when invoking ninja. | 5 # This target will be built if no target is specified when invoking ninja. |
6 group("default") { | 6 group("default") { |
7 if (defined(is_fuchsia) && (is_fuchsia || is_fuchsia_host)) { | 7 if (defined(is_fuchsia) && (is_fuchsia || is_fuchsia_host)) { |
8 # Fuchsia has run_vm_tests marked testonly. | 8 # Fuchsia has run_vm_tests marked testonly. |
9 testonly = true | 9 testonly = true |
10 } | 10 } |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 action("generate_dart_test_image") { | 231 action("generate_dart_test_image") { |
232 testonly = true | 232 testonly = true |
233 deps = [ | 233 deps = [ |
234 ":generate_dart_test_manifest", | 234 ":generate_dart_test_manifest", |
235 "runtime/bin:dart", | 235 "runtime/bin:dart", |
236 "runtime/bin:process_test", | 236 "runtime/bin:process_test", |
237 "runtime/bin:run_vm_tests", | 237 "runtime/bin:run_vm_tests", |
238 ] | 238 ] |
239 | 239 |
| 240 # Compute path to magenta bootdata.bin |
| 241 if (current_cpu == "arm64") { |
| 242 magenta_bootdata = |
| 243 "//out/build-magenta/build-magenta-qemu-arm64/bootdata.bin" |
| 244 } else if (current_cpu == "x64") { |
| 245 magenta_bootdata = |
| 246 "//out/build-magenta/build-magenta-pc-x86-64/bootdata.bin" |
| 247 } else { |
| 248 assert(false, "unable to determine path to magenta's bootdata.bin") |
| 249 } |
| 250 |
240 input = "$target_gen_dir/dart_test_tree.manifest" | 251 input = "$target_gen_dir/dart_test_tree.manifest" |
241 inputs = [ | 252 inputs = [ |
| 253 magenta_bootdata, |
242 input, | 254 input, |
243 ] | 255 ] |
244 | 256 |
245 output = "$root_out_dir/dart_test_tree.bin" | 257 output = "$root_out_dir/dart_test_tree.bin" |
246 outputs = [ | 258 outputs = [ |
247 output, | 259 output, |
248 ] | 260 ] |
249 | 261 |
250 script = "//packages/gn/make_bootfs.py" | 262 script = "//packages/gn/make_bootfs.py" |
251 args = [ | 263 args = [ |
252 "--manifest", | 264 "--manifest", |
253 rebase_path(input), | 265 rebase_path(input), |
254 "--output-file", | 266 "--output-file", |
255 rebase_path(output), | 267 rebase_path(output), |
256 "--build-id-map", | 268 "--build-id-map", |
257 rebase_path("$target_gen_dir/build_id_map"), | 269 rebase_path("$target_gen_dir/build_id_map"), |
258 "--compress", | 270 "--compress", |
| 271 "--pre-binaries", |
| 272 rebase_path(magenta_bootdata), |
259 ] | 273 ] |
260 } | 274 } |
261 } | 275 } |
262 } | 276 } |
OLD | NEW |