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

Unified Diff: sky/engine/bindings2/BUILD.gn

Issue 919883002: Allow sky apps to be consumers of mojo services (Closed) Base URL: https://github.com/eseidel/skydart.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/bindings2/BUILD.gn
diff --git a/sky/engine/bindings2/BUILD.gn b/sky/engine/bindings2/BUILD.gn
index 73757880fed6fa11e0243c943bdc19e2fd18c61b..60643bb80e78c6668907c461864ad8bac13db877 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",
abarth-chromium 2015/02/12 03:29:33 We should put this code somewhere that we can shar
"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,25 @@ action("generate_snapshot_bin") {
inputs = [
"//dart/runtime/tools/create_snapshot_bin.py",
"//sky/engine/bindings2/builtin.dart",
+ "//mojo/public/dart/application.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",
abarth-chromium 2015/02/12 03:29:33 Is there some target we can depend on so we don't
"snapshot.dart",
]
output = "$target_gen_dir/snapshot_gen.bin"
@@ -59,6 +82,9 @@ 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_application_path = rebase_path("//mojo/public/dart/application.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 +103,9 @@ action("generate_snapshot_bin") {
"--target_os",
os,
"--url_mapping=dart:sky,$sky_core_path",
+ "--url_mapping=dart:mojo_application,$mojo_application_path",
+ "--url_mapping=dart:mojo_bindings,$mojo_bindings_path",
+ "--url_mapping=dart:mojo_core,$mojo_core_path",
"--url_mapping=dart:sky_builtin,$builtin_path",
]
}

Powered by Google App Engine
This is Rietveld 408576698