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

Unified Diff: third_party/WebKit/Source/bindings/scripts/scripts.gni

Issue 2325583002: Revert of [Bindings] Remove aggregation of generated binding code (Closed)
Patch Set: Created 4 years, 3 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: third_party/WebKit/Source/bindings/scripts/scripts.gni
diff --git a/third_party/WebKit/Source/bindings/scripts/scripts.gni b/third_party/WebKit/Source/bindings/scripts/scripts.gni
index 4cdedd0dad1aeca8cf12a1b9f3ab21d418670ad7..6f9531696db170e9d5794f827e3c5bc69c0732ae 100644
--- a/third_party/WebKit/Source/bindings/scripts/scripts.gni
+++ b/third_party/WebKit/Source/bindings/scripts/scripts.gni
@@ -272,6 +272,37 @@
}
}
+# Calls the aggregate_generated_bindings script.
+#
+# Parameters:
+# sources = a list of source IDL files.
+# component_dir = Name of directory for these files (one word, no slashes).
+# outputs = a list of files to write to.
+template("aggregate_generated_bindings") {
+ action(target_name) {
+ script = "//third_party/WebKit/Source/bindings/scripts/aggregate_generated_bindings.py"
+
+ # Write lists of main IDL files to a file, so that the command lines don't
+ # exceed OS length limits.
+ idl_files_list = "$target_gen_dir/${target_name}_file_list.tmp"
+ write_file(idl_files_list, rebase_path(invoker.sources, root_build_dir))
+
+ inputs = [ idl_files_list ] + invoker.sources
+ outputs = invoker.outputs
+
+ args = [
+ "--component-directory",
+ invoker.component_dir,
+ "--input-file",
+ rebase_path(idl_files_list, root_build_dir),
+ ]
+ if (invoker.is_partial) {
+ args += [ "--partial" ]
+ }
+ args += rebase_path(invoker.outputs, root_build_dir)
+ }
+}
+
# Calls the compute_global_objects script.
#
# Parameters:

Powered by Google App Engine
This is Rietveld 408576698