Index: sky/engine/bindings2/BUILD.gn |
diff --git a/sky/engine/bindings2/BUILD.gn b/sky/engine/bindings2/BUILD.gn |
index 73757880fed6fa11e0243c943bdc19e2fd18c61b..b1467e8d6fbc1169cc59bd3f1aef53b06447e94f 100644 |
--- a/sky/engine/bindings2/BUILD.gn |
+++ b/sky/engine/bindings2/BUILD.gn |
@@ -23,6 +23,8 @@ source_set("bindings2") { |
"exception_state.h", |
"exception_state_placeholder.cc", |
"exception_state_placeholder.h", |
+ "mojo_natives.cc", |
+ "mojo_natives.h", |
"nullable.h", |
"scheduled_action.cc", |
"scheduled_action.h", |
@@ -30,6 +32,8 @@ source_set("bindings2") { |
deps = [ |
"//base", |
"//dart/runtime/bin:libdart_withcore", |
+ "//mojo/public/c/system", |
+ "//mojo/public/cpp/system", |
"//sky/engine/platform:platform", |
"//sky/engine/tonic", |
"//sky/engine/wtf", |
@@ -50,6 +54,24 @@ action("generate_snapshot_bin") { |
inputs = [ |
"//dart/runtime/tools/create_snapshot_bin.py", |
"//sky/engine/bindings2/builtin.dart", |
+ "//mojo/public/dart/bindings.dart", |
+ "//mojo/public/dart/core.dart", |
+ "//mojo/public/dart/src/application.dart", |
+ "//mojo/public/dart/src/buffer.dart", |
+ "//mojo/public/dart/src/codec.dart", |
+ "//mojo/public/dart/src/data_pipe.dart", |
+ "//mojo/public/dart/src/drain_data.dart", |
+ "//mojo/public/dart/src/event_stream.dart", |
+ "//mojo/public/dart/src/handle.dart", |
+ "//mojo/public/dart/src/handle_watcher.dart", |
+ "//mojo/public/dart/src/message.dart", |
+ "//mojo/public/dart/src/message_pipe.dart", |
+ "//mojo/public/dart/src/proxy.dart", |
+ "//mojo/public/dart/src/service_provider.dart", |
+ "//mojo/public/dart/src/struct.dart", |
+ "//mojo/public/dart/src/stub.dart", |
+ "//mojo/public/dart/src/timer_queue.dart", |
+ "//mojo/public/dart/src/types.dart", |
"snapshot.dart", |
] |
output = "$target_gen_dir/snapshot_gen.bin" |
@@ -59,6 +81,8 @@ action("generate_snapshot_bin") { |
builtin_path = rebase_path("//sky/engine/bindings2/builtin.dart") |
sky_core_path = rebase_path("$bindings_output_dir/sky_core.dart") |
+ mojo_bindings_path = rebase_path("//mojo/public/dart/bindings.dart") |
+ mojo_core_path = rebase_path("//mojo/public/dart/core.dart") |
gen_snapshot_dir = |
get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", |
@@ -77,6 +101,8 @@ action("generate_snapshot_bin") { |
"--target_os", |
os, |
"--url_mapping=dart:sky,$sky_core_path", |
+ "--url_mapping=dart:mojo_bindings,$mojo_bindings_path", |
+ "--url_mapping=dart:mojo_core,$mojo_core_path", |
"--url_mapping=dart:sky_builtin,$builtin_path", |
] |
} |