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

Side by Side Diff: utils/dartanalyzer/BUILD.gn

Issue 2940513002: Revert "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binari… (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 | « utils/application_snapshot.gni ('k') | utils/generate_patch_sdk.gni » ('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 import("../application_snapshot.gni") 6 import("../application_snapshot.gni")
7 7
8 group("dartanalyzer") { 8 group("dartanalyzer") {
9 deps = [ 9 deps = [
10 ":generate_dartanalyzer_snapshot", 10 ":generate_dartanalyzer_snapshot",
11 ":generate_summary_spec", 11 ":generate_summary_spec",
12 ":generate_summary_strong", 12 ":generate_summary_strong",
13 ] 13 ]
14 } 14 }
15 15
16 analyzer_files = exec_script("../../tools/list_dart_files.py", 16 analyzer_files = exec_script("../../tools/list_dart_files.py",
17 [ 17 [ "absolute", rebase_path("../../pkg/analyzer") ],
18 "absolute",
19 rebase_path("../../pkg/analyzer"),
20 ],
21 "list lines") 18 "list lines")
22 19
23 application_snapshot("generate_dartanalyzer_snapshot") { 20 application_snapshot("generate_dartanalyzer_snapshot") {
24 main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart" 21 main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart"
25 training_args = [ 22 training_args = [
26 "--dart-sdk=" + rebase_path("../../sdk"), 23 "--dart-sdk=" + rebase_path("../../sdk"),
27 rebase_path("../../tests/language/first_test.dart"), 24 rebase_path("../../tests/language/first_test.dart"),
28 ] 25 ]
29 name = "dartanalyzer" 26 name = "dartanalyzer"
30 cli_files = exec_script("../../tools/list_dart_files.py", 27 cli_files = exec_script("../../tools/list_dart_files.py",
31 [ 28 [ "absolute", rebase_path("../../pkg/analyzer_cli") ],
32 "absolute",
33 rebase_path("../../pkg/analyzer_cli"),
34 ],
35 "list lines") 29 "list lines")
36 inputs = cli_files + analyzer_files 30 inputs = cli_files + analyzer_files
37 } 31 }
38 32
39 sdk_lib_files = exec_script("../../tools/list_dart_files.py", 33 sdk_lib_files = exec_script("../../tools/list_dart_files.py",
40 [ 34 [ "absolute", rebase_path("../../sdk/lib") ],
41 "absolute",
42 rebase_path("../../sdk/lib"),
43 ],
44 "list lines") 35 "list lines")
45 36
46 template("generate_summary") { 37 template("generate_summary") {
47 assert(defined(invoker.type), "Must specify the summary type") 38 assert(defined(invoker.type), "Must specify the summary type")
48 type = invoker.type 39 type = invoker.type
49 assert(type == "spec" || type == "strong") 40 assert(type == "spec" || type == "strong")
50 compiled_action(target_name) { 41 compiled_action(target_name) {
51 # TODO(rmacnak): If Fuchsia adds a checked-in SDK, revert this to use 42 tool = "../../runtime/bin:dart"
52 # the 'dart' binary.
53 tool = "../../runtime/bin:dart_bootstrap_host_arch"
54 inputs = sdk_lib_files + analyzer_files 43 inputs = sdk_lib_files + analyzer_files
55 44
56 output = "$root_gen_dir/$type.sum" 45 output = "$root_gen_dir/$type.sum"
57 outputs = [ 46 outputs = [
58 output, 47 output,
59 ] 48 ]
60 49
61 dot_packages = rebase_path("../../.packages") 50 dot_packages = rebase_path("../../.packages")
62 build_sdk_summaries = 51 build_sdk_summaries =
63 rebase_path("../../pkg/analyzer/tool/summary/build_sdk_summaries.dart") 52 rebase_path("../../pkg/analyzer/tool/summary/build_sdk_summaries.dart")
64 53
65 args = [ 54 args = [
66 "--packages=$dot_packages", 55 "--packages=$dot_packages",
67 build_sdk_summaries, 56 build_sdk_summaries,
68 "build-$type", 57 "build-$type",
69 rebase_path(output), 58 rebase_path(output),
70 rebase_path("../../sdk"), 59 rebase_path("../../sdk"),
71 ] 60 ]
72 } 61 }
73 } 62 }
74 63
75 generate_summary("generate_summary_spec") { 64 generate_summary("generate_summary_spec") {
76 type = "spec" 65 type = "spec"
77 } 66 }
78 67
79 generate_summary("generate_summary_strong") { 68 generate_summary("generate_summary_strong") {
80 type = "strong" 69 type = "strong"
81 } 70 }
OLDNEW
« no previous file with comments | « utils/application_snapshot.gni ('k') | utils/generate_patch_sdk.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698