Chromium Code Reviews| Index: runtime/bin/BUILD.gn |
| diff --git a/runtime/bin/BUILD.gn b/runtime/bin/BUILD.gn |
| index b9d095894f3a9b5e69ce323b9010dbe7806ee65c..44b001496fa2ec4d27fe74847f4e6b2112cf911d 100644 |
| --- a/runtime/bin/BUILD.gn |
| +++ b/runtime/bin/BUILD.gn |
| @@ -691,14 +691,54 @@ dart_executable("dart_bootstrap") { |
| } |
| if (defined(is_fuchsia) && is_fuchsia) { |
| + hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") |
| + |
| copy("hello_fuchsia") { |
| sources = [ |
| - "../tests/vm/dart/hello_fuchsia_test.dart", |
| + hello_fuchsia_source, |
| ] |
| outputs = [ |
| "$root_out_dir/hello_fuchsia.dart", |
| ] |
| } |
| + |
| + dart_bootstrap_label = "//dart/runtime/bin:dart_bootstrap($host_toolchain)" |
| + dart_bootstrap_dir = get_label_info(dart_bootstrap_label, "root_out_dir") |
| + dart_bootstrap = "$dart_bootstrap_dir/dart_bootstrap" |
| + |
| + hello_fuchsia_assembly = "$target_gen_dir/hello_fuchsia.S" |
| + |
| + action("hello_fuchsia_assembly") { |
|
zra
2017/03/24 21:02:37
Can this use compiled_action?
https://github.com/
rmacnak
2017/03/24 21:24:12
Yes. Updated.
|
| + deps = [ |
| + dart_bootstrap_label, |
| + ] |
| + inputs = [ |
| + hello_fuchsia_source, |
| + ] |
| + outputs = [ |
| + hello_fuchsia_assembly, |
| + ] |
| + script = rebase_path(dart_bootstrap) |
| + args = [ |
| + "--snapshot-kind=app-aot", |
| + "--snapshot=" + rebase_path(hello_fuchsia_assembly), |
| + hello_fuchsia_source, |
| + ] |
| + } |
| + |
| + shared_library("hello_fuchsia_dylib") { |
| + deps = [ |
| + ":hello_fuchsia_assembly", |
| + ] |
| + sources = [ |
| + hello_fuchsia_assembly, |
| + ] |
| + cflags = [ |
| + "-nostdlib", |
| + "-nostartfiles", |
| + ] |
| + output_name = "hello_fuchsia" |
| + } |
| } |
| executable("process_test") { |