| Index: third_party/WebKit/Source/platform/BUILD.gn
|
| diff --git a/third_party/WebKit/Source/platform/BUILD.gn b/third_party/WebKit/Source/platform/BUILD.gn
|
| index f32658971139dc692df0a243d4d7e187b4495840..85ec55214aa77948ca95887b641c5f3ba75677ce 100644
|
| --- a/third_party/WebKit/Source/platform/BUILD.gn
|
| +++ b/third_party/WebKit/Source/platform/BUILD.gn
|
| @@ -172,6 +172,58 @@ executable("character_data_generator") {
|
| ]
|
| }
|
|
|
| +# Inspector protocol
|
| +
|
| +protocol_file = "../devtools/protocol.json"
|
| +
|
| +action("inspector_protocol_sources") {
|
| + script = "inspector_protocol/CodeGenerator.py"
|
| +
|
| + inputs = [
|
| + # The helper script imported by CodeGenerator.py.
|
| + "inspector_protocol/CodeGeneratorStrings.py",
|
| + protocol_file,
|
| + ]
|
| + outputs = [
|
| + "$blink_platform_output_dir/inspector_protocol/Dispatcher.cpp",
|
| + "$blink_platform_output_dir/inspector_protocol/Dispatcher.h",
|
| + "$blink_platform_output_dir/inspector_protocol/Frontend.cpp",
|
| + "$blink_platform_output_dir/inspector_protocol/Frontend.h",
|
| + "$blink_platform_output_dir/inspector_protocol/TypeBuilder.cpp",
|
| + "$blink_platform_output_dir/inspector_protocol/TypeBuilder.h",
|
| + ]
|
| +
|
| + args = [
|
| + rebase_path(protocol_file, root_build_dir),
|
| + "--output_dir",
|
| + rebase_path(blink_platform_output_dir + "/inspector_protocol/",
|
| + root_build_dir),
|
| + ]
|
| +
|
| + deps = [
|
| + ":inspector_protocol_version",
|
| + ]
|
| +}
|
| +
|
| +action("inspector_protocol_version") {
|
| + script = "inspector_protocol/generate-inspector-protocol-version"
|
| +
|
| + inputs = [
|
| + protocol_file,
|
| + ]
|
| + output_file =
|
| + "$blink_platform_output_dir/inspector_protocol/InspectorProtocolVersion.h"
|
| + outputs = [
|
| + output_file,
|
| + ]
|
| +
|
| + args = [
|
| + "-o",
|
| + rebase_path(output_file, root_build_dir),
|
| + rebase_path(protocol_file, root_build_dir),
|
| + ]
|
| +}
|
| +
|
| # This isn't strictly necessary since we can just add the deps to "platform",
|
| # but it helps to have the targets match the GYP build.
|
| group("make_platform_generated") {
|
| @@ -183,6 +235,7 @@ group("make_platform_generated") {
|
| ":color_data",
|
| ":font_family_names",
|
| ":http_names",
|
| + ":inspector_protocol_sources",
|
| ":runtime_enabled_features",
|
| ]
|
| }
|
| @@ -199,11 +252,12 @@ component("platform") {
|
| sources -= blink_platform_sse_files
|
|
|
| # Add in the generated files.
|
| - sources +=
|
| - get_target_outputs(":font_family_names") +
|
| - get_target_outputs(":http_names") +
|
| - get_target_outputs(":runtime_enabled_features") +
|
| - get_target_outputs(":color_data") + get_target_outputs(":character_data")
|
| + sources += get_target_outputs(":character_data") +
|
| + get_target_outputs(":color_data") +
|
| + get_target_outputs(":font_family_names") +
|
| + get_target_outputs(":http_names") +
|
| + get_target_outputs(":inspector_protocol_sources") +
|
| + get_target_outputs(":runtime_enabled_features")
|
|
|
| configs += [
|
| # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
|
|