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

Side by Side Diff: BUILD.gn

Issue 2665753002: Reapply "Create an app snapshot of the Dart front end." (Closed)
Patch Set: merge Created 3 years, 10 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 | runtime/bin/main.cc » ('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 if (defined(is_fuchsia) && (is_fuchsia || is_fuchsia_host)) { 7 if (defined(is_fuchsia) && (is_fuchsia || is_fuchsia_host)) {
8 # Fuchsia has run_vm_tests marked testonly. 8 # Fuchsia has run_vm_tests marked testonly.
9 testonly = true 9 testonly = true
10 } 10 }
(...skipping 24 matching lines...) Expand all
35 testonly = true 35 testonly = true
36 } 36 }
37 deps = [ 37 deps = [
38 "runtime/bin:dart", 38 "runtime/bin:dart",
39 "runtime/bin:dart_bootstrap($host_toolchain)", 39 "runtime/bin:dart_bootstrap($host_toolchain)",
40 "runtime/bin:process_test", 40 "runtime/bin:process_test",
41 "runtime/bin:run_vm_tests", 41 "runtime/bin:run_vm_tests",
42 "runtime/bin:sample_extension", 42 "runtime/bin:sample_extension",
43 "runtime/bin:test_extension", 43 "runtime/bin:test_extension",
44 "runtime/vm:patched_sdk", 44 "runtime/vm:patched_sdk",
45
46 # TODO(rmacnak): Link this into 'dart'
47 "utils/kernel-service:kernel-service",
45 ] 48 ]
46 } 49 }
47 50
48 group("runtime_precompiled") { 51 group("runtime_precompiled") {
49 deps = [ 52 deps = [
50 "runtime/bin:dart_bootstrap($host_toolchain)", 53 "runtime/bin:dart_bootstrap($host_toolchain)",
51 "runtime/bin:dart_precompiled_runtime", 54 "runtime/bin:dart_precompiled_runtime",
52 "runtime/bin:process_test", 55 "runtime/bin:process_test",
53 "runtime/vm:patched_sdk", 56 "runtime/vm:patched_sdk",
54 ] 57 ]
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 ] 118 ]
116 119
117 script = "tools/create_sdk.py" 120 script = "tools/create_sdk.py"
118 args = [ 121 args = [
119 "--sdk_output_dir", 122 "--sdk_output_dir",
120 rebase_path("$root_out_dir/dart-sdk"), 123 rebase_path("$root_out_dir/dart-sdk"),
121 "--snapshot_location", 124 "--snapshot_location",
122 rebase_path("$root_gen_dir"), 125 rebase_path("$root_gen_dir"),
123 ] 126 ]
124 if (defined(is_fuchsia) && is_fuchsia_host) { 127 if (defined(is_fuchsia) && is_fuchsia_host) {
125 args += [ 128 args += [ "--copy_libs" ]
126 "--copy_libs"
127 ]
128 } 129 }
129 } 130 }
130 131
131 group("dart2js") { 132 group("dart2js") {
132 deps = [ 133 deps = [
133 "utils/compiler:dart2js", 134 "utils/compiler:dart2js",
134 ] 135 ]
135 } 136 }
136 137
137 group("dartanalyzer") { 138 group("dartanalyzer") {
(...skipping 28 matching lines...) Expand all
166 ":create_sdk", 167 ":create_sdk",
167 ] 168 ]
168 } 169 }
169 170
170 group("samples") { 171 group("samples") {
171 deps = [ 172 deps = [
172 "runtime/bin:sample_extension", 173 "runtime/bin:sample_extension",
173 ] 174 ]
174 } 175 }
175 176
176
177 # The rules below build a qemu Fuchsia OS image that includes the Dart tree 177 # The rules below build a qemu Fuchsia OS image that includes the Dart tree
178 # under /system/test/dart. Building this image is gated by the GN argument 178 # under /system/test/dart. Building this image is gated by the GN argument
179 # 'dart_build_fuchsia_test_image' because building the image is slow. 179 # 'dart_build_fuchsia_test_image' because building the image is slow.
180 if (defined(is_fuchsia) && (is_fuchsia)) { 180 if (defined(is_fuchsia) && is_fuchsia) {
181 declare_args() { 181 declare_args() {
182 dart_build_fuchsia_test_image = false 182 dart_build_fuchsia_test_image = false
183 } 183 }
184 184
185 if (dart_build_fuchsia_test_image) { 185 if (dart_build_fuchsia_test_image) {
186 action("generate_dart_test_manifest") { 186 action("generate_dart_test_manifest") {
187 testonly = true 187 testonly = true
188 188
189 deps = [ 189 deps = [
190 "//packages/gn:mkbootfs", 190 "//packages/gn:mkbootfs",
(...skipping 19 matching lines...) Expand all
210 "-u", 210 "-u",
211 rebase_path(user_manifest), 211 rebase_path(user_manifest),
212 "-o", 212 "-o",
213 rebase_path(output_prefix), 213 rebase_path(output_prefix),
214 ] 214 ]
215 } 215 }
216 216
217 action("generate_dart_test_image") { 217 action("generate_dart_test_image") {
218 testonly = true 218 testonly = true
219 deps = [ 219 deps = [
220 ":generate_dart_test_manifest",
220 "runtime/bin:dart", 221 "runtime/bin:dart",
222 "runtime/bin:process_test",
221 "runtime/bin:run_vm_tests", 223 "runtime/bin:run_vm_tests",
222 "runtime/bin:process_test",
223 ":generate_dart_test_manifest",
224 ] 224 ]
225 225
226 input = "$target_gen_dir/dart_test_tree.manifest" 226 input = "$target_gen_dir/dart_test_tree.manifest"
227 inputs = [ 227 inputs = [
228 input, 228 input,
229 ] 229 ]
230 230
231 output = "$root_out_dir/dart_test_tree.bin" 231 output = "$root_out_dir/dart_test_tree.bin"
232 outputs = [ 232 outputs = [
233 output, 233 output,
234 ] 234 ]
235 235
236 script = "//packages/gn/make_bootfs.py" 236 script = "//packages/gn/make_bootfs.py"
237 args = [ 237 args = [
238 "--manifest", 238 "--manifest",
239 rebase_path(input), 239 rebase_path(input),
240 "--output-file", 240 "--output-file",
241 rebase_path(output), 241 rebase_path(output),
242 "--build-id-map", 242 "--build-id-map",
243 rebase_path("$target_gen_dir/build_id_map"), 243 rebase_path("$target_gen_dir/build_id_map"),
244 "--compress", 244 "--compress",
245 ] 245 ]
246 } 246 }
247 } 247 }
248 } 248 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698