OLD | NEW |
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 Loading... |
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 |
275 # Calls the compute_global_objects script. | 306 # Calls the compute_global_objects script. |
276 # | 307 # |
277 # Parameters: | 308 # Parameters: |
278 # sources = a list of source IDL files. | 309 # sources = a list of source IDL files. |
279 # sources_generated = a list of generated pickle sources. | 310 # sources_generated = a list of generated pickle sources. |
280 # output_file = a pickle file to write to (need to specify directory) | 311 # output_file = a pickle file to write to (need to specify directory) |
281 # | 312 # |
282 template("compute_global_objects") { | 313 template("compute_global_objects") { |
283 action(target_name) { | 314 action(target_name) { |
284 script = | 315 script = |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 args += [ rebase_path(output_idl_file, root_build_dir) ] | 388 args += [ rebase_path(output_idl_file, root_build_dir) ] |
358 output_idl_files += [ output_idl_file ] | 389 output_idl_files += [ output_idl_file ] |
359 output_header_files += | 390 output_header_files += |
360 [ "$output_dir/${interface}${component}Constructors.h" ] | 391 [ "$output_dir/${interface}${component}Constructors.h" ] |
361 } | 392 } |
362 | 393 |
363 outputs = output_idl_files + output_header_files | 394 outputs = output_idl_files + output_header_files |
364 deps = invoker.deps | 395 deps = invoker.deps |
365 } | 396 } |
366 } | 397 } |
OLD | NEW |