Skip to content

Commit

Permalink
Allow caller of application_snapshot to override .packages.
Browse files Browse the repository at this point in the history
This will be used in flutter engine to build snapshot of frontend server dart app.

BUG=
R=zra@google.com

Review-Url: https://codereview.chromium.org/2995053002 .
  • Loading branch information
aam committed Aug 15, 2017
1 parent d09868c commit e25898d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/application_snapshot.gni
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand All @@ -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)

Expand Down

0 comments on commit e25898d

Please sign in to comment.