blob: 7b60ccba543bf2333adacc81d3d55d2e9fa28a29 [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni")
import("//third_party/WebKit/Source/bindings/scripts/scripts.gni")
import("//third_party/WebKit/Source/modules/modules.gni")
visibility = [ "//third_party/WebKit/*" ]
# bindings_modules_generated in modules/v8/generated.gyp
group("bindings_modules_generated") {
public_deps = [
":bindings_modules_impl_generated",
":bindings_modules_v8_generated_aggregate",
":bindings_modules_v8_generated_individual",
":bindings_modules_v8_generated_init_partial",
":bindings_modules_v8_generated_partial_aggregate",
":bindings_modules_v8_generated_partial_individual",
]
}
# bindings_modules_generated_aggregate in modules/v8/generated.gyp
aggregate_generated_bindings("bindings_modules_v8_generated_aggregate") {
sources = modules_definition_idl_files
component_dir = "modules"
outputs = bindings_modules_generated_aggregate_files
}
# bindings_modules_generated_individual in modules/v8/generated.gyp
idl_compiler("bindings_modules_v8_generated_individual") {
# Note in GYP this is modules_interface_idl_files but this variable is just
# defined to modules_definition_idl_files.
sources = modules_definition_idl_files
output_dir = bindings_modules_v8_output_dir
output_name_suffix = ""
target_component = "modules"
}
# bindings_modules_impl_generated in modules/v8/generated.gyp
idl_impl("bindings_modules_impl_generated") {
sources = modules_dictionary_idl_files
outputs = bindings_modules_generated_union_type_files +
generated_modules_dictionary_files
output_dir = bindings_modules_v8_output_dir
target_component = "modules"
}
# bindings_modules_generated_individual in modules/v8/generated.gyp
idl_compiler("bindings_modules_v8_generated_partial_individual") {
# Note in GYP this is modules_interface_idl_files but this variable is just
# defined to modules_definition_idl_files.
sources = core_idl_with_modules_dependency_files +
webcore_testing_idl_with_modules_dependency_files
output_dir = bindings_modules_v8_output_dir
output_name_suffix = "Partial"
target_component = "modules"
}
# bindings_modules_generated_aggregate in modules/v8/generated.gyp
aggregate_generated_bindings(
"bindings_modules_v8_generated_partial_aggregate") {
sources = core_idl_with_modules_dependency_files
component_dir = "modules"
outputs = bindings_modules_generated_partial_aggregate_files
}
# GYP version: Source/bindings/modules/v8/generated.gyp:bindings_modules_v8_generated_init_partial
action("bindings_modules_v8_generated_init_partial") {
script = "$bindings_scripts_dir/generate_init_partial_interfaces.py"
inputs = [
"$bindings_modules_output_dir/InterfacesInfoOverall.pickle",
]
outputs = [
bindings_modules_generated_init_partial_interfaces_file,
]
# Put the IDL file list in a response file to avoid command-line limits.
response_file_contents =
rebase_path(core_idl_with_modules_dependency_files, root_build_dir)
args = [
"--idl-files-list",
"{{response_file_name}}",
"--output",
rebase_path(bindings_modules_generated_init_partial_interfaces_file,
root_build_dir),
"--write-file-only-if-changed=1",
]
deps = [
"//third_party/WebKit/Source/bindings/modules:interfaces_info",
]
}