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" |