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

Side by Side Diff: utils/application_snapshot.gni

Issue 2951133002: Mostly revert "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host… (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 | « runtime/vm/BUILD.gn ('k') | utils/dartanalyzer/BUILD.gn » ('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
(...skipping 10 matching lines...) Expand all
21 main_dart = invoker.main_dart 21 main_dart = invoker.main_dart
22 training_args = invoker.training_args 22 training_args = invoker.training_args
23 name = target_name 23 name = target_name
24 if (defined(invoker.name)) { 24 if (defined(invoker.name)) {
25 name = invoker.name 25 name = invoker.name
26 } 26 }
27 extra_deps = [] 27 extra_deps = []
28 if (defined(invoker.deps)) { 28 if (defined(invoker.deps)) {
29 extra_deps += invoker.deps 29 extra_deps += invoker.deps
30 } 30 }
31 extra_inputs = [ main_dart ] 31 extra_inputs = [main_dart]
zra 2017/06/21 21:46:50 We should probably keep the formatting fixes.
32 if (defined(invoker.inputs)) { 32 if (defined(invoker.inputs)) {
33 extra_inputs += invoker.inputs 33 extra_inputs += invoker.inputs
34 } 34 }
35 compiled_action(target_name) { 35 compiled_action(target_name) {
36 tool = "$_dart_root/runtime/bin:dart" 36 tool = "$_dart_root/runtime/bin:dart"
37 deps = extra_deps + [ "$_dart_root/pkg:pkg_files_stamp" ] 37 deps = extra_deps + [ "$_dart_root/pkg:pkg_files_stamp" ]
38 38
39 inputs = extra_inputs + [ 39 inputs = extra_inputs + [
40 "$_dart_root/sdk/lib/_internal/sdk_library_metadata/lib/libraries .dart", 40 "$_dart_root/sdk/lib/_internal/sdk_library_metadata/lib/libraries .dart",
41 "$root_gen_dir/pkg_files.stamp", 41 "$root_gen_dir/pkg_files.stamp",
42 ] 42 ]
43 43
44 output = "$root_gen_dir/$name.dart.snapshot" 44 output = "$root_gen_dir/$name.dart.snapshot"
45 outputs = [ 45 outputs = [
46 output, 46 output,
47 ] 47 ]
48 48
49 dot_packages = rebase_path("$_dart_root/.packages") 49 dot_packages = rebase_path("$_dart_root/.packages")
50 abs_output = rebase_path(output) 50 abs_output = rebase_path(output)
51 main_file = rebase_path(main_dart) 51 main_file = rebase_path(main_dart)
52 52
53 args = [ 53 args = [ "--packages=$dot_packages",
54 "--packages=$dot_packages", 54 "--snapshot=$abs_output" ]
55 "--snapshot=$abs_output",
56 ]
57 55
58 if (dart_snapshot_kind == "script") { 56 if (dart_snapshot_kind == "script") {
59 args += [ 57 args += ["--snapshot-kind=script",
60 "--snapshot-kind=script", 58 main_file ]
61 main_file,
62 ]
63 assert(training_args != "", "Ignoring unused argument") 59 assert(training_args != "", "Ignoring unused argument")
64 } else if (dart_snapshot_kind == "app-jit") { 60 } else if (dart_snapshot_kind == "app-jit") {
65 args += [ 61 args += ["--snapshot-kind=app-jit",
66 "--snapshot-kind=app-jit", 62 main_file ] + training_args
67 main_file,
68 ] + training_args
69 } else { 63 } else {
70 assert(false, "Bad dart_snapshot_kind: $dart_snapshot_kind") 64 assert(false, "Bad dart_snapshot_kind: $dart_snapshot_kind")
71 } 65 }
72 } 66 }
73 } 67 }
OLDNEW
« no previous file with comments | « runtime/vm/BUILD.gn ('k') | utils/dartanalyzer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698