OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # embedder specific template rules. | 5 # embedder specific template rules. |
6 import("embedder.gni") | 6 import("embedder.gni") |
7 | 7 |
8 source_set("dart_controller_no_snapshot") { | 8 source_set("dart_controller_no_snapshot") { |
9 sources = [ | 9 sources = [ |
10 "$target_gen_dir/dart_embedder_patch_resources.cc", | 10 "$target_gen_dir/dart_embedder_patch_resources.cc", |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 dart_embedder_resources("generate_dart_embedder_patch_resources_cc") { | 63 dart_embedder_resources("generate_dart_embedder_patch_resources_cc") { |
64 inputs = [ | 64 inputs = [ |
65 "//mojo/dart/embedder/core/natives_patch.dart", | 65 "//mojo/dart/embedder/core/natives_patch.dart", |
66 "//mojo/dart/embedder/io/internet_address_patch.dart", | 66 "//mojo/dart/embedder/io/internet_address_patch.dart", |
67 "//mojo/dart/embedder/io/mojo_patch.dart", | 67 "//mojo/dart/embedder/io/mojo_patch.dart", |
68 "//mojo/dart/embedder/io/platform_patch.dart", | 68 "//mojo/dart/embedder/io/platform_patch.dart", |
69 "//mojo/dart/embedder/io/socket_patch.dart", | 69 "//mojo/dart/embedder/io/socket_patch.dart", |
70 "//mojo/dart/embedder/io/server_socket_patch.dart", | 70 "//mojo/dart/embedder/io/server_socket_patch.dart", |
71 ] | 71 ] |
| 72 root_prefix = "//mojo/dart/embedder/" |
72 output = "$target_gen_dir/dart_embedder_patch_resources.cc" | 73 output = "$target_gen_dir/dart_embedder_patch_resources.cc" |
73 table_name = "dart_embedder_patch" | 74 table_name = "dart_embedder_patch" |
74 } | 75 } |
75 | 76 |
76 group("dart_embedder_packages") { | 77 group("dart_embedder_packages") { |
77 deps = [ | 78 deps = [ |
78 ":dart_embedder_package_sdk", | 79 ":dart_embedder_package_sdk", |
79 ":dart_embedder_package_application", | 80 ":dart_embedder_package_application", |
80 ":dart_embedder_package_bindings", | 81 ":dart_embedder_package_bindings", |
81 ":dart_embedder_package_network_service", | 82 ":dart_embedder_package_network_service", |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 dart_embedder_resources("generate_dart_embedder_service_isolate_resources_cc") { | 137 dart_embedder_resources("generate_dart_embedder_service_isolate_resources_cc") { |
137 deps = [ | 138 deps = [ |
138 ":deploy_observatory", | 139 ":deploy_observatory", |
139 ] | 140 ] |
140 inputs = [ | 141 inputs = [ |
141 "//mojo/dart/embedder/vmservice/loader.dart", | 142 "//mojo/dart/embedder/vmservice/loader.dart", |
142 "//mojo/dart/embedder/vmservice/main.dart", | 143 "//mojo/dart/embedder/vmservice/main.dart", |
143 "//mojo/dart/embedder/vmservice/resources.dart", | 144 "//mojo/dart/embedder/vmservice/resources.dart", |
144 "//mojo/dart/embedder/vmservice/server.dart", | 145 "//mojo/dart/embedder/vmservice/server.dart", |
145 ] | 146 ] |
| 147 root_prefix = "//mojo/dart/embedder/" |
146 input_directory = "$root_out_dir/observatory/deployed/web/" | 148 input_directory = "$root_out_dir/observatory/deployed/web/" |
147 output = "$target_gen_dir/dart_embedder_service_isolate_resources.cc" | 149 output = "$target_gen_dir/dart_embedder_service_isolate_resources.cc" |
148 table_name = "dart_embedder_service_isolate" | 150 table_name = "dart_embedder_service_isolate" |
149 } | 151 } |
150 | 152 |
151 observatory_sources_gypi = | 153 observatory_sources_gypi = |
152 exec_script("../../../dart/tools/gypi_to_gn.py", | 154 exec_script("../../../dart/tools/gypi_to_gn.py", |
153 [ rebase_path( | 155 [ rebase_path( |
154 "//dart/runtime/observatory/observatory_sources.gypi") ], | 156 "//dart/runtime/observatory/observatory_sources.gypi") ], |
155 "scope", | 157 "scope", |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"), | 247 rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"), |
246 "--directory", | 248 "--directory", |
247 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), | 249 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), |
248 "--command", | 250 "--command", |
249 "build", | 251 "build", |
250 rebase_path("$root_out_dir/observatory/build"), | 252 rebase_path("$root_out_dir/observatory/build"), |
251 ] | 253 ] |
252 | 254 |
253 outputs = [ | 255 outputs = [ |
254 "$root_out_dir/observatory/build/web/index.html", | 256 "$root_out_dir/observatory/build/web/index.html", |
255 "$root_out_dir/observatory/build/web/index.html_bootstrap.dart.js", | 257 "$root_out_dir/observatory/build/web/index.html.polymer.bootstrap.dart.js", |
256 ] | 258 ] |
257 } | 259 } |
258 | 260 |
259 action("deploy_observatory") { | 261 action("deploy_observatory") { |
260 deps = [ | 262 deps = [ |
261 ":pub_build_observatory", | 263 ":pub_build_observatory", |
262 ] | 264 ] |
263 | 265 |
264 script = "//dart/tools/observatory_tool.py" | 266 script = "//dart/tools/observatory_tool.py" |
265 | 267 |
266 inputs = [ | 268 inputs = [ |
267 script, | 269 script, |
268 "$root_out_dir/observatory/build/web/index.html", | 270 "$root_out_dir/observatory/build/web/index.html", |
269 "$root_out_dir/observatory/build/web/index.html_bootstrap.dart.js", | 271 "$root_out_dir/observatory/build/web/index.html.polymer.bootstrap.dart.js", |
270 ] | 272 ] |
271 | 273 |
272 args = [ | 274 args = [ |
273 "--silent=True", | 275 "--silent=True", |
274 "--pub-executable", | 276 "--pub-executable", |
275 rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"), | 277 rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"), |
276 "--directory", | 278 "--directory", |
277 rebase_path("$root_out_dir/observatory"), | 279 rebase_path("$root_out_dir/observatory"), |
278 "--command", | 280 "--command", |
279 "deploy", | 281 "deploy", |
280 ] | 282 ] |
281 | 283 |
282 outputs = [ | 284 outputs = [ |
283 "$root_out_dir/observatory/deployed/web/index.html", | 285 "$root_out_dir/observatory/deployed/web/index.html", |
284 "$root_out_dir/observatory/deployed/web/index.html_bootstrap.dart.js", | 286 "$root_out_dir/observatory/deployed/web/index.html.polymer.bootstrap.dart.js
", |
285 ] | 287 ] |
286 } | 288 } |
287 | 289 |
288 action("generate_snapshot_bin") { | 290 action("generate_snapshot_bin") { |
289 deps = [ | 291 deps = [ |
290 "//dart/runtime/bin:gen_snapshot($host_toolchain)", | 292 "//dart/runtime/bin:gen_snapshot($host_toolchain)", |
291 ":dart_embedder_packages", | 293 ":dart_embedder_packages", |
292 ] | 294 ] |
293 inputs = [ | 295 inputs = [ |
294 "snapshot.dart", | 296 "snapshot.dart", |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 "--vm_input_bin", | 395 "--vm_input_bin", |
394 rebase_path("$target_gen_dir/vm_isolate_snapshot.bin"), | 396 rebase_path("$target_gen_dir/vm_isolate_snapshot.bin"), |
395 "--input_bin", | 397 "--input_bin", |
396 rebase_path("$target_gen_dir/isolate_snapshot.bin"), | 398 rebase_path("$target_gen_dir/isolate_snapshot.bin"), |
397 "--input_cc", | 399 "--input_cc", |
398 rebase_path("//mojo/dart/embedder/snapshot.cc.tmpl"), | 400 rebase_path("//mojo/dart/embedder/snapshot.cc.tmpl"), |
399 "--output", | 401 "--output", |
400 rebase_path(output), | 402 rebase_path(output), |
401 ] | 403 ] |
402 } | 404 } |
OLD | NEW |