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

Side by Side Diff: services/dart/BUILD.gn

Issue 1027603002: Dart: Removes all but native calls and the handle watcher from the snapshot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Hoist application interface dependence Created 5 years, 9 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 | « mojo/public/tools/bindings/mojom.gni ('k') | services/dart/dart_apptests/echo_apptests.dart » ('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 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 import("//mojo/public/mojo_application.gni") 5 import("//mojo/public/mojo_application.gni")
6 6
7 group("dart") { 7 group("dart") {
8 deps = [ 8 deps = [
9 ":dart_content_handler", 9 ":dart_content_handler",
10 ] 10 ]
11 } 11 }
12 12
13 action("generate_snapshot_bin") { 13 action("generate_snapshot_bin") {
14 deps = [ 14 deps = [
15 "//dart/runtime/bin:gen_snapshot($host_toolchain)", 15 "//dart/runtime/bin:gen_snapshot($host_toolchain)",
16 "//mojo/public/interfaces/application",
17 ] 16 ]
18 inputs = [ 17 inputs = [
19 "snapshot.dart", 18 "snapshot.dart",
20 "//dart/runtime/tools/create_snapshot_bin.py", 19 "//dart/runtime/tools/create_snapshot_bin.py",
21 "//mojo/dart/embedder/builtin.dart", 20 "//mojo/dart/embedder/builtin.dart",
22 "//mojo/public/dart/application.dart", 21 "//mojo/public/dart/internal.dart",
23 "//mojo/public/dart/bindings.dart",
24 "//mojo/public/dart/core.dart",
25 "//mojo/public/dart/src/application.dart",
26 "//mojo/public/dart/src/application_connection.dart",
27 "//mojo/public/dart/src/buffer.dart",
28 "//mojo/public/dart/src/codec.dart",
29 "//mojo/public/dart/src/data_pipe.dart",
30 "//mojo/public/dart/src/drain_data.dart",
31 "//mojo/public/dart/src/event_stream.dart",
32 "//mojo/public/dart/src/handle.dart",
33 "//mojo/public/dart/src/handle_watcher.dart", 22 "//mojo/public/dart/src/handle_watcher.dart",
34 "//mojo/public/dart/src/message.dart", 23 "//mojo/public/dart/src/natives.dart",
35 "//mojo/public/dart/src/message_pipe.dart",
36 "//mojo/public/dart/src/proxy.dart",
37 "//mojo/public/dart/src/struct.dart",
38 "//mojo/public/dart/src/stub.dart",
39 "//mojo/public/dart/src/timer_queue.dart", 24 "//mojo/public/dart/src/timer_queue.dart",
40 "//mojo/public/dart/src/types.dart",
41 ] 25 ]
42 output = "$target_gen_dir/snapshot_gen.bin" 26 output = "$target_gen_dir/snapshot_gen.bin"
43 outputs = [ 27 outputs = [
44 output, 28 output,
45 ] 29 ]
46 30
47 gen_snapshot_dir = 31 gen_snapshot_dir =
48 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", 32 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)",
49 "root_out_dir") 33 "root_out_dir")
50 script = "//dart/runtime/tools/create_snapshot_bin.py" 34 script = "//dart/runtime/tools/create_snapshot_bin.py"
51 application_path = rebase_path("//mojo/public/dart/application.dart")
52 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart") 35 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart")
53 bindings_path = rebase_path("//mojo/public/dart/bindings.dart") 36 internal_path = rebase_path("//mojo/public/dart/internal.dart")
54 core_path = rebase_path("//mojo/public/dart/core.dart")
55 args = [ 37 args = [
56 "--executable", 38 "--executable",
57 rebase_path("$gen_snapshot_dir/gen_snapshot"), 39 rebase_path("$gen_snapshot_dir/gen_snapshot"),
58 "--package_root", 40 "--package_root",
59 rebase_path("$root_gen_dir"), 41 rebase_path("$root_gen_dir"),
60 "--script", 42 "--script",
61 rebase_path("snapshot.dart"), 43 rebase_path("snapshot.dart"),
62 "--output_bin", 44 "--output_bin",
63 rebase_path(output, root_build_dir), 45 rebase_path(output, root_build_dir),
64 "--target_os", 46 "--target_os",
65 os, 47 os,
66 "--url_mapping=dart:mojo.application,$application_path",
67 "--url_mapping=dart:mojo.bindings,$bindings_path",
68 "--url_mapping=dart:mojo.builtin,$builtin_path", 48 "--url_mapping=dart:mojo.builtin,$builtin_path",
69 "--url_mapping=dart:mojo.core,$core_path", 49 "--url_mapping=dart:mojo.internal,$internal_path",
70 ] 50 ]
71 } 51 }
72 52
73 action("generate_snapshot_file") { 53 action("generate_snapshot_file") {
74 deps = [ 54 deps = [
75 ":generate_snapshot_bin", 55 ":generate_snapshot_bin",
76 ] 56 ]
77 inputs = [ 57 inputs = [
78 "//dart/runtime/tools/create_snapshot_file.py", 58 "//dart/runtime/tools/create_snapshot_file.py",
79 "//mojo/dart/embedder/snapshot.cc.tmpl", 59 "//mojo/dart/embedder/snapshot.cc.tmpl",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 "//mojo/icu", 108 "//mojo/icu",
129 "//mojo/public/cpp/system", 109 "//mojo/public/cpp/system",
130 "//mojo/public/cpp/utility", 110 "//mojo/public/cpp/utility",
131 "//mojo/public/interfaces/application", 111 "//mojo/public/interfaces/application",
132 "//mojo/services/content_handler/public/interfaces", 112 "//mojo/services/content_handler/public/interfaces",
133 "//mojo/services/network/public/interfaces", 113 "//mojo/services/network/public/interfaces",
134 "//third_party/zlib:zip", 114 "//third_party/zlib:zip",
135 "//url:url", 115 "//url:url",
136 ] 116 ]
137 } 117 }
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/mojom.gni ('k') | services/dart/dart_apptests/echo_apptests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698