| Index: third_party/WebKit/Source/bindings/core/v8/BUILD.gn
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/BUILD.gn b/third_party/WebKit/Source/bindings/core/v8/BUILD.gn
|
| index c557169793e4f48e4aa4d099398c55c3ab0e89c4..5ea2d6b63694b43c754cae2269d7c0f6515ecd32 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/BUILD.gn
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/BUILD.gn
|
| @@ -252,6 +252,7 @@ if (is_win) {
|
| group("bindings_core_v8_generated") {
|
| public_deps = [
|
| ":bindings_core_impl_generated",
|
| + ":fake_gen",
|
| ]
|
| if (is_win) {
|
| public_deps += [ ":generate_bindings_core_v8_all_interfaces" ]
|
| @@ -270,6 +271,55 @@ idl_compiler("generate_bindings_core_v8_interfaces") {
|
| target_component = "core"
|
| }
|
|
|
| +action("fake_gen") {
|
| + input_dir = "//third_party/WebKit/fake_gen"
|
| + api_path = "web/api"
|
| + output_dir = "$root_gen_dir/blink/$api_path"
|
| +
|
| + script_name = "$input_dir/fake_the_gen.py"
|
| +
|
| + fake_gen_files = [
|
| + "document.cc",
|
| + "document.h",
|
| + "element.cc",
|
| + "element.h",
|
| + "node.cc",
|
| + "node.h",
|
| + "event.cc",
|
| + "event.h",
|
| + "event_target.cc",
|
| + "event_target.h",
|
| + ]
|
| +
|
| + inputs = [
|
| + script_name,
|
| + ]
|
| + outputs = []
|
| + foreach(gen_file, fake_gen_files) {
|
| + inputs += [ "$input_dir/$api_path/$gen_file" ]
|
| + outputs += [ "$output_dir/$gen_file" ]
|
| + }
|
| + script = script_name
|
| +
|
| + args = [ rebase_path("$output_dir") ]
|
| +}
|
| +
|
| +source_set("fake_gen_compiled") {
|
| + deps = [
|
| + ":fake_gen",
|
| + "//skia",
|
| + "//third_party/WebKit/Source/wtf",
|
| + "//v8",
|
| + ]
|
| +
|
| + sources = get_target_outputs(":fake_gen")
|
| +
|
| + configs += [
|
| + "//third_party/WebKit/Source:config",
|
| + "//third_party/WebKit/Source/core:blink_core_pch",
|
| + ]
|
| +}
|
| +
|
| aggregate_generated_bindings("generate_bindings_core_v8_all_interfaces") {
|
| sources = core_definition_idl_files
|
| outputs = [
|
|
|