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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 "--input-file", | 296 "--input-file", |
297 rebase_path(idl_files_list, root_build_dir), | 297 rebase_path(idl_files_list, root_build_dir), |
298 ] | 298 ] |
299 if (invoker.is_partial) { | 299 if (invoker.is_partial) { |
300 args += [ "--partial" ] | 300 args += [ "--partial" ] |
301 } | 301 } |
302 args += rebase_path(invoker.outputs, root_build_dir) | 302 args += rebase_path(invoker.outputs, root_build_dir) |
303 } | 303 } |
304 } | 304 } |
305 | 305 |
306 # Calls the aggregate_generated_bindings script. | |
307 # | |
308 # Parameters: | |
309 # sources = a list of source IDL files. | |
310 # component_dir = Name of directory for these files (one word, no slashes). | |
311 # outputs = a list of files to write to. | |
312 template("aggregate_generated_bindings") { | |
313 action(target_name) { | |
314 script = "//third_party/WebKit/Source/bindings/scripts/aggregate_generated_b
indings.py" | |
315 | |
316 # Write lists of main IDL files to a file, so that the command lines don't | |
317 # exceed OS length limits. | |
318 idl_files_list = "$target_gen_dir/${target_name}_file_list.tmp" | |
319 write_file(idl_files_list, rebase_path(invoker.sources, root_build_dir)) | |
320 | |
321 inputs = [ idl_files_list ] + invoker.sources | |
322 outputs = invoker.outputs | |
323 | |
324 args = [ | |
325 "--component-directory", | |
326 invoker.component_dir, | |
327 "--input-file", | |
328 rebase_path(idl_files_list, root_build_dir), | |
329 ] | |
330 if (invoker.is_partial) { | |
331 args += [ "--partial" ] | |
332 } | |
333 args += rebase_path(invoker.outputs, root_build_dir) | |
334 } | |
335 } | |
336 | |
337 # Calls the compute_global_objects script. | 306 # Calls the compute_global_objects script. |
338 # | 307 # |
339 # Parameters: | 308 # Parameters: |
340 # sources = a list of source IDL files. | 309 # sources = a list of source IDL files. |
341 # sources_generated = a list of generated pickle sources. | 310 # sources_generated = a list of generated pickle sources. |
342 # 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) |
343 # | 312 # |
344 template("compute_global_objects") { | 313 template("compute_global_objects") { |
345 action(target_name) { | 314 action(target_name) { |
346 script = | 315 script = |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 args += [ rebase_path(output_idl_file, root_build_dir) ] | 388 args += [ rebase_path(output_idl_file, root_build_dir) ] |
420 output_idl_files += [ output_idl_file ] | 389 output_idl_files += [ output_idl_file ] |
421 output_header_files += | 390 output_header_files += |
422 [ "$output_dir/${interface}${component}Constructors.h" ] | 391 [ "$output_dir/${interface}${component}Constructors.h" ] |
423 } | 392 } |
424 | 393 |
425 outputs = output_idl_files + output_header_files | 394 outputs = output_idl_files + output_header_files |
426 deps = invoker.deps | 395 deps = invoker.deps |
427 } | 396 } |
428 } | 397 } |
OLD | NEW |