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

Unified Diff: mojo/public/dart/rules.gni

Issue 1607613007: Regenerate .mojo file if any dependent .dart sources change (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 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 | « mojo/dart/embedder/snapshotter/main.cc ('k') | mojo/public/tools/dart_snapshotter.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/rules.gni
diff --git a/mojo/public/dart/rules.gni b/mojo/public/dart/rules.gni
index 8e4fbc87b479c2b9e5e94ceeb948be9a7929a6a8..8a06b7003fec8cfb07ac3c0e09fc3601bb87b5de 100644
--- a/mojo/public/dart/rules.gni
+++ b/mojo/public/dart/rules.gni
@@ -42,6 +42,8 @@ template("dartx") {
script =
rebase_path("mojo/public/tools/dart_snapshotter.py", ".", mojo_sdk_root)
+ depfile = "$target_gen_dir/${bundle_prefix}_snapshot.bin.d"
+
args = [
rebase_path(dart_snapshotter),
rebase_path(main_dart),
@@ -49,6 +51,10 @@ template("dartx") {
rebase_path("$root_gen_dir/dart-pkg/packages"),
"--snapshot",
rebase_path(snapshot),
+ "--depfile",
+ rebase_path(depfile),
+ "--build-output",
+ "${bundle_prefix}_snapshot.bin",
]
deps = [
« no previous file with comments | « mojo/dart/embedder/snapshotter/main.cc ('k') | mojo/public/tools/dart_snapshotter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698