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) |