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

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

Issue 956653003: Dart: Moves |native| methods to patch files. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Adjust analyzer script 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
« no previous file with comments | « mojo/public/tools/dart_analyze.py ('k') | sky/engine/bindings/builtin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/BUILD.gn
diff --git a/sky/engine/bindings/BUILD.gn b/sky/engine/bindings/BUILD.gn
index cf42a0a4af0478ada501c06f1ca08af23f46f14f..d749d2e1c7bb161ce755646bb8bc239cc7e5f0cf 100644
--- a/sky/engine/bindings/BUILD.gn
+++ b/sky/engine/bindings/BUILD.gn
@@ -39,6 +39,7 @@ source_set("bindings") {
"//sky/engine/tonic",
"//sky/engine/wtf",
":generated_bindings",
+ ":patches_cc",
":snapshot_cc",
]
include_dirs = [
@@ -143,6 +144,63 @@ source_set("snapshot_cc") {
]
}
+action("generate_dart_embedder_patch_resources_cc") {
+ inputs = [
+ "//dart/runtime/tools/create_resources.py",
+ "//mojo/dart/embedder/core/buffer_patch.dart",
+ "//mojo/dart/embedder/core/data_pipe_patch.dart",
+ "//mojo/dart/embedder/core/handle_patch.dart",
+ "//mojo/dart/embedder/core/handle_watcher_patch.dart",
+ "//mojo/dart/embedder/core/message_pipe_patch.dart",
+ ]
+ output = "$target_gen_dir/dart_embedder_patch_resources.cc"
+ outputs = [
+ output,
+ ]
+
+ # Patch files
+ buffer_patch_path = rebase_path("//mojo/dart/embedder/core/buffer_patch.dart")
+ data_pipe_patch_path =
+ rebase_path("//mojo/dart/embedder/core/data_pipe_patch.dart")
+ handle_patch_path = rebase_path("//mojo/dart/embedder/core/handle_patch.dart")
+ handle_watcher_patch_path =
+ rebase_path("//mojo/dart/embedder/core/handle_watcher_patch.dart")
+ message_pipe_patch_path =
+ rebase_path("//mojo/dart/embedder/core/message_pipe_patch.dart")
+
+ root_path = rebase_path("//mojo/dart/embedder/")
+ script = "//dart/runtime/tools/create_resources.py"
+
+ args = [
+ "--output",
+ rebase_path(output),
+ "--outer_namespace",
+ "blink",
+
+ #"--inner_namespace",
+ #"dart",
+ "--table_name",
+ "dart_embedder_patch",
+ "--root_prefix",
+ root_path,
+ buffer_patch_path,
+ data_pipe_patch_path,
+ handle_patch_path,
+ handle_watcher_patch_path,
+ message_pipe_patch_path,
+ ]
+}
+
+source_set("patches_cc") {
+ sources = [
+ "$target_gen_dir/dart_embedder_patch_resources.cc",
+ ]
+
+ deps = [
+ ":generate_dart_embedder_patch_resources_cc",
+ ]
+}
+
action("compute_interfaces_info_individual") {
sources = core_idl_files + core_dependency_idl_files
script = "$bindings_scripts_dir/compute_interfaces_info_individual.py"
« no previous file with comments | « mojo/public/tools/dart_analyze.py ('k') | sky/engine/bindings/builtin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698