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:
Mirko Bonadei
2020-01-21 12:10:10 +01:00
committed by Commit Bot
parent 0809e7ed43
commit ccbe95fd8a
67 changed files with 382 additions and 1132 deletions

View File

@ -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" ]