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

Side by Side 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, 2 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//third_party/WebKit/Source/core/core_idl_files.gni") 5 import("//third_party/WebKit/Source/core/core_idl_files.gni")
6 import("//third_party/WebKit/Source/modules/modules_idl_files.gni") 6 import("//third_party/WebKit/Source/modules/modules_idl_files.gni")
7 7
8 bindings_scripts_dir = get_path_info(".", "abspath") 8 bindings_scripts_dir = get_path_info(".", "abspath")
9 bindings_scripts_output_dir = "$root_gen_dir/blink/bindings/scripts" 9 bindings_scripts_output_dir = "$root_gen_dir/blink/bindings/scripts"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 "v8_methods.py", 50 "v8_methods.py",
51 "v8_types.py", 51 "v8_types.py",
52 "v8_union.py", 52 "v8_union.py",
53 "v8_utilities.py", 53 "v8_utilities.py",
54 ], 54 ],
55 "abspath") 55 "abspath")
56 56
57 # Calls the compute_interfaces_info_individual script. 57 # Calls the compute_interfaces_info_individual script.
58 # 58 #
59 # Parameters: 59 # Parameters:
60 # sources_static = list of IDL files to pass as inputs 60 # sources = list of IDL files to pass as inputs
61 # sources_generated = list of generated IDL files to pass as inputs
62 # component_dir = name if subdirectory (one word, no slashes) of component.
63 # interfaces_info_file = output pickle file for interfaces info. 61 # interfaces_info_file = output pickle file for interfaces info.
64 # component_info_file = output pickle file for component wide info. 62 # component_info_file = output pickle file for component wide info.
65 # deps = dependencies 63 # deps = dependencies
66 #
67 # FIXME: Note the static/generated split is for consistency with GYP. This
68 # split is not necessary in the GN build and could be combined into a single
69 # "sources".
70 template("compute_interfaces_info_individual") { 64 template("compute_interfaces_info_individual") {
71 action(target_name) { 65 action(target_name) {
72 script = "$bindings_scripts_dir/compute_interfaces_info_individual.py" 66 script = "$bindings_scripts_dir/compute_interfaces_info_individual.py"
73 if (defined(invoker.visibility)) { 67 if (defined(invoker.visibility)) {
74 visibility = invoker.visibility 68 visibility = invoker.visibility
75 } 69 }
76 70
77 # Save static list to temp file to avoid blowing out command-line length 71 inputs = [ "$bindings_scripts_dir/utilities.py" ] + invoker.sources
78 # limit.
79 file_list = "$target_gen_dir/${target_name}_file_list.txt"
80 write_file(file_list, rebase_path(invoker.sources_static, root_build_dir))
81
82 inputs = [
83 "$bindings_scripts_dir/utilities.py",
84 file_list,
85 ] + invoker.sources_static + invoker.sources_generated
86
87 outputs = [ 72 outputs = [
88 invoker.interfaces_info_file, 73 invoker.interfaces_info_file,
89 invoker.component_info_file, 74 invoker.component_info_file,
90 ] 75 ]
91 76
77 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
92 args = [ 78 args = [
93 "--cache-directory", 79 "--cache-directory",
94 rebase_path(bindings_scripts_output_dir, root_build_dir), 80 rebase_path(bindings_scripts_output_dir, root_build_dir),
95 "--idl-files-list", 81 "--idl-files-list",
96 rebase_path(file_list, root_build_dir), 82 "{{response_file_name}}",
97 "--interfaces-info-file", 83 "--interfaces-info-file",
98 rebase_path(invoker.interfaces_info_file, root_build_dir), 84 rebase_path(invoker.interfaces_info_file, root_build_dir),
99 "--component-info-file", 85 "--component-info-file",
100 rebase_path(invoker.component_info_file, root_build_dir), 86 rebase_path(invoker.component_info_file, root_build_dir),
101 "--write-file-only-if-changed=1", 87 "--write-file-only-if-changed=1",
102 "--", 88 ]
103 ] + rebase_path(invoker.sources_generated, root_build_dir)
104 89
105 deps = [ "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_table s" ] + invoker.deps 90 deps = [ "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_table s" ] + invoker.deps
106 } 91 }
107 } 92 }
108 93
109 # Calls generate_event_interfaces 94 # Calls generate_event_interfaces
110 # 95 #
111 # Parameters: 96 # Parameters:
112 # sources = A list of IDL files to process. 97 # sources = A list of IDL files to process.
113 # output_file = The .in file to write, relative to the blink_gen_dir. 98 # output_file = The .in file to write, relative to the blink_gen_dir.
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 args += [ rebase_path(output_idl_file, root_build_dir) ] 369 args += [ rebase_path(output_idl_file, root_build_dir) ]
385 output_idl_files += [ output_idl_file ] 370 output_idl_files += [ output_idl_file ]
386 output_header_files += 371 output_header_files +=
387 [ "$output_dir/${interface}${component}Constructors.h" ] 372 [ "$output_dir/${interface}${component}Constructors.h" ]
388 } 373 }
389 374
390 outputs = output_idl_files + output_header_files 375 outputs = output_idl_files + output_header_files
391 deps = invoker.deps 376 deps = invoker.deps
392 } 377 }
393 } 378 }
OLDNEW
« 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