| Index: mojo/public/dart/rules.gni
|
| diff --git a/mojo/public/dart/rules.gni b/mojo/public/dart/rules.gni
|
| index f02904109ed821f551f33aabbbcf58af3fa179fb..5074559f7c9743b8b04ac46d0ed2180b8ed49910 100644
|
| --- a/mojo/public/dart/rules.gni
|
| +++ b/mojo/public/dart/rules.gni
|
| @@ -9,6 +9,7 @@
|
| # - dartzip_package
|
| # - dartzip_packaged_application
|
|
|
| +import("../mojo.gni")
|
| import("//build/module_args/mojo.gni")
|
| import("//build/module_args/dart.gni")
|
|
|
| @@ -16,6 +17,13 @@ template("dartx") {
|
| bundle_prefix = target_name
|
| bundle = "$target_gen_dir/${bundle_prefix}.dartx"
|
| snapshot = "$target_gen_dir/${bundle_prefix}_snapshot.bin"
|
| +
|
| + if (mojo_use_prebuilt_dart_snapshotter) {
|
| + data_deps = [ rebase_path("mojo/public/tools:copy_dart_snapshotter",
|
| + ".",
|
| + mojo_root) ]
|
| + }
|
| +
|
| dart_snapshotter = "$root_out_dir/dart_snapshotter"
|
| if (current_toolchain != host_toolchain) {
|
| toolchain_name = get_label_info(host_toolchain, "name")
|
|
|