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}
diff --git a/rtc_tools/BUILD.gn b/rtc_tools/BUILD.gn
index a37f210..bffa033 100644
--- a/rtc_tools/BUILD.gn
+++ b/rtc_tools/BUILD.gn
@@ -112,9 +112,7 @@
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 @@
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 @@
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 @@
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_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 @@
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_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 @@
"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",