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

Side by Side Diff: BUILD.gn

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

Powered by Google App Engine
This is Rietveld 408576698