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

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

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