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

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

Issue 429853002: IDL: Add build target for IDL dictionary impl generation in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 | « Source/bindings/scripts/idl_compiler.py ('k') | Source/bindings/scripts/scripts.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/scripts.gni
diff --git a/Source/bindings/scripts/scripts.gni b/Source/bindings/scripts/scripts.gni
index 863e3c8ade20ec782c7056ca2c3fc009590a0e4d..c103c29d25e17234c46ef6731f5fa3b19bbb35f2 100644
--- a/Source/bindings/scripts/scripts.gni
+++ b/Source/bindings/scripts/scripts.gni
@@ -174,6 +174,45 @@ template("idl_compiler") {
}
}
+# Runs the idl_compiler to generate IDL dictionary impl files.
+#
+# Parameters:
+# sources = a list of IDL files to process
+# outputs = a list of files to write to
+template("idl_dictionary") {
+ output_dir = "$root_gen_dir/blink/"
+
+ action(target_name) {
+ script = "//third_party/WebKit/Source/bindings/scripts/idl_compiler.py"
+ 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 = [
+ "--cache-dir",
+ rebase_path(bindings_scripts_output_dir, root_build_dir),
+ "--output-dir",
+ rebase_path(output_dir, root_build_dir),
+ "--interfaces-info",
+ rebase_path("$bindings_modules_output_dir/InterfacesInfoModules.pickle",
+ root_build_dir),
+ "--write-file-only-if-changed=1",
+ "--generate-dictionary-impl",
+ rebase_path(idl_files_list, root_build_dir),
+ ]
+
+ deps = [
+ # FIXME: should be interfaces_info_core (w/o modules)
+ # http://crbug.com/358074
+ "//third_party/WebKit/Source/bindings/modules:interfaces_info",
+ "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables",
+ "//third_party/WebKit/Source/bindings/scripts:cached_jinja_templates",
+ ]
+ }
+}
+
# Calls the aggregate_generated_bindings script.
#
# Parameters:
« no previous file with comments | « Source/bindings/scripts/idl_compiler.py ('k') | Source/bindings/scripts/scripts.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698