OLD | NEW |
1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import("//build/compiled_action.gni") | 5 import("../build/compiled_action.gni") |
6 | 6 |
7 _dart_root = rebase_path("..") | 7 _dart_root = rebase_path("..") |
8 | 8 |
9 template("application_snapshot") { | 9 template("application_snapshot") { |
10 assert(defined(invoker.main_dart), "Must specify 'main_dart'") | 10 assert(defined(invoker.main_dart), "Must specify 'main_dart'") |
11 assert(defined(invoker.training_args), "Must specify 'training_args'") | 11 assert(defined(invoker.training_args), "Must specify 'training_args'") |
12 main_dart = invoker.main_dart | 12 main_dart = invoker.main_dart |
13 training_args = invoker.training_args | 13 training_args = invoker.training_args |
14 name = target_name | 14 name = target_name |
15 if (defined(invoker.name)) { | 15 if (defined(invoker.name)) { |
(...skipping 26 matching lines...) Expand all Loading... |
42 main_file = rebase_path(main_dart) | 42 main_file = rebase_path(main_dart) |
43 | 43 |
44 args = [ | 44 args = [ |
45 "--packages=$dot_packages", | 45 "--packages=$dot_packages", |
46 "--snapshot=$abs_output", | 46 "--snapshot=$abs_output", |
47 "--snapshot-kind=app-jit", | 47 "--snapshot-kind=app-jit", |
48 main_file, | 48 main_file, |
49 ] + training_args | 49 ] + training_args |
50 } | 50 } |
51 } | 51 } |
OLD | NEW |