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/BUILD.gn b/BUILD.gn
index 4b5bba6..2989440 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -28,9 +28,7 @@
# 'ninja default' and then 'ninja all', the second build should do no work.
group("default") {
testonly = true
- deps = [
- ":webrtc",
- ]
+ deps = [ ":webrtc" ]
if (rtc_build_examples) {
deps += [ "examples" ]
}
@@ -74,8 +72,8 @@
if (is_android) {
deps += [
"examples:android_examples_junit_tests",
- "sdk/android:android_sdk_junit_tests",
"sdk/android:android_instrumentation_test_apk",
+ "sdk/android:android_sdk_junit_tests",
]
} else {
deps += [ "modules/video_capture:video_capture_tests" ]
@@ -486,9 +484,7 @@
rtc_executable("webrtc_lib_link_test") {
testonly = true
- sources = [
- "webrtc_lib_link_test.cc",
- ]
+ sources = [ "webrtc_lib_link_test.cc" ]
deps = [
# NOTE: Don't add deps here. If this test fails to link, it means you
# need to add stuff to the webrtc static lib target above.
@@ -504,9 +500,7 @@
# TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that
# client code gets updated.
visibility = [ "*" ]
- sources = [
- "common_types.h",
- ]
+ sources = [ "common_types.h" ]
}
if (use_libfuzzer || use_afl) {
@@ -514,9 +508,7 @@
# webrtc/test/fuzzers/.
group("webrtc_fuzzers_dummy") {
testonly = true
- deps = [
- "test/fuzzers:webrtc_fuzzer_main",
- ]
+ deps = [ "test/fuzzers:webrtc_fuzzer_main" ]
}
}
@@ -595,9 +587,7 @@
bundle_data("video_engine_tests_bundle_data") {
testonly = true
sources = video_engine_tests_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
@@ -643,9 +633,7 @@
bundle_data("webrtc_perf_tests_bundle_data") {
testonly = true
sources = webrtc_perf_tests_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
@@ -674,9 +662,7 @@
rtc_test("webrtc_nonparallel_tests") {
testonly = true
- deps = [
- "rtc_base:rtc_base_nonparallel_tests",
- ]
+ deps = [ "rtc_base:rtc_base_nonparallel_tests" ]
if (is_android) {
deps += [ "//testing/android/native_test:native_test_support" ]
shard_timeout = 900
diff --git a/api/BUILD.gn b/api/BUILD.gn
index f2a940e..a1969ca 100644
--- a/api/BUILD.gn
+++ b/api/BUILD.gn
@@ -23,19 +23,13 @@
rtc_source_set("call_api") {
visibility = [ "*" ]
- sources = [
- "call/audio_sink.h",
- ]
+ sources = [ "call/audio_sink.h" ]
}
rtc_source_set("callfactory_api") {
visibility = [ "*" ]
- sources = [
- "call/call_factory_interface.h",
- ]
- deps = [
- "../rtc_base/system:rtc_export",
- ]
+ sources = [ "call/call_factory_interface.h" ]
+ deps = [ "../rtc_base/system:rtc_export" ]
}
if (!build_with_chromium) {
@@ -248,17 +242,13 @@
rtc_source_set("scoped_refptr") {
visibility = [ "*" ]
- sources = [
- "scoped_refptr.h",
- ]
+ sources = [ "scoped_refptr.h" ]
}
rtc_source_set("video_quality_test_fixture_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/video_quality_test_fixture.h",
- ]
+ sources = [ "test/video_quality_test_fixture.h" ]
deps = [
":fec_controller_api",
":libjingle_peerconnection_api",
@@ -279,9 +269,7 @@
rtc_source_set("video_quality_analyzer_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/video_quality_analyzer_interface.h",
- ]
+ sources = [ "test/video_quality_analyzer_interface.h" ]
deps = [
":stats_observer_interface",
@@ -295,9 +283,7 @@
rtc_source_set("track_id_stream_label_map") {
visibility = [ "*" ]
- sources = [
- "test/track_id_stream_label_map.h",
- ]
+ sources = [ "test/track_id_stream_label_map.h" ]
}
rtc_library("rtp_parameters") {
@@ -320,9 +306,7 @@
rtc_source_set("audio_quality_analyzer_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/audio_quality_analyzer_interface.h",
- ]
+ sources = [ "test/audio_quality_analyzer_interface.h" ]
deps = [
":stats_observer_interface",
@@ -333,9 +317,7 @@
rtc_source_set("stats_observer_interface") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/stats_observer_interface.h",
- ]
+ sources = [ "test/stats_observer_interface.h" ]
deps = [
# For api/stats_types.h
@@ -347,9 +329,7 @@
rtc_source_set("peer_connection_quality_test_fixture_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/peerconnection_quality_test_fixture.h",
- ]
+ sources = [ "test/peerconnection_quality_test_fixture.h" ]
deps = [
":audio_quality_analyzer_api",
@@ -380,9 +360,7 @@
rtc_source_set("frame_generator_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/frame_generator_interface.h",
- ]
+ sources = [ "test/frame_generator_interface.h" ]
deps = [
":scoped_refptr",
@@ -471,9 +449,7 @@
rtc_source_set("libjingle_logging_api") {
visibility = [ "*" ]
- sources = [
- "rtc_event_log_output.h",
- ]
+ sources = [ "rtc_event_log_output.h" ]
}
rtc_library("rtc_event_log_output_file") {
@@ -535,9 +511,7 @@
rtc_source_set("bitrate_allocation") {
visibility = [ "*" ]
- sources = [
- "call/bitrate_allocation.h",
- ]
+ sources = [ "call/bitrate_allocation.h" ]
deps = [
"units:data_rate",
"units:time_delta",
@@ -547,9 +521,7 @@
# TODO(srte): Move to network_emulation sub directory.
rtc_source_set("simulated_network_api") {
visibility = [ "*" ]
- sources = [
- "test/simulated_network.h",
- ]
+ sources = [ "test/simulated_network.h" ]
deps = [
"../rtc_base",
"../rtc_base:criticalsection",
@@ -590,16 +562,12 @@
rtc_source_set("network_state_predictor_api") {
visibility = [ "*" ]
- sources = [
- "network_state_predictor.h",
- ]
+ sources = [ "network_state_predictor.h" ]
}
rtc_source_set("array_view") {
visibility = [ "*" ]
- sources = [
- "array_view.h",
- ]
+ sources = [ "array_view.h" ]
deps = [
"../rtc_base:checks",
"../rtc_base:type_traits",
@@ -608,12 +576,8 @@
rtc_source_set("refcountedbase") {
visibility = [ "*" ]
- sources = [
- "ref_counted_base.h",
- ]
- deps = [
- "../rtc_base:rtc_base_approved",
- ]
+ sources = [ "ref_counted_base.h" ]
+ deps = [ "../rtc_base:rtc_base_approved" ]
}
rtc_library("ice_transport_factory") {
@@ -643,12 +607,8 @@
rtc_source_set("function_view") {
visibility = [ "*" ]
- sources = [
- "function_view.h",
- ]
- deps = [
- "../rtc_base:checks",
- ]
+ sources = [ "function_view.h" ]
+ deps = [ "../rtc_base:checks" ]
}
if (rtc_include_tests) {
@@ -690,9 +650,7 @@
rtc_source_set("simulcast_test_fixture_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/simulcast_test_fixture.h",
- ]
+ sources = [ "test/simulcast_test_fixture.h" ]
}
rtc_library("create_simulcast_test_fixture_api") {
@@ -745,9 +703,7 @@
rtc_source_set("mock_audio_mixer") {
testonly = true
- sources = [
- "test/mock_audio_mixer.h",
- ]
+ sources = [ "test/mock_audio_mixer.h" ]
deps = [
"../test:test_support",
@@ -757,9 +713,7 @@
rtc_source_set("mock_fec_controller_override") {
testonly = true
- sources = [
- "test/mock_fec_controller_override.h",
- ]
+ sources = [ "test/mock_fec_controller_override.h" ]
deps = [
":fec_controller_api",
"../test:test_support",
@@ -830,9 +784,7 @@
rtc_source_set("dummy_peer_connection") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/dummy_peer_connection.h",
- ]
+ sources = [ "test/dummy_peer_connection.h" ]
deps = [
":libjingle_peerconnection_api",
@@ -844,9 +796,7 @@
rtc_source_set("mock_peerconnectioninterface") {
testonly = true
- sources = [
- "test/mock_peerconnectioninterface.h",
- ]
+ sources = [ "test/mock_peerconnectioninterface.h" ]
deps = [
":libjingle_peerconnection_api",
@@ -869,9 +819,7 @@
rtc_source_set("mock_video_bitrate_allocator") {
testonly = true
- sources = [
- "test/mock_video_bitrate_allocator.h",
- ]
+ sources = [ "test/mock_video_bitrate_allocator.h" ]
deps = [
"../api/video:video_bitrate_allocator",
@@ -881,9 +829,7 @@
rtc_source_set("mock_video_bitrate_allocator_factory") {
testonly = true
- sources = [
- "test/mock_video_bitrate_allocator_factory.h",
- ]
+ sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
deps = [
"../api/video:video_bitrate_allocator_factory",
@@ -970,9 +916,7 @@
rtc_library("time_controller") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/time_controller.h",
- ]
+ sources = [ "test/time_controller.h" ]
deps = [
"../modules:module_api",
@@ -1052,9 +996,7 @@
rtc_library("compile_all_headers") {
testonly = true
- sources = [
- "test/compile_all_headers.cc",
- ]
+ sources = [ "test/compile_all_headers.cc" ]
deps = [
":fake_frame_decryptor",
diff --git a/api/audio/BUILD.gn b/api/audio/BUILD.gn
index 270a065..2405d9d 100644
--- a/api/audio/BUILD.gn
+++ b/api/audio/BUILD.gn
@@ -26,9 +26,7 @@
rtc_source_set("audio_mixer_api") {
visibility = [ "*" ]
- sources = [
- "audio_mixer.h",
- ]
+ sources = [ "audio_mixer.h" ]
deps = [
":audio_frame_api",
@@ -86,10 +84,6 @@
rtc_source_set("echo_control") {
visibility = [ "*" ]
- sources = [
- "echo_control.h",
- ]
- deps = [
- "../../rtc_base:checks",
- ]
+ sources = [ "echo_control.h" ]
+ deps = [ "../../rtc_base:checks" ]
}
diff --git a/api/audio_codecs/g722/BUILD.gn b/api/audio_codecs/g722/BUILD.gn
index 952188a..8738ef8 100644
--- a/api/audio_codecs/g722/BUILD.gn
+++ b/api/audio_codecs/g722/BUILD.gn
@@ -14,9 +14,7 @@
rtc_source_set("audio_encoder_g722_config") {
visibility = [ "*" ]
- sources = [
- "audio_encoder_g722_config.h",
- ]
+ sources = [ "audio_encoder_g722_config.h" ]
}
rtc_library("audio_encoder_g722") {
diff --git a/api/audio_codecs/ilbc/BUILD.gn b/api/audio_codecs/ilbc/BUILD.gn
index 14f9268..066a73c 100644
--- a/api/audio_codecs/ilbc/BUILD.gn
+++ b/api/audio_codecs/ilbc/BUILD.gn
@@ -14,9 +14,7 @@
rtc_source_set("audio_encoder_ilbc_config") {
visibility = [ "*" ]
- sources = [
- "audio_encoder_ilbc_config.h",
- ]
+ sources = [ "audio_encoder_ilbc_config.h" ]
}
rtc_library("audio_encoder_ilbc") {
diff --git a/api/audio_codecs/isac/BUILD.gn b/api/audio_codecs/isac/BUILD.gn
index 469176f..9eb3214 100644
--- a/api/audio_codecs/isac/BUILD.gn
+++ b/api/audio_codecs/isac/BUILD.gn
@@ -20,36 +20,24 @@
rtc_source_set("audio_encoder_isac") {
visibility = [ "*" ]
poisonous = [ "audio_codecs" ]
- public = [
- "audio_encoder_isac.h",
- ]
+ public = [ "audio_encoder_isac.h" ]
public_configs = [ ":isac_config" ]
if (current_cpu == "arm") {
- deps = [
- ":audio_encoder_isac_fix",
- ]
+ deps = [ ":audio_encoder_isac_fix" ]
} else {
- deps = [
- ":audio_encoder_isac_float",
- ]
+ deps = [ ":audio_encoder_isac_float" ]
}
}
rtc_source_set("audio_decoder_isac") {
visibility = [ "*" ]
poisonous = [ "audio_codecs" ]
- public = [
- "audio_decoder_isac.h",
- ]
+ public = [ "audio_decoder_isac.h" ]
public_configs = [ ":isac_config" ]
if (current_cpu == "arm") {
- deps = [
- ":audio_decoder_isac_fix",
- ]
+ deps = [ ":audio_decoder_isac_fix" ]
} else {
- deps = [
- ":audio_decoder_isac_float",
- ]
+ deps = [ ":audio_decoder_isac_float" ]
}
}
diff --git a/api/audio_codecs/opus/BUILD.gn b/api/audio_codecs/opus/BUILD.gn
index 7131b28..5fb626d 100644
--- a/api/audio_codecs/opus/BUILD.gn
+++ b/api/audio_codecs/opus/BUILD.gn
@@ -35,20 +35,14 @@
rtc_source_set("audio_decoder_opus_config") {
visibility = [ "*" ]
- sources = [
- "audio_decoder_multi_channel_opus_config.h",
- ]
+ sources = [ "audio_decoder_multi_channel_opus_config.h" ]
}
rtc_library("audio_encoder_opus") {
visibility = [ "*" ]
poisonous = [ "audio_codecs" ]
- public = [
- "audio_encoder_opus.h",
- ]
- sources = [
- "audio_encoder_opus.cc",
- ]
+ public = [ "audio_encoder_opus.h" ]
+ sources = [ "audio_encoder_opus.cc" ]
deps = [
":audio_encoder_opus_config",
"..:audio_codecs_api",
@@ -80,12 +74,8 @@
rtc_library("audio_encoder_multiopus") {
visibility = [ "*" ]
poisonous = [ "audio_codecs" ]
- public = [
- "audio_encoder_multi_channel_opus.h",
- ]
- sources = [
- "audio_encoder_multi_channel_opus.cc",
- ]
+ public = [ "audio_encoder_multi_channel_opus.h" ]
+ sources = [ "audio_encoder_multi_channel_opus.cc" ]
deps = [
"..:audio_codecs_api",
"../../../modules/audio_coding:webrtc_multiopus",
diff --git a/api/crypto/BUILD.gn b/api/crypto/BUILD.gn
index 302b16e..70626f6 100644
--- a/api/crypto/BUILD.gn
+++ b/api/crypto/BUILD.gn
@@ -30,9 +30,7 @@
rtc_source_set("frame_decryptor_interface") {
visibility = [ "*" ]
- sources = [
- "frame_decryptor_interface.h",
- ]
+ sources = [ "frame_decryptor_interface.h" ]
deps = [
"..:array_view",
"..:rtp_parameters",
@@ -42,9 +40,7 @@
rtc_source_set("frame_encryptor_interface") {
visibility = [ "*" ]
- sources = [
- "frame_encryptor_interface.h",
- ]
+ sources = [ "frame_encryptor_interface.h" ]
deps = [
"..:array_view",
"..:rtp_parameters",
diff --git a/api/neteq/BUILD.gn b/api/neteq/BUILD.gn
index 31c4979..f1e5d1d 100644
--- a/api/neteq/BUILD.gn
+++ b/api/neteq/BUILD.gn
@@ -87,9 +87,7 @@
rtc_source_set("tick_timer_unittest") {
visibility = [ "*" ]
testonly = true
- sources = [
- "tick_timer_unittest.cc",
- ]
+ sources = [ "tick_timer_unittest.cc" ]
deps = [
":tick_timer",
"../../test:test_support",
diff --git a/api/task_queue/BUILD.gn b/api/task_queue/BUILD.gn
index 00be784..4c9f591 100644
--- a/api/task_queue/BUILD.gn
+++ b/api/task_queue/BUILD.gn
@@ -15,9 +15,7 @@
"task_queue_base.h",
"task_queue_factory.h",
]
- sources = [
- "task_queue_base.cc",
- ]
+ sources = [ "task_queue_base.cc" ]
deps = [
"../../rtc_base:checks",
@@ -75,12 +73,8 @@
if (!is_ios && !is_android) {
poisonous = [ "default_task_queue" ]
}
- sources = [
- "default_task_queue_factory.h",
- ]
- deps = [
- ":task_queue",
- ]
+ sources = [ "default_task_queue_factory.h" ]
+ deps = [ ":task_queue" ]
if (rtc_enable_libevent) {
sources += [ "default_task_queue_factory_libevent.cc" ]
@@ -100,9 +94,7 @@
if (rtc_include_tests) {
rtc_library("task_queue_default_factory_unittests") {
testonly = true
- sources = [
- "default_task_queue_factory_unittest.cc",
- ]
+ sources = [ "default_task_queue_factory_unittest.cc" ]
deps = [
":default_task_queue_factory",
":task_queue_test",
diff --git a/api/transport/BUILD.gn b/api/transport/BUILD.gn
index 7f39975..0f07301 100644
--- a/api/transport/BUILD.gn
+++ b/api/transport/BUILD.gn
@@ -22,9 +22,7 @@
rtc_source_set("enums") {
visibility = [ "*" ]
- sources = [
- "enums.h",
- ]
+ sources = [ "enums.h" ]
}
rtc_library("network_control") {
@@ -50,9 +48,7 @@
rtc_source_set("webrtc_key_value_config") {
visibility = [ "*" ]
- sources = [
- "webrtc_key_value_config.h",
- ]
+ sources = [ "webrtc_key_value_config.h" ]
deps = [
"../../rtc_base/system:rtc_export",
"//third_party/abseil-cpp/absl/strings",
@@ -122,9 +118,7 @@
if (rtc_include_tests) {
rtc_source_set("test_feedback_generator_interface") {
testonly = true
- sources = [
- "test/feedback_generator_interface.h",
- ]
+ sources = [ "test/feedback_generator_interface.h" ]
deps = [
":network_control",
"..:simulated_network_api",
@@ -149,9 +143,7 @@
rtc_source_set("stun_unittest") {
visibility = [ "*" ]
testonly = true
- sources = [
- "stun_unittest.cc",
- ]
+ sources = [ "stun_unittest.cc" ]
deps = [
":stun_types",
"../../rtc_base",
@@ -166,9 +158,7 @@
if (rtc_include_tests) {
rtc_source_set("mock_network_control") {
testonly = true
- sources = [
- "test/mock_network_control.h",
- ]
+ sources = [ "test/mock_network_control.h" ]
deps = [
":network_control",
"../../test:test_support",
diff --git a/api/transport/media/BUILD.gn b/api/transport/media/BUILD.gn
index ca7531d..24a364c 100644
--- a/api/transport/media/BUILD.gn
+++ b/api/transport/media/BUILD.gn
@@ -39,9 +39,7 @@
"audio_transport.cc",
"audio_transport.h",
]
- deps = [
- "../..:array_view",
- ]
+ deps = [ "../..:array_view" ]
}
rtc_library("video_interfaces") {
@@ -50,7 +48,5 @@
"video_transport.cc",
"video_transport.h",
]
- deps = [
- "../../video:encoded_image",
- ]
+ deps = [ "../../video:encoded_image" ]
}
diff --git a/api/video/test/BUILD.gn b/api/video/test/BUILD.gn
index e755670..3dcb909 100644
--- a/api/video/test/BUILD.gn
+++ b/api/video/test/BUILD.gn
@@ -26,9 +26,7 @@
rtc_source_set("mock_recordable_encoded_frame") {
testonly = true
visibility = [ "*" ]
- sources = [
- "mock_recordable_encoded_frame.h",
- ]
+ sources = [ "mock_recordable_encoded_frame.h" ]
deps = [
"..:recordable_encoded_frame",
diff --git a/audio/BUILD.gn b/audio/BUILD.gn
index 6f815f3..80f2d52 100644
--- a/audio/BUILD.gn
+++ b/audio/BUILD.gn
@@ -213,9 +213,7 @@
group("low_bandwidth_audio_perf_test") {
testonly = true
- deps = [
- ":low_bandwidth_audio_test",
- ]
+ deps = [ ":low_bandwidth_audio_test" ]
data = [
"test/low_bandwidth_audio_test.py",
@@ -274,8 +272,6 @@
"//testing/gtest",
]
- data = [
- "//resources/voice_engine/audio_dtx16.wav",
- ]
+ data = [ "//resources/voice_engine/audio_dtx16.wav" ]
}
}
diff --git a/audio/utility/BUILD.gn b/audio/utility/BUILD.gn
index f06a6b3..54ca046 100644
--- a/audio/utility/BUILD.gn
+++ b/audio/utility/BUILD.gn
@@ -8,9 +8,7 @@
import("../../webrtc.gni")
group("utility") {
- deps = [
- ":audio_frame_operations",
- ]
+ deps = [ ":audio_frame_operations" ]
}
rtc_library("audio_frame_operations") {
diff --git a/call/BUILD.gn b/call/BUILD.gn
index 85d9cb8..e14370c 100644
--- a/call/BUILD.gn
+++ b/call/BUILD.gn
@@ -66,12 +66,8 @@
rtc_source_set("audio_sender_interface") {
visibility = [ "*" ]
- sources = [
- "audio_sender.h",
- ]
- deps = [
- "../api/audio:audio_frame_api",
- ]
+ sources = [ "audio_sender.h" ]
+ deps = [ "../api/audio:audio_frame_api" ]
}
# TODO(nisse): These RTP targets should be moved elsewhere
@@ -335,9 +331,7 @@
}
rtc_source_set("simulated_packet_receiver") {
- sources = [
- "simulated_packet_receiver.h",
- ]
+ sources = [ "simulated_packet_receiver.h" ]
deps = [
":call_interfaces",
"../api:simulated_network_api",
@@ -519,9 +513,7 @@
rtc_source_set("mock_bitrate_allocator") {
testonly = true
- sources = [
- "test/mock_bitrate_allocator.h",
- ]
+ sources = [ "test/mock_bitrate_allocator.h" ]
deps = [
":bitrate_allocator",
"../test:test_support",
@@ -530,9 +522,7 @@
rtc_source_set("mock_call_interfaces") {
testonly = true
- sources = [
- "test/mock_audio_send_stream.h",
- ]
+ sources = [ "test/mock_audio_send_stream.h" ]
deps = [
":call_interfaces",
"../test:test_support",
diff --git a/common_audio/BUILD.gn b/common_audio/BUILD.gn
index 8b18fcb..8fc4689 100644
--- a/common_audio/BUILD.gn
+++ b/common_audio/BUILD.gn
@@ -205,9 +205,7 @@
}
rtc_source_set("sinc_resampler") {
- sources = [
- "resampler/sinc_resampler.h",
- ]
+ sources = [ "resampler/sinc_resampler.h" ]
deps = [
"../rtc_base:gtest_prod",
"../rtc_base:rtc_base_approved",
@@ -219,9 +217,7 @@
rtc_source_set("fir_filter") {
visibility += webrtc_default_visibility
- sources = [
- "fir_filter.h",
- ]
+ sources = [ "fir_filter.h" ]
}
rtc_library("fir_filter_factory") {
diff --git a/common_audio/third_party/spl_sqrt_floor/BUILD.gn b/common_audio/third_party/spl_sqrt_floor/BUILD.gn
index 239a859..ac862c6 100644
--- a/common_audio/third_party/spl_sqrt_floor/BUILD.gn
+++ b/common_audio/third_party/spl_sqrt_floor/BUILD.gn
@@ -10,9 +10,7 @@
rtc_library("spl_sqrt_floor") {
visibility = [ "../..:common_audio_c" ]
- sources = [
- "spl_sqrt_floor.h",
- ]
+ sources = [ "spl_sqrt_floor.h" ]
deps = []
if (current_cpu == "arm") {
sources += [ "spl_sqrt_floor_arm.S" ]
diff --git a/common_video/BUILD.gn b/common_video/BUILD.gn
index f5751d0..ddf4c2d 100644
--- a/common_video/BUILD.gn
+++ b/common_video/BUILD.gn
@@ -72,9 +72,7 @@
bundle_data("common_video_unittests_bundle_data") {
testonly = true
sources = common_video_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
diff --git a/examples/BUILD.gn b/examples/BUILD.gn
index dbcd84b..4f76cad 100644
--- a/examples/BUILD.gn
+++ b/examples/BUILD.gn
@@ -66,17 +66,13 @@
"turnserver/read_auth_file.cc",
"turnserver/read_auth_file.h",
]
- deps = [
- "../rtc_base",
- ]
+ deps = [ "../rtc_base" ]
}
if (rtc_include_tests) {
rtc_test("examples_unittests") {
testonly = true
- sources = [
- "turnserver/read_auth_file_unittest.cc",
- ]
+ sources = [ "turnserver/read_auth_file_unittest.cc" ]
deps = [
":read_auth_file",
"../test:test_main",
@@ -199,13 +195,9 @@
if (is_ios) {
# iOS must use WebRTC.framework which is dynamically linked.
- deps = [
- "../sdk:framework_objc+link",
- ]
+ deps = [ "../sdk:framework_objc+link" ]
} else {
- deps = [
- "../sdk:mac_framework_objc+link",
- ]
+ deps = [ "../sdk:mac_framework_objc+link" ]
}
}
@@ -323,9 +315,7 @@
ios_app_bundle("AppRTCMobile") {
testonly = true
- sources = [
- "objc/AppRTCMobile/ios/main.m",
- ]
+ sources = [ "objc/AppRTCMobile/ios/main.m" ]
info_plist = "objc/AppRTCMobile/ios/Info.plist"
@@ -354,28 +344,16 @@
if (rtc_apprtcmobile_broadcast_extension) {
bundle_data("AppRTCMobileBroadcastUpload_extension_bundle") {
testonly = true
- public_deps = [
- ":AppRTCMobileBroadcastUpload",
- ]
- sources = [
- "$root_out_dir/AppRTCMobileBroadcastUpload.appex",
- ]
- outputs = [
- "{{bundle_contents_dir}}/Plugins/{{source_file_part}}",
- ]
+ public_deps = [ ":AppRTCMobileBroadcastUpload" ] # no-presubmit-check TODO(webrtc:8603)
+ sources = [ "$root_out_dir/AppRTCMobileBroadcastUpload.appex" ]
+ outputs = [ "{{bundle_contents_dir}}/Plugins/{{source_file_part}}" ]
}
bundle_data("AppRTCMobileBroadcastSetupUI_extension_bundle") {
testonly = true
- public_deps = [
- ":AppRTCMobileBroadcastSetupUI",
- ]
- sources = [
- "$root_out_dir/AppRTCMobileBroadcastSetupUI.appex",
- ]
- outputs = [
- "{{bundle_contents_dir}}/Plugins/{{source_file_part}}",
- ]
+ public_deps = [ ":AppRTCMobileBroadcastSetupUI" ] # no-presubmit-check TODO(webrtc:8603)
+ sources = [ "$root_out_dir/AppRTCMobileBroadcastSetupUI.appex" ]
+ outputs = [ "{{bundle_contents_dir}}/Plugins/{{source_file_part}}" ]
}
rtc_library("AppRTCMobileBroadcastUpload_lib") {
@@ -417,9 +395,7 @@
libs = [ "ReplayKit.framework" ]
- deps = [
- ":AppRTCMobile_ios_bundle_data",
- ]
+ deps = [ ":AppRTCMobile_ios_bundle_data" ]
}
}
@@ -447,9 +423,7 @@
"objc/Icon-180.png",
"objc/Icon.png",
]
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
rtc_library("ObjCNativeAPIDemo_lib") {
@@ -491,18 +465,14 @@
ios_app_bundle("ObjCNativeAPIDemo") {
testonly = true
- sources = [
- "objcnativeapi/objc/main.m",
- ]
+ sources = [ "objcnativeapi/objc/main.m" ]
info_plist = "objcnativeapi/Info.plist"
configs += [ "..:common_config" ]
public_configs = [ "..:common_inherited_config" ]
- deps = [
- ":ObjCNativeAPIDemo_lib",
- ]
+ deps = [ ":ObjCNativeAPIDemo_lib" ]
if (target_cpu == "x86") {
deps += [ "//testing/iossim" ]
@@ -531,9 +501,7 @@
testonly = true
output_name = "AppRTCMobile"
- sources = [
- "objc/AppRTCMobile/mac/main.m",
- ]
+ sources = [ "objc/AppRTCMobile/mac/main.m" ]
public_configs = [ "..:common_inherited_config" ]
@@ -619,9 +587,7 @@
rtc_ios_xctest_test("apprtcmobile_tests") {
info_plist = "objc/AppRTCMobile/ios/Info.plist"
- sources = [
- "objc/AppRTCMobile/tests/main.mm",
- ]
+ sources = [ "objc/AppRTCMobile/tests/main.mm" ]
deps = [
":AppRTCMobile_lib",
":apprtcmobile_test_sources",
@@ -741,9 +707,7 @@
}
rtc_executable("turnserver") {
testonly = true
- sources = [
- "turnserver/turnserver_main.cc",
- ]
+ sources = [ "turnserver/turnserver_main.cc" ]
deps = [
":read_auth_file",
"../p2p:p2p_server_utils",
@@ -755,9 +719,7 @@
}
rtc_executable("stunserver") {
testonly = true
- sources = [
- "stunserver/stunserver_main.cc",
- ]
+ sources = [ "stunserver/stunserver_main.cc" ]
deps = [
"../p2p:p2p_server_utils",
"../p2p:rtc_p2p",
@@ -826,9 +788,7 @@
if (is_android) {
rtc_android_library("webrtc_unity_java") {
- sources = [
- "unityplugin/java/src/org/webrtc/UnityUtility.java",
- ]
+ sources = [ "unityplugin/java/src/org/webrtc/UnityUtility.java" ]
deps = [
"../rtc_base:base_java",
"../sdk/android:camera_java",
@@ -879,9 +839,7 @@
# Doesn't build within Chrome on Win.
rtc_executable("stun_prober") {
testonly = true
- sources = [
- "stunprober/main.cc",
- ]
+ sources = [ "stunprober/main.cc" ]
deps = [
"../p2p:libstunprober",
"../p2p:rtc_p2p",
diff --git a/examples/androidnativeapi/BUILD.gn b/examples/androidnativeapi/BUILD.gn
index a5ad414..9dd2bf4 100644
--- a/examples/androidnativeapi/BUILD.gn
+++ b/examples/androidnativeapi/BUILD.gn
@@ -28,9 +28,7 @@
generate_jni("generated_jni") {
testonly = true
- sources = [
- "java/org/webrtc/examples/androidnativeapi/CallClient.java",
- ]
+ sources = [ "java/org/webrtc/examples/androidnativeapi/CallClient.java" ]
namespace = "webrtc_examples"
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
}
diff --git a/logging/BUILD.gn b/logging/BUILD.gn
index 8046137..28176d2 100644
--- a/logging/BUILD.gn
+++ b/logging/BUILD.gn
@@ -27,13 +27,9 @@
}
rtc_source_set("rtc_event_log_api") {
- sources = [
- "rtc_event_log/encoder/rtc_event_log_encoder.h",
- ]
+ sources = [ "rtc_event_log/encoder/rtc_event_log_encoder.h" ]
- deps = [
- "../api/rtc_event_log",
- ]
+ deps = [ "../api/rtc_event_log" ]
}
rtc_library("rtc_stream_config") {
@@ -226,12 +222,8 @@
# TODO(bugs.webrtc.org/6463): For backwards compatibility; delete as
# soon as downstream dependencies are updated.
rtc_source_set("rtc_event_log_impl_output") {
- sources = [
- "rtc_event_log/output/rtc_event_log_output_file.h",
- ]
- deps = [
- "../api:rtc_event_log_output_file",
- ]
+ sources = [ "rtc_event_log/output/rtc_event_log_output_file.h" ]
+ deps = [ "../api:rtc_event_log_output_file" ]
}
if (rtc_enable_protobuf) {
@@ -278,17 +270,13 @@
if (rtc_enable_protobuf) {
proto_library("rtc_event_log_proto") {
visibility = [ "*" ]
- sources = [
- "rtc_event_log/rtc_event_log.proto",
- ]
+ sources = [ "rtc_event_log/rtc_event_log.proto" ]
proto_out_dir = "logging/rtc_event_log"
}
proto_library("rtc_event_log2_proto") {
visibility = [ "*" ]
- sources = [
- "rtc_event_log/rtc_event_log2.proto",
- ]
+ sources = [ "rtc_event_log/rtc_event_log2.proto" ]
proto_out_dir = "logging/rtc_event_log"
}
@@ -388,9 +376,7 @@
rtc_executable("rtc_event_log_rtp_dump") {
testonly = true
- sources = [
- "rtc_event_log/rtc_event_log2rtp_dump.cc",
- ]
+ sources = [ "rtc_event_log/rtc_event_log2rtp_dump.cc" ]
deps = [
":rtc_event_log_parser",
"../api:array_view",
diff --git a/media/BUILD.gn b/media/BUILD.gn
index b339466..013019b 100644
--- a/media/BUILD.gn
+++ b/media/BUILD.gn
@@ -42,9 +42,7 @@
rtc_source_set("rtc_media_config") {
visibility = [ "*" ]
- sources = [
- "base/media_config.h",
- ]
+ sources = [ "base/media_config.h" ]
}
rtc_library("rtc_vp9_profile") {
@@ -418,9 +416,7 @@
]
} else {
# libtool on mac does not like empty targets.
- sources = [
- "sctp/noop.cc",
- ]
+ sources = [ "sctp/noop.cc" ]
}
if (rtc_enable_sctp && rtc_build_usrsctp) {
@@ -517,9 +513,7 @@
bundle_data("rtc_media_unittests_bundle_data") {
testonly = true
sources = rtc_media_unittests_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
diff --git a/modules/BUILD.gn b/modules/BUILD.gn
index 4fe4db5..2c95fc4 100644
--- a/modules/BUILD.gn
+++ b/modules/BUILD.gn
@@ -30,9 +30,7 @@
}
rtc_source_set("module_api_public") {
- sources = [
- "include/module_common_types_public.h",
- ]
+ sources = [ "include/module_common_types_public.h" ]
deps = [
"..:webrtc_common",
"//third_party/abseil-cpp/absl/types:optional",
@@ -54,9 +52,7 @@
rtc_source_set("module_fec_api") {
visibility = [ "*" ]
- sources = [
- "include/module_fec_types.h",
- ]
+ sources = [ "include/module_fec_types.h" ]
}
if (rtc_include_tests) {
@@ -70,9 +66,7 @@
bundle_data("modules_tests_bundle_data") {
testonly = true
sources = modules_tests_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
@@ -114,9 +108,9 @@
"../resources/audio_coding/neteq_opus.rtp",
"../resources/audio_coding/neteq_opus_dtx.rtp",
"../resources/audio_coding/neteq_universal_new.rtp",
+ "../resources/audio_coding/speech_4_channels_48k_one_second.wav",
"../resources/audio_coding/speech_mono_16kHz.pcm",
"../resources/audio_coding/speech_mono_32_48kHz.pcm",
- "../resources/audio_coding/speech_4_channels_48k_one_second.wav",
"../resources/audio_coding/testfile32kHz.pcm",
"../resources/audio_coding/testfile_fake_stereo_32kHz.pcm",
"../resources/audio_coding/teststereo32kHz.pcm",
@@ -196,8 +190,8 @@
"../resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSpeed_0_AST.bin",
"../resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSpeed_0_TOF.bin",
"../resources/short_mixed_mono_48.dat",
- "../resources/short_mixed_mono_48_arm.dat",
"../resources/short_mixed_mono_48.pcm",
+ "../resources/short_mixed_mono_48_arm.dat",
"../resources/short_mixed_stereo_48.dat",
"../resources/short_mixed_stereo_48.pcm",
"../resources/voice_engine/audio_tiny48.wav",
@@ -206,18 +200,14 @@
bundle_data("modules_unittests_bundle_data") {
testonly = true
sources = modules_unittests_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
rtc_test("modules_unittests") {
testonly = true
defines = []
- sources = [
- "module_common_types_unittest.cc",
- ]
+ sources = [ "module_common_types_unittest.cc" ]
deps = [
":module_api",
diff --git a/modules/audio_device/BUILD.gn b/modules/audio_device/BUILD.gn
index 31bed2d..de57db0 100644
--- a/modules/audio_device/BUILD.gn
+++ b/modules/audio_device/BUILD.gn
@@ -25,12 +25,8 @@
rtc_source_set("audio_device_default") {
visibility = [ "*" ]
- sources = [
- "include/audio_device_default.h",
- ]
- deps = [
- ":audio_device_api",
- ]
+ sources = [ "include/audio_device_default.h" ]
+ deps = [ ":audio_device_api" ]
}
rtc_source_set("audio_device") {
diff --git a/modules/audio_mixer/BUILD.gn b/modules/audio_mixer/BUILD.gn
index ef84bc7..6afd004 100644
--- a/modules/audio_mixer/BUILD.gn
+++ b/modules/audio_mixer/BUILD.gn
@@ -120,9 +120,7 @@
rtc_executable("audio_mixer_test") {
testonly = true
- sources = [
- "audio_mixer_test.cc",
- ]
+ sources = [ "audio_mixer_test.cc" ]
deps = [
":audio_mixer_impl",
diff --git a/modules/audio_processing/BUILD.gn b/modules/audio_processing/BUILD.gn
index 2012634..b238a9f 100644
--- a/modules/audio_processing/BUILD.gn
+++ b/modules/audio_processing/BUILD.gn
@@ -212,19 +212,13 @@
}
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 @@
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 @@
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 @@
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 @@
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_enable_protobuf) {
proto_library("audioproc_unittest_proto") {
- sources = [
- "test/unittest.proto",
- ]
+ sources = [ "test/unittest.proto" ]
proto_out_dir = "modules/audio_processing/test"
}
diff --git a/modules/audio_processing/aec_dump/BUILD.gn b/modules/audio_processing/aec_dump/BUILD.gn
index ed4220e..ad2c2c2 100644
--- a/modules/audio_processing/aec_dump/BUILD.gn
+++ b/modules/audio_processing/aec_dump/BUILD.gn
@@ -10,9 +10,7 @@
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_unittests") {
testonly = true
- sources = [
- "aec_dump_integration_test.cc",
- ]
+ sources = [ "aec_dump_integration_test.cc" ]
deps = [
":mock_aec_dump",
@@ -92,17 +88,13 @@
"../../../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",
diff --git a/modules/audio_processing/agc/BUILD.gn b/modules/audio_processing/agc/BUILD.gn
index a0b3ee0..947d886 100644
--- a/modules/audio_processing/agc/BUILD.gn
+++ b/modules/audio_processing/agc/BUILD.gn
@@ -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_source_set("gain_map") {
- sources = [
- "gain_map_internal.h",
- ]
+ sources = [ "gain_map_internal.h" ]
}
if (rtc_include_tests) {
diff --git a/modules/audio_processing/agc2/BUILD.gn b/modules/audio_processing/agc2/BUILD.gn
index 25b5767..2810def 100644
--- a/modules/audio_processing/agc2/BUILD.gn
+++ b/modules/audio_processing/agc2/BUILD.gn
@@ -199,9 +199,7 @@
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("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",
diff --git a/modules/audio_processing/agc2/rnn_vad/BUILD.gn b/modules/audio_processing/agc2/rnn_vad/BUILD.gn
index f4613b1..5d96fad 100644
--- a/modules/audio_processing/agc2/rnn_vad/BUILD.gn
+++ b/modules/audio_processing/agc2/rnn_vad/BUILD.gn
@@ -76,8 +76,8 @@
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 @@
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 @@
rtc_executable("rnn_vad_tool") {
testonly = true
- sources = [
- "rnn_vad_tool.cc",
- ]
+ sources = [ "rnn_vad_tool.cc" ]
deps = [
":rnn_vad",
"../../../../api:array_view",
diff --git a/modules/audio_processing/legacy_ns/BUILD.gn b/modules/audio_processing/legacy_ns/BUILD.gn
index 649caf00..13ff9cf 100644
--- a/modules/audio_processing/legacy_ns/BUILD.gn
+++ b/modules/audio_processing/legacy_ns/BUILD.gn
@@ -34,9 +34,7 @@
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 @@
testonly = true
configs += []
- sources = [
- "legacy_noise_suppression_unittest.cc",
- ]
+ sources = [ "legacy_noise_suppression_unittest.cc" ]
deps = [
"..:audio_buffer",
diff --git a/modules/audio_processing/ns/BUILD.gn b/modules/audio_processing/ns/BUILD.gn
index 077cb00..005cfa2 100644
--- a/modules/audio_processing/ns/BUILD.gn
+++ b/modules/audio_processing/ns/BUILD.gn
@@ -73,9 +73,7 @@
testonly = true
configs += [ "..:apm_debug_dump" ]
- sources = [
- "noise_suppressor_unittest.cc",
- ]
+ sources = [ "noise_suppressor_unittest.cc" ]
deps = [
":ns",
diff --git a/modules/audio_processing/test/conversational_speech/BUILD.gn b/modules/audio_processing/test/conversational_speech/BUILD.gn
index 89ce8d1..fb532be 100644
--- a/modules/audio_processing/test/conversational_speech/BUILD.gn
+++ b/modules/audio_processing/test/conversational_speech/BUILD.gn
@@ -10,16 +10,12 @@
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",
diff --git a/modules/audio_processing/test/py_quality_assessment/BUILD.gn b/modules/audio_processing/test/py_quality_assessment/BUILD.gn
index 7bfa9a6..fe7c444 100644
--- a/modules/audio_processing/test/py_quality_assessment/BUILD.gn
+++ b/modules/audio_processing/test/py_quality_assessment/BUILD.gn
@@ -27,9 +27,7 @@
"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("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 @@
"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 @@
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("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("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("sound_level") {
testonly = true
- sources = [
- "quality_assessment/sound_level.cc",
- ]
+ sources = [ "quality_assessment/sound_level.cc" ]
deps = [
"../..",
"../../../../common_audio",
@@ -176,18 +157,12 @@
"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}}" ]
}
diff --git a/modules/audio_processing/utility/BUILD.gn b/modules/audio_processing/utility/BUILD.gn
index a808625..88d2bbd 100644
--- a/modules/audio_processing/utility/BUILD.gn
+++ b/modules/audio_processing/utility/BUILD.gn
@@ -27,9 +27,7 @@
"delay_estimator_wrapper.cc",
"delay_estimator_wrapper.h",
]
- deps = [
- "../../../rtc_base:checks",
- ]
+ deps = [ "../../../rtc_base:checks" ]
}
rtc_library("ooura_fft") {
@@ -91,9 +89,7 @@
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 @@
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 @@
rtc_library("pffft_wrapper_unittest") {
testonly = true
- sources = [
- "pffft_wrapper_unittest.cc",
- ]
+ sources = [ "pffft_wrapper_unittest.cc" ]
deps = [
":pffft_wrapper",
"../../../test:test_support",
diff --git a/modules/congestion_controller/BUILD.gn b/modules/congestion_controller/BUILD.gn
index 5a3378e..f65cde4 100644
--- a/modules/congestion_controller/BUILD.gn
+++ b/modules/congestion_controller/BUILD.gn
@@ -42,9 +42,7 @@
rtc_library("congestion_controller_unittests") {
testonly = true
- sources = [
- "receive_side_congestion_controller_unittest.cc",
- ]
+ sources = [ "receive_side_congestion_controller_unittest.cc" ]
deps = [
":congestion_controller",
"../../system_wrappers",
diff --git a/modules/desktop_capture/BUILD.gn b/modules/desktop_capture/BUILD.gn
index 1cac942..e2554d2 100644
--- a/modules/desktop_capture/BUILD.gn
+++ b/modules/desktop_capture/BUILD.gn
@@ -132,9 +132,7 @@
rtc_library("screen_drawer") {
testonly = true
- public_deps = [
- ":desktop_capture",
- ]
+ public_deps = [ ":desktop_capture" ] # no-presubmit-check TODO(webrtc:8603)
sources = [
"screen_drawer.cc",
@@ -172,9 +170,7 @@
rtc_library("desktop_capture_mock") {
testonly = true
- public_deps = [
- ":desktop_capture",
- ]
+ public_deps = [ ":desktop_capture" ] # no-presubmit-check TODO(webrtc:8603)
sources = [
"mock_desktop_capturer_callback.cc",
@@ -207,9 +203,7 @@
# the binary.
generate_stubs("pipewire_stubs") {
configs = [ "../../:common_config" ]
- deps = [
- "../../rtc_base",
- ]
+ deps = [ "../../rtc_base" ]
extra_header = "linux/pipewire_stub_header.fragment"
logging_function = "RTC_LOG(LS_VERBOSE)"
logging_include = "rtc_base/logging.h"
@@ -230,9 +224,7 @@
rtc_source_set("desktop_capture") {
visibility = [ "*" ]
- public_deps = [
- ":desktop_capture_generic",
- ]
+ public_deps = [ ":desktop_capture_generic" ] # no-presubmit-check TODO(webrtc:8603)
if (is_mac) {
public_deps += [ ":desktop_capture_objc" ]
}
diff --git a/modules/remote_bitrate_estimator/BUILD.gn b/modules/remote_bitrate_estimator/BUILD.gn
index b47d98d..08233da 100644
--- a/modules/remote_bitrate_estimator/BUILD.gn
+++ b/modules/remote_bitrate_estimator/BUILD.gn
@@ -82,9 +82,7 @@
rtc_executable("rtp_to_text") {
testonly = true
- sources = [
- "tools/rtp_to_text.cc",
- ]
+ sources = [ "tools/rtp_to_text.cc" ]
deps = [
":bwe_rtp",
"../../modules/rtp_rtcp",
diff --git a/modules/utility/BUILD.gn b/modules/utility/BUILD.gn
index 1b68212..4e85129 100644
--- a/modules/utility/BUILD.gn
+++ b/modules/utility/BUILD.gn
@@ -43,9 +43,7 @@
rtc_library("mock_process_thread") {
testonly = true
visibility = [ "*" ]
- sources = [
- "include/mock/mock_process_thread.h",
- ]
+ sources = [ "include/mock/mock_process_thread.h" ]
deps = [
":utility",
"../../rtc_base:rtc_base_approved",
@@ -57,9 +55,7 @@
rtc_library("utility_unittests") {
testonly = true
- sources = [
- "source/process_thread_impl_unittest.cc",
- ]
+ sources = [ "source/process_thread_impl_unittest.cc" ]
deps = [
":utility",
"..:module_api",
diff --git a/modules/video_capture/BUILD.gn b/modules/video_capture/BUILD.gn
index acd8e77..1c02412 100644
--- a/modules/video_capture/BUILD.gn
+++ b/modules/video_capture/BUILD.gn
@@ -104,9 +104,7 @@
if (!is_android && rtc_include_tests) {
rtc_test("video_capture_tests") {
- sources = [
- "test/video_capture_unittest.cc",
- ]
+ sources = [ "test/video_capture_unittest.cc" ]
ldflags = []
if (is_linux || is_mac) {
ldflags += [
diff --git a/modules/video_processing/BUILD.gn b/modules/video_processing/BUILD.gn
index 8ae7a12..4354454 100644
--- a/modules/video_processing/BUILD.gn
+++ b/modules/video_processing/BUILD.gn
@@ -51,12 +51,8 @@
rtc_source_set("denoiser_filter") {
# Target that only exists to avoid cyclic depdency errors for the SSE2 and
# Neon implementations below.
- sources = [
- "util/denoiser_filter.h",
- ]
- deps = [
- "..:module_api",
- ]
+ sources = [ "util/denoiser_filter.h" ]
+ deps = [ "..:module_api" ]
}
if (build_video_processing_sse2) {
@@ -85,9 +81,7 @@
"util/denoiser_filter_neon.h",
]
- deps = [
- ":denoiser_filter",
- ]
+ deps = [ ":denoiser_filter" ]
if (current_cpu != "arm64") {
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
@@ -100,9 +94,7 @@
rtc_library("video_processing_unittests") {
testonly = true
- sources = [
- "test/denoiser_test.cc",
- ]
+ sources = [ "test/denoiser_test.cc" ]
deps = [
":denoiser_filter",
":video_processing",
diff --git a/p2p/BUILD.gn b/p2p/BUILD.gn
index 2b01cef..f3b5dd4 100644
--- a/p2p/BUILD.gn
+++ b/p2p/BUILD.gn
@@ -121,9 +121,7 @@
rtc_library("fake_ice_transport") {
testonly = true
visibility = [ "*" ]
- sources = [
- "base/fake_ice_transport.h",
- ]
+ sources = [ "base/fake_ice_transport.h" ]
deps = [
":rtc_p2p",
"../api:libjingle_peerconnection_api",
@@ -137,9 +135,7 @@
rtc_library("fake_port_allocator") {
testonly = true
visibility = [ "*" ]
- sources = [
- "base/fake_port_allocator.h",
- ]
+ sources = [ "base/fake_port_allocator.h" ]
deps = [
":rtc_p2p",
"../rtc_base",
@@ -271,9 +267,7 @@
rtc_library("libstunprober_unittests") {
testonly = true
- sources = [
- "stunprober/stun_prober_unittest.cc",
- ]
+ sources = [ "stunprober/stun_prober_unittest.cc" ]
deps = [
":libstunprober",
":p2p_test_utils",
diff --git a/resources/audio_processing/test/py_quality_assessment/BUILD.gn b/resources/audio_processing/test/py_quality_assessment/BUILD.gn
index c4547cf..5f2d34d 100644
--- a/resources/audio_processing/test/py_quality_assessment/BUILD.gn
+++ b/resources/audio_processing/test/py_quality_assessment/BUILD.gn
@@ -11,9 +11,7 @@
if (rtc_include_tests) {
copy("noise_tracks") {
testonly = true
- sources = [
- "noise_tracks/city.wav",
- ]
+ sources = [ "noise_tracks/city.wav" ]
outputs = [
"$root_build_dir/py_quality_assessment/noise_tracks/{{source_file_part}}",
]
@@ -21,11 +19,7 @@
copy("probing_signals") {
testonly = true
- sources = [
- "probing_signals/tone-880.wav",
- ]
- outputs = [
- "$root_build_dir/py_quality_assessment/probing_signals/{{source_file_part}}",
- ]
+ sources = [ "probing_signals/tone-880.wav" ]
+ outputs = [ "$root_build_dir/py_quality_assessment/probing_signals/{{source_file_part}}" ]
} # probing_signals
}
diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn
index b4f4ad6..0805a5c 100644
--- a/rtc_base/BUILD.gn
+++ b/rtc_base/BUILD.gn
@@ -28,27 +28,19 @@
}
rtc_source_set("protobuf_utils") {
- sources = [
- "protobuf_utils.h",
- ]
+ sources = [ "protobuf_utils.h" ]
if (rtc_enable_protobuf) {
public_configs = [ "//third_party/protobuf:protobuf_config" ]
- deps = [
- "//third_party/protobuf:protobuf_lite",
- ]
+ deps = [ "//third_party/protobuf:protobuf_lite" ]
}
}
rtc_source_set("compile_assert_c") {
- sources = [
- "compile_assert_c.h",
- ]
+ sources = [ "compile_assert_c.h" ]
}
rtc_source_set("ignore_wundef") {
- sources = [
- "ignore_wundef.h",
- ]
+ sources = [ "ignore_wundef.h" ]
}
# The subset of rtc_base approved for use outside of libjingle.
@@ -116,9 +108,7 @@
"win/windows_version.cc",
"win/windows_version.h",
]
- data_deps = [
- "//build/win:runtime_libs",
- ]
+ data_deps = [ "//build/win:runtime_libs" ]
}
if (is_nacl) {
@@ -155,9 +145,7 @@
"stringize_macros.h",
"thread_annotations.h",
]
- deps = [
- "system:arch",
- ]
+ deps = [ "system:arch" ]
}
rtc_library("platform_thread_types") {
@@ -174,9 +162,7 @@
"ref_counted_object.h",
"ref_counter.h",
]
- deps = [
- ":macromagic",
- ]
+ deps = [ ":macromagic" ]
}
rtc_library("criticalsection") {
@@ -291,9 +277,7 @@
}
rtc_source_set("thread_checker") {
- sources = [
- "thread_checker.h",
- ]
+ sources = [ "thread_checker.h" ]
deps = [
":deprecation",
"synchronization:sequence_checker",
@@ -301,9 +285,7 @@
}
rtc_source_set("atomicops") {
- sources = [
- "atomic_ops.h",
- ]
+ sources = [ "atomic_ops.h" ]
}
rtc_library("checks") {
@@ -339,18 +321,12 @@
}
rtc_source_set("sanitizer") {
- sources = [
- "sanitizer.h",
- ]
- deps = [
- "//third_party/abseil-cpp/absl/meta:type_traits",
- ]
+ sources = [ "sanitizer.h" ]
+ deps = [ "//third_party/abseil-cpp/absl/meta:type_traits" ]
}
rtc_source_set("divide_round") {
- sources = [
- "numerics/divide_round.h",
- ]
+ sources = [ "numerics/divide_round.h" ]
deps = [
":checks",
":safe_compare",
@@ -358,18 +334,12 @@
}
rtc_source_set("safe_compare") {
- sources = [
- "numerics/safe_compare.h",
- ]
- deps = [
- ":type_traits",
- ]
+ sources = [ "numerics/safe_compare.h" ]
+ deps = [ ":type_traits" ]
}
rtc_source_set("safe_minmax") {
- sources = [
- "numerics/safe_minmax.h",
- ]
+ sources = [ "numerics/safe_minmax.h" ]
deps = [
":checks",
":safe_compare",
@@ -382,9 +352,7 @@
"numerics/safe_conversions.h",
"numerics/safe_conversions_impl.h",
]
- deps = [
- ":checks",
- ]
+ deps = [ ":checks" ]
}
rtc_library("timeutils") {
@@ -438,15 +406,11 @@
}
rtc_source_set("type_traits") {
- sources = [
- "type_traits.h",
- ]
+ sources = [ "type_traits.h" ]
}
rtc_source_set("deprecation") {
- sources = [
- "deprecation.h",
- ]
+ sources = [ "deprecation.h" ]
}
rtc_library("rtc_task_queue") {
@@ -629,14 +593,10 @@
"strings/json.cc",
"strings/json.h",
]
- deps = [
- ":stringutils",
- ]
+ deps = [ ":stringutils" ]
all_dependent_configs = [ "//third_party/jsoncpp:jsoncpp_config" ]
if (rtc_build_json) {
- public_deps = [
- "//third_party/jsoncpp",
- ]
+ public_deps = [ "//third_party/jsoncpp" ] # no-presubmit-check TODO(webrtc:8603)
} else {
include_dirs = [ "$rtc_jsoncpp_root" ]
@@ -803,9 +763,7 @@
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
]
- public_deps = [
- ":rtc_base_approved",
- ]
+ public_deps = [ ":rtc_base_approved" ] # no-presubmit-check TODO(webrtc:8603)
public_configs = []
sources = [
@@ -1008,9 +966,7 @@
}
rtc_source_set("gtest_prod") {
- sources = [
- "gtest_prod_util.h",
- ]
+ sources = [ "gtest_prod_util.h" ]
}
rtc_library("gunit_helpers") {
@@ -1119,9 +1075,7 @@
if (rtc_include_tests) {
rtc_library("sigslot_unittest") {
testonly = true
- sources = [
- "sigslot_unittest.cc",
- ]
+ sources = [ "sigslot_unittest.cc" ]
deps = [
":gunit_helpers",
":rtc_base",
@@ -1243,9 +1197,7 @@
rtc_library("rtc_task_queue_unittests") {
testonly = true
- sources = [
- "task_queue_unittest.cc",
- ]
+ sources = [ "task_queue_unittest.cc" ]
deps = [
":gunit_helpers",
":rtc_base_approved",
@@ -1261,9 +1213,7 @@
rtc_library("rtc_operations_chain_unittests") {
testonly = true
- sources = [
- "operations_chain_unittest.cc",
- ]
+ sources = [ "operations_chain_unittest.cc" ]
deps = [
":rtc_base",
":rtc_base_approved",
@@ -1276,9 +1226,7 @@
rtc_library("weak_ptr_unittests") {
testonly = true
- sources = [
- "weak_ptr_unittest.cc",
- ]
+ sources = [ "weak_ptr_unittest.cc" ]
deps = [
":gunit_helpers",
":rtc_base_approved",
@@ -1316,9 +1264,7 @@
rtc_library("rtc_json_unittests") {
testonly = true
- sources = [
- "strings/json_unittest.cc",
- ]
+ sources = [ "strings/json_unittest.cc" ]
deps = [
":gunit_helpers",
":rtc_base_tests_utils",
@@ -1390,9 +1336,7 @@
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
]
- public_deps = [
- ":rtc_base",
- ]
+ public_deps = [ ":rtc_base" ] # no-presubmit-check TODO(webrtc:8603)
if (build_with_chromium) {
include_dirs = [ "../../boringssl/src/include" ]
}
diff --git a/rtc_base/memory/BUILD.gn b/rtc_base/memory/BUILD.gn
index 6a8c690..0dcd88f 100644
--- a/rtc_base/memory/BUILD.gn
+++ b/rtc_base/memory/BUILD.gn
@@ -13,9 +13,7 @@
}
rtc_source_set("aligned_array") {
- sources = [
- "aligned_array.h",
- ]
+ sources = [ "aligned_array.h" ]
deps = [
":aligned_malloc",
"..:checks",
@@ -27,9 +25,7 @@
"aligned_malloc.cc",
"aligned_malloc.h",
]
- deps = [
- "..:checks",
- ]
+ deps = [ "..:checks" ]
}
rtc_library("fifo_buffer") {
@@ -43,9 +39,7 @@
"fifo_buffer.cc",
"fifo_buffer.h",
]
- deps = [
- "..:rtc_base",
- ]
+ deps = [ "..:rtc_base" ]
}
rtc_library("unittests") {
diff --git a/rtc_base/synchronization/BUILD.gn b/rtc_base/synchronization/BUILD.gn
index f860db9..3e7b22d 100644
--- a/rtc_base/synchronization/BUILD.gn
+++ b/rtc_base/synchronization/BUILD.gn
@@ -13,15 +13,9 @@
}
rtc_library("rw_lock_wrapper") {
- public = [
- "rw_lock_wrapper.h",
- ]
- sources = [
- "rw_lock_wrapper.cc",
- ]
- deps = [
- "..:macromagic",
- ]
+ public = [ "rw_lock_wrapper.h" ]
+ sources = [ "rw_lock_wrapper.cc" ]
+ deps = [ "..:macromagic" ]
if (is_win) {
sources += [
"rw_lock_win.cc",
@@ -66,9 +60,7 @@
if (rtc_include_tests) {
rtc_library("synchronization_unittests") {
testonly = true
- sources = [
- "yield_policy_unittest.cc",
- ]
+ sources = [ "yield_policy_unittest.cc" ]
deps = [
":yield_policy",
"..:rtc_event",
@@ -79,9 +71,7 @@
rtc_library("sequence_checker_unittests") {
testonly = true
- sources = [
- "sequence_checker_unittest.cc",
- ]
+ sources = [ "sequence_checker_unittest.cc" ]
deps = [
":sequence_checker",
"..:checks",
diff --git a/rtc_base/task_utils/BUILD.gn b/rtc_base/task_utils/BUILD.gn
index 8d8a458..2e7d53c 100644
--- a/rtc_base/task_utils/BUILD.gn
+++ b/rtc_base/task_utils/BUILD.gn
@@ -27,20 +27,14 @@
}
rtc_source_set("to_queued_task") {
- sources = [
- "to_queued_task.h",
- ]
- deps = [
- "../../api/task_queue",
- ]
+ sources = [ "to_queued_task.h" ]
+ deps = [ "../../api/task_queue" ]
}
if (rtc_include_tests) {
rtc_library("repeating_task_unittests") {
testonly = true
- sources = [
- "repeating_task_unittest.cc",
- ]
+ sources = [ "repeating_task_unittest.cc" ]
deps = [
":repeating_task",
"..:rtc_base_approved",
@@ -52,9 +46,7 @@
rtc_library("to_queued_task_unittests") {
testonly = true
- sources = [
- "to_queued_task_unittest.cc",
- ]
+ sources = [ "to_queued_task_unittest.cc" ]
deps = [
":to_queued_task",
"../../api/task_queue",
diff --git a/rtc_base/third_party/base64/BUILD.gn b/rtc_base/third_party/base64/BUILD.gn
index 3abd0cb..db03e02 100644
--- a/rtc_base/third_party/base64/BUILD.gn
+++ b/rtc_base/third_party/base64/BUILD.gn
@@ -14,7 +14,5 @@
"base64.cc",
"base64.h",
]
- deps = [
- "../../system:rtc_export",
- ]
+ deps = [ "../../system:rtc_export" ]
}
diff --git a/rtc_base/time/BUILD.gn b/rtc_base/time/BUILD.gn
index 2bf90f2..e13ccd3 100644
--- a/rtc_base/time/BUILD.gn
+++ b/rtc_base/time/BUILD.gn
@@ -17,7 +17,5 @@
"timestamp_extrapolator.cc",
"timestamp_extrapolator.h",
]
- deps = [
- "../synchronization:rw_lock_wrapper",
- ]
+ deps = [ "../synchronization:rw_lock_wrapper" ]
}
diff --git a/rtc_base/units/BUILD.gn b/rtc_base/units/BUILD.gn
index 7282ef6..e2ab873 100644
--- a/rtc_base/units/BUILD.gn
+++ b/rtc_base/units/BUILD.gn
@@ -13,9 +13,7 @@
"../../api/units:*",
":*",
]
- sources = [
- "unit_base.h",
- ]
+ sources = [ "unit_base.h" ]
deps = [
"../../rtc_base:checks",
@@ -26,9 +24,7 @@
if (rtc_include_tests) {
rtc_library("units_unittests") {
testonly = true
- sources = [
- "unit_base_unittest.cc",
- ]
+ sources = [ "unit_base_unittest.cc" ]
deps = [
":unit_base",
"../../test:test_support",
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",
diff --git a/rtc_tools/network_tester/BUILD.gn b/rtc_tools/network_tester/BUILD.gn
index f8623bd..8c3a018 100644
--- a/rtc_tools/network_tester/BUILD.gn
+++ b/rtc_tools/network_tester/BUILD.gn
@@ -13,16 +13,12 @@
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 @@
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 @@
}
rtc_executable("network_tester_server") {
- sources = [
- "server.cc",
- ]
+ sources = [ "server.cc" ]
- deps = [
- ":network_tester",
- ]
+ deps = [ ":network_tester" ]
}
}
@@ -147,13 +135,9 @@
}
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" ]
diff --git a/sdk/android/BUILD.gn b/sdk/android/BUILD.gn
index f8eb79a..2d511e2 100644
--- a/sdk/android/BUILD.gn
+++ b/sdk/android/BUILD.gn
@@ -75,9 +75,7 @@
# Old target that pulls in everything. This will be going away in the future,
# clients should depend on individual video_java etc. targets instead.
rtc_android_library("libjingle_peerconnection_java") {
- sources = [
- "src/java/org/webrtc/Empty.java",
- ]
+ sources = [ "src/java/org/webrtc/Empty.java" ]
deps = [
":audio_api_java",
@@ -97,9 +95,7 @@
}
rtc_android_library("libjingle_peerconnection_metrics_default_java") {
- sources = [
- "api/org/webrtc/Metrics.java",
- ]
+ sources = [ "api/org/webrtc/Metrics.java" ]
deps = [
":base_java",
@@ -129,9 +125,7 @@
rtc_library("libjingle_peerconnection_metrics_default_jni") {
visibility = [ "*" ]
- sources = [
- "src/jni/android_metrics.cc",
- ]
+ sources = [ "src/jni/android_metrics.cc" ]
deps = [
":base_jni",
":generated_metrics_jni",
@@ -143,9 +137,7 @@
}
rtc_shared_library("libjingle_peerconnection_so") {
- sources = [
- "src/jni/jni_onload.cc",
- ]
+ sources = [ "src/jni/jni_onload.cc" ]
suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ]
configs += [ "//build/config/android:hide_all_but_jni" ]
@@ -450,16 +442,12 @@
"api/org/webrtc/BuiltinAudioEncoderFactoryFactory.java",
]
- deps = [
- ":audio_api_java",
- ]
+ deps = [ ":audio_api_java" ]
}
rtc_android_library("screencapturer_java") {
visibility = [ "*" ]
- sources = [
- "api/org/webrtc/ScreenCapturerAndroid.java",
- ]
+ sources = [ "api/org/webrtc/ScreenCapturerAndroid.java" ]
deps = [
":video_api_java",
@@ -573,9 +561,7 @@
rtc_library("audio_jni") {
visibility = [ "*" ]
allow_poison = [ "audio_codecs" ]
- sources = [
- "src/jni/pc/audio.cc",
- ]
+ sources = [ "src/jni/pc/audio.cc" ]
deps = [
":base_jni",
@@ -798,9 +784,7 @@
# JNI target for java_audio_device_module_java
rtc_library("java_audio_device_module_jni") {
visibility = [ "*" ]
- sources = [
- "src/jni/audio_device/java_audio_device_module.cc",
- ]
+ sources = [ "src/jni/audio_device/java_audio_device_module.cc" ]
deps = [
":base_jni",
@@ -821,9 +805,7 @@
rtc_library("libvpx_vp8_jni") {
visibility = [ "*" ]
allow_poison = [ "software_video_codecs" ]
- sources = [
- "src/jni/vp8_codec.cc",
- ]
+ sources = [ "src/jni/vp8_codec.cc" ]
deps = [
":base_jni",
":generated_libvpx_vp8_jni",
@@ -835,9 +817,7 @@
rtc_library("libvpx_vp9_jni") {
visibility = [ "*" ]
allow_poison = [ "software_video_codecs" ]
- sources = [
- "src/jni/vp9_codec.cc",
- ]
+ sources = [ "src/jni/vp9_codec.cc" ]
deps = [
":base_jni",
":generated_libvpx_vp9_jni",
@@ -1016,9 +996,7 @@
####################
rtc_android_library("logging_java") {
- sources = [
- "src/java/org/webrtc/JNILogging.java",
- ]
+ sources = [ "src/java/org/webrtc/JNILogging.java" ]
deps = [
":base_java",
@@ -1035,9 +1013,7 @@
"src/jni/jvm.h",
]
- deps = [
- "../../rtc_base:checks",
- ]
+ deps = [ "../../rtc_base:checks" ]
}
rtc_library("videoframe_jni") {
@@ -1199,9 +1175,7 @@
}
generate_jni("generated_metrics_jni") {
- sources = [
- "api/org/webrtc/Metrics.java",
- ]
+ sources = [ "api/org/webrtc/Metrics.java" ]
namespace = "webrtc::jni"
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
}
@@ -1307,9 +1281,7 @@
}
generate_jni("generated_java_audio_jni") {
- sources = [
- "api/org/webrtc/audio/JavaAudioDeviceModule.java",
- ]
+ sources = [ "api/org/webrtc/audio/JavaAudioDeviceModule.java" ]
namespace = "webrtc::jni"
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
}
@@ -1337,16 +1309,12 @@
# Generated JNI for internal targets.
generate_jni("generated_logging_jni") {
- sources = [
- "src/java/org/webrtc/JNILogging.java",
- ]
+ sources = [ "src/java/org/webrtc/JNILogging.java" ]
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
}
generate_jni("generated_audio_device_module_base_jni") {
- sources = [
- "src/java/org/webrtc/audio/WebRtcAudioManager.java",
- ]
+ sources = [ "src/java/org/webrtc/audio/WebRtcAudioManager.java" ]
namespace = "webrtc::jni"
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
}
@@ -1406,9 +1374,7 @@
"instrumentationtests/src/org/webrtc/YuvHelperTest.java",
]
- data = [
- "../../sdk/android/instrumentationtests/src/org/webrtc/capturetestvideo.y4m",
- ]
+ data = [ "../../sdk/android/instrumentationtests/src/org/webrtc/capturetestvideo.y4m" ]
deps = [
":base_java",
@@ -1434,9 +1400,7 @@
rtc_shared_library("libjingle_peerconnection_instrumentationtests_so") {
testonly = true
- sources = [
- "src/jni/jni_onload.cc",
- ]
+ sources = [ "src/jni/jni_onload.cc" ]
suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ]
configs += [ "//build/config/android:hide_all_but_jni" ]
@@ -1453,9 +1417,7 @@
rtc_library("instrumentationtests_jni") {
testonly = true
- sources = [
- "instrumentationtests/loggable_test.cc",
- ]
+ sources = [ "instrumentationtests/loggable_test.cc" ]
deps = [
":base_jni",
diff --git a/stats/BUILD.gn b/stats/BUILD.gn
index 7d5f710..37224cd 100644
--- a/stats/BUILD.gn
+++ b/stats/BUILD.gn
@@ -9,9 +9,7 @@
import("../webrtc.gni")
group("stats") {
- deps = [
- ":rtc_stats",
- ]
+ deps = [ ":rtc_stats" ]
}
rtc_library("rtc_stats") {
diff --git a/system_wrappers/BUILD.gn b/system_wrappers/BUILD.gn
index 7fc29c9..24ee39b 100644
--- a/system_wrappers/BUILD.gn
+++ b/system_wrappers/BUILD.gn
@@ -77,19 +77,13 @@
}
rtc_source_set("cpu_features_api") {
- sources = [
- "include/cpu_features_wrapper.h",
- ]
+ sources = [ "include/cpu_features_wrapper.h" ]
}
rtc_library("field_trial") {
visibility = [ "*" ]
- public = [
- "include/field_trial.h",
- ]
- sources = [
- "source/field_trial.cc",
- ]
+ public = [ "include/field_trial.h" ]
+ sources = [ "source/field_trial.cc" ]
if (rtc_exclude_field_trial_default) {
defines = [ "WEBRTC_EXCLUDE_FIELD_TRIAL_DEFAULT" ]
}
@@ -110,19 +104,13 @@
"include/event_wrapper.h",
"source/event.cc",
]
- deps = [
- "../rtc_base:rtc_event",
- ]
+ deps = [ "../rtc_base:rtc_event" ]
}
rtc_library("metrics") {
visibility = [ "*" ]
- public = [
- "include/metrics.h",
- ]
- sources = [
- "source/metrics.cc",
- ]
+ public = [ "include/metrics.h" ]
+ sources = [ "source/metrics.cc" ]
if (rtc_exclude_metrics_default) {
defines = [ "WEBRTC_EXCLUDE_METRICS_DEFAULT" ]
}
@@ -134,21 +122,15 @@
if (is_android && !build_with_mozilla) {
rtc_library("cpu_features_android") {
- sources = [
- "source/cpu_features_android.c",
- ]
+ sources = [ "source/cpu_features_android.c" ]
- deps = [
- "//third_party/android_sdk:cpu_features",
- ]
+ deps = [ "//third_party/android_sdk:cpu_features" ]
}
}
if (is_linux) {
rtc_library("cpu_features_linux") {
- sources = [
- "source/cpu_features_linux.c",
- ]
+ sources = [ "source/cpu_features_linux.c" ]
deps = [
":cpu_features_api",
"../rtc_base/system:arch",
diff --git a/test/BUILD.gn b/test/BUILD.gn
index 77a202f..abe0801 100644
--- a/test/BUILD.gn
+++ b/test/BUILD.gn
@@ -215,9 +215,7 @@
"field_trial.h",
]
- deps = [
- "../system_wrappers:field_trial",
- ]
+ deps = [ "../system_wrappers:field_trial" ]
}
rtc_library("perf_test") {
@@ -338,9 +336,7 @@
rtc_library("test_main") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test_main.cc",
- ]
+ sources = [ "test_main.cc" ]
deps = [
":test_main_lib",
@@ -432,9 +428,7 @@
bundle_data("test_support_unittests_bundle_data") {
testonly = true
sources = test_support_unittests_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
@@ -553,9 +547,7 @@
"testsupport/mac_file_utils.h",
"testsupport/mac_file_utils.mm",
]
- deps = [
- "../rtc_base:checks",
- ]
+ deps = [ "../rtc_base:checks" ]
}
}
@@ -591,26 +583,20 @@
"testsupport/resources_dir_flag.cc",
"testsupport/resources_dir_flag.h",
]
- deps = [
- "//third_party/abseil-cpp/absl/flags:flag",
- ]
+ deps = [ "//third_party/abseil-cpp/absl/flags:flag" ]
}
# We separate header into own target to make it possible for downstream
# projects to override implementation.
rtc_source_set("fileutils_override_api") {
testonly = true
- sources = [
- "testsupport/file_utils_override.h",
- ]
+ sources = [ "testsupport/file_utils_override.h" ]
}
rtc_library("fileutils_override_impl") {
testonly = true
visibility = [ ":fileutils" ]
- sources = [
- "testsupport/file_utils_override.cc",
- ]
+ sources = [ "testsupport/file_utils_override.cc" ]
deps = [
":fileutils_override_api",
"../rtc_base:checks",
@@ -632,52 +618,36 @@
rtc_source_set("run_test") {
testonly = true
if (is_mac) {
- public_deps = [ # no-presubmit-check TODO(webrtc:8603)
- ":run_test_objc",
- ]
+ public_deps = [ ":run_test_objc" ] # no-presubmit-check TODO(webrtc:8603)
} else {
- public_deps = [ # no-presubmit-check TODO(webrtc:8603)
- ":run_test_generic",
- ]
+ public_deps = [ ":run_test_generic" ] # no-presubmit-check TODO(webrtc:8603)
}
}
rtc_source_set("run_test_interface") {
- sources = [
- "run_test.h",
- ]
+ sources = [ "run_test.h" ]
}
if (is_mac) {
rtc_library("run_test_objc") {
testonly = true
visibility = [ ":run_test" ]
- sources = [
- "mac/run_test.mm",
- ]
- deps = [
- ":run_test_interface",
- ]
+ sources = [ "mac/run_test.mm" ]
+ deps = [ ":run_test_interface" ]
}
}
rtc_library("run_test_generic") {
testonly = true
visibility = [ ":run_test" ]
- sources = [
- "run_test.cc",
- ]
- deps = [
- ":run_test_interface",
- ]
+ sources = [ "run_test.cc" ]
+ deps = [ ":run_test_interface" ]
}
rtc_library("fileutils_unittests") {
testonly = true
visibility = [ ":*" ] # Only targets in this file can depend on this.
- sources = [
- "testsupport/file_utils_unittest.cc",
- ]
+ sources = [ "testsupport/file_utils_unittest.cc" ]
deps = [
":fileutils",
":test_support",
@@ -707,9 +677,7 @@
"../rtc_base/task_utils:repeating_task",
"//third_party/abseil-cpp/absl/memory",
]
- public_deps = [ # no-presubmit-check TODO(webrtc:8603)
- "../call:fake_network",
- ]
+ public_deps = [ "../call:fake_network" ] # no-presubmit-check TODO(webrtc:8603)
}
rtc_library("fake_video_codecs") {
@@ -759,9 +727,7 @@
"null_transport.cc",
"null_transport.h",
]
- deps = [
- "../api:transport_api",
- ]
+ deps = [ "../api:transport_api" ]
}
rtc_library("encoder_settings") {
@@ -782,12 +748,8 @@
rtc_library("rtc_expect_death") {
testonly = true
- sources = [
- "testsupport/rtc_expect_death.h",
- ]
- deps = [
- ":test_support",
- ]
+ sources = [ "testsupport/rtc_expect_death.h" ]
+ deps = [ ":test_support" ]
}
rtc_library("test_common") {
@@ -870,9 +832,7 @@
}
rtc_source_set("test_renderer") {
- public_deps = [ # no-presubmit-check TODO(webrtc:8603)
- ":test_renderer_generic",
- ]
+ public_deps = [ ":test_renderer_generic" ] # no-presubmit-check TODO(webrtc:8603)
testonly = true
if (is_mac) {
public_deps += [ ":test_renderer_objc" ] # no-presubmit-check TODO(webrtc:8603)
@@ -996,9 +956,7 @@
rtc_library("copy_to_file_audio_capturer_unittest") {
testonly = true
- sources = [
- "testsupport/copy_to_file_audio_capturer_unittest.cc",
- ]
+ sources = [ "testsupport/copy_to_file_audio_capturer_unittest.cc" ]
deps = [
":copy_to_file_audio_capturer",
":fileutils",
diff --git a/test/fuzzers/BUILD.gn b/test/fuzzers/BUILD.gn
index c0ef5b5..e8748d6 100644
--- a/test/fuzzers/BUILD.gn
+++ b/test/fuzzers/BUILD.gn
@@ -11,9 +11,7 @@
import("../../webrtc.gni")
rtc_library("webrtc_fuzzer_main") {
- sources = [
- "webrtc_fuzzer_main.cc",
- ]
+ sources = [ "webrtc_fuzzer_main.cc" ]
deps = [
"../../rtc_base:rtc_base_approved",
"//testing/libfuzzer:libfuzzer_main",
@@ -55,18 +53,12 @@
}
webrtc_fuzzer_test("h264_depacketizer_fuzzer") {
- sources = [
- "h264_depacketizer_fuzzer.cc",
- ]
- deps = [
- "../../modules/rtp_rtcp",
- ]
+ sources = [ "h264_depacketizer_fuzzer.cc" ]
+ deps = [ "../../modules/rtp_rtcp" ]
}
webrtc_fuzzer_test("vp8_depacketizer_fuzzer") {
- sources = [
- "vp8_depacketizer_fuzzer.cc",
- ]
+ sources = [ "vp8_depacketizer_fuzzer.cc" ]
deps = [
"../../api:array_view",
"../../modules/rtp_rtcp",
@@ -75,9 +67,7 @@
}
webrtc_fuzzer_test("vp9_depacketizer_fuzzer") {
- sources = [
- "vp9_depacketizer_fuzzer.cc",
- ]
+ sources = [ "vp9_depacketizer_fuzzer.cc" ]
deps = [
"../../api:array_view",
"../../modules/rtp_rtcp",
@@ -86,9 +76,7 @@
}
webrtc_fuzzer_test("vp8_qp_parser_fuzzer") {
- sources = [
- "vp8_qp_parser_fuzzer.cc",
- ]
+ sources = [ "vp8_qp_parser_fuzzer.cc" ]
deps = [
"../../modules/video_coding:video_coding_utility",
"../../modules/video_coding/",
@@ -96,9 +84,7 @@
}
webrtc_fuzzer_test("vp9_qp_parser_fuzzer") {
- sources = [
- "vp9_qp_parser_fuzzer.cc",
- ]
+ sources = [ "vp9_qp_parser_fuzzer.cc" ]
deps = [
"../../modules/video_coding:video_coding_utility",
"../../modules/video_coding/",
@@ -106,9 +92,7 @@
}
webrtc_fuzzer_test("h264_bitstream_parser_fuzzer") {
- sources = [
- "h264_bitstream_parser_fuzzer.cc",
- ]
+ sources = [ "h264_bitstream_parser_fuzzer.cc" ]
deps = [
"../../common_video",
"../../modules/video_coding/",
@@ -116,9 +100,7 @@
}
webrtc_fuzzer_test("forward_error_correction_fuzzer") {
- sources = [
- "forward_error_correction_fuzzer.cc",
- ]
+ sources = [ "forward_error_correction_fuzzer.cc" ]
deps = [
"../../api:scoped_refptr",
"../../modules/rtp_rtcp",
@@ -128,9 +110,7 @@
}
webrtc_fuzzer_test("flexfec_header_reader_fuzzer") {
- sources = [
- "flexfec_header_reader_fuzzer.cc",
- ]
+ sources = [ "flexfec_header_reader_fuzzer.cc" ]
deps = [
"../../api:scoped_refptr",
"../../modules/rtp_rtcp",
@@ -140,9 +120,7 @@
}
webrtc_fuzzer_test("flexfec_sender_fuzzer") {
- sources = [
- "flexfec_sender_fuzzer.cc",
- ]
+ sources = [ "flexfec_sender_fuzzer.cc" ]
deps = [
"../../modules/rtp_rtcp",
"../../modules/rtp_rtcp:rtp_rtcp_format",
@@ -151,9 +129,7 @@
}
webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") {
- sources = [
- "ulpfec_header_reader_fuzzer.cc",
- ]
+ sources = [ "ulpfec_header_reader_fuzzer.cc" ]
deps = [
"../../api:scoped_refptr",
"../../modules/rtp_rtcp",
@@ -164,9 +140,7 @@
}
webrtc_fuzzer_test("ulpfec_generator_fuzzer") {
- sources = [
- "ulpfec_generator_fuzzer.cc",
- ]
+ sources = [ "ulpfec_generator_fuzzer.cc" ]
deps = [
"../../modules:module_api_public",
"../../modules/rtp_rtcp",
@@ -178,9 +152,7 @@
}
webrtc_fuzzer_test("ulpfec_receiver_fuzzer") {
- sources = [
- "ulpfec_receiver_fuzzer.cc",
- ]
+ sources = [ "ulpfec_receiver_fuzzer.cc" ]
deps = [
":fuzz_data_helper",
"../../modules/rtp_rtcp",
@@ -190,9 +162,7 @@
}
webrtc_fuzzer_test("flexfec_receiver_fuzzer") {
- sources = [
- "flexfec_receiver_fuzzer.cc",
- ]
+ sources = [ "flexfec_receiver_fuzzer.cc" ]
deps = [
"../../modules/rtp_rtcp",
"../../modules/rtp_rtcp:rtp_rtcp_format",
@@ -201,9 +171,7 @@
}
webrtc_fuzzer_test("packet_buffer_fuzzer") {
- sources = [
- "packet_buffer_fuzzer.cc",
- ]
+ sources = [ "packet_buffer_fuzzer.cc" ]
deps = [
"../../modules/video_coding/",
"../../system_wrappers",
@@ -211,9 +179,7 @@
}
webrtc_fuzzer_test("rtcp_receiver_fuzzer") {
- sources = [
- "rtcp_receiver_fuzzer.cc",
- ]
+ sources = [ "rtcp_receiver_fuzzer.cc" ]
deps = [
"../../modules/rtp_rtcp",
"../../modules/rtp_rtcp:rtp_rtcp_format",
@@ -225,9 +191,7 @@
}
webrtc_fuzzer_test("rtp_packet_fuzzer") {
- sources = [
- "rtp_packet_fuzzer.cc",
- ]
+ sources = [ "rtp_packet_fuzzer.cc" ]
deps = [
"../../modules/rtp_rtcp:rtp_rtcp_format",
"//third_party/abseil-cpp/absl/types:optional",
@@ -236,9 +200,7 @@
}
webrtc_fuzzer_test("rtp_packetizer_av1_fuzzer") {
- sources = [
- "rtp_packetizer_av1_fuzzer.cc",
- ]
+ sources = [ "rtp_packetizer_av1_fuzzer.cc" ]
deps = [
"../../api/video:video_frame_type",
"../../modules/rtp_rtcp:rtp_rtcp",
@@ -248,9 +210,7 @@
}
webrtc_fuzzer_test("rtp_header_fuzzer") {
- sources = [
- "rtp_header_fuzzer.cc",
- ]
+ sources = [ "rtp_header_fuzzer.cc" ]
deps = [
"../../modules/rtp_rtcp",
"../../modules/rtp_rtcp:rtp_rtcp_format",
@@ -258,9 +218,7 @@
}
webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") {
- sources = [
- "congestion_controller_feedback_fuzzer.cc",
- ]
+ sources = [ "congestion_controller_feedback_fuzzer.cc" ]
deps = [
"../../modules/congestion_controller",
"../../modules/pacing",
@@ -284,9 +242,7 @@
}
webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") {
- sources = [
- "audio_decoder_ilbc_fuzzer.cc",
- ]
+ sources = [ "audio_decoder_ilbc_fuzzer.cc" ]
deps = [
":audio_decoder_fuzzer",
"../../modules/audio_coding:ilbc",
@@ -294,9 +250,7 @@
}
webrtc_fuzzer_test("audio_decoder_isac_fuzzer") {
- sources = [
- "audio_decoder_isac_fuzzer.cc",
- ]
+ sources = [ "audio_decoder_isac_fuzzer.cc" ]
deps = [
":audio_decoder_fuzzer",
"../../modules/audio_coding:isac",
@@ -304,9 +258,7 @@
}
webrtc_fuzzer_test("audio_decoder_isacfix_fuzzer") {
- sources = [
- "audio_decoder_isacfix_fuzzer.cc",
- ]
+ sources = [ "audio_decoder_isacfix_fuzzer.cc" ]
deps = [
":audio_decoder_fuzzer",
"../../modules/audio_coding:isac_fix",
@@ -314,9 +266,7 @@
}
webrtc_fuzzer_test("audio_decoder_opus_fuzzer") {
- sources = [
- "audio_decoder_opus_fuzzer.cc",
- ]
+ sources = [ "audio_decoder_opus_fuzzer.cc" ]
deps = [
":audio_decoder_fuzzer",
"../../modules/audio_coding:webrtc_opus",
@@ -324,9 +274,7 @@
}
webrtc_fuzzer_test("audio_decoder_opus_redundant_fuzzer") {
- sources = [
- "audio_decoder_opus_redundant_fuzzer.cc",
- ]
+ sources = [ "audio_decoder_opus_redundant_fuzzer.cc" ]
deps = [
":audio_decoder_fuzzer",
"../../modules/audio_coding:webrtc_opus",
@@ -334,9 +282,7 @@
}
webrtc_fuzzer_test("audio_decoder_multiopus_fuzzer") {
- sources = [
- "audio_decoder_multistream_opus_fuzzer.cc",
- ]
+ sources = [ "audio_decoder_multistream_opus_fuzzer.cc" ]
deps = [
":audio_decoder_fuzzer",
"../../api/audio_codecs/opus:audio_decoder_multiopus",
@@ -345,9 +291,7 @@
}
webrtc_fuzzer_test("audio_encoder_opus_fuzzer") {
- sources = [
- "audio_encoder_opus_fuzzer.cc",
- ]
+ sources = [ "audio_encoder_opus_fuzzer.cc" ]
deps = [
"../../api:array_view",
"../../api/audio_codecs/opus:audio_encoder_opus",
@@ -357,9 +301,7 @@
}
webrtc_fuzzer_test("turn_unwrap_fuzzer") {
- sources = [
- "turn_unwrap_fuzzer.cc",
- ]
+ sources = [ "turn_unwrap_fuzzer.cc" ]
deps = [
"../../media",
"../../media:rtc_media_base",
@@ -367,9 +309,7 @@
}
webrtc_fuzzer_test("neteq_rtp_fuzzer") {
- sources = [
- "neteq_rtp_fuzzer.cc",
- ]
+ sources = [ "neteq_rtp_fuzzer.cc" ]
deps = [
"../../api:array_view",
"../../api/audio_codecs:builtin_audio_decoder_factory",
@@ -383,9 +323,7 @@
}
webrtc_fuzzer_test("neteq_signal_fuzzer") {
- sources = [
- "neteq_signal_fuzzer.cc",
- ]
+ sources = [ "neteq_signal_fuzzer.cc" ]
deps = [
"../../api:array_view",
"../../api/audio_codecs:builtin_audio_decoder_factory",
@@ -398,9 +336,7 @@
}
webrtc_fuzzer_test("residual_echo_detector_fuzzer") {
- sources = [
- "residual_echo_detector_fuzzer.cc",
- ]
+ sources = [ "residual_echo_detector_fuzzer.cc" ]
deps = [
"../../modules/audio_processing",
"../../rtc_base:checks",
@@ -409,9 +345,7 @@
}
webrtc_fuzzer_test("sdp_parser_fuzzer") {
- sources = [
- "sdp_parser_fuzzer.cc",
- ]
+ sources = [ "sdp_parser_fuzzer.cc" ]
deps = [
"../../api:libjingle_peerconnection_api",
"../../pc:libjingle_peerconnection",
@@ -420,9 +354,7 @@
}
webrtc_fuzzer_test("stun_parser_fuzzer") {
- sources = [
- "stun_parser_fuzzer.cc",
- ]
+ sources = [ "stun_parser_fuzzer.cc" ]
deps = [
"../../api/transport:stun_types",
"../../p2p:rtc_p2p",
@@ -432,9 +364,7 @@
}
webrtc_fuzzer_test("stun_validator_fuzzer") {
- sources = [
- "stun_validator_fuzzer.cc",
- ]
+ sources = [ "stun_validator_fuzzer.cc" ]
deps = [
"../../api/transport:stun_types",
"../../p2p:rtc_p2p",
@@ -444,9 +374,7 @@
}
webrtc_fuzzer_test("mdns_parser_fuzzer") {
- sources = [
- "mdns_parser_fuzzer.cc",
- ]
+ sources = [ "mdns_parser_fuzzer.cc" ]
deps = [
"../../p2p:rtc_p2p",
"../../rtc_base:rtc_base_approved",
@@ -455,9 +383,7 @@
}
webrtc_fuzzer_test("pseudotcp_parser_fuzzer") {
- sources = [
- "pseudotcp_parser_fuzzer.cc",
- ]
+ sources = [ "pseudotcp_parser_fuzzer.cc" ]
deps = [
"../../p2p:rtc_p2p",
"../../rtc_base",
@@ -481,9 +407,7 @@
}
webrtc_fuzzer_test("audio_processing_fuzzer") {
- sources = [
- "audio_processing_configs_fuzzer.cc",
- ]
+ sources = [ "audio_processing_configs_fuzzer.cc" ]
deps = [
":audio_processing_fuzzer_helper",
"../../api:scoped_refptr",
@@ -505,9 +429,7 @@
}
webrtc_fuzzer_test("agc_fuzzer") {
- sources = [
- "agc_fuzzer.cc",
- ]
+ sources = [ "agc_fuzzer.cc" ]
deps = [
":fuzz_data_helper",
"../../modules/audio_processing",
@@ -521,9 +443,7 @@
}
webrtc_fuzzer_test("aec3_config_json_fuzzer") {
- sources = [
- "aec3_config_json_fuzzer.cc",
- ]
+ sources = [ "aec3_config_json_fuzzer.cc" ]
deps = [
":fuzz_data_helper",
"../../api/audio:aec3_config",
@@ -540,9 +460,7 @@
} else {
defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ]
}
- sources = [
- "aec3_fuzzer.cc",
- ]
+ sources = [ "aec3_fuzzer.cc" ]
deps = [
":fuzz_data_helper",
"../../modules/audio_processing:api",
@@ -552,9 +470,7 @@
}
webrtc_fuzzer_test("comfort_noise_decoder_fuzzer") {
- sources = [
- "comfort_noise_decoder_fuzzer.cc",
- ]
+ sources = [ "comfort_noise_decoder_fuzzer.cc" ]
deps = [
"../../api:array_view",
"../../modules/audio_coding:webrtc_cng",
@@ -563,9 +479,7 @@
}
webrtc_fuzzer_test("rtp_depacketizer_av1_assemble_frame_fuzzer") {
- sources = [
- "rtp_depacketizer_av1_assemble_frame_fuzzer.cc",
- ]
+ sources = [ "rtp_depacketizer_av1_assemble_frame_fuzzer.cc" ]
seed_corpus = "corpora/rtp-depacketizer-av1-assemble-frame-corpus"
deps = [
":fuzz_data_helper",
@@ -575,9 +489,7 @@
}
webrtc_fuzzer_test("rtp_dependency_descriptor_fuzzer") {
- sources = [
- "rtp_dependency_descriptor_fuzzer.cc",
- ]
+ sources = [ "rtp_dependency_descriptor_fuzzer.cc" ]
seed_corpus = "corpora/dependency_descriptor-corpus"
deps = [
"../../api:array_view",
@@ -588,9 +500,7 @@
}
webrtc_fuzzer_test("rtp_frame_reference_finder_fuzzer") {
- sources = [
- "rtp_frame_reference_finder_fuzzer.cc",
- ]
+ sources = [ "rtp_frame_reference_finder_fuzzer.cc" ]
deps = [
"../../api:rtp_packet_info",
"../../api:scoped_refptr",
@@ -600,9 +510,7 @@
}
webrtc_fuzzer_test("frame_buffer2_fuzzer") {
- sources = [
- "frame_buffer2_fuzzer.cc",
- ]
+ sources = [ "frame_buffer2_fuzzer.cc" ]
deps = [
"../../modules/video_coding/",
"../../system_wrappers",
@@ -610,29 +518,19 @@
}
webrtc_fuzzer_test("field_trial_fuzzer") {
- sources = [
- "field_trial_fuzzer.cc",
- ]
- deps = [
- "../../system_wrappers:field_trial",
- ]
+ sources = [ "field_trial_fuzzer.cc" ]
+ deps = [ "../../system_wrappers:field_trial" ]
seed_corpus = "corpora/field_trial-corpus"
}
webrtc_fuzzer_test("string_to_number_fuzzer") {
- sources = [
- "string_to_number_fuzzer.cc",
- ]
- deps = [
- "../../rtc_base:rtc_base_approved",
- ]
+ sources = [ "string_to_number_fuzzer.cc" ]
+ deps = [ "../../rtc_base:rtc_base_approved" ]
seed_corpus = "corpora/string_to_number-corpus"
}
webrtc_fuzzer_test("rtp_rtcp_demuxer_helper_fuzzer") {
- sources = [
- "rtp_rtcp_demuxer_helper_fuzzer.cc",
- ]
+ sources = [ "rtp_rtcp_demuxer_helper_fuzzer.cc" ]
deps = [
"../../api:array_view",
"../../call:rtp_receiver",
@@ -641,9 +539,7 @@
}
webrtc_fuzzer_test("sctp_utils_fuzzer") {
- sources = [
- "sctp_utils_fuzzer.cc",
- ]
+ sources = [ "sctp_utils_fuzzer.cc" ]
deps = [
"../../api:libjingle_peerconnection_api",
"../../pc:libjingle_peerconnection",
@@ -653,27 +549,17 @@
}
webrtc_fuzzer_test("rtp_header_parser_fuzzer") {
- sources = [
- "rtp_header_parser_fuzzer.cc",
- ]
- deps = [
- "../:rtp_test_utils",
- ]
+ sources = [ "rtp_header_parser_fuzzer.cc" ]
+ deps = [ "../:rtp_test_utils" ]
}
webrtc_fuzzer_test("ssl_certificate_fuzzer") {
- sources = [
- "rtp_header_parser_fuzzer.cc",
- ]
- deps = [
- "../:rtp_test_utils",
- ]
+ sources = [ "rtp_header_parser_fuzzer.cc" ]
+ deps = [ "../:rtp_test_utils" ]
}
webrtc_fuzzer_test("vp8_replay_fuzzer") {
- sources = [
- "vp8_replay_fuzzer.cc",
- ]
+ sources = [ "vp8_replay_fuzzer.cc" ]
deps = [
"../../rtc_base:rtc_base_approved",
"utils:rtp_replayer",
@@ -682,9 +568,7 @@
}
webrtc_fuzzer_test("vp9_replay_fuzzer") {
- sources = [
- "vp9_replay_fuzzer.cc",
- ]
+ sources = [ "vp9_replay_fuzzer.cc" ]
deps = [
"../../rtc_base:rtc_base_approved",
"utils:rtp_replayer",
diff --git a/test/network/BUILD.gn b/test/network/BUILD.gn
index c156001..8b05eec 100644
--- a/test/network/BUILD.gn
+++ b/test/network/BUILD.gn
@@ -62,9 +62,7 @@
rtc_library("network_emulation_unittest") {
testonly = true
- sources = [
- "network_emulation_unittest.cc",
- ]
+ sources = [ "network_emulation_unittest.cc" ]
deps = [
":emulated_network",
"../:test_support",
@@ -80,9 +78,7 @@
rtc_library("network_emulation_pc_unittest") {
testonly = true
- sources = [
- "network_emulation_pc_unittest.cc",
- ]
+ sources = [ "network_emulation_pc_unittest.cc" ]
deps = [
":emulated_network",
"../:test_support",
@@ -108,9 +104,7 @@
rtc_library("cross_traffic_unittest") {
testonly = true
- sources = [
- "cross_traffic_unittest.cc",
- ]
+ sources = [ "cross_traffic_unittest.cc" ]
deps = [
":emulated_network",
"../:test_support",
@@ -141,9 +135,7 @@
rtc_library("feedback_generator_unittest") {
testonly = true
- sources = [
- "feedback_generator_unittest.cc",
- ]
+ sources = [ "feedback_generator_unittest.cc" ]
deps = [
"../:test_support",
"../../api/transport:test_feedback_generator",
diff --git a/test/scenario/BUILD.gn b/test/scenario/BUILD.gn
index 765fbf5..ed66936 100644
--- a/test/scenario/BUILD.gn
+++ b/test/scenario/BUILD.gn
@@ -35,16 +35,12 @@
bundle_data("scenario_resources_bundle_data") {
testonly = true
sources = scenario_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
bundle_data("scenario_unittest_resources_bundle_data") {
testonly = true
sources = scenario_unittest_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
if (rtc_include_tests) {
diff --git a/test/scenario/scenario_tests/BUILD.gn b/test/scenario/scenario_tests/BUILD.gn
index 12d7bc2..74ee1a7 100644
--- a/test/scenario/scenario_tests/BUILD.gn
+++ b/test/scenario/scenario_tests/BUILD.gn
@@ -11,9 +11,7 @@
if (rtc_include_tests) {
rtc_test("scenario_tests") {
testonly = true
- sources = [
- "bbr_performance.cc",
- ]
+ sources = [ "bbr_performance.cc" ]
deps = [
"../:scenario",
"../..:test_main",
diff --git a/tools_webrtc/presubmit_checks_lib/testdata/circular_dependency/BUILD.gn b/tools_webrtc/presubmit_checks_lib/testdata/circular_dependency/BUILD.gn
index cf17887..86095b2 100644
--- a/tools_webrtc/presubmit_checks_lib/testdata/circular_dependency/BUILD.gn
+++ b/tools_webrtc/presubmit_checks_lib/testdata/circular_dependency/BUILD.gn
@@ -2,13 +2,9 @@
}
static_library("foo") {
- deps = [
- ":bar",
- ]
+ deps = [ ":bar" ]
}
static_library("bar") {
- deps = [
- ":foo",
- ]
+ deps = [ ":foo" ]
}
diff --git a/tools_webrtc/presubmit_checks_lib/testdata/common_prefix/BUILD.gn b/tools_webrtc/presubmit_checks_lib/testdata/common_prefix/BUILD.gn
index ea10fb5..dd5145b 100644
--- a/tools_webrtc/presubmit_checks_lib/testdata/common_prefix/BUILD.gn
+++ b/tools_webrtc/presubmit_checks_lib/testdata/common_prefix/BUILD.gn
@@ -11,7 +11,5 @@
"call.h",
"dummy_source.h",
]
- deps = [
- "call",
- ]
+ deps = [ "call" ]
}
diff --git a/tools_webrtc/presubmit_checks_lib/testdata/dangerous_filename/BUILD.gn b/tools_webrtc/presubmit_checks_lib/testdata/dangerous_filename/BUILD.gn
index e15d972..d4e7284 100644
--- a/tools_webrtc/presubmit_checks_lib/testdata/dangerous_filename/BUILD.gn
+++ b/tools_webrtc/presubmit_checks_lib/testdata/dangerous_filename/BUILD.gn
@@ -9,7 +9,5 @@
# "libc++" is considered a "dangerous filename" because it's an invalid regex.
target("dummy_target") {
- sources = [
- "libc++/dummy_subpackage_file.h",
- ]
+ sources = [ "libc++/dummy_subpackage_file.h" ]
}
diff --git a/tools_webrtc/presubmit_checks_lib/testdata/dangerous_filename/libc++/BUILD.gn b/tools_webrtc/presubmit_checks_lib/testdata/dangerous_filename/libc++/BUILD.gn
index 63b9604..b7c1f8a 100644
--- a/tools_webrtc/presubmit_checks_lib/testdata/dangerous_filename/libc++/BUILD.gn
+++ b/tools_webrtc/presubmit_checks_lib/testdata/dangerous_filename/libc++/BUILD.gn
@@ -7,7 +7,5 @@
# be found in the AUTHORS file in the root of the source tree.
group("dummy_subpackage") {
- sources = [
- "dummy_subpackage.h",
- ]
+ sources = [ "dummy_subpackage.h" ]
}
diff --git a/tools_webrtc/presubmit_checks_lib/testdata/no_errors/BUILD.gn b/tools_webrtc/presubmit_checks_lib/testdata/no_errors/BUILD.gn
index 62fc42d..559d333 100644
--- a/tools_webrtc/presubmit_checks_lib/testdata/no_errors/BUILD.gn
+++ b/tools_webrtc/presubmit_checks_lib/testdata/no_errors/BUILD.gn
@@ -7,16 +7,10 @@
# be found in the AUTHORS file in the root of the source tree.
group("testdata") {
- deps = [
- ":dummy_target",
- ]
+ deps = [ ":dummy_target" ]
}
static_library("dummy_target") {
- sources = [
- "dummy.cc",
- ]
- deps = [
- "subdir",
- ]
+ sources = [ "dummy.cc" ]
+ deps = [ "subdir" ]
}
diff --git a/webrtc.gni b/webrtc.gni
index fe0b1b2..64a170c 100644
--- a/webrtc.gni
+++ b/webrtc.gni
@@ -866,9 +866,7 @@
script = "//tools_webrtc/ios/generate_umbrella_header.py"
- outputs = [
- umbrella_header_path,
- ]
+ outputs = [ umbrella_header_path ]
args = [
"--out",
rebase_path(umbrella_header_path, root_build_dir),
@@ -877,16 +875,11 @@
}
copy("copy_umbrella_header_$target_name") {
- sources = [
- umbrella_header_path,
- ]
- outputs = [
- "$root_out_dir/$output_name.framework/Headers/$output_name.h",
- ]
+ sources = [ umbrella_header_path ]
+ outputs =
+ [ "$root_out_dir/$output_name.framework/Headers/$output_name.h" ]
- deps = [
- ":umbrella_header_$target_name",
- ]
+ deps = [ ":umbrella_header_$target_name" ]
}
}
@@ -933,9 +926,7 @@
bundle_data("copy_framework_headers_$this_target_name") {
forward_variables_from(invoker, [ "sources" ])
- outputs = [
- "{{bundle_contents_dir}}/Headers/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_contents_dir}}/Headers/{{source_file_part}}" ]
}
action("modulemap_$this_target_name") {
@@ -946,21 +937,13 @@
"--name",
output_name,
]
- outputs = [
- modulemap_path,
- ]
+ outputs = [ modulemap_path ]
}
bundle_data("copy_modulemap_$this_target_name") {
- sources = [
- modulemap_path,
- ]
- outputs = [
- "{{bundle_contents_dir}}/Modules/module.modulemap",
- ]
- deps = [
- ":modulemap_$this_target_name",
- ]
+ sources = [ modulemap_path ]
+ outputs = [ "{{bundle_contents_dir}}/Modules/module.modulemap" ]
+ deps = [ ":modulemap_$this_target_name" ]
}
action("umbrella_header_$this_target_name") {
@@ -968,9 +951,7 @@
script = "//tools_webrtc/ios/generate_umbrella_header.py"
- outputs = [
- umbrella_header_path,
- ]
+ outputs = [ umbrella_header_path ]
args = [
"--out",
rebase_path(umbrella_header_path, root_build_dir),
@@ -979,16 +960,10 @@
}
bundle_data("copy_umbrella_header_$this_target_name") {
- sources = [
- umbrella_header_path,
- ]
- outputs = [
- "{{bundle_contents_dir}}/Headers/$output_name.h",
- ]
+ sources = [ umbrella_header_path ]
+ outputs = [ "{{bundle_contents_dir}}/Headers/$output_name.h" ]
- deps = [
- ":umbrella_header_$this_target_name",
- ]
+ deps = [ ":umbrella_header_$this_target_name" ]
}
}
}