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
@ -212,19 +212,13 @@ rtc_library("audio_processing_statistics") {
|
||||
}
|
||||
|
||||
rtc_source_set("audio_frame_view") {
|
||||
sources = [
|
||||
"include/audio_frame_view.h",
|
||||
]
|
||||
deps = [
|
||||
"../../api:array_view",
|
||||
]
|
||||
sources = [ "include/audio_frame_view.h" ]
|
||||
deps = [ "../../api:array_view" ]
|
||||
}
|
||||
|
||||
rtc_source_set("audio_generator_interface") {
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
"include/audio_generator.h",
|
||||
]
|
||||
sources = [ "include/audio_generator.h" ]
|
||||
deps = [
|
||||
":audio_frame_view",
|
||||
"../../rtc_base:rtc_base_approved",
|
||||
@ -263,9 +257,7 @@ rtc_library("file_audio_generator") {
|
||||
|
||||
if (rtc_enable_protobuf) {
|
||||
proto_library("audioproc_debug_proto") {
|
||||
sources = [
|
||||
"debug.proto",
|
||||
]
|
||||
sources = [ "debug.proto" ]
|
||||
|
||||
proto_out_dir = "modules/audio_processing"
|
||||
}
|
||||
@ -289,9 +281,7 @@ rtc_library("apm_logging") {
|
||||
if (rtc_include_tests) {
|
||||
rtc_source_set("mocks") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"include/mock_audio_processing.h",
|
||||
]
|
||||
sources = [ "include/mock_audio_processing.h" ]
|
||||
deps = [
|
||||
":api",
|
||||
":audio_buffer",
|
||||
@ -450,9 +440,7 @@ if (rtc_include_tests) {
|
||||
testonly = true
|
||||
configs += [ ":apm_debug_dump" ]
|
||||
|
||||
sources = [
|
||||
"audio_processing_performance_unittest.cc",
|
||||
]
|
||||
sources = [ "audio_processing_performance_unittest.cc" ]
|
||||
deps = [
|
||||
":audio_processing",
|
||||
":audioproc_test_utils",
|
||||
@ -468,9 +456,7 @@ if (rtc_include_tests) {
|
||||
rtc_library("file_audio_generator_unittests") {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
"audio_generator/file_audio_generator_unittest.cc",
|
||||
]
|
||||
sources = [ "audio_generator/file_audio_generator_unittest.cc" ]
|
||||
|
||||
deps = [
|
||||
":api",
|
||||
@ -621,9 +607,7 @@ if (rtc_include_tests) {
|
||||
|
||||
if (rtc_enable_protobuf) {
|
||||
proto_library("audioproc_unittest_proto") {
|
||||
sources = [
|
||||
"test/unittest.proto",
|
||||
]
|
||||
sources = [ "test/unittest.proto" ]
|
||||
proto_out_dir = "modules/audio_processing/test"
|
||||
}
|
||||
|
||||
|
||||
@ -10,9 +10,7 @@ import("../../../webrtc.gni") # This contains def of 'rtc_enable_protobuf'
|
||||
|
||||
rtc_source_set("aec_dump") {
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
"aec_dump_factory.h",
|
||||
]
|
||||
sources = [ "aec_dump_factory.h" ]
|
||||
|
||||
deps = [
|
||||
"../",
|
||||
@ -38,9 +36,7 @@ rtc_library("mock_aec_dump") {
|
||||
rtc_library("mock_aec_dump_unittests") {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
"aec_dump_integration_test.cc",
|
||||
]
|
||||
sources = [ "aec_dump_integration_test.cc" ]
|
||||
|
||||
deps = [
|
||||
":mock_aec_dump",
|
||||
@ -92,17 +88,13 @@ if (rtc_enable_protobuf) {
|
||||
"../../../test:test_support",
|
||||
"//testing/gtest",
|
||||
]
|
||||
sources = [
|
||||
"aec_dump_unittest.cc",
|
||||
]
|
||||
sources = [ "aec_dump_unittest.cc" ]
|
||||
}
|
||||
}
|
||||
|
||||
rtc_library("null_aec_dump_factory") {
|
||||
assert_no_deps = [ ":aec_dump_impl" ]
|
||||
sources = [
|
||||
"null_aec_dump_factory.cc",
|
||||
]
|
||||
sources = [ "null_aec_dump_factory.cc" ]
|
||||
|
||||
deps = [
|
||||
":aec_dump",
|
||||
|
||||
@ -9,9 +9,7 @@
|
||||
import("../../../webrtc.gni")
|
||||
|
||||
rtc_source_set("gain_control_interface") {
|
||||
sources = [
|
||||
"gain_control.h",
|
||||
]
|
||||
sources = [ "gain_control.h" ]
|
||||
}
|
||||
|
||||
rtc_library("agc") {
|
||||
@ -93,9 +91,7 @@ rtc_library("agc_legacy_c") {
|
||||
}
|
||||
|
||||
rtc_source_set("gain_map") {
|
||||
sources = [
|
||||
"gain_map_internal.h",
|
||||
]
|
||||
sources = [ "gain_map_internal.h" ]
|
||||
}
|
||||
|
||||
if (rtc_include_tests) {
|
||||
|
||||
@ -199,9 +199,7 @@ rtc_library("adaptive_digital_unittests") {
|
||||
|
||||
rtc_library("biquad_filter_unittests") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"biquad_filter_unittest.cc",
|
||||
]
|
||||
sources = [ "biquad_filter_unittest.cc" ]
|
||||
deps = [
|
||||
":biquad_filter",
|
||||
"../../../rtc_base:gunit_helpers",
|
||||
@ -260,9 +258,7 @@ rtc_library("noise_estimator_unittests") {
|
||||
|
||||
rtc_library("rnn_vad_with_level_unittests") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"vad_with_level_unittest.cc",
|
||||
]
|
||||
sources = [ "vad_with_level_unittest.cc" ]
|
||||
deps = [
|
||||
":rnn_vad_with_level",
|
||||
"..:audio_frame_view",
|
||||
|
||||
@ -76,8 +76,8 @@ if (rtc_include_tests) {
|
||||
unittest_resources = [
|
||||
"../../../../resources/audio_processing/agc2/rnn_vad/band_energies.dat",
|
||||
"../../../../resources/audio_processing/agc2/rnn_vad/pitch_buf_24k.dat",
|
||||
"../../../../resources/audio_processing/agc2/rnn_vad/pitch_search_int.dat",
|
||||
"../../../../resources/audio_processing/agc2/rnn_vad/pitch_lp_res.dat",
|
||||
"../../../../resources/audio_processing/agc2/rnn_vad/pitch_search_int.dat",
|
||||
"../../../../resources/audio_processing/agc2/rnn_vad/samples.pcm",
|
||||
"../../../../resources/audio_processing/agc2/rnn_vad/vad_prob.dat",
|
||||
]
|
||||
@ -86,9 +86,7 @@ if (rtc_include_tests) {
|
||||
bundle_data("unittests_bundle_data") {
|
||||
testonly = true
|
||||
sources = unittest_resources
|
||||
outputs = [
|
||||
"{{bundle_resources_dir}}/{{source_file_part}}",
|
||||
]
|
||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||
}
|
||||
}
|
||||
|
||||
@ -130,9 +128,7 @@ if (rtc_include_tests) {
|
||||
|
||||
rtc_executable("rnn_vad_tool") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"rnn_vad_tool.cc",
|
||||
]
|
||||
sources = [ "rnn_vad_tool.cc" ]
|
||||
deps = [
|
||||
":rnn_vad",
|
||||
"../../../../api:array_view",
|
||||
|
||||
@ -34,9 +34,7 @@ rtc_library("legacy_ns") {
|
||||
|
||||
rtc_library("legacy_ns_c") {
|
||||
visibility = [ "*" ] # Only targets in this file can depend on this.
|
||||
sources = [
|
||||
"windows_private.h",
|
||||
]
|
||||
sources = [ "windows_private.h" ]
|
||||
|
||||
if (rtc_prefer_fixed_point) {
|
||||
sources += [
|
||||
@ -89,9 +87,7 @@ if (rtc_include_tests) {
|
||||
testonly = true
|
||||
|
||||
configs += []
|
||||
sources = [
|
||||
"legacy_noise_suppression_unittest.cc",
|
||||
]
|
||||
sources = [ "legacy_noise_suppression_unittest.cc" ]
|
||||
|
||||
deps = [
|
||||
"..:audio_buffer",
|
||||
|
||||
@ -73,9 +73,7 @@ if (rtc_include_tests) {
|
||||
testonly = true
|
||||
|
||||
configs += [ "..:apm_debug_dump" ]
|
||||
sources = [
|
||||
"noise_suppressor_unittest.cc",
|
||||
]
|
||||
sources = [ "noise_suppressor_unittest.cc" ]
|
||||
|
||||
deps = [
|
||||
":ns",
|
||||
|
||||
@ -10,16 +10,12 @@ import("../../../../webrtc.gni")
|
||||
|
||||
group("conversational_speech") {
|
||||
testonly = true
|
||||
deps = [
|
||||
":conversational_speech_generator",
|
||||
]
|
||||
deps = [ ":conversational_speech_generator" ]
|
||||
}
|
||||
|
||||
rtc_executable("conversational_speech_generator") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"generator.cc",
|
||||
]
|
||||
sources = [ "generator.cc" ]
|
||||
deps = [
|
||||
":lib",
|
||||
"../../../../test:fileutils",
|
||||
|
||||
@ -27,9 +27,7 @@ copy("scripts") {
|
||||
"apm_quality_assessment_gencfgs.py",
|
||||
"apm_quality_assessment_optimize.py",
|
||||
]
|
||||
outputs = [
|
||||
"$root_build_dir/py_quality_assessment/{{source_file_part}}",
|
||||
]
|
||||
outputs = [ "$root_build_dir/py_quality_assessment/{{source_file_part}}" ]
|
||||
deps = [
|
||||
":apm_configs",
|
||||
":lib",
|
||||
@ -41,9 +39,7 @@ copy("scripts") {
|
||||
|
||||
copy("apm_configs") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"apm_configs/default.json",
|
||||
]
|
||||
sources = [ "apm_configs/default.json" ]
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
outputs = [
|
||||
"$root_build_dir/py_quality_assessment/apm_configs/{{source_file_part}}",
|
||||
@ -77,23 +73,16 @@ copy("lib") {
|
||||
"quality_assessment/test_data_generation_factory.py",
|
||||
]
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
outputs = [
|
||||
"$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}",
|
||||
]
|
||||
deps = [
|
||||
"../../../../resources/audio_processing/test/py_quality_assessment:noise_tracks",
|
||||
]
|
||||
outputs = [ "$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}" ]
|
||||
deps = [ "../../../../resources/audio_processing/test/py_quality_assessment:noise_tracks" ]
|
||||
}
|
||||
|
||||
copy("output") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"output/README.md",
|
||||
]
|
||||
sources = [ "output/README.md" ]
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
outputs = [
|
||||
"$root_build_dir/py_quality_assessment/output/{{source_file_part}}",
|
||||
]
|
||||
outputs =
|
||||
[ "$root_build_dir/py_quality_assessment/output/{{source_file_part}}" ]
|
||||
}
|
||||
|
||||
group("unit_tests") {
|
||||
@ -110,9 +99,7 @@ group("unit_tests") {
|
||||
|
||||
rtc_executable("fake_polqa") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"quality_assessment/fake_polqa.cc",
|
||||
]
|
||||
sources = [ "quality_assessment/fake_polqa.cc" ]
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
output_dir = "${root_out_dir}/py_quality_assessment/quality_assessment"
|
||||
deps = [
|
||||
@ -123,9 +110,7 @@ rtc_executable("fake_polqa") {
|
||||
|
||||
rtc_executable("vad") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"quality_assessment/vad.cc",
|
||||
]
|
||||
sources = [ "quality_assessment/vad.cc" ]
|
||||
deps = [
|
||||
"../../../../common_audio",
|
||||
"../../../../rtc_base:rtc_base_approved",
|
||||
@ -136,9 +121,7 @@ rtc_executable("vad") {
|
||||
|
||||
rtc_executable("apm_vad") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"quality_assessment/apm_vad.cc",
|
||||
]
|
||||
sources = [ "quality_assessment/apm_vad.cc" ]
|
||||
deps = [
|
||||
"../..",
|
||||
"../../../../common_audio",
|
||||
@ -151,9 +134,7 @@ rtc_executable("apm_vad") {
|
||||
|
||||
rtc_executable("sound_level") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"quality_assessment/sound_level.cc",
|
||||
]
|
||||
sources = [ "quality_assessment/sound_level.cc" ]
|
||||
deps = [
|
||||
"../..",
|
||||
"../../../../common_audio",
|
||||
@ -176,18 +157,12 @@ copy("lib_unit_tests") {
|
||||
"quality_assessment/test_data_generation_unittest.py",
|
||||
]
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
outputs = [
|
||||
"$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}",
|
||||
]
|
||||
outputs = [ "$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}" ]
|
||||
}
|
||||
|
||||
copy("scripts_unit_tests") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"apm_quality_assessment_unittest.py",
|
||||
]
|
||||
sources = [ "apm_quality_assessment_unittest.py" ]
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
outputs = [
|
||||
"$root_build_dir/py_quality_assessment/{{source_file_part}}",
|
||||
]
|
||||
outputs = [ "$root_build_dir/py_quality_assessment/{{source_file_part}}" ]
|
||||
}
|
||||
|
||||
@ -27,9 +27,7 @@ rtc_library("legacy_delay_estimator") {
|
||||
"delay_estimator_wrapper.cc",
|
||||
"delay_estimator_wrapper.h",
|
||||
]
|
||||
deps = [
|
||||
"../../../rtc_base:checks",
|
||||
]
|
||||
deps = [ "../../../rtc_base:checks" ]
|
||||
}
|
||||
|
||||
rtc_library("ooura_fft") {
|
||||
@ -91,9 +89,7 @@ if (rtc_include_tests) {
|
||||
rtc_library("cascaded_biquad_filter_unittest") {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
"cascaded_biquad_filter_unittest.cc",
|
||||
]
|
||||
sources = [ "cascaded_biquad_filter_unittest.cc" ]
|
||||
deps = [
|
||||
":cascaded_biquad_filter",
|
||||
"../../../rtc_base:rtc_base_approved",
|
||||
@ -105,9 +101,7 @@ if (rtc_include_tests) {
|
||||
rtc_library("legacy_delay_estimator_unittest") {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
"delay_estimator_unittest.cc",
|
||||
]
|
||||
sources = [ "delay_estimator_unittest.cc" ]
|
||||
deps = [
|
||||
":legacy_delay_estimator",
|
||||
"../../../rtc_base:rtc_base_approved",
|
||||
@ -118,9 +112,7 @@ if (rtc_include_tests) {
|
||||
|
||||
rtc_library("pffft_wrapper_unittest") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"pffft_wrapper_unittest.cc",
|
||||
]
|
||||
sources = [ "pffft_wrapper_unittest.cc" ]
|
||||
deps = [
|
||||
":pffft_wrapper",
|
||||
"../../../test:test_support",
|
||||
|
||||
Reference in New Issue
Block a user