Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1220)

Side by Side Diff: utils/application_snapshot.gni

Issue 2910473003: Fix vm tests: introduce a hybrid file system so that the vm tests can find the (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | utils/kernel-service/kernel-service.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 = get_path_info("..", "abspath") 7 _dart_root = get_path_info("..", "abspath")
8 8
9 declare_args() { 9 declare_args() {
10 # Default to building app-jit snapshots. The simulator and cross builds 10 # Default to building app-jit snapshots. The simulator and cross builds
11 # override this to script snapshots to cut down on build time. 11 # override this to script snapshots to cut down on build time.
12 dart_snapshot_kind = "app-jit" 12 dart_snapshot_kind = "app-jit"
13 } 13 }
14 14
15 template("application_snapshot") { 15 template("application_snapshot") {
16 assert(defined(invoker.main_dart), "Must specify 'main_dart'") 16 assert(defined(invoker.main_dart), "Must specify 'main_dart'")
17 assert(defined(invoker.training_args), "Must specify 'training_args'") 17 assert(defined(invoker.training_args), "Must specify 'training_args'")
18 main_dart = invoker.main_dart 18 main_dart = invoker.main_dart
19 training_args = invoker.training_args 19 training_args = invoker.training_args
20 name = target_name 20 name = target_name
21 if (defined(invoker.name)) { 21 if (defined(invoker.name)) {
22 name = invoker.name 22 name = invoker.name
23 } 23 }
24 extra_deps = [] 24 extra_deps = []
25 if (defined(invoker.deps)) { 25 if (defined(invoker.deps)) {
26 extra_deps += invoker.deps 26 extra_deps += invoker.deps
27 } 27 }
28 extra_inputs = [] 28 extra_inputs = [main_dart]
Siggi Cherem (dart-lang) 2017/05/25 18:47:55 Not sure if this is the proper way to fix it, but
29 if (defined(invoker.inputs)) { 29 if (defined(invoker.inputs)) {
30 extra_inputs += invoker.inputs 30 extra_inputs += invoker.inputs
31 } 31 }
32 compiled_action(target_name) { 32 compiled_action(target_name) {
33 tool = "$_dart_root/runtime/bin:dart" 33 tool = "$_dart_root/runtime/bin:dart"
34 deps = extra_deps + [ "$_dart_root/pkg:pkg_files_stamp" ] 34 deps = extra_deps + [ "$_dart_root/pkg:pkg_files_stamp" ]
35 35
36 inputs = extra_inputs + [ 36 inputs = extra_inputs + [
37 "$_dart_root/sdk/lib/_internal/sdk_library_metadata/lib/libraries .dart", 37 "$_dart_root/sdk/lib/_internal/sdk_library_metadata/lib/libraries .dart",
38 "$root_gen_dir/pkg_files.stamp", 38 "$root_gen_dir/pkg_files.stamp",
(...skipping 16 matching lines...) Expand all
55 main_file ] 55 main_file ]
56 assert(training_args != "", "Ignoring unused argument") 56 assert(training_args != "", "Ignoring unused argument")
57 } else if (dart_snapshot_kind == "app-jit") { 57 } else if (dart_snapshot_kind == "app-jit") {
58 args += ["--snapshot-kind=app-jit", 58 args += ["--snapshot-kind=app-jit",
59 main_file ] + training_args 59 main_file ] + training_args
60 } else { 60 } else {
61 assert(false, "Bad dart_snapshot_kind: $dart_snapshot_kind") 61 assert(false, "Bad dart_snapshot_kind: $dart_snapshot_kind")
62 } 62 }
63 } 63 }
64 } 64 }
OLDNEW
« no previous file with comments | « no previous file | utils/kernel-service/kernel-service.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698