| Index: third_party/WebKit/Source/bindings/scripts/scripts.gni
|
| diff --git a/third_party/WebKit/Source/bindings/scripts/scripts.gni b/third_party/WebKit/Source/bindings/scripts/scripts.gni
|
| index 9fefa29e601331ce506918801092f702ddc707e1..803e3c34f20eec5b1d5f88aaf25d7305fac9bcb4 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/scripts.gni
|
| +++ b/third_party/WebKit/Source/bindings/scripts/scripts.gni
|
| @@ -434,3 +434,50 @@ template("generate_global_constructors") {
|
| deps = invoker.deps
|
| }
|
| }
|
| +
|
| +# Calls the generate_conditional_features script.
|
| +#
|
| +# Parameters:
|
| +# sources = a list of source IDL files.
|
| +# global_objects_file = a global objects file generated by compute_global_objects
|
| +# component = component to generate conditional feature bindings for ("Core" or "Modules")
|
| +# output_dir = output directory to generate cpp file and header file.
|
| +# deps = dependencies
|
| +#
|
| +template("generate_conditional_features") {
|
| + action(target_name) {
|
| + script = "//third_party/WebKit/Source/bindings/scripts/generate_conditional_features.py"
|
| +
|
| + # Write the file list to a unique temp file to avoid blowing out the
|
| + # command line length limit.
|
| + idl_files_list = "$target_gen_dir/${target_name}_file_list.tmp"
|
| + write_file(idl_files_list, rebase_path(invoker.sources, root_build_dir))
|
| +
|
| + inputs = [
|
| + "//third_party/WebKit/Source/bindings/scripts/utilities.py",
|
| + idl_files_list,
|
| + invoker.global_objects_file,
|
| + ] + invoker.sources
|
| +
|
| + args = [
|
| + "--output-directory",
|
| + rebase_path(invoker.output_dir, root_build_dir),
|
| + "--info-dir",
|
| + "gen/blink/bindings",
|
| + "--cache-dir",
|
| + rebase_path(bindings_scripts_output_dir, root_build_dir),
|
| + "--target-component",
|
| + invoker.component,
|
| + "--idl-files-list",
|
| + rebase_path(idl_files_list, root_build_dir),
|
| + "--global-objects-file",
|
| + rebase_path(invoker.global_objects_file, root_build_dir),
|
| + ]
|
| +
|
| + outputs = [
|
| + "${invoker.output_dir}/ConditionalFeaturesFor${invoker.component}.cpp",
|
| + "${invoker.output_dir}/ConditionalFeaturesFor${invoker.component}.h",
|
| + ]
|
| + deps = invoker.deps
|
| + }
|
| +}
|
|
|