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

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

Issue 2318933002: [Bindings] Remove aggregation of generated binding code (Closed)
Patch Set: Fix import order 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 unified diff | Download patch
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 # http://crbug.com/358074 265 # http://crbug.com/358074
266 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core ", 266 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core ",
267 "//third_party/WebKit/Source/bindings/modules:interfaces_info", 267 "//third_party/WebKit/Source/bindings/modules:interfaces_info",
268 "//third_party/WebKit/Source/bindings/modules:interfaces_info_individual_m odules", 268 "//third_party/WebKit/Source/bindings/modules:interfaces_info_individual_m odules",
269 "//third_party/WebKit/Source/bindings/scripts:cached_jinja_templates", 269 "//third_party/WebKit/Source/bindings/scripts:cached_jinja_templates",
270 "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables", 270 "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables",
271 ] 271 ]
272 } 272 }
273 } 273 }
274 274
275 # Calls the aggregate_generated_bindings script.
276 #
277 # Parameters:
278 # sources = a list of source IDL files.
279 # component_dir = Name of directory for these files (one word, no slashes).
280 # outputs = a list of files to write to.
281 template("aggregate_generated_bindings") {
282 action(target_name) {
283 script = "//third_party/WebKit/Source/bindings/scripts/aggregate_generated_b indings.py"
284
285 # Write lists of main IDL files to a file, so that the command lines don't
286 # exceed OS length limits.
287 idl_files_list = "$target_gen_dir/${target_name}_file_list.tmp"
288 write_file(idl_files_list, rebase_path(invoker.sources, root_build_dir))
289
290 inputs = [ idl_files_list ] + invoker.sources
291 outputs = invoker.outputs
292
293 args = [
294 "--component-directory",
295 invoker.component_dir,
296 "--input-file",
297 rebase_path(idl_files_list, root_build_dir),
298 ]
299 if (invoker.is_partial) {
300 args += [ "--partial" ]
301 }
302 args += rebase_path(invoker.outputs, root_build_dir)
303 }
304 }
305
306 # Calls the compute_global_objects script. 275 # Calls the compute_global_objects script.
307 # 276 #
308 # Parameters: 277 # Parameters:
309 # sources = a list of source IDL files. 278 # sources = a list of source IDL files.
310 # sources_generated = a list of generated pickle sources. 279 # sources_generated = a list of generated pickle sources.
311 # output_file = a pickle file to write to (need to specify directory) 280 # output_file = a pickle file to write to (need to specify directory)
312 # 281 #
313 template("compute_global_objects") { 282 template("compute_global_objects") {
314 action(target_name) { 283 action(target_name) {
315 script = 284 script =
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 args += [ rebase_path(output_idl_file, root_build_dir) ] 357 args += [ rebase_path(output_idl_file, root_build_dir) ]
389 output_idl_files += [ output_idl_file ] 358 output_idl_files += [ output_idl_file ]
390 output_header_files += 359 output_header_files +=
391 [ "$output_dir/${interface}${component}Constructors.h" ] 360 [ "$output_dir/${interface}${component}Constructors.h" ]
392 } 361 }
393 362
394 outputs = output_idl_files + output_header_files 363 outputs = output_idl_files + output_header_files
395 deps = invoker.deps 364 deps = invoker.deps
396 } 365 }
397 } 366 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698