| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 275 # Calls the aggregate_generated_bindings script. |
| 276 # | 276 # |
| 277 # Parameters: | 277 # Parameters: |
| 278 # sources = a list of source IDL files. | 278 # sources = a list of source IDL files. |
| 279 # component_dir = Name of directory for these files (one word, no slashes). | 279 # component = a name of directory for these files (one word, no slashes). |
| 280 # outputs = a list of files to write to. | 280 # outputs = a name of file to write to. |
| 281 template("aggregate_generated_bindings") { | 281 template("aggregate_generated_bindings") { |
| 282 action(target_name) { | 282 action(target_name) { |
| 283 script = "//third_party/WebKit/Source/bindings/scripts/aggregate_generated_b
indings.py" | 283 script = "//third_party/WebKit/Source/bindings/scripts/aggregate_generated_b
indings.py" |
| 284 | 284 |
| 285 # Write lists of main IDL files to a file, so that the command lines don't | 285 inputs = invoker.sources |
| 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 | 286 outputs = invoker.outputs |
| 292 | 287 |
| 288 response_file_contents = rebase_path(inputs, root_build_dir) |
| 293 args = [ | 289 args = [ |
| 294 "--component-directory", | 290 "--component", |
| 295 invoker.component_dir, | 291 invoker.component, |
| 296 "--input-file", | 292 "{{response_file_name}}", |
| 297 rebase_path(idl_files_list, root_build_dir), | |
| 298 ] | 293 ] |
| 299 if (invoker.is_partial) { | 294 args += rebase_path(outputs, root_build_dir) |
| 300 args += [ "--partial" ] | 295 |
| 301 } | 296 public_deps = invoker.public_deps |
| 302 args += rebase_path(invoker.outputs, root_build_dir) | |
| 303 } | 297 } |
| 304 } | 298 } |
| 305 | 299 |
| 306 # Calls the compute_global_objects script. | 300 # Calls the compute_global_objects script. |
| 307 # | 301 # |
| 308 # Parameters: | 302 # Parameters: |
| 309 # sources = a list of source IDL files. | 303 # sources = a list of source IDL files. |
| 310 # sources_generated = a list of generated pickle sources. | 304 # sources_generated = a list of generated pickle sources. |
| 311 # output_file = a pickle file to write to (need to specify directory) | 305 # output_file = a pickle file to write to (need to specify directory) |
| 312 # | 306 # |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 args += [ rebase_path(output_idl_file, root_build_dir) ] | 382 args += [ rebase_path(output_idl_file, root_build_dir) ] |
| 389 output_idl_files += [ output_idl_file ] | 383 output_idl_files += [ output_idl_file ] |
| 390 output_header_files += | 384 output_header_files += |
| 391 [ "$output_dir/${interface}${component}Constructors.h" ] | 385 [ "$output_dir/${interface}${component}Constructors.h" ] |
| 392 } | 386 } |
| 393 | 387 |
| 394 outputs = output_idl_files + output_header_files | 388 outputs = output_idl_files + output_header_files |
| 395 deps = invoker.deps | 389 deps = invoker.deps |
| 396 } | 390 } |
| 397 } | 391 } |
| OLD | NEW |