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

Side by Side Diff: BUILD.gn

Issue 2451613005: Format GN files and add a presubmit check that GN is properly formatted (Closed)
Patch Set: Fix gn args Created 4 years, 1 month 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 | build/config/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 # This target will be built if no target is specified when invoking ninja. 5 # This target will be built if no target is specified when invoking ninja.
6 group("default") { 6 group("default") {
7 deps = [ 7 deps = [
8 ":runtime", 8 ":runtime",
9 ] 9 ]
10 } 10 }
11 11
12 group("most") { 12 group("most") {
13 deps = [ 13 deps = [
14 ":analysis_server", 14 ":analysis_server",
15 ":create_sdk", 15 ":create_sdk",
16 ":dart2js", 16 ":dart2js",
17 ":dartanalyzer", 17 ":dartanalyzer",
18 ":dartdevc", 18 ":dartdevc",
19 ":runtime", 19 ":runtime",
20 ":samples", 20 ":samples",
21 ] 21 ]
22 } 22 }
23 23
24 group("runtime") { 24 group("runtime") {
25 deps = [ 25 deps = [
26 "runtime/bin:dart", 26 "runtime/bin:dart",
27 "runtime/bin:dart_bootstrap($host_toolchain)", 27 "runtime/bin:dart_bootstrap($host_toolchain)",
28 "runtime/bin:process_test",
28 "runtime/bin:run_vm_tests", 29 "runtime/bin:run_vm_tests",
29 "runtime/bin:process_test", 30 "runtime/bin:sample_extension",
30 "runtime/bin:test_extension", 31 "runtime/bin:test_extension",
31 "runtime/bin:sample_extension",
32 ] 32 ]
33 } 33 }
34 34
35 group("runtime_precompiled") { 35 group("runtime_precompiled") {
36 deps = [ 36 deps = [
37 "runtime/bin:dart_bootstrap($host_toolchain)",
37 "runtime/bin:dart_precompiled_runtime", 38 "runtime/bin:dart_precompiled_runtime",
38 "runtime/bin:dart_bootstrap($host_toolchain)",
39 ] 39 ]
40 } 40 }
41 41
42 group("runtime_and_noopt") { 42 group("runtime_and_noopt") {
43 deps = [ 43 deps = [
44 "runtime/bin:dart", 44 "runtime/bin:dart",
45 "runtime/bin:dart_bootstrap($host_toolchain)",
45 "runtime/bin:dart_noopt", 46 "runtime/bin:dart_noopt",
46 "runtime/bin:dart_bootstrap($host_toolchain)", 47 "runtime/bin:process_test",
47 "runtime/bin:run_vm_tests", 48 "runtime/bin:run_vm_tests",
48 "runtime/bin:process_test", 49 "runtime/bin:sample_extension",
49 "runtime/bin:test_extension", 50 "runtime/bin:test_extension",
50 "runtime/bin:sample_extension",
51 ] 51 ]
52 } 52 }
53 53
54
55 action("create_sdk") { 54 action("create_sdk") {
56 deps = [ 55 deps = [
57 "runtime/bin:dart", 56 "runtime/bin:dart",
58 "utils/analysis_server", 57 "utils/analysis_server",
59 "utils/compiler:dart2js", 58 "utils/compiler:dart2js",
60 "utils/compiler:utils_wrapper", 59 "utils/compiler:utils_wrapper",
61 "utils/dartanalyzer:generate_dartanalyzer_snapshot", 60 "utils/dartanalyzer:generate_dartanalyzer_snapshot",
62 "utils/dartanalyzer:generate_summary_spec", 61 "utils/dartanalyzer:generate_summary_spec",
63 "utils/dartanalyzer:generate_summary_strong", 62 "utils/dartanalyzer:generate_summary_strong",
64 "utils/dartdevc", 63 "utils/dartdevc",
65 "utils/dartdoc", 64 "utils/dartdoc",
66 "utils/dartfmt", 65 "utils/dartfmt",
67 "utils/pub", 66 "utils/pub",
68 ] 67 ]
69 68
70 sdk_lib_files = exec_script("tools/list_dart_files.py", 69 sdk_lib_files = exec_script("tools/list_dart_files.py",
71 [rebase_path("sdk/lib")], 70 [ rebase_path("sdk/lib") ],
72 "list lines") 71 "list lines")
73 72
74 preamble_files = exec_script("tools/list_files.py", 73 preamble_files =
75 ["", rebase_path("sdk/lib/_internal/js_runtime/lib/preambles")], 74 exec_script("tools/list_files.py",
76 "list lines") 75 [
76 "",
77 rebase_path("sdk/lib/_internal/js_runtime/lib/preambles"),
78 ],
79 "list lines")
77 80
78 sdk_bin_files = exec_script("tools/list_files.py", 81 sdk_bin_files = exec_script("tools/list_files.py",
79 ["", rebase_path("sdk/bin")], 82 [
80 "list lines") 83 "",
84 rebase_path("sdk/bin"),
85 ],
86 "list lines")
81 87
82 inputs = rebase_path(sdk_lib_files, "", "sdk/lib") + 88 inputs = rebase_path(sdk_lib_files, "", "sdk/lib") +
83 rebase_path(preamble_files, "", "sdk/lib") + 89 rebase_path(preamble_files, "", "sdk/lib") +
84 rebase_path(sdk_bin_files, "", "sdk/bin") + [ 90 rebase_path(sdk_bin_files, "", "sdk/bin") +
85 "sdk/lib/dart_client.platform", 91 [
86 "sdk/lib/dart_server.platform", 92 "sdk/lib/dart_client.platform",
87 "sdk/lib/dart_shared.platform", 93 "sdk/lib/dart_server.platform",
88 "$root_gen_dir/dart2js.dart.snapshot", 94 "sdk/lib/dart_shared.platform",
89 "$root_gen_dir/utils_wrapper.dart.snapshot", 95 "$root_gen_dir/dart2js.dart.snapshot",
90 "$root_gen_dir/pub.dart.snapshot", 96 "$root_gen_dir/utils_wrapper.dart.snapshot",
91 "$root_gen_dir/dartanalyzer.dart.snapshot", 97 "$root_gen_dir/pub.dart.snapshot",
92 "$root_gen_dir/dartdevc.dart.snapshot", 98 "$root_gen_dir/dartanalyzer.dart.snapshot",
93 "$root_gen_dir/dartfmt.dart.snapshot", 99 "$root_gen_dir/dartdevc.dart.snapshot",
94 "$root_gen_dir/analysis_server.dart.snapshot", 100 "$root_gen_dir/dartfmt.dart.snapshot",
95 "$root_gen_dir/dartdoc.dart.snapshot", 101 "$root_gen_dir/analysis_server.dart.snapshot",
96 "$root_gen_dir/spec.sum", 102 "$root_gen_dir/dartdoc.dart.snapshot",
97 "$root_gen_dir/strong.sum", 103 "$root_gen_dir/spec.sum",
98 "tools/VERSION" 104 "$root_gen_dir/strong.sum",
99 ] 105 "tools/VERSION",
106 ]
100 107
101 outputs = [ 108 outputs = [
102 "$root_out_dir/dart-sdk/README", 109 "$root_out_dir/dart-sdk/README",
103 ] 110 ]
104 111
105 script = "tools/create_sdk.py" 112 script = "tools/create_sdk.py"
106 args = [ 113 args = [
107 "--sdk_output_dir", 114 "--sdk_output_dir",
108 rebase_path("$root_out_dir/dart-sdk"), 115 rebase_path("$root_out_dir/dart-sdk"),
109 "--snapshot_location", 116 "--snapshot_location",
110 rebase_path("$root_gen_dir"), 117 rebase_path("$root_gen_dir"),
111 ] 118 ]
112 } 119 }
113 120
114
115 group("dart2js") { 121 group("dart2js") {
116 deps = [ 122 deps = [
117 "utils/compiler:dart2js" 123 "utils/compiler:dart2js",
118 ] 124 ]
119 } 125 }
120 126
121 group("dartanalyzer") { 127 group("dartanalyzer") {
122 deps = [ 128 deps = [
123 "utils/dartanalyzer" 129 "utils/dartanalyzer",
124 ] 130 ]
125 } 131 }
126 132
127 group("dartdevc") { 133 group("dartdevc") {
128 deps = [ 134 deps = [
129 "utils/dartdevc" 135 "utils/dartdevc",
130 ] 136 ]
131 } 137 }
132 138
133 group("dartfmt") { 139 group("dartfmt") {
134 deps = [ 140 deps = [
135 "utils/dartfmt" 141 "utils/dartfmt",
136 ] 142 ]
137 } 143 }
138 144
139 group("analysis_server") { 145 group("analysis_server") {
140 deps = [ 146 deps = [
141 "utils/analysis_server" 147 "utils/analysis_server",
142 ] 148 ]
143 } 149 }
144 150
145 # This is the target that is built on the dart2js build bots. 151 # This is the target that is built on the dart2js build bots.
146 # It must depend on anything that is required by the dart2js 152 # It must depend on anything that is required by the dart2js
147 # test suites. 153 # test suites.
148 group("dart2js_bot") { 154 group("dart2js_bot") {
149 deps = [ 155 deps = [
150 ":create_sdk" 156 ":create_sdk",
151 ] 157 ]
152 } 158 }
153 159
154 group("samples") { 160 group("samples") {
155 deps = [ 161 deps = [
156 "runtime/bin:sample_extension" 162 "runtime/bin:sample_extension",
157 ] 163 ]
158 } 164 }
OLDNEW
« no previous file with comments | « no previous file | build/config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698