Reformat GN files.
`gn format` recently [1] changed its formatting behavior for deps, source, and a few other elements when they are assigned (with =) single-element lists to be consistent with the formatting of updates (with +=) with single-element. Now that we've rolled in a GN binary with the change, reformat all files so that people don't get presubmit warnings due to this. CL generated with: $ git ls-files | grep BUILD.gn | xargs gn format $ gn format build_overrides/build.gni $ gn format build_overrides/gtest.gni $ gn format modules/audio_coding/audio_coding.gni $ gn format webrtc.gni $ gn format .gn Plus a few manual changes to add exceptions for "public_deps" (after changing these lines the presubmit started to complain). [1] - https://gn-review.googlesource.com/c/gn/+/6860 Bug: webrtc:11302 Change-Id: Iac29d23c1618ebef925c972e2891cd9f4e8cd613 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166882 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30334}
This commit is contained in:
committed by
Commit Bot
parent
0809e7ed43
commit
ccbe95fd8a
@ -112,9 +112,7 @@ rtc_library("video_quality_analysis") {
|
||||
rtc_executable("frame_analyzer") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
"frame_analyzer/frame_analyzer.cc",
|
||||
]
|
||||
sources = [ "frame_analyzer/frame_analyzer.cc" ]
|
||||
|
||||
deps = [
|
||||
":video_file_reader",
|
||||
@ -132,9 +130,7 @@ rtc_executable("frame_analyzer") {
|
||||
if (!build_with_chromium && !build_with_mozilla) {
|
||||
action("frame_analyzer_host") {
|
||||
script = "//tools_webrtc/executable_host_build.py"
|
||||
outputs = [
|
||||
"${root_out_dir}/frame_analyzer_host",
|
||||
]
|
||||
outputs = [ "${root_out_dir}/frame_analyzer_host" ]
|
||||
args = [
|
||||
"--executable_name",
|
||||
"frame_analyzer",
|
||||
@ -191,9 +187,7 @@ if (!build_with_chromium) {
|
||||
|
||||
rtc_executable("psnr_ssim_analyzer") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"psnr_ssim_analyzer/psnr_ssim_analyzer.cc",
|
||||
]
|
||||
sources = [ "psnr_ssim_analyzer/psnr_ssim_analyzer.cc" ]
|
||||
|
||||
deps = [
|
||||
":video_file_reader",
|
||||
@ -225,9 +219,7 @@ if (!build_with_chromium) {
|
||||
|
||||
rtc_executable("reference_less_video_analysis") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"frame_analyzer/reference_less_video_analysis.cc",
|
||||
]
|
||||
sources = [ "frame_analyzer/reference_less_video_analysis.cc" ]
|
||||
|
||||
deps = [
|
||||
":reference_less_video_analysis_lib",
|
||||
@ -320,9 +312,7 @@ if (rtc_include_tests) {
|
||||
if (rtc_enable_protobuf && !build_with_chromium) {
|
||||
rtc_executable("event_log_visualizer") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"rtc_event_log_visualizer/main.cc",
|
||||
]
|
||||
sources = [ "rtc_event_log_visualizer/main.cc" ]
|
||||
data = [
|
||||
# If --wav_filename is not provided, event_log_visualizer uses
|
||||
# EN_script2_F_sp2_B1.wav by default. This is a good default to use
|
||||
@ -364,9 +354,7 @@ if (rtc_include_tests) {
|
||||
bundle_data("tools_unittests_bundle_data") {
|
||||
testonly = true
|
||||
sources = tools_unittests_resources
|
||||
outputs = [
|
||||
"{{bundle_resources_dir}}/{{source_file_part}}",
|
||||
]
|
||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||
}
|
||||
}
|
||||
|
||||
@ -424,9 +412,7 @@ if (rtc_include_tests) {
|
||||
if (rtc_enable_protobuf) {
|
||||
rtc_executable("audioproc_f") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"audioproc_f/audioproc_float_main.cc",
|
||||
]
|
||||
sources = [ "audioproc_f/audioproc_float_main.cc" ]
|
||||
deps = [
|
||||
"../api:audioproc_f_api",
|
||||
"../modules/audio_processing",
|
||||
@ -442,20 +428,14 @@ if (rtc_include_tests) {
|
||||
"py_event_log_analyzer/rtp_analyzer.py",
|
||||
"py_event_log_analyzer/rtp_analyzer.sh",
|
||||
]
|
||||
outputs = [
|
||||
"$root_build_dir/{{source_file_part}}",
|
||||
]
|
||||
deps = [
|
||||
"../logging:rtc_event_log_proto",
|
||||
]
|
||||
outputs = [ "$root_build_dir/{{source_file_part}}" ]
|
||||
deps = [ "../logging:rtc_event_log_proto" ]
|
||||
} # rtp_analyzer
|
||||
|
||||
rtc_executable("unpack_aecdump") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
"unpack_aecdump/unpack.cc",
|
||||
]
|
||||
sources = [ "unpack_aecdump/unpack.cc" ]
|
||||
|
||||
deps = [
|
||||
"../api:function_view",
|
||||
|
||||
@ -13,16 +13,12 @@ if (rtc_enable_protobuf) {
|
||||
|
||||
if (rtc_enable_protobuf) {
|
||||
proto_library("network_tester_config_proto") {
|
||||
sources = [
|
||||
"network_tester_config.proto",
|
||||
]
|
||||
sources = [ "network_tester_config.proto" ]
|
||||
proto_out_dir = "rtc_tools/network_tester"
|
||||
}
|
||||
|
||||
proto_library("network_tester_packet_proto") {
|
||||
sources = [
|
||||
"network_tester_packet.proto",
|
||||
]
|
||||
sources = [ "network_tester_packet.proto" ]
|
||||
proto_out_dir = "rtc_tools/network_tester"
|
||||
}
|
||||
|
||||
@ -67,18 +63,14 @@ if (rtc_enable_protobuf) {
|
||||
bundle_data("network_tester_unittests_bundle_data") {
|
||||
testonly = true
|
||||
sources = network_tester_unittests_resources
|
||||
outputs = [
|
||||
"{{bundle_resources_dir}}/{{source_file_part}}",
|
||||
]
|
||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||
}
|
||||
}
|
||||
|
||||
rtc_library("network_tester_unittests") {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
"network_tester_unittest.cc",
|
||||
]
|
||||
sources = [ "network_tester_unittest.cc" ]
|
||||
|
||||
deps = [
|
||||
":network_tester",
|
||||
@ -98,13 +90,9 @@ if (rtc_enable_protobuf) {
|
||||
}
|
||||
|
||||
rtc_executable("network_tester_server") {
|
||||
sources = [
|
||||
"server.cc",
|
||||
]
|
||||
sources = [ "server.cc" ]
|
||||
|
||||
deps = [
|
||||
":network_tester",
|
||||
]
|
||||
deps = [ ":network_tester" ]
|
||||
}
|
||||
}
|
||||
|
||||
@ -147,13 +135,9 @@ if (is_android) {
|
||||
}
|
||||
|
||||
rtc_shared_library("network_tester_so") {
|
||||
sources = [
|
||||
"jni.cpp",
|
||||
]
|
||||
sources = [ "jni.cpp" ]
|
||||
|
||||
deps = [
|
||||
":network_tester",
|
||||
]
|
||||
deps = [ ":network_tester" ]
|
||||
|
||||
suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ]
|
||||
configs += [ "//build/config/android:hide_all_but_jni" ]
|
||||
|
||||
Reference in New Issue
Block a user