[build] Fix application_snapshot.gni for uses outside of utils/xyz.

Cf. 74cff6c7df

Change-Id: I7af53019bbe4bfe3eba8fc3a4648ec70a26cbc90
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117013
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Ryan Macnak 2019-09-12 20:42:42 +00:00 committed by commit-bot@chromium.org
parent 7badd807b1
commit 351acd155d

View file

@ -78,11 +78,12 @@ template("_application_snapshot") {
# Build the kernel file using the prebuilt VM to speed up the debug and
# simulator builds.
prebuilt_dart_action(target_name + "_dill") {
deps = extra_deps + [
"../../runtime/vm:kernel_platform_files($dart_host_toolchain)",
"../../runtime/vm:vm_platform",
]
gen_kernel_script = "../../pkg/vm/bin/gen_kernel.dart"
deps =
extra_deps + [
"$_dart_root/runtime/vm:kernel_platform_files($dart_host_toolchain)",
"$_dart_root/runtime/vm:vm_platform",
]
gen_kernel_script = "$_dart_root/pkg/vm/bin/gen_kernel.dart"
platform_dill = "$root_out_dir/vm_platform_strong.dill"
inputs = extra_inputs + [
@ -91,7 +92,7 @@ template("_application_snapshot") {
main_dart,
dot_packages,
]
output = "$root_gen_dir/$name.dart.dill"
output = "$target_gen_dir/$name.dart.dill"
outputs = [
output,
]
@ -131,7 +132,7 @@ template("_application_snapshot") {
deps = extra_deps + [ ":${target_name}_dill" ]
depfile = "$output.d"
script = "$root_gen_dir/$name.dart.dill"
script = "$target_gen_dir/$name.dart.dill"
inputs = extra_inputs