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

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

Issue 2372463002: [Bindings] Pass files to compute_interfaces_info_individual.py in one way (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
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/compute_interfaces_info_individual.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 832e68dc5cd9911db1242ece5d4d795d75fbbfda..9166a877a3f73e60694c92af65905b1f753c7dca 100644
--- a/third_party/WebKit/Source/bindings/scripts/scripts.gni
+++ b/third_party/WebKit/Source/bindings/scripts/scripts.gni
@@ -57,16 +57,10 @@ idl_compiler_files = get_path_info([
# Calls the compute_interfaces_info_individual script.
#
# Parameters:
-# sources_static = list of IDL files to pass as inputs
-# sources_generated = list of generated IDL files to pass as inputs
-# component_dir = name if subdirectory (one word, no slashes) of component.
+# sources = list of IDL files to pass as inputs
# interfaces_info_file = output pickle file for interfaces info.
# component_info_file = output pickle file for component wide info.
# deps = dependencies
-#
-# FIXME: Note the static/generated split is for consistency with GYP. This
-# split is not necessary in the GN build and could be combined into a single
-# "sources".
template("compute_interfaces_info_individual") {
action(target_name) {
script = "$bindings_scripts_dir/compute_interfaces_info_individual.py"
@@ -74,33 +68,24 @@ template("compute_interfaces_info_individual") {
visibility = invoker.visibility
}
- # Save static list to temp file to avoid blowing out command-line length
- # limit.
- file_list = "$target_gen_dir/${target_name}_file_list.txt"
- write_file(file_list, rebase_path(invoker.sources_static, root_build_dir))
-
- inputs = [
- "$bindings_scripts_dir/utilities.py",
- file_list,
- ] + invoker.sources_static + invoker.sources_generated
-
+ inputs = [ "$bindings_scripts_dir/utilities.py" ] + invoker.sources
outputs = [
invoker.interfaces_info_file,
invoker.component_info_file,
]
+ response_file_contents = rebase_path(invoker.sources, root_build_dir)
bashi 2016/09/26 06:26:26 Help me understand: what does 'response' mean here
Yuki 2016/09/26 06:44:33 It seems we don't need to struggle with naming if
peria 2016/09/26 06:47:30 This is a meta variable feature of GN to store a G
args = [
- "--cache-directory",
- rebase_path(bindings_scripts_output_dir, root_build_dir),
- "--idl-files-list",
- rebase_path(file_list, root_build_dir),
- "--interfaces-info-file",
- rebase_path(invoker.interfaces_info_file, root_build_dir),
- "--component-info-file",
- rebase_path(invoker.component_info_file, root_build_dir),
- "--write-file-only-if-changed=1",
- "--",
- ] + rebase_path(invoker.sources_generated, root_build_dir)
+ "--cache-directory",
+ rebase_path(bindings_scripts_output_dir, root_build_dir),
+ "--idl-files-list",
+ "{{response_file_name}}",
+ "--interfaces-info-file",
+ rebase_path(invoker.interfaces_info_file, root_build_dir),
+ "--component-info-file",
+ rebase_path(invoker.component_info_file, root_build_dir),
+ "--write-file-only-if-changed=1",
+ ]
deps = [ "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables" ] + invoker.deps
}
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/compute_interfaces_info_individual.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698