Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: runtime/bin/BUILD.gn

Issue 2774993002: Standalone support for AOT as dylibs on Fuchsia. (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/extensions_fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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") {
« no previous file with comments | « no previous file | runtime/bin/extensions_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698