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

Unified Diff: runtime/bin/BUILD.gn

Issue 2774993002: Standalone support for AOT as dylibs on Fuchsia. (Closed)
Patch Set: gn format 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..fd47d214c87343a9efcd7de3fde711e5a51ba4f3 100644
--- a/runtime/bin/BUILD.gn
+++ b/runtime/bin/BUILD.gn
@@ -4,6 +4,7 @@
import("gypi_contents.gni")
import("../runtime_args.gni")
+import("../../build/compiled_action.gni")
# Generate a resources.cc file for the service isolate without Observatory.
action("gen_resources_cc") {
@@ -691,14 +692,47 @@ 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",
]
}
+
+ hello_fuchsia_assembly = "$target_gen_dir/hello_fuchsia.S"
+
+ compiled_action("hello_fuchsia_assembly") {
+ inputs = [
+ hello_fuchsia_source,
+ ]
+ outputs = [
+ hello_fuchsia_assembly,
+ ]
+ tool = ":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