Index: third_party/WebKit/Source/bindings/modules/v8/BUILD.gn |
diff --git a/third_party/WebKit/Source/bindings/modules/v8/BUILD.gn b/third_party/WebKit/Source/bindings/modules/v8/BUILD.gn |
index 28fbedfb346bb11313d743b41aa038d3ab738c25..fb34ae8dfc4ea8e3b39fde5cecaa9125ff8157c9 100644 |
--- a/third_party/WebKit/Source/bindings/modules/v8/BUILD.gn |
+++ b/third_party/WebKit/Source/bindings/modules/v8/BUILD.gn |
@@ -16,6 +16,7 @@ group("bindings_modules_v8_generated") { |
":generate_bindings_modules_v8_interfaces", |
":generate_bindings_modules_v8_partial_interfaces", |
":generate_bindings_modules_v8_partial_interfaces_for_testing", |
+ ":generate_v8_context_snapshot_external_references", |
] |
} |
@@ -108,3 +109,37 @@ blink_modules_sources("bindings_modules_impl") { |
split_count = 5 |
} |
} |
+ |
+action("generate_v8_context_snapshot_external_references") { |
+ script = "$bindings_scripts_dir/generate_v8_context_snapshot_external_references.py" |
+ idl_files = core_idl_files + core_idl_with_modules_dependency_files + |
+ modules_definition_idl_files |
+ output = bindings_generated_v8_context_snapshot_external_references_file |
+ |
+ inputs = idl_files + [ script ] |
+ outputs = [ |
+ output, |
+ ] |
+ |
+ response_file_contents = rebase_path(idl_files, root_build_dir) |
+ args = [ |
+ "--cache-dir", |
+ rebase_path(bindings_scripts_output_dir, root_build_dir), |
+ "--output", |
+ rebase_path(output, root_build_dir), |
+ "--idl-files-list", |
+ "{{response_file_name}}", |
+ "--info-dir", |
+ rebase_path("$bindings_output_dir", root_build_dir), |
+ "--target-component", |
+ "modules", |
+ ] |
+ |
+ deps = [ |
+ "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core", |
+ "//third_party/WebKit/Source/bindings/modules:interfaces_info", |
+ "//third_party/WebKit/Source/bindings/modules:interfaces_info_individual_modules", |
+ "//third_party/WebKit/Source/bindings/scripts:cached_jinja_templates", |
+ "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables", |
+ ] |
+} |