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

Unified Diff: utils/application_snapshot.gni

Issue 2995053002: Allow caller of application_snapshot to override .packages (Closed)
Patch Set: Group arg logic together Created 3 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/application_snapshot.gni
diff --git a/utils/application_snapshot.gni b/utils/application_snapshot.gni
index f2d83193cddd1e7a305d2ddd2085ee090af1f4e6..41de0268ec6a687b44f5c4f74fc6ba283b964746 100644
--- a/utils/application_snapshot.gni
+++ b/utils/application_snapshot.gni
@@ -32,6 +32,11 @@ template("application_snapshot") {
if (defined(invoker.inputs)) {
extra_inputs += invoker.inputs
}
+ if (defined(invoker.dot_packages)) {
+ dot_packages = invoker.dot_packages
+ } else {
+ dot_packages = rebase_path("$_dart_root/.packages")
+ }
compiled_action(target_name) {
tool = "$_dart_root/runtime/bin:dart"
deps = extra_deps + [ "$_dart_root/pkg:pkg_files_stamp" ]
@@ -46,7 +51,6 @@ template("application_snapshot") {
output,
]
- dot_packages = rebase_path("$_dart_root/.packages")
abs_output = rebase_path(output)
main_file = rebase_path(main_dart)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698