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

Side by Side Diff: Source/bindings/scripts/scripts.gni

Issue 633913002: Update bindings gn files for binding modularization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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/bindings/core/v8/generated.gni") 5 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni")
6 import("//third_party/WebKit/Source/bindings/modules/idl.gni") 6 import("//third_party/WebKit/Source/bindings/modules/idl.gni")
7 import("//third_party/WebKit/Source/bindings/modules/modules.gni") 7 import("//third_party/WebKit/Source/bindings/modules/modules.gni")
8 8
9 bindings_scripts_dir = get_path_info(".", "abspath") 9 bindings_scripts_dir = get_path_info(".", "abspath")
10 bindings_scripts_output_dir = "$root_gen_dir/blink/bindings/scripts" 10 bindings_scripts_output_dir = "$root_gen_dir/blink/bindings/scripts"
(...skipping 10 matching lines...) Expand all
21 idl_lexer_parser_files = get_path_info(_gypi.idl_lexer_parser_files, "abspath") 21 idl_lexer_parser_files = get_path_info(_gypi.idl_lexer_parser_files, "abspath")
22 idl_compiler_files = get_path_info(_gypi.idl_compiler_files, "abspath") 22 idl_compiler_files = get_path_info(_gypi.idl_compiler_files, "abspath")
23 23
24 # Calls the compute_interfaces_info_individual script. 24 # Calls the compute_interfaces_info_individual script.
25 # 25 #
26 # Parameters: 26 # Parameters:
27 # sources_static = list of IDL files to pass as inputs 27 # sources_static = list of IDL files to pass as inputs
28 # sources_generated = list of generated IDL files to pass as inputs 28 # sources_generated = list of generated IDL files to pass as inputs
29 # component_dir = name if subdirectory (one word, no slashes) of component. 29 # component_dir = name if subdirectory (one word, no slashes) of component.
30 # output_file = pickle file to write 30 # output_file = pickle file to write
31 # deps = dependencies
31 # 32 #
32 # FIXME: Note the static/generated split is for consistency with GYP. This 33 # FIXME: Note the static/generated split is for consistency with GYP. This
33 # split is not necessary in the GN build and could be combined into a single 34 # split is not necessary in the GN build and could be combined into a single
34 # "sources". 35 # "sources".
35 template("compute_interfaces_info_individual") { 36 template("compute_interfaces_info_individual") {
36 action(target_name) { 37 action(target_name) {
37 script = "$bindings_scripts_dir/compute_interfaces_info_individual.py" 38 script = "$bindings_scripts_dir/compute_interfaces_info_individual.py"
38 if (defined(invoker.visibility)) { 39 if (defined(invoker.visibility)) {
39 visibility = invoker.visibility 40 visibility = invoker.visibility
40 } 41 }
(...skipping 13 matching lines...) Expand all
54 ] 55 ]
55 56
56 args = [ 57 args = [
57 "--idl-files-list", rebase_path(file_list, root_build_dir), 58 "--idl-files-list", rebase_path(file_list, root_build_dir),
58 "--interfaces-info-file", 59 "--interfaces-info-file",
59 rebase_path(invoker.output_file, root_build_dir), 60 rebase_path(invoker.output_file, root_build_dir),
60 "--write-file-only-if-changed=1", 61 "--write-file-only-if-changed=1",
61 "--", 62 "--",
62 ] + rebase_path(invoker.sources_generated, root_build_dir) 63 ] + rebase_path(invoker.sources_generated, root_build_dir)
63 64
64 deps = [ 65 deps = invoker.deps
65 # FIXME: should be {modules|core}_generated_idls
66 # http://crbug.com/358074
67 "//third_party/WebKit/Source/bindings:generated_idls",
68 ]
69 } 66 }
70 } 67 }
71 68
72 # Calls generate_event_interfaces 69 # Calls generate_event_interfaces
73 # 70 #
74 # Parameters: 71 # Parameters:
75 # sources = A list of IDL files to process. 72 # sources = A list of IDL files to process.
76 # output_file = The .in file to write, relative to the blink_gen_dir. 73 # output_file = The .in file to write, relative to the blink_gen_dir.
77 # suffix = (Optional) String to be passed to script via --suffix 74 # suffix = (Optional) String to be passed to script via --suffix
78 template("generate_event_interfaces") { 75 template("generate_event_interfaces") {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 outputs = invoker.outputs 228 outputs = invoker.outputs
232 229
233 args = [ 230 args = [
234 invoker.component_dir, 231 invoker.component_dir,
235 rebase_path(idl_files_list, root_build_dir), 232 rebase_path(idl_files_list, root_build_dir),
236 "--", 233 "--",
237 ] 234 ]
238 args += rebase_path(invoker.outputs, root_build_dir) 235 args += rebase_path(invoker.outputs, root_build_dir)
239 } 236 }
240 } 237 }
OLDNEW
« Source/bindings/modules/BUILD.gn ('K') | « Source/bindings/modules/modules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698