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

Unified Diff: runtime/bin/BUILD.gn

Issue 2655173002: Create an app snapshot of the Dart front end. (Closed)
Patch Set: undo rename of create_snapshot_file.py Created 3 years, 11 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 | « BUILD.gn ('k') | runtime/bin/bin.gypi » ('j') | runtime/bin/bin.gypi » ('J')
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 c3140f0d76a31fff5b21c9b7677f6a0442628b11..c291bd58ce75b75c57dad630a721a45637ff21b6 100644
--- a/runtime/bin/BUILD.gn
+++ b/runtime/bin/BUILD.gn
@@ -489,6 +489,41 @@ action("generate_snapshot_bin") {
]
}
+action("generate_dfe_snapshot") {
+ deps = [
+ "../bin:dart($host_toolchain)",
+ "../vm:patched_sdk($host_toolchain)",
+ ]
+
+ package_map = rebase_path("../../.packages")
+ dfe_script = rebase_path("../tools/kernel-service.dart")
+ dfe_snapshot = "$root_out_dir/kernel-service.dart.snapshot"
+ training_script =
+ "file://" + rebase_path("../../pkg/compiler/lib/src/dart2js.dart")
+ dart_dir = get_label_info("../bin:dart($host_toolchain)", "root_out_dir")
+ dart_path = rebase_path("$dart_dir/dart")
+
+ inputs = [
+ package_map,
+ dfe_script,
+ ]
+
+ outputs = [
+ dfe_snapshot,
+ ]
+
+ script = rebase_path("../../build/gn_run_binary.py")
+ args = [
+ "exec_script",
+ dart_path,
+ "--snapshot=" + rebase_path(dfe_snapshot),
+ "--snapshot-kind=app-jit",
+ "--packages=" + package_map,
+ dfe_script,
+ training_script,
+ ]
+}
+
action("generate_snapshot_file") {
deps = [
":generate_snapshot_bin",
« no previous file with comments | « BUILD.gn ('k') | runtime/bin/bin.gypi » ('j') | runtime/bin/bin.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698