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 import("build/dart_host_toolchain.gni") | 5 import("build/dart_host_toolchain.gni") |
6 | 6 |
7 # This target will be built if no target is specified when invoking ninja. | 7 # This target will be built if no target is specified when invoking ninja. |
8 group("default") { | 8 group("default") { |
9 if (is_fuchsia || is_fuchsia_host) { | 9 if (is_fuchsia || is_fuchsia_host) { |
10 # Fuchsia has run_vm_tests marked testonly. | 10 # Fuchsia has run_vm_tests marked testonly. |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 if (current_cpu == "arm64") { | 170 if (current_cpu == "arm64") { |
171 magenta_bootdata = | 171 magenta_bootdata = |
172 "//out/build-magenta/build-magenta-qemu-arm64/bootdata.bin" | 172 "//out/build-magenta/build-magenta-qemu-arm64/bootdata.bin" |
173 } else if (current_cpu == "x64") { | 173 } else if (current_cpu == "x64") { |
174 magenta_bootdata = | 174 magenta_bootdata = |
175 "//out/build-magenta/build-magenta-pc-x86-64/bootdata.bin" | 175 "//out/build-magenta/build-magenta-pc-x86-64/bootdata.bin" |
176 } else { | 176 } else { |
177 assert(false, "unable to determine path to magenta's bootdata.bin") | 177 assert(false, "unable to determine path to magenta's bootdata.bin") |
178 } | 178 } |
179 | 179 |
| 180 packages_file = "$mkbootfs_gen/packages" |
| 181 |
180 input = "$target_gen_dir/dart_test_tree.manifest" | 182 input = "$target_gen_dir/dart_test_tree.manifest" |
181 inputs = [ | 183 inputs = [ |
182 magenta_bootdata, | 184 magenta_bootdata, |
183 input, | 185 input, |
184 ] | 186 ] |
185 | 187 |
186 output = "$root_out_dir/dart_test_tree.bin" | 188 output = "$root_out_dir/dart_test_tree.bin" |
187 outputs = [ | 189 outputs = [ |
188 output, | 190 output, |
189 ] | 191 ] |
190 | 192 |
191 script = "//packages/gn/make_bootfs.py" | 193 script = "//packages/gn/make_bootfs.py" |
192 args = [ | 194 args = [ |
193 "--boot-manifest", | 195 "--boot-manifest", |
194 rebase_path(boot_manifest), | 196 rebase_path(boot_manifest), |
195 "--system-manifest", | 197 "--system-manifest", |
196 rebase_path(input), | 198 rebase_path(input), |
197 "--output-file", | 199 "--output-file", |
198 rebase_path(output), | 200 rebase_path(output), |
199 "--build-id-map", | 201 "--build-id-map", |
200 rebase_path("$target_gen_dir/build_id_map"), | 202 rebase_path("$target_gen_dir/build_id_map"), |
201 "--pre-binaries", | 203 "--pre-binaries", |
202 rebase_path(magenta_bootdata), | 204 rebase_path(magenta_bootdata), |
203 ] | 205 ] |
| 206 args += read_file(packages_file, "list lines") |
204 } | 207 } |
205 } | 208 } |
OLD | NEW |