Reformat GN files.

`gn format` recently [1] changed its formatting behavior
for deps, source, and a few other elements when they
are assigned (with =) single-element lists to be consistent
with the formatting of updates (with +=) with single-element.

Now that we've rolled in a GN binary with the change,
reformat all files so that people don't get presubmit
warnings due to this.

CL generated with:
$ git ls-files | grep BUILD.gn | xargs gn format
$ gn format build_overrides/build.gni
$ gn format build_overrides/gtest.gni
$ gn format modules/audio_coding/audio_coding.gni
$ gn format webrtc.gni
$ gn format .gn

Plus a few manual changes to add exceptions for
"public_deps" (after changing these lines the presubmit
started to complain).

[1] - https://gn-review.googlesource.com/c/gn/+/6860

Bug: webrtc:11302
Change-Id: Iac29d23c1618ebef925c972e2891cd9f4e8cd613
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166882
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30334}
This commit is contained in:
Mirko Bonadei
2020-01-21 12:10:10 +01:00
committed by Commit Bot
parent 0809e7ed43
commit ccbe95fd8a
67 changed files with 382 additions and 1132 deletions

View File

@ -28,9 +28,7 @@ if (!build_with_chromium) {
# 'ninja default' and then 'ninja all', the second build should do no work. # 'ninja default' and then 'ninja all', the second build should do no work.
group("default") { group("default") {
testonly = true testonly = true
deps = [ deps = [ ":webrtc" ]
":webrtc",
]
if (rtc_build_examples) { if (rtc_build_examples) {
deps += [ "examples" ] deps += [ "examples" ]
} }
@ -74,8 +72,8 @@ if (!build_with_chromium) {
if (is_android) { if (is_android) {
deps += [ deps += [
"examples:android_examples_junit_tests", "examples:android_examples_junit_tests",
"sdk/android:android_sdk_junit_tests",
"sdk/android:android_instrumentation_test_apk", "sdk/android:android_instrumentation_test_apk",
"sdk/android:android_sdk_junit_tests",
] ]
} else { } else {
deps += [ "modules/video_capture:video_capture_tests" ] deps += [ "modules/video_capture:video_capture_tests" ]
@ -486,9 +484,7 @@ if (!build_with_chromium) {
rtc_executable("webrtc_lib_link_test") { rtc_executable("webrtc_lib_link_test") {
testonly = true testonly = true
sources = [ sources = [ "webrtc_lib_link_test.cc" ]
"webrtc_lib_link_test.cc",
]
deps = [ deps = [
# NOTE: Don't add deps here. If this test fails to link, it means you # 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. # need to add stuff to the webrtc static lib target above.
@ -504,9 +500,7 @@ rtc_source_set("webrtc_common") {
# TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that # TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that
# client code gets updated. # client code gets updated.
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "common_types.h" ]
"common_types.h",
]
} }
if (use_libfuzzer || use_afl) { if (use_libfuzzer || use_afl) {
@ -514,9 +508,7 @@ if (use_libfuzzer || use_afl) {
# webrtc/test/fuzzers/. # webrtc/test/fuzzers/.
group("webrtc_fuzzers_dummy") { group("webrtc_fuzzers_dummy") {
testonly = true testonly = true
deps = [ deps = [ "test/fuzzers:webrtc_fuzzer_main" ]
"test/fuzzers:webrtc_fuzzer_main",
]
} }
} }
@ -595,9 +587,7 @@ if (rtc_include_tests) {
bundle_data("video_engine_tests_bundle_data") { bundle_data("video_engine_tests_bundle_data") {
testonly = true testonly = true
sources = video_engine_tests_resources sources = video_engine_tests_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }
@ -643,9 +633,7 @@ if (rtc_include_tests) {
bundle_data("webrtc_perf_tests_bundle_data") { bundle_data("webrtc_perf_tests_bundle_data") {
testonly = true testonly = true
sources = webrtc_perf_tests_resources sources = webrtc_perf_tests_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }
@ -674,9 +662,7 @@ if (rtc_include_tests) {
rtc_test("webrtc_nonparallel_tests") { rtc_test("webrtc_nonparallel_tests") {
testonly = true testonly = true
deps = [ deps = [ "rtc_base:rtc_base_nonparallel_tests" ]
"rtc_base:rtc_base_nonparallel_tests",
]
if (is_android) { if (is_android) {
deps += [ "//testing/android/native_test:native_test_support" ] deps += [ "//testing/android/native_test:native_test_support" ]
shard_timeout = 900 shard_timeout = 900

View File

@ -23,19 +23,13 @@ group("api") {
rtc_source_set("call_api") { rtc_source_set("call_api") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "call/audio_sink.h" ]
"call/audio_sink.h",
]
} }
rtc_source_set("callfactory_api") { rtc_source_set("callfactory_api") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "call/call_factory_interface.h" ]
"call/call_factory_interface.h", deps = [ "../rtc_base/system:rtc_export" ]
]
deps = [
"../rtc_base/system:rtc_export",
]
} }
if (!build_with_chromium) { if (!build_with_chromium) {
@ -248,17 +242,13 @@ rtc_source_set("packet_socket_factory") {
rtc_source_set("scoped_refptr") { rtc_source_set("scoped_refptr") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "scoped_refptr.h" ]
"scoped_refptr.h",
]
} }
rtc_source_set("video_quality_test_fixture_api") { rtc_source_set("video_quality_test_fixture_api") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "test/video_quality_test_fixture.h" ]
"test/video_quality_test_fixture.h",
]
deps = [ deps = [
":fec_controller_api", ":fec_controller_api",
":libjingle_peerconnection_api", ":libjingle_peerconnection_api",
@ -279,9 +269,7 @@ rtc_source_set("video_quality_test_fixture_api") {
rtc_source_set("video_quality_analyzer_api") { rtc_source_set("video_quality_analyzer_api") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "test/video_quality_analyzer_interface.h" ]
"test/video_quality_analyzer_interface.h",
]
deps = [ deps = [
":stats_observer_interface", ":stats_observer_interface",
@ -295,9 +283,7 @@ rtc_source_set("video_quality_analyzer_api") {
rtc_source_set("track_id_stream_label_map") { rtc_source_set("track_id_stream_label_map") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "test/track_id_stream_label_map.h" ]
"test/track_id_stream_label_map.h",
]
} }
rtc_library("rtp_parameters") { rtc_library("rtp_parameters") {
@ -320,9 +306,7 @@ rtc_library("rtp_parameters") {
rtc_source_set("audio_quality_analyzer_api") { rtc_source_set("audio_quality_analyzer_api") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "test/audio_quality_analyzer_interface.h" ]
"test/audio_quality_analyzer_interface.h",
]
deps = [ deps = [
":stats_observer_interface", ":stats_observer_interface",
@ -333,9 +317,7 @@ rtc_source_set("audio_quality_analyzer_api") {
rtc_source_set("stats_observer_interface") { rtc_source_set("stats_observer_interface") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "test/stats_observer_interface.h" ]
"test/stats_observer_interface.h",
]
deps = [ deps = [
# For api/stats_types.h # For api/stats_types.h
@ -347,9 +329,7 @@ rtc_source_set("stats_observer_interface") {
rtc_source_set("peer_connection_quality_test_fixture_api") { rtc_source_set("peer_connection_quality_test_fixture_api") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "test/peerconnection_quality_test_fixture.h" ]
"test/peerconnection_quality_test_fixture.h",
]
deps = [ deps = [
":audio_quality_analyzer_api", ":audio_quality_analyzer_api",
@ -380,9 +360,7 @@ rtc_source_set("peer_connection_quality_test_fixture_api") {
rtc_source_set("frame_generator_api") { rtc_source_set("frame_generator_api") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "test/frame_generator_interface.h" ]
"test/frame_generator_interface.h",
]
deps = [ deps = [
":scoped_refptr", ":scoped_refptr",
@ -471,9 +449,7 @@ rtc_library("create_frame_generator") {
rtc_source_set("libjingle_logging_api") { rtc_source_set("libjingle_logging_api") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "rtc_event_log_output.h" ]
"rtc_event_log_output.h",
]
} }
rtc_library("rtc_event_log_output_file") { rtc_library("rtc_event_log_output_file") {
@ -535,9 +511,7 @@ rtc_library("transport_api") {
rtc_source_set("bitrate_allocation") { rtc_source_set("bitrate_allocation") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "call/bitrate_allocation.h" ]
"call/bitrate_allocation.h",
]
deps = [ deps = [
"units:data_rate", "units:data_rate",
"units:time_delta", "units:time_delta",
@ -547,9 +521,7 @@ rtc_source_set("bitrate_allocation") {
# TODO(srte): Move to network_emulation sub directory. # TODO(srte): Move to network_emulation sub directory.
rtc_source_set("simulated_network_api") { rtc_source_set("simulated_network_api") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "test/simulated_network.h" ]
"test/simulated_network.h",
]
deps = [ deps = [
"../rtc_base", "../rtc_base",
"../rtc_base:criticalsection", "../rtc_base:criticalsection",
@ -590,16 +562,12 @@ rtc_source_set("fec_controller_api") {
rtc_source_set("network_state_predictor_api") { rtc_source_set("network_state_predictor_api") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "network_state_predictor.h" ]
"network_state_predictor.h",
]
} }
rtc_source_set("array_view") { rtc_source_set("array_view") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "array_view.h" ]
"array_view.h",
]
deps = [ deps = [
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:type_traits", "../rtc_base:type_traits",
@ -608,12 +576,8 @@ rtc_source_set("array_view") {
rtc_source_set("refcountedbase") { rtc_source_set("refcountedbase") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "ref_counted_base.h" ]
"ref_counted_base.h", deps = [ "../rtc_base:rtc_base_approved" ]
]
deps = [
"../rtc_base:rtc_base_approved",
]
} }
rtc_library("ice_transport_factory") { rtc_library("ice_transport_factory") {
@ -643,12 +607,8 @@ rtc_library("neteq_simulator_api") {
rtc_source_set("function_view") { rtc_source_set("function_view") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "function_view.h" ]
"function_view.h", deps = [ "../rtc_base:checks" ]
]
deps = [
"../rtc_base:checks",
]
} }
if (rtc_include_tests) { if (rtc_include_tests) {
@ -690,9 +650,7 @@ if (rtc_include_tests) {
rtc_source_set("simulcast_test_fixture_api") { rtc_source_set("simulcast_test_fixture_api") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "test/simulcast_test_fixture.h" ]
"test/simulcast_test_fixture.h",
]
} }
rtc_library("create_simulcast_test_fixture_api") { rtc_library("create_simulcast_test_fixture_api") {
@ -745,9 +703,7 @@ if (rtc_include_tests) {
rtc_source_set("mock_audio_mixer") { rtc_source_set("mock_audio_mixer") {
testonly = true testonly = true
sources = [ sources = [ "test/mock_audio_mixer.h" ]
"test/mock_audio_mixer.h",
]
deps = [ deps = [
"../test:test_support", "../test:test_support",
@ -757,9 +713,7 @@ if (rtc_include_tests) {
rtc_source_set("mock_fec_controller_override") { rtc_source_set("mock_fec_controller_override") {
testonly = true testonly = true
sources = [ sources = [ "test/mock_fec_controller_override.h" ]
"test/mock_fec_controller_override.h",
]
deps = [ deps = [
":fec_controller_api", ":fec_controller_api",
"../test:test_support", "../test:test_support",
@ -830,9 +784,7 @@ if (rtc_include_tests) {
rtc_source_set("dummy_peer_connection") { rtc_source_set("dummy_peer_connection") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "test/dummy_peer_connection.h" ]
"test/dummy_peer_connection.h",
]
deps = [ deps = [
":libjingle_peerconnection_api", ":libjingle_peerconnection_api",
@ -844,9 +796,7 @@ if (rtc_include_tests) {
rtc_source_set("mock_peerconnectioninterface") { rtc_source_set("mock_peerconnectioninterface") {
testonly = true testonly = true
sources = [ sources = [ "test/mock_peerconnectioninterface.h" ]
"test/mock_peerconnectioninterface.h",
]
deps = [ deps = [
":libjingle_peerconnection_api", ":libjingle_peerconnection_api",
@ -869,9 +819,7 @@ if (rtc_include_tests) {
rtc_source_set("mock_video_bitrate_allocator") { rtc_source_set("mock_video_bitrate_allocator") {
testonly = true testonly = true
sources = [ sources = [ "test/mock_video_bitrate_allocator.h" ]
"test/mock_video_bitrate_allocator.h",
]
deps = [ deps = [
"../api/video:video_bitrate_allocator", "../api/video:video_bitrate_allocator",
@ -881,9 +829,7 @@ if (rtc_include_tests) {
rtc_source_set("mock_video_bitrate_allocator_factory") { rtc_source_set("mock_video_bitrate_allocator_factory") {
testonly = true testonly = true
sources = [ sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
"test/mock_video_bitrate_allocator_factory.h",
]
deps = [ deps = [
"../api/video:video_bitrate_allocator_factory", "../api/video:video_bitrate_allocator_factory",
@ -970,9 +916,7 @@ if (rtc_include_tests) {
rtc_library("time_controller") { rtc_library("time_controller") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "test/time_controller.h" ]
"test/time_controller.h",
]
deps = [ deps = [
"../modules:module_api", "../modules:module_api",
@ -1052,9 +996,7 @@ if (rtc_include_tests) {
rtc_library("compile_all_headers") { rtc_library("compile_all_headers") {
testonly = true testonly = true
sources = [ sources = [ "test/compile_all_headers.cc" ]
"test/compile_all_headers.cc",
]
deps = [ deps = [
":fake_frame_decryptor", ":fake_frame_decryptor",

View File

@ -26,9 +26,7 @@ rtc_library("audio_frame_api") {
rtc_source_set("audio_mixer_api") { rtc_source_set("audio_mixer_api") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "audio_mixer.h" ]
"audio_mixer.h",
]
deps = [ deps = [
":audio_frame_api", ":audio_frame_api",
@ -86,10 +84,6 @@ rtc_library("aec3_factory") {
rtc_source_set("echo_control") { rtc_source_set("echo_control") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "echo_control.h" ]
"echo_control.h", deps = [ "../../rtc_base:checks" ]
]
deps = [
"../../rtc_base:checks",
]
} }

View File

@ -14,9 +14,7 @@ if (is_android) {
rtc_source_set("audio_encoder_g722_config") { rtc_source_set("audio_encoder_g722_config") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "audio_encoder_g722_config.h" ]
"audio_encoder_g722_config.h",
]
} }
rtc_library("audio_encoder_g722") { rtc_library("audio_encoder_g722") {

View File

@ -14,9 +14,7 @@ if (is_android) {
rtc_source_set("audio_encoder_ilbc_config") { rtc_source_set("audio_encoder_ilbc_config") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "audio_encoder_ilbc_config.h" ]
"audio_encoder_ilbc_config.h",
]
} }
rtc_library("audio_encoder_ilbc") { rtc_library("audio_encoder_ilbc") {

View File

@ -20,36 +20,24 @@ if (is_android) {
rtc_source_set("audio_encoder_isac") { rtc_source_set("audio_encoder_isac") {
visibility = [ "*" ] visibility = [ "*" ]
poisonous = [ "audio_codecs" ] poisonous = [ "audio_codecs" ]
public = [ public = [ "audio_encoder_isac.h" ]
"audio_encoder_isac.h",
]
public_configs = [ ":isac_config" ] public_configs = [ ":isac_config" ]
if (current_cpu == "arm") { if (current_cpu == "arm") {
deps = [ deps = [ ":audio_encoder_isac_fix" ]
":audio_encoder_isac_fix",
]
} else { } else {
deps = [ deps = [ ":audio_encoder_isac_float" ]
":audio_encoder_isac_float",
]
} }
} }
rtc_source_set("audio_decoder_isac") { rtc_source_set("audio_decoder_isac") {
visibility = [ "*" ] visibility = [ "*" ]
poisonous = [ "audio_codecs" ] poisonous = [ "audio_codecs" ]
public = [ public = [ "audio_decoder_isac.h" ]
"audio_decoder_isac.h",
]
public_configs = [ ":isac_config" ] public_configs = [ ":isac_config" ]
if (current_cpu == "arm") { if (current_cpu == "arm") {
deps = [ deps = [ ":audio_decoder_isac_fix" ]
":audio_decoder_isac_fix",
]
} else { } else {
deps = [ deps = [ ":audio_decoder_isac_float" ]
":audio_decoder_isac_float",
]
} }
} }

View File

@ -35,20 +35,14 @@ rtc_library("audio_encoder_opus_config") {
rtc_source_set("audio_decoder_opus_config") { rtc_source_set("audio_decoder_opus_config") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "audio_decoder_multi_channel_opus_config.h" ]
"audio_decoder_multi_channel_opus_config.h",
]
} }
rtc_library("audio_encoder_opus") { rtc_library("audio_encoder_opus") {
visibility = [ "*" ] visibility = [ "*" ]
poisonous = [ "audio_codecs" ] poisonous = [ "audio_codecs" ]
public = [ public = [ "audio_encoder_opus.h" ]
"audio_encoder_opus.h", sources = [ "audio_encoder_opus.cc" ]
]
sources = [
"audio_encoder_opus.cc",
]
deps = [ deps = [
":audio_encoder_opus_config", ":audio_encoder_opus_config",
"..:audio_codecs_api", "..:audio_codecs_api",
@ -80,12 +74,8 @@ rtc_library("audio_decoder_opus") {
rtc_library("audio_encoder_multiopus") { rtc_library("audio_encoder_multiopus") {
visibility = [ "*" ] visibility = [ "*" ]
poisonous = [ "audio_codecs" ] poisonous = [ "audio_codecs" ]
public = [ public = [ "audio_encoder_multi_channel_opus.h" ]
"audio_encoder_multi_channel_opus.h", sources = [ "audio_encoder_multi_channel_opus.cc" ]
]
sources = [
"audio_encoder_multi_channel_opus.cc",
]
deps = [ deps = [
"..:audio_codecs_api", "..:audio_codecs_api",
"../../../modules/audio_coding:webrtc_multiopus", "../../../modules/audio_coding:webrtc_multiopus",

View File

@ -30,9 +30,7 @@ rtc_library("options") {
rtc_source_set("frame_decryptor_interface") { rtc_source_set("frame_decryptor_interface") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "frame_decryptor_interface.h" ]
"frame_decryptor_interface.h",
]
deps = [ deps = [
"..:array_view", "..:array_view",
"..:rtp_parameters", "..:rtp_parameters",
@ -42,9 +40,7 @@ rtc_source_set("frame_decryptor_interface") {
rtc_source_set("frame_encryptor_interface") { rtc_source_set("frame_encryptor_interface") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "frame_encryptor_interface.h" ]
"frame_encryptor_interface.h",
]
deps = [ deps = [
"..:array_view", "..:array_view",
"..:rtp_parameters", "..:rtp_parameters",

View File

@ -87,9 +87,7 @@ rtc_source_set("tick_timer") {
rtc_source_set("tick_timer_unittest") { rtc_source_set("tick_timer_unittest") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "tick_timer_unittest.cc" ]
"tick_timer_unittest.cc",
]
deps = [ deps = [
":tick_timer", ":tick_timer",
"../../test:test_support", "../../test:test_support",

View File

@ -15,9 +15,7 @@ rtc_library("task_queue") {
"task_queue_base.h", "task_queue_base.h",
"task_queue_factory.h", "task_queue_factory.h",
] ]
sources = [ sources = [ "task_queue_base.cc" ]
"task_queue_base.cc",
]
deps = [ deps = [
"../../rtc_base:checks", "../../rtc_base:checks",
@ -75,12 +73,8 @@ rtc_library("default_task_queue_factory") {
if (!is_ios && !is_android) { if (!is_ios && !is_android) {
poisonous = [ "default_task_queue" ] poisonous = [ "default_task_queue" ]
} }
sources = [ sources = [ "default_task_queue_factory.h" ]
"default_task_queue_factory.h", deps = [ ":task_queue" ]
]
deps = [
":task_queue",
]
if (rtc_enable_libevent) { if (rtc_enable_libevent) {
sources += [ "default_task_queue_factory_libevent.cc" ] sources += [ "default_task_queue_factory_libevent.cc" ]
@ -100,9 +94,7 @@ rtc_library("default_task_queue_factory") {
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_library("task_queue_default_factory_unittests") { rtc_library("task_queue_default_factory_unittests") {
testonly = true testonly = true
sources = [ sources = [ "default_task_queue_factory_unittest.cc" ]
"default_task_queue_factory_unittest.cc",
]
deps = [ deps = [
":default_task_queue_factory", ":default_task_queue_factory",
":task_queue_test", ":task_queue_test",

View File

@ -22,9 +22,7 @@ rtc_library("bitrate_settings") {
rtc_source_set("enums") { rtc_source_set("enums") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "enums.h" ]
"enums.h",
]
} }
rtc_library("network_control") { rtc_library("network_control") {
@ -50,9 +48,7 @@ rtc_library("network_control") {
rtc_source_set("webrtc_key_value_config") { rtc_source_set("webrtc_key_value_config") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "webrtc_key_value_config.h" ]
"webrtc_key_value_config.h",
]
deps = [ deps = [
"../../rtc_base/system:rtc_export", "../../rtc_base/system:rtc_export",
"//third_party/abseil-cpp/absl/strings", "//third_party/abseil-cpp/absl/strings",
@ -122,9 +118,7 @@ rtc_source_set("stun_types") {
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_source_set("test_feedback_generator_interface") { rtc_source_set("test_feedback_generator_interface") {
testonly = true testonly = true
sources = [ sources = [ "test/feedback_generator_interface.h" ]
"test/feedback_generator_interface.h",
]
deps = [ deps = [
":network_control", ":network_control",
"..:simulated_network_api", "..:simulated_network_api",
@ -149,9 +143,7 @@ if (rtc_include_tests) {
rtc_source_set("stun_unittest") { rtc_source_set("stun_unittest") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "stun_unittest.cc" ]
"stun_unittest.cc",
]
deps = [ deps = [
":stun_types", ":stun_types",
"../../rtc_base", "../../rtc_base",
@ -166,9 +158,7 @@ if (rtc_include_tests) {
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_source_set("mock_network_control") { rtc_source_set("mock_network_control") {
testonly = true testonly = true
sources = [ sources = [ "test/mock_network_control.h" ]
"test/mock_network_control.h",
]
deps = [ deps = [
":network_control", ":network_control",
"../../test:test_support", "../../test:test_support",

View File

@ -39,9 +39,7 @@ rtc_library("audio_interfaces") {
"audio_transport.cc", "audio_transport.cc",
"audio_transport.h", "audio_transport.h",
] ]
deps = [ deps = [ "../..:array_view" ]
"../..:array_view",
]
} }
rtc_library("video_interfaces") { rtc_library("video_interfaces") {
@ -50,7 +48,5 @@ rtc_library("video_interfaces") {
"video_transport.cc", "video_transport.cc",
"video_transport.h", "video_transport.h",
] ]
deps = [ deps = [ "../../video:encoded_image" ]
"../../video:encoded_image",
]
} }

View File

@ -26,9 +26,7 @@ rtc_library("rtc_api_video_unittests") {
rtc_source_set("mock_recordable_encoded_frame") { rtc_source_set("mock_recordable_encoded_frame") {
testonly = true testonly = true
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "mock_recordable_encoded_frame.h" ]
"mock_recordable_encoded_frame.h",
]
deps = [ deps = [
"..:recordable_encoded_frame", "..:recordable_encoded_frame",

View File

@ -213,9 +213,7 @@ if (rtc_include_tests) {
group("low_bandwidth_audio_perf_test") { group("low_bandwidth_audio_perf_test") {
testonly = true testonly = true
deps = [ deps = [ ":low_bandwidth_audio_test" ]
":low_bandwidth_audio_test",
]
data = [ data = [
"test/low_bandwidth_audio_test.py", "test/low_bandwidth_audio_test.py",
@ -274,8 +272,6 @@ if (rtc_include_tests) {
"//testing/gtest", "//testing/gtest",
] ]
data = [ data = [ "//resources/voice_engine/audio_dtx16.wav" ]
"//resources/voice_engine/audio_dtx16.wav",
]
} }
} }

View File

@ -8,9 +8,7 @@
import("../../webrtc.gni") import("../../webrtc.gni")
group("utility") { group("utility") {
deps = [ deps = [ ":audio_frame_operations" ]
":audio_frame_operations",
]
} }
rtc_library("audio_frame_operations") { rtc_library("audio_frame_operations") {

View File

@ -66,12 +66,8 @@ rtc_library("call_interfaces") {
rtc_source_set("audio_sender_interface") { rtc_source_set("audio_sender_interface") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "audio_sender.h" ]
"audio_sender.h", deps = [ "../api/audio:audio_frame_api" ]
]
deps = [
"../api/audio:audio_frame_api",
]
} }
# TODO(nisse): These RTP targets should be moved elsewhere # TODO(nisse): These RTP targets should be moved elsewhere
@ -335,9 +331,7 @@ rtc_library("simulated_network") {
} }
rtc_source_set("simulated_packet_receiver") { rtc_source_set("simulated_packet_receiver") {
sources = [ sources = [ "simulated_packet_receiver.h" ]
"simulated_packet_receiver.h",
]
deps = [ deps = [
":call_interfaces", ":call_interfaces",
"../api:simulated_network_api", "../api:simulated_network_api",
@ -519,9 +513,7 @@ if (rtc_include_tests) {
rtc_source_set("mock_bitrate_allocator") { rtc_source_set("mock_bitrate_allocator") {
testonly = true testonly = true
sources = [ sources = [ "test/mock_bitrate_allocator.h" ]
"test/mock_bitrate_allocator.h",
]
deps = [ deps = [
":bitrate_allocator", ":bitrate_allocator",
"../test:test_support", "../test:test_support",
@ -530,9 +522,7 @@ if (rtc_include_tests) {
rtc_source_set("mock_call_interfaces") { rtc_source_set("mock_call_interfaces") {
testonly = true testonly = true
sources = [ sources = [ "test/mock_audio_send_stream.h" ]
"test/mock_audio_send_stream.h",
]
deps = [ deps = [
":call_interfaces", ":call_interfaces",
"../test:test_support", "../test:test_support",

View File

@ -205,9 +205,7 @@ rtc_library("common_audio_cc") {
} }
rtc_source_set("sinc_resampler") { rtc_source_set("sinc_resampler") {
sources = [ sources = [ "resampler/sinc_resampler.h" ]
"resampler/sinc_resampler.h",
]
deps = [ deps = [
"../rtc_base:gtest_prod", "../rtc_base:gtest_prod",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
@ -219,9 +217,7 @@ rtc_source_set("sinc_resampler") {
rtc_source_set("fir_filter") { rtc_source_set("fir_filter") {
visibility += webrtc_default_visibility visibility += webrtc_default_visibility
sources = [ sources = [ "fir_filter.h" ]
"fir_filter.h",
]
} }
rtc_library("fir_filter_factory") { rtc_library("fir_filter_factory") {

View File

@ -10,9 +10,7 @@ import("../../../webrtc.gni")
rtc_library("spl_sqrt_floor") { rtc_library("spl_sqrt_floor") {
visibility = [ "../..:common_audio_c" ] visibility = [ "../..:common_audio_c" ]
sources = [ sources = [ "spl_sqrt_floor.h" ]
"spl_sqrt_floor.h",
]
deps = [] deps = []
if (current_cpu == "arm") { if (current_cpu == "arm") {
sources += [ "spl_sqrt_floor_arm.S" ] sources += [ "spl_sqrt_floor_arm.S" ]

View File

@ -72,9 +72,7 @@ if (rtc_include_tests) {
bundle_data("common_video_unittests_bundle_data") { bundle_data("common_video_unittests_bundle_data") {
testonly = true testonly = true
sources = common_video_resources sources = common_video_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }

View File

@ -66,17 +66,13 @@ rtc_library("read_auth_file") {
"turnserver/read_auth_file.cc", "turnserver/read_auth_file.cc",
"turnserver/read_auth_file.h", "turnserver/read_auth_file.h",
] ]
deps = [ deps = [ "../rtc_base" ]
"../rtc_base",
]
} }
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_test("examples_unittests") { rtc_test("examples_unittests") {
testonly = true testonly = true
sources = [ sources = [ "turnserver/read_auth_file_unittest.cc" ]
"turnserver/read_auth_file_unittest.cc",
]
deps = [ deps = [
":read_auth_file", ":read_auth_file",
"../test:test_main", "../test:test_main",
@ -199,13 +195,9 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
if (is_ios) { if (is_ios) {
# iOS must use WebRTC.framework which is dynamically linked. # iOS must use WebRTC.framework which is dynamically linked.
deps = [ deps = [ "../sdk:framework_objc+link" ]
"../sdk:framework_objc+link",
]
} else { } else {
deps = [ deps = [ "../sdk:mac_framework_objc+link" ]
"../sdk:mac_framework_objc+link",
]
} }
} }
@ -323,9 +315,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
ios_app_bundle("AppRTCMobile") { ios_app_bundle("AppRTCMobile") {
testonly = true testonly = true
sources = [ sources = [ "objc/AppRTCMobile/ios/main.m" ]
"objc/AppRTCMobile/ios/main.m",
]
info_plist = "objc/AppRTCMobile/ios/Info.plist" info_plist = "objc/AppRTCMobile/ios/Info.plist"
@ -354,28 +344,16 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
if (rtc_apprtcmobile_broadcast_extension) { if (rtc_apprtcmobile_broadcast_extension) {
bundle_data("AppRTCMobileBroadcastUpload_extension_bundle") { bundle_data("AppRTCMobileBroadcastUpload_extension_bundle") {
testonly = true testonly = true
public_deps = [ public_deps = [ ":AppRTCMobileBroadcastUpload" ] # no-presubmit-check TODO(webrtc:8603)
":AppRTCMobileBroadcastUpload", sources = [ "$root_out_dir/AppRTCMobileBroadcastUpload.appex" ]
] outputs = [ "{{bundle_contents_dir}}/Plugins/{{source_file_part}}" ]
sources = [
"$root_out_dir/AppRTCMobileBroadcastUpload.appex",
]
outputs = [
"{{bundle_contents_dir}}/Plugins/{{source_file_part}}",
]
} }
bundle_data("AppRTCMobileBroadcastSetupUI_extension_bundle") { bundle_data("AppRTCMobileBroadcastSetupUI_extension_bundle") {
testonly = true testonly = true
public_deps = [ public_deps = [ ":AppRTCMobileBroadcastSetupUI" ] # no-presubmit-check TODO(webrtc:8603)
":AppRTCMobileBroadcastSetupUI", sources = [ "$root_out_dir/AppRTCMobileBroadcastSetupUI.appex" ]
] outputs = [ "{{bundle_contents_dir}}/Plugins/{{source_file_part}}" ]
sources = [
"$root_out_dir/AppRTCMobileBroadcastSetupUI.appex",
]
outputs = [
"{{bundle_contents_dir}}/Plugins/{{source_file_part}}",
]
} }
rtc_library("AppRTCMobileBroadcastUpload_lib") { rtc_library("AppRTCMobileBroadcastUpload_lib") {
@ -417,9 +395,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
libs = [ "ReplayKit.framework" ] libs = [ "ReplayKit.framework" ]
deps = [ deps = [ ":AppRTCMobile_ios_bundle_data" ]
":AppRTCMobile_ios_bundle_data",
]
} }
} }
@ -447,9 +423,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
"objc/Icon-180.png", "objc/Icon-180.png",
"objc/Icon.png", "objc/Icon.png",
] ]
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
rtc_library("ObjCNativeAPIDemo_lib") { rtc_library("ObjCNativeAPIDemo_lib") {
@ -491,18 +465,14 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
ios_app_bundle("ObjCNativeAPIDemo") { ios_app_bundle("ObjCNativeAPIDemo") {
testonly = true testonly = true
sources = [ sources = [ "objcnativeapi/objc/main.m" ]
"objcnativeapi/objc/main.m",
]
info_plist = "objcnativeapi/Info.plist" info_plist = "objcnativeapi/Info.plist"
configs += [ "..:common_config" ] configs += [ "..:common_config" ]
public_configs = [ "..:common_inherited_config" ] public_configs = [ "..:common_inherited_config" ]
deps = [ deps = [ ":ObjCNativeAPIDemo_lib" ]
":ObjCNativeAPIDemo_lib",
]
if (target_cpu == "x86") { if (target_cpu == "x86") {
deps += [ "//testing/iossim" ] deps += [ "//testing/iossim" ]
@ -531,9 +501,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
testonly = true testonly = true
output_name = "AppRTCMobile" output_name = "AppRTCMobile"
sources = [ sources = [ "objc/AppRTCMobile/mac/main.m" ]
"objc/AppRTCMobile/mac/main.m",
]
public_configs = [ "..:common_inherited_config" ] public_configs = [ "..:common_inherited_config" ]
@ -619,9 +587,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
rtc_ios_xctest_test("apprtcmobile_tests") { rtc_ios_xctest_test("apprtcmobile_tests") {
info_plist = "objc/AppRTCMobile/ios/Info.plist" info_plist = "objc/AppRTCMobile/ios/Info.plist"
sources = [ sources = [ "objc/AppRTCMobile/tests/main.mm" ]
"objc/AppRTCMobile/tests/main.mm",
]
deps = [ deps = [
":AppRTCMobile_lib", ":AppRTCMobile_lib",
":apprtcmobile_test_sources", ":apprtcmobile_test_sources",
@ -741,9 +707,7 @@ if (is_linux || is_win) {
} }
rtc_executable("turnserver") { rtc_executable("turnserver") {
testonly = true testonly = true
sources = [ sources = [ "turnserver/turnserver_main.cc" ]
"turnserver/turnserver_main.cc",
]
deps = [ deps = [
":read_auth_file", ":read_auth_file",
"../p2p:p2p_server_utils", "../p2p:p2p_server_utils",
@ -755,9 +719,7 @@ if (is_linux || is_win) {
} }
rtc_executable("stunserver") { rtc_executable("stunserver") {
testonly = true testonly = true
sources = [ sources = [ "stunserver/stunserver_main.cc" ]
"stunserver/stunserver_main.cc",
]
deps = [ deps = [
"../p2p:p2p_server_utils", "../p2p:p2p_server_utils",
"../p2p:rtc_p2p", "../p2p:rtc_p2p",
@ -826,9 +788,7 @@ if (is_win || is_android) {
if (is_android) { if (is_android) {
rtc_android_library("webrtc_unity_java") { rtc_android_library("webrtc_unity_java") {
sources = [ sources = [ "unityplugin/java/src/org/webrtc/UnityUtility.java" ]
"unityplugin/java/src/org/webrtc/UnityUtility.java",
]
deps = [ deps = [
"../rtc_base:base_java", "../rtc_base:base_java",
"../sdk/android:camera_java", "../sdk/android:camera_java",
@ -879,9 +839,7 @@ if (!build_with_chromium) {
# Doesn't build within Chrome on Win. # Doesn't build within Chrome on Win.
rtc_executable("stun_prober") { rtc_executable("stun_prober") {
testonly = true testonly = true
sources = [ sources = [ "stunprober/main.cc" ]
"stunprober/main.cc",
]
deps = [ deps = [
"../p2p:libstunprober", "../p2p:libstunprober",
"../p2p:rtc_p2p", "../p2p:rtc_p2p",

View File

@ -28,9 +28,7 @@ if (is_android) {
generate_jni("generated_jni") { generate_jni("generated_jni") {
testonly = true testonly = true
sources = [ sources = [ "java/org/webrtc/examples/androidnativeapi/CallClient.java" ]
"java/org/webrtc/examples/androidnativeapi/CallClient.java",
]
namespace = "webrtc_examples" namespace = "webrtc_examples"
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h" jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
} }

View File

@ -27,13 +27,9 @@ group("logging") {
} }
rtc_source_set("rtc_event_log_api") { rtc_source_set("rtc_event_log_api") {
sources = [ sources = [ "rtc_event_log/encoder/rtc_event_log_encoder.h" ]
"rtc_event_log/encoder/rtc_event_log_encoder.h",
]
deps = [ deps = [ "../api/rtc_event_log" ]
"../api/rtc_event_log",
]
} }
rtc_library("rtc_stream_config") { rtc_library("rtc_stream_config") {
@ -226,12 +222,8 @@ rtc_library("rtc_event_log_impl_encoder") {
# TODO(bugs.webrtc.org/6463): For backwards compatibility; delete as # TODO(bugs.webrtc.org/6463): For backwards compatibility; delete as
# soon as downstream dependencies are updated. # soon as downstream dependencies are updated.
rtc_source_set("rtc_event_log_impl_output") { rtc_source_set("rtc_event_log_impl_output") {
sources = [ sources = [ "rtc_event_log/output/rtc_event_log_output_file.h" ]
"rtc_event_log/output/rtc_event_log_output_file.h", deps = [ "../api:rtc_event_log_output_file" ]
]
deps = [
"../api:rtc_event_log_output_file",
]
} }
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
@ -278,17 +270,13 @@ rtc_library("fake_rtc_event_log") {
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
proto_library("rtc_event_log_proto") { proto_library("rtc_event_log_proto") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "rtc_event_log/rtc_event_log.proto" ]
"rtc_event_log/rtc_event_log.proto",
]
proto_out_dir = "logging/rtc_event_log" proto_out_dir = "logging/rtc_event_log"
} }
proto_library("rtc_event_log2_proto") { proto_library("rtc_event_log2_proto") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "rtc_event_log/rtc_event_log2.proto" ]
"rtc_event_log/rtc_event_log2.proto",
]
proto_out_dir = "logging/rtc_event_log" proto_out_dir = "logging/rtc_event_log"
} }
@ -388,9 +376,7 @@ if (rtc_enable_protobuf) {
rtc_executable("rtc_event_log_rtp_dump") { rtc_executable("rtc_event_log_rtp_dump") {
testonly = true testonly = true
sources = [ sources = [ "rtc_event_log/rtc_event_log2rtp_dump.cc" ]
"rtc_event_log/rtc_event_log2rtp_dump.cc",
]
deps = [ deps = [
":rtc_event_log_parser", ":rtc_event_log_parser",
"../api:array_view", "../api:array_view",

View File

@ -42,9 +42,7 @@ rtc_library("rtc_h264_profile_id") {
rtc_source_set("rtc_media_config") { rtc_source_set("rtc_media_config") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "base/media_config.h" ]
"base/media_config.h",
]
} }
rtc_library("rtc_vp9_profile") { rtc_library("rtc_vp9_profile") {
@ -418,9 +416,7 @@ rtc_library("rtc_data") {
] ]
} else { } else {
# libtool on mac does not like empty targets. # libtool on mac does not like empty targets.
sources = [ sources = [ "sctp/noop.cc" ]
"sctp/noop.cc",
]
} }
if (rtc_enable_sctp && rtc_build_usrsctp) { if (rtc_enable_sctp && rtc_build_usrsctp) {
@ -517,9 +513,7 @@ if (rtc_include_tests) {
bundle_data("rtc_media_unittests_bundle_data") { bundle_data("rtc_media_unittests_bundle_data") {
testonly = true testonly = true
sources = rtc_media_unittests_resources sources = rtc_media_unittests_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }

View File

@ -30,9 +30,7 @@ group("modules") {
} }
rtc_source_set("module_api_public") { rtc_source_set("module_api_public") {
sources = [ sources = [ "include/module_common_types_public.h" ]
"include/module_common_types_public.h",
]
deps = [ deps = [
"..:webrtc_common", "..:webrtc_common",
"//third_party/abseil-cpp/absl/types:optional", "//third_party/abseil-cpp/absl/types:optional",
@ -54,9 +52,7 @@ rtc_library("module_api") {
rtc_source_set("module_fec_api") { rtc_source_set("module_fec_api") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "include/module_fec_types.h" ]
"include/module_fec_types.h",
]
} }
if (rtc_include_tests) { if (rtc_include_tests) {
@ -70,9 +66,7 @@ if (rtc_include_tests) {
bundle_data("modules_tests_bundle_data") { bundle_data("modules_tests_bundle_data") {
testonly = true testonly = true
sources = modules_tests_resources sources = modules_tests_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }
@ -114,9 +108,9 @@ if (rtc_include_tests) {
"../resources/audio_coding/neteq_opus.rtp", "../resources/audio_coding/neteq_opus.rtp",
"../resources/audio_coding/neteq_opus_dtx.rtp", "../resources/audio_coding/neteq_opus_dtx.rtp",
"../resources/audio_coding/neteq_universal_new.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_16kHz.pcm",
"../resources/audio_coding/speech_mono_32_48kHz.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/testfile32kHz.pcm",
"../resources/audio_coding/testfile_fake_stereo_32kHz.pcm", "../resources/audio_coding/testfile_fake_stereo_32kHz.pcm",
"../resources/audio_coding/teststereo32kHz.pcm", "../resources/audio_coding/teststereo32kHz.pcm",
@ -196,8 +190,8 @@ if (rtc_include_tests) {
"../resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSpeed_0_AST.bin", "../resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSpeed_0_AST.bin",
"../resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSpeed_0_TOF.bin", "../resources/remote_bitrate_estimator/VideoSendersTest_BweTest_UnlimitedSpeed_0_TOF.bin",
"../resources/short_mixed_mono_48.dat", "../resources/short_mixed_mono_48.dat",
"../resources/short_mixed_mono_48_arm.dat",
"../resources/short_mixed_mono_48.pcm", "../resources/short_mixed_mono_48.pcm",
"../resources/short_mixed_mono_48_arm.dat",
"../resources/short_mixed_stereo_48.dat", "../resources/short_mixed_stereo_48.dat",
"../resources/short_mixed_stereo_48.pcm", "../resources/short_mixed_stereo_48.pcm",
"../resources/voice_engine/audio_tiny48.wav", "../resources/voice_engine/audio_tiny48.wav",
@ -206,18 +200,14 @@ if (rtc_include_tests) {
bundle_data("modules_unittests_bundle_data") { bundle_data("modules_unittests_bundle_data") {
testonly = true testonly = true
sources = modules_unittests_resources sources = modules_unittests_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }
rtc_test("modules_unittests") { rtc_test("modules_unittests") {
testonly = true testonly = true
defines = [] defines = []
sources = [ sources = [ "module_common_types_unittest.cc" ]
"module_common_types_unittest.cc",
]
deps = [ deps = [
":module_api", ":module_api",

View File

@ -25,12 +25,8 @@ config("audio_device_warnings_config") {
rtc_source_set("audio_device_default") { rtc_source_set("audio_device_default") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "include/audio_device_default.h" ]
"include/audio_device_default.h", deps = [ ":audio_device_api" ]
]
deps = [
":audio_device_api",
]
} }
rtc_source_set("audio_device") { rtc_source_set("audio_device") {

View File

@ -120,9 +120,7 @@ if (rtc_include_tests) {
rtc_executable("audio_mixer_test") { rtc_executable("audio_mixer_test") {
testonly = true testonly = true
sources = [ sources = [ "audio_mixer_test.cc" ]
"audio_mixer_test.cc",
]
deps = [ deps = [
":audio_mixer_impl", ":audio_mixer_impl",

View File

@ -212,19 +212,13 @@ rtc_library("audio_processing_statistics") {
} }
rtc_source_set("audio_frame_view") { rtc_source_set("audio_frame_view") {
sources = [ sources = [ "include/audio_frame_view.h" ]
"include/audio_frame_view.h", deps = [ "../../api:array_view" ]
]
deps = [
"../../api:array_view",
]
} }
rtc_source_set("audio_generator_interface") { rtc_source_set("audio_generator_interface") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "include/audio_generator.h" ]
"include/audio_generator.h",
]
deps = [ deps = [
":audio_frame_view", ":audio_frame_view",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
@ -263,9 +257,7 @@ rtc_library("file_audio_generator") {
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
proto_library("audioproc_debug_proto") { proto_library("audioproc_debug_proto") {
sources = [ sources = [ "debug.proto" ]
"debug.proto",
]
proto_out_dir = "modules/audio_processing" proto_out_dir = "modules/audio_processing"
} }
@ -289,9 +281,7 @@ rtc_library("apm_logging") {
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_source_set("mocks") { rtc_source_set("mocks") {
testonly = true testonly = true
sources = [ sources = [ "include/mock_audio_processing.h" ]
"include/mock_audio_processing.h",
]
deps = [ deps = [
":api", ":api",
":audio_buffer", ":audio_buffer",
@ -450,9 +440,7 @@ if (rtc_include_tests) {
testonly = true testonly = true
configs += [ ":apm_debug_dump" ] configs += [ ":apm_debug_dump" ]
sources = [ sources = [ "audio_processing_performance_unittest.cc" ]
"audio_processing_performance_unittest.cc",
]
deps = [ deps = [
":audio_processing", ":audio_processing",
":audioproc_test_utils", ":audioproc_test_utils",
@ -468,9 +456,7 @@ if (rtc_include_tests) {
rtc_library("file_audio_generator_unittests") { rtc_library("file_audio_generator_unittests") {
testonly = true testonly = true
sources = [ sources = [ "audio_generator/file_audio_generator_unittest.cc" ]
"audio_generator/file_audio_generator_unittest.cc",
]
deps = [ deps = [
":api", ":api",
@ -621,9 +607,7 @@ if (rtc_include_tests) {
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
proto_library("audioproc_unittest_proto") { proto_library("audioproc_unittest_proto") {
sources = [ sources = [ "test/unittest.proto" ]
"test/unittest.proto",
]
proto_out_dir = "modules/audio_processing/test" proto_out_dir = "modules/audio_processing/test"
} }

View File

@ -10,9 +10,7 @@ import("../../../webrtc.gni") # This contains def of 'rtc_enable_protobuf'
rtc_source_set("aec_dump") { rtc_source_set("aec_dump") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "aec_dump_factory.h" ]
"aec_dump_factory.h",
]
deps = [ deps = [
"../", "../",
@ -38,9 +36,7 @@ rtc_library("mock_aec_dump") {
rtc_library("mock_aec_dump_unittests") { rtc_library("mock_aec_dump_unittests") {
testonly = true testonly = true
sources = [ sources = [ "aec_dump_integration_test.cc" ]
"aec_dump_integration_test.cc",
]
deps = [ deps = [
":mock_aec_dump", ":mock_aec_dump",
@ -92,17 +88,13 @@ if (rtc_enable_protobuf) {
"../../../test:test_support", "../../../test:test_support",
"//testing/gtest", "//testing/gtest",
] ]
sources = [ sources = [ "aec_dump_unittest.cc" ]
"aec_dump_unittest.cc",
]
} }
} }
rtc_library("null_aec_dump_factory") { rtc_library("null_aec_dump_factory") {
assert_no_deps = [ ":aec_dump_impl" ] assert_no_deps = [ ":aec_dump_impl" ]
sources = [ sources = [ "null_aec_dump_factory.cc" ]
"null_aec_dump_factory.cc",
]
deps = [ deps = [
":aec_dump", ":aec_dump",

View File

@ -9,9 +9,7 @@
import("../../../webrtc.gni") import("../../../webrtc.gni")
rtc_source_set("gain_control_interface") { rtc_source_set("gain_control_interface") {
sources = [ sources = [ "gain_control.h" ]
"gain_control.h",
]
} }
rtc_library("agc") { rtc_library("agc") {
@ -93,9 +91,7 @@ rtc_library("agc_legacy_c") {
} }
rtc_source_set("gain_map") { rtc_source_set("gain_map") {
sources = [ sources = [ "gain_map_internal.h" ]
"gain_map_internal.h",
]
} }
if (rtc_include_tests) { if (rtc_include_tests) {

View File

@ -199,9 +199,7 @@ rtc_library("adaptive_digital_unittests") {
rtc_library("biquad_filter_unittests") { rtc_library("biquad_filter_unittests") {
testonly = true testonly = true
sources = [ sources = [ "biquad_filter_unittest.cc" ]
"biquad_filter_unittest.cc",
]
deps = [ deps = [
":biquad_filter", ":biquad_filter",
"../../../rtc_base:gunit_helpers", "../../../rtc_base:gunit_helpers",
@ -260,9 +258,7 @@ rtc_library("noise_estimator_unittests") {
rtc_library("rnn_vad_with_level_unittests") { rtc_library("rnn_vad_with_level_unittests") {
testonly = true testonly = true
sources = [ sources = [ "vad_with_level_unittest.cc" ]
"vad_with_level_unittest.cc",
]
deps = [ deps = [
":rnn_vad_with_level", ":rnn_vad_with_level",
"..:audio_frame_view", "..:audio_frame_view",

View File

@ -76,8 +76,8 @@ if (rtc_include_tests) {
unittest_resources = [ unittest_resources = [
"../../../../resources/audio_processing/agc2/rnn_vad/band_energies.dat", "../../../../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_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_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/samples.pcm",
"../../../../resources/audio_processing/agc2/rnn_vad/vad_prob.dat", "../../../../resources/audio_processing/agc2/rnn_vad/vad_prob.dat",
] ]
@ -86,9 +86,7 @@ if (rtc_include_tests) {
bundle_data("unittests_bundle_data") { bundle_data("unittests_bundle_data") {
testonly = true testonly = true
sources = unittest_resources sources = unittest_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }
@ -130,9 +128,7 @@ if (rtc_include_tests) {
rtc_executable("rnn_vad_tool") { rtc_executable("rnn_vad_tool") {
testonly = true testonly = true
sources = [ sources = [ "rnn_vad_tool.cc" ]
"rnn_vad_tool.cc",
]
deps = [ deps = [
":rnn_vad", ":rnn_vad",
"../../../../api:array_view", "../../../../api:array_view",

View File

@ -34,9 +34,7 @@ rtc_library("legacy_ns") {
rtc_library("legacy_ns_c") { rtc_library("legacy_ns_c") {
visibility = [ "*" ] # Only targets in this file can depend on this. visibility = [ "*" ] # Only targets in this file can depend on this.
sources = [ sources = [ "windows_private.h" ]
"windows_private.h",
]
if (rtc_prefer_fixed_point) { if (rtc_prefer_fixed_point) {
sources += [ sources += [
@ -89,9 +87,7 @@ if (rtc_include_tests) {
testonly = true testonly = true
configs += [] configs += []
sources = [ sources = [ "legacy_noise_suppression_unittest.cc" ]
"legacy_noise_suppression_unittest.cc",
]
deps = [ deps = [
"..:audio_buffer", "..:audio_buffer",

View File

@ -73,9 +73,7 @@ if (rtc_include_tests) {
testonly = true testonly = true
configs += [ "..:apm_debug_dump" ] configs += [ "..:apm_debug_dump" ]
sources = [ sources = [ "noise_suppressor_unittest.cc" ]
"noise_suppressor_unittest.cc",
]
deps = [ deps = [
":ns", ":ns",

View File

@ -10,16 +10,12 @@ import("../../../../webrtc.gni")
group("conversational_speech") { group("conversational_speech") {
testonly = true testonly = true
deps = [ deps = [ ":conversational_speech_generator" ]
":conversational_speech_generator",
]
} }
rtc_executable("conversational_speech_generator") { rtc_executable("conversational_speech_generator") {
testonly = true testonly = true
sources = [ sources = [ "generator.cc" ]
"generator.cc",
]
deps = [ deps = [
":lib", ":lib",
"../../../../test:fileutils", "../../../../test:fileutils",

View File

@ -27,9 +27,7 @@ copy("scripts") {
"apm_quality_assessment_gencfgs.py", "apm_quality_assessment_gencfgs.py",
"apm_quality_assessment_optimize.py", "apm_quality_assessment_optimize.py",
] ]
outputs = [ outputs = [ "$root_build_dir/py_quality_assessment/{{source_file_part}}" ]
"$root_build_dir/py_quality_assessment/{{source_file_part}}",
]
deps = [ deps = [
":apm_configs", ":apm_configs",
":lib", ":lib",
@ -41,9 +39,7 @@ copy("scripts") {
copy("apm_configs") { copy("apm_configs") {
testonly = true testonly = true
sources = [ sources = [ "apm_configs/default.json" ]
"apm_configs/default.json",
]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
outputs = [ outputs = [
"$root_build_dir/py_quality_assessment/apm_configs/{{source_file_part}}", "$root_build_dir/py_quality_assessment/apm_configs/{{source_file_part}}",
@ -77,23 +73,16 @@ copy("lib") {
"quality_assessment/test_data_generation_factory.py", "quality_assessment/test_data_generation_factory.py",
] ]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
outputs = [ outputs = [ "$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}" ]
"$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}", deps = [ "../../../../resources/audio_processing/test/py_quality_assessment:noise_tracks" ]
]
deps = [
"../../../../resources/audio_processing/test/py_quality_assessment:noise_tracks",
]
} }
copy("output") { copy("output") {
testonly = true testonly = true
sources = [ sources = [ "output/README.md" ]
"output/README.md",
]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
outputs = [ outputs =
"$root_build_dir/py_quality_assessment/output/{{source_file_part}}", [ "$root_build_dir/py_quality_assessment/output/{{source_file_part}}" ]
]
} }
group("unit_tests") { group("unit_tests") {
@ -110,9 +99,7 @@ group("unit_tests") {
rtc_executable("fake_polqa") { rtc_executable("fake_polqa") {
testonly = true testonly = true
sources = [ sources = [ "quality_assessment/fake_polqa.cc" ]
"quality_assessment/fake_polqa.cc",
]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
output_dir = "${root_out_dir}/py_quality_assessment/quality_assessment" output_dir = "${root_out_dir}/py_quality_assessment/quality_assessment"
deps = [ deps = [
@ -123,9 +110,7 @@ rtc_executable("fake_polqa") {
rtc_executable("vad") { rtc_executable("vad") {
testonly = true testonly = true
sources = [ sources = [ "quality_assessment/vad.cc" ]
"quality_assessment/vad.cc",
]
deps = [ deps = [
"../../../../common_audio", "../../../../common_audio",
"../../../../rtc_base:rtc_base_approved", "../../../../rtc_base:rtc_base_approved",
@ -136,9 +121,7 @@ rtc_executable("vad") {
rtc_executable("apm_vad") { rtc_executable("apm_vad") {
testonly = true testonly = true
sources = [ sources = [ "quality_assessment/apm_vad.cc" ]
"quality_assessment/apm_vad.cc",
]
deps = [ deps = [
"../..", "../..",
"../../../../common_audio", "../../../../common_audio",
@ -151,9 +134,7 @@ rtc_executable("apm_vad") {
rtc_executable("sound_level") { rtc_executable("sound_level") {
testonly = true testonly = true
sources = [ sources = [ "quality_assessment/sound_level.cc" ]
"quality_assessment/sound_level.cc",
]
deps = [ deps = [
"../..", "../..",
"../../../../common_audio", "../../../../common_audio",
@ -176,18 +157,12 @@ copy("lib_unit_tests") {
"quality_assessment/test_data_generation_unittest.py", "quality_assessment/test_data_generation_unittest.py",
] ]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
outputs = [ outputs = [ "$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}" ]
"$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}",
]
} }
copy("scripts_unit_tests") { copy("scripts_unit_tests") {
testonly = true testonly = true
sources = [ sources = [ "apm_quality_assessment_unittest.py" ]
"apm_quality_assessment_unittest.py",
]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
outputs = [ outputs = [ "$root_build_dir/py_quality_assessment/{{source_file_part}}" ]
"$root_build_dir/py_quality_assessment/{{source_file_part}}",
]
} }

View File

@ -27,9 +27,7 @@ rtc_library("legacy_delay_estimator") {
"delay_estimator_wrapper.cc", "delay_estimator_wrapper.cc",
"delay_estimator_wrapper.h", "delay_estimator_wrapper.h",
] ]
deps = [ deps = [ "../../../rtc_base:checks" ]
"../../../rtc_base:checks",
]
} }
rtc_library("ooura_fft") { rtc_library("ooura_fft") {
@ -91,9 +89,7 @@ if (rtc_include_tests) {
rtc_library("cascaded_biquad_filter_unittest") { rtc_library("cascaded_biquad_filter_unittest") {
testonly = true testonly = true
sources = [ sources = [ "cascaded_biquad_filter_unittest.cc" ]
"cascaded_biquad_filter_unittest.cc",
]
deps = [ deps = [
":cascaded_biquad_filter", ":cascaded_biquad_filter",
"../../../rtc_base:rtc_base_approved", "../../../rtc_base:rtc_base_approved",
@ -105,9 +101,7 @@ if (rtc_include_tests) {
rtc_library("legacy_delay_estimator_unittest") { rtc_library("legacy_delay_estimator_unittest") {
testonly = true testonly = true
sources = [ sources = [ "delay_estimator_unittest.cc" ]
"delay_estimator_unittest.cc",
]
deps = [ deps = [
":legacy_delay_estimator", ":legacy_delay_estimator",
"../../../rtc_base:rtc_base_approved", "../../../rtc_base:rtc_base_approved",
@ -118,9 +112,7 @@ if (rtc_include_tests) {
rtc_library("pffft_wrapper_unittest") { rtc_library("pffft_wrapper_unittest") {
testonly = true testonly = true
sources = [ sources = [ "pffft_wrapper_unittest.cc" ]
"pffft_wrapper_unittest.cc",
]
deps = [ deps = [
":pffft_wrapper", ":pffft_wrapper",
"../../../test:test_support", "../../../test:test_support",

View File

@ -42,9 +42,7 @@ if (rtc_include_tests) {
rtc_library("congestion_controller_unittests") { rtc_library("congestion_controller_unittests") {
testonly = true testonly = true
sources = [ sources = [ "receive_side_congestion_controller_unittest.cc" ]
"receive_side_congestion_controller_unittest.cc",
]
deps = [ deps = [
":congestion_controller", ":congestion_controller",
"../../system_wrappers", "../../system_wrappers",

View File

@ -132,9 +132,7 @@ if (rtc_include_tests) {
rtc_library("screen_drawer") { rtc_library("screen_drawer") {
testonly = true testonly = true
public_deps = [ public_deps = [ ":desktop_capture" ] # no-presubmit-check TODO(webrtc:8603)
":desktop_capture",
]
sources = [ sources = [
"screen_drawer.cc", "screen_drawer.cc",
@ -172,9 +170,7 @@ if (rtc_include_tests) {
rtc_library("desktop_capture_mock") { rtc_library("desktop_capture_mock") {
testonly = true testonly = true
public_deps = [ public_deps = [ ":desktop_capture" ] # no-presubmit-check TODO(webrtc:8603)
":desktop_capture",
]
sources = [ sources = [
"mock_desktop_capturer_callback.cc", "mock_desktop_capturer_callback.cc",
@ -207,9 +203,7 @@ if (is_linux) {
# the binary. # the binary.
generate_stubs("pipewire_stubs") { generate_stubs("pipewire_stubs") {
configs = [ "../../:common_config" ] configs = [ "../../:common_config" ]
deps = [ deps = [ "../../rtc_base" ]
"../../rtc_base",
]
extra_header = "linux/pipewire_stub_header.fragment" extra_header = "linux/pipewire_stub_header.fragment"
logging_function = "RTC_LOG(LS_VERBOSE)" logging_function = "RTC_LOG(LS_VERBOSE)"
logging_include = "rtc_base/logging.h" logging_include = "rtc_base/logging.h"
@ -230,9 +224,7 @@ if (is_linux) {
rtc_source_set("desktop_capture") { rtc_source_set("desktop_capture") {
visibility = [ "*" ] visibility = [ "*" ]
public_deps = [ public_deps = [ ":desktop_capture_generic" ] # no-presubmit-check TODO(webrtc:8603)
":desktop_capture_generic",
]
if (is_mac) { if (is_mac) {
public_deps += [ ":desktop_capture_objc" ] public_deps += [ ":desktop_capture_objc" ]
} }

View File

@ -82,9 +82,7 @@ if (!build_with_chromium) {
rtc_executable("rtp_to_text") { rtc_executable("rtp_to_text") {
testonly = true testonly = true
sources = [ sources = [ "tools/rtp_to_text.cc" ]
"tools/rtp_to_text.cc",
]
deps = [ deps = [
":bwe_rtp", ":bwe_rtp",
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",

View File

@ -43,9 +43,7 @@ rtc_library("utility") {
rtc_library("mock_process_thread") { rtc_library("mock_process_thread") {
testonly = true testonly = true
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "include/mock/mock_process_thread.h" ]
"include/mock/mock_process_thread.h",
]
deps = [ deps = [
":utility", ":utility",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
@ -57,9 +55,7 @@ if (rtc_include_tests) {
rtc_library("utility_unittests") { rtc_library("utility_unittests") {
testonly = true testonly = true
sources = [ sources = [ "source/process_thread_impl_unittest.cc" ]
"source/process_thread_impl_unittest.cc",
]
deps = [ deps = [
":utility", ":utility",
"..:module_api", "..:module_api",

View File

@ -104,9 +104,7 @@ if (!build_with_chromium) {
if (!is_android && rtc_include_tests) { if (!is_android && rtc_include_tests) {
rtc_test("video_capture_tests") { rtc_test("video_capture_tests") {
sources = [ sources = [ "test/video_capture_unittest.cc" ]
"test/video_capture_unittest.cc",
]
ldflags = [] ldflags = []
if (is_linux || is_mac) { if (is_linux || is_mac) {
ldflags += [ ldflags += [

View File

@ -51,12 +51,8 @@ rtc_library("video_processing") {
rtc_source_set("denoiser_filter") { rtc_source_set("denoiser_filter") {
# Target that only exists to avoid cyclic depdency errors for the SSE2 and # Target that only exists to avoid cyclic depdency errors for the SSE2 and
# Neon implementations below. # Neon implementations below.
sources = [ sources = [ "util/denoiser_filter.h" ]
"util/denoiser_filter.h", deps = [ "..:module_api" ]
]
deps = [
"..:module_api",
]
} }
if (build_video_processing_sse2) { if (build_video_processing_sse2) {
@ -85,9 +81,7 @@ if (rtc_build_with_neon) {
"util/denoiser_filter_neon.h", "util/denoiser_filter_neon.h",
] ]
deps = [ deps = [ ":denoiser_filter" ]
":denoiser_filter",
]
if (current_cpu != "arm64") { if (current_cpu != "arm64") {
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ] suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
@ -100,9 +94,7 @@ if (rtc_include_tests) {
rtc_library("video_processing_unittests") { rtc_library("video_processing_unittests") {
testonly = true testonly = true
sources = [ sources = [ "test/denoiser_test.cc" ]
"test/denoiser_test.cc",
]
deps = [ deps = [
":denoiser_filter", ":denoiser_filter",
":video_processing", ":video_processing",

View File

@ -121,9 +121,7 @@ if (rtc_include_tests) {
rtc_library("fake_ice_transport") { rtc_library("fake_ice_transport") {
testonly = true testonly = true
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "base/fake_ice_transport.h" ]
"base/fake_ice_transport.h",
]
deps = [ deps = [
":rtc_p2p", ":rtc_p2p",
"../api:libjingle_peerconnection_api", "../api:libjingle_peerconnection_api",
@ -137,9 +135,7 @@ if (rtc_include_tests) {
rtc_library("fake_port_allocator") { rtc_library("fake_port_allocator") {
testonly = true testonly = true
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "base/fake_port_allocator.h" ]
"base/fake_port_allocator.h",
]
deps = [ deps = [
":rtc_p2p", ":rtc_p2p",
"../rtc_base", "../rtc_base",
@ -271,9 +267,7 @@ if (rtc_include_tests) {
rtc_library("libstunprober_unittests") { rtc_library("libstunprober_unittests") {
testonly = true testonly = true
sources = [ sources = [ "stunprober/stun_prober_unittest.cc" ]
"stunprober/stun_prober_unittest.cc",
]
deps = [ deps = [
":libstunprober", ":libstunprober",
":p2p_test_utils", ":p2p_test_utils",

View File

@ -11,9 +11,7 @@ import("../../../../webrtc.gni")
if (rtc_include_tests) { if (rtc_include_tests) {
copy("noise_tracks") { copy("noise_tracks") {
testonly = true testonly = true
sources = [ sources = [ "noise_tracks/city.wav" ]
"noise_tracks/city.wav",
]
outputs = [ outputs = [
"$root_build_dir/py_quality_assessment/noise_tracks/{{source_file_part}}", "$root_build_dir/py_quality_assessment/noise_tracks/{{source_file_part}}",
] ]
@ -21,11 +19,7 @@ if (rtc_include_tests) {
copy("probing_signals") { copy("probing_signals") {
testonly = true testonly = true
sources = [ sources = [ "probing_signals/tone-880.wav" ]
"probing_signals/tone-880.wav", outputs = [ "$root_build_dir/py_quality_assessment/probing_signals/{{source_file_part}}" ]
]
outputs = [
"$root_build_dir/py_quality_assessment/probing_signals/{{source_file_part}}",
]
} # probing_signals } # probing_signals
} }

View File

@ -28,27 +28,19 @@ if (!rtc_build_ssl) {
} }
rtc_source_set("protobuf_utils") { rtc_source_set("protobuf_utils") {
sources = [ sources = [ "protobuf_utils.h" ]
"protobuf_utils.h",
]
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
public_configs = [ "//third_party/protobuf:protobuf_config" ] public_configs = [ "//third_party/protobuf:protobuf_config" ]
deps = [ deps = [ "//third_party/protobuf:protobuf_lite" ]
"//third_party/protobuf:protobuf_lite",
]
} }
} }
rtc_source_set("compile_assert_c") { rtc_source_set("compile_assert_c") {
sources = [ sources = [ "compile_assert_c.h" ]
"compile_assert_c.h",
]
} }
rtc_source_set("ignore_wundef") { rtc_source_set("ignore_wundef") {
sources = [ sources = [ "ignore_wundef.h" ]
"ignore_wundef.h",
]
} }
# The subset of rtc_base approved for use outside of libjingle. # The subset of rtc_base approved for use outside of libjingle.
@ -116,9 +108,7 @@ rtc_library("rtc_base_approved") {
"win/windows_version.cc", "win/windows_version.cc",
"win/windows_version.h", "win/windows_version.h",
] ]
data_deps = [ data_deps = [ "//build/win:runtime_libs" ]
"//build/win:runtime_libs",
]
} }
if (is_nacl) { if (is_nacl) {
@ -155,9 +145,7 @@ rtc_source_set("macromagic") {
"stringize_macros.h", "stringize_macros.h",
"thread_annotations.h", "thread_annotations.h",
] ]
deps = [ deps = [ "system:arch" ]
"system:arch",
]
} }
rtc_library("platform_thread_types") { rtc_library("platform_thread_types") {
@ -174,9 +162,7 @@ rtc_source_set("refcount") {
"ref_counted_object.h", "ref_counted_object.h",
"ref_counter.h", "ref_counter.h",
] ]
deps = [ deps = [ ":macromagic" ]
":macromagic",
]
} }
rtc_library("criticalsection") { rtc_library("criticalsection") {
@ -291,9 +277,7 @@ rtc_library("logging") {
} }
rtc_source_set("thread_checker") { rtc_source_set("thread_checker") {
sources = [ sources = [ "thread_checker.h" ]
"thread_checker.h",
]
deps = [ deps = [
":deprecation", ":deprecation",
"synchronization:sequence_checker", "synchronization:sequence_checker",
@ -301,9 +285,7 @@ rtc_source_set("thread_checker") {
} }
rtc_source_set("atomicops") { rtc_source_set("atomicops") {
sources = [ sources = [ "atomic_ops.h" ]
"atomic_ops.h",
]
} }
rtc_library("checks") { rtc_library("checks") {
@ -339,18 +321,12 @@ rtc_library("rate_limiter") {
} }
rtc_source_set("sanitizer") { rtc_source_set("sanitizer") {
sources = [ sources = [ "sanitizer.h" ]
"sanitizer.h", deps = [ "//third_party/abseil-cpp/absl/meta:type_traits" ]
]
deps = [
"//third_party/abseil-cpp/absl/meta:type_traits",
]
} }
rtc_source_set("divide_round") { rtc_source_set("divide_round") {
sources = [ sources = [ "numerics/divide_round.h" ]
"numerics/divide_round.h",
]
deps = [ deps = [
":checks", ":checks",
":safe_compare", ":safe_compare",
@ -358,18 +334,12 @@ rtc_source_set("divide_round") {
} }
rtc_source_set("safe_compare") { rtc_source_set("safe_compare") {
sources = [ sources = [ "numerics/safe_compare.h" ]
"numerics/safe_compare.h", deps = [ ":type_traits" ]
]
deps = [
":type_traits",
]
} }
rtc_source_set("safe_minmax") { rtc_source_set("safe_minmax") {
sources = [ sources = [ "numerics/safe_minmax.h" ]
"numerics/safe_minmax.h",
]
deps = [ deps = [
":checks", ":checks",
":safe_compare", ":safe_compare",
@ -382,9 +352,7 @@ rtc_source_set("safe_conversions") {
"numerics/safe_conversions.h", "numerics/safe_conversions.h",
"numerics/safe_conversions_impl.h", "numerics/safe_conversions_impl.h",
] ]
deps = [ deps = [ ":checks" ]
":checks",
]
} }
rtc_library("timeutils") { rtc_library("timeutils") {
@ -438,15 +406,11 @@ rtc_library("audio_format_to_string") {
} }
rtc_source_set("type_traits") { rtc_source_set("type_traits") {
sources = [ sources = [ "type_traits.h" ]
"type_traits.h",
]
} }
rtc_source_set("deprecation") { rtc_source_set("deprecation") {
sources = [ sources = [ "deprecation.h" ]
"deprecation.h",
]
} }
rtc_library("rtc_task_queue") { rtc_library("rtc_task_queue") {
@ -629,14 +593,10 @@ rtc_library("rtc_json") {
"strings/json.cc", "strings/json.cc",
"strings/json.h", "strings/json.h",
] ]
deps = [ deps = [ ":stringutils" ]
":stringutils",
]
all_dependent_configs = [ "//third_party/jsoncpp:jsoncpp_config" ] all_dependent_configs = [ "//third_party/jsoncpp:jsoncpp_config" ]
if (rtc_build_json) { if (rtc_build_json) {
public_deps = [ public_deps = [ "//third_party/jsoncpp" ] # no-presubmit-check TODO(webrtc:8603)
"//third_party/jsoncpp",
]
} else { } else {
include_dirs = [ "$rtc_jsoncpp_root" ] include_dirs = [ "$rtc_jsoncpp_root" ]
@ -803,9 +763,7 @@ rtc_library("rtc_base") {
"//third_party/abseil-cpp/absl/strings", "//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional", "//third_party/abseil-cpp/absl/types:optional",
] ]
public_deps = [ public_deps = [ ":rtc_base_approved" ] # no-presubmit-check TODO(webrtc:8603)
":rtc_base_approved",
]
public_configs = [] public_configs = []
sources = [ sources = [
@ -1008,9 +966,7 @@ rtc_library("rtc_base") {
} }
rtc_source_set("gtest_prod") { rtc_source_set("gtest_prod") {
sources = [ sources = [ "gtest_prod_util.h" ]
"gtest_prod_util.h",
]
} }
rtc_library("gunit_helpers") { rtc_library("gunit_helpers") {
@ -1119,9 +1075,7 @@ rtc_library("task_queue_for_test") {
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_library("sigslot_unittest") { rtc_library("sigslot_unittest") {
testonly = true testonly = true
sources = [ sources = [ "sigslot_unittest.cc" ]
"sigslot_unittest.cc",
]
deps = [ deps = [
":gunit_helpers", ":gunit_helpers",
":rtc_base", ":rtc_base",
@ -1243,9 +1197,7 @@ if (rtc_include_tests) {
rtc_library("rtc_task_queue_unittests") { rtc_library("rtc_task_queue_unittests") {
testonly = true testonly = true
sources = [ sources = [ "task_queue_unittest.cc" ]
"task_queue_unittest.cc",
]
deps = [ deps = [
":gunit_helpers", ":gunit_helpers",
":rtc_base_approved", ":rtc_base_approved",
@ -1261,9 +1213,7 @@ if (rtc_include_tests) {
rtc_library("rtc_operations_chain_unittests") { rtc_library("rtc_operations_chain_unittests") {
testonly = true testonly = true
sources = [ sources = [ "operations_chain_unittest.cc" ]
"operations_chain_unittest.cc",
]
deps = [ deps = [
":rtc_base", ":rtc_base",
":rtc_base_approved", ":rtc_base_approved",
@ -1276,9 +1226,7 @@ if (rtc_include_tests) {
rtc_library("weak_ptr_unittests") { rtc_library("weak_ptr_unittests") {
testonly = true testonly = true
sources = [ sources = [ "weak_ptr_unittest.cc" ]
"weak_ptr_unittest.cc",
]
deps = [ deps = [
":gunit_helpers", ":gunit_helpers",
":rtc_base_approved", ":rtc_base_approved",
@ -1316,9 +1264,7 @@ if (rtc_include_tests) {
rtc_library("rtc_json_unittests") { rtc_library("rtc_json_unittests") {
testonly = true testonly = true
sources = [ sources = [ "strings/json_unittest.cc" ]
"strings/json_unittest.cc",
]
deps = [ deps = [
":gunit_helpers", ":gunit_helpers",
":rtc_base_tests_utils", ":rtc_base_tests_utils",
@ -1390,9 +1336,7 @@ if (rtc_include_tests) {
"//third_party/abseil-cpp/absl/strings", "//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional", "//third_party/abseil-cpp/absl/types:optional",
] ]
public_deps = [ public_deps = [ ":rtc_base" ] # no-presubmit-check TODO(webrtc:8603)
":rtc_base",
]
if (build_with_chromium) { if (build_with_chromium) {
include_dirs = [ "../../boringssl/src/include" ] include_dirs = [ "../../boringssl/src/include" ]
} }

View File

@ -13,9 +13,7 @@ if (is_android) {
} }
rtc_source_set("aligned_array") { rtc_source_set("aligned_array") {
sources = [ sources = [ "aligned_array.h" ]
"aligned_array.h",
]
deps = [ deps = [
":aligned_malloc", ":aligned_malloc",
"..:checks", "..:checks",
@ -27,9 +25,7 @@ rtc_library("aligned_malloc") {
"aligned_malloc.cc", "aligned_malloc.cc",
"aligned_malloc.h", "aligned_malloc.h",
] ]
deps = [ deps = [ "..:checks" ]
"..:checks",
]
} }
rtc_library("fifo_buffer") { rtc_library("fifo_buffer") {
@ -43,9 +39,7 @@ rtc_library("fifo_buffer") {
"fifo_buffer.cc", "fifo_buffer.cc",
"fifo_buffer.h", "fifo_buffer.h",
] ]
deps = [ deps = [ "..:rtc_base" ]
"..:rtc_base",
]
} }
rtc_library("unittests") { rtc_library("unittests") {

View File

@ -13,15 +13,9 @@ if (is_android) {
} }
rtc_library("rw_lock_wrapper") { rtc_library("rw_lock_wrapper") {
public = [ public = [ "rw_lock_wrapper.h" ]
"rw_lock_wrapper.h", sources = [ "rw_lock_wrapper.cc" ]
] deps = [ "..:macromagic" ]
sources = [
"rw_lock_wrapper.cc",
]
deps = [
"..:macromagic",
]
if (is_win) { if (is_win) {
sources += [ sources += [
"rw_lock_win.cc", "rw_lock_win.cc",
@ -66,9 +60,7 @@ rtc_library("yield_policy") {
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_library("synchronization_unittests") { rtc_library("synchronization_unittests") {
testonly = true testonly = true
sources = [ sources = [ "yield_policy_unittest.cc" ]
"yield_policy_unittest.cc",
]
deps = [ deps = [
":yield_policy", ":yield_policy",
"..:rtc_event", "..:rtc_event",
@ -79,9 +71,7 @@ if (rtc_include_tests) {
rtc_library("sequence_checker_unittests") { rtc_library("sequence_checker_unittests") {
testonly = true testonly = true
sources = [ sources = [ "sequence_checker_unittest.cc" ]
"sequence_checker_unittest.cc",
]
deps = [ deps = [
":sequence_checker", ":sequence_checker",
"..:checks", "..:checks",

View File

@ -27,20 +27,14 @@ rtc_library("repeating_task") {
} }
rtc_source_set("to_queued_task") { rtc_source_set("to_queued_task") {
sources = [ sources = [ "to_queued_task.h" ]
"to_queued_task.h", deps = [ "../../api/task_queue" ]
]
deps = [
"../../api/task_queue",
]
} }
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_library("repeating_task_unittests") { rtc_library("repeating_task_unittests") {
testonly = true testonly = true
sources = [ sources = [ "repeating_task_unittest.cc" ]
"repeating_task_unittest.cc",
]
deps = [ deps = [
":repeating_task", ":repeating_task",
"..:rtc_base_approved", "..:rtc_base_approved",
@ -52,9 +46,7 @@ if (rtc_include_tests) {
rtc_library("to_queued_task_unittests") { rtc_library("to_queued_task_unittests") {
testonly = true testonly = true
sources = [ sources = [ "to_queued_task_unittest.cc" ]
"to_queued_task_unittest.cc",
]
deps = [ deps = [
":to_queued_task", ":to_queued_task",
"../../api/task_queue", "../../api/task_queue",

View File

@ -14,7 +14,5 @@ rtc_library("base64") {
"base64.cc", "base64.cc",
"base64.h", "base64.h",
] ]
deps = [ deps = [ "../../system:rtc_export" ]
"../../system:rtc_export",
]
} }

View File

@ -17,7 +17,5 @@ rtc_library("timestamp_extrapolator") {
"timestamp_extrapolator.cc", "timestamp_extrapolator.cc",
"timestamp_extrapolator.h", "timestamp_extrapolator.h",
] ]
deps = [ deps = [ "../synchronization:rw_lock_wrapper" ]
"../synchronization:rw_lock_wrapper",
]
} }

View File

@ -13,9 +13,7 @@ rtc_source_set("unit_base") {
"../../api/units:*", "../../api/units:*",
":*", ":*",
] ]
sources = [ sources = [ "unit_base.h" ]
"unit_base.h",
]
deps = [ deps = [
"../../rtc_base:checks", "../../rtc_base:checks",
@ -26,9 +24,7 @@ rtc_source_set("unit_base") {
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_library("units_unittests") { rtc_library("units_unittests") {
testonly = true testonly = true
sources = [ sources = [ "unit_base_unittest.cc" ]
"unit_base_unittest.cc",
]
deps = [ deps = [
":unit_base", ":unit_base",
"../../test:test_support", "../../test:test_support",

View File

@ -112,9 +112,7 @@ rtc_library("video_quality_analysis") {
rtc_executable("frame_analyzer") { rtc_executable("frame_analyzer") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "frame_analyzer/frame_analyzer.cc" ]
"frame_analyzer/frame_analyzer.cc",
]
deps = [ deps = [
":video_file_reader", ":video_file_reader",
@ -132,9 +130,7 @@ rtc_executable("frame_analyzer") {
if (!build_with_chromium && !build_with_mozilla) { if (!build_with_chromium && !build_with_mozilla) {
action("frame_analyzer_host") { action("frame_analyzer_host") {
script = "//tools_webrtc/executable_host_build.py" script = "//tools_webrtc/executable_host_build.py"
outputs = [ outputs = [ "${root_out_dir}/frame_analyzer_host" ]
"${root_out_dir}/frame_analyzer_host",
]
args = [ args = [
"--executable_name", "--executable_name",
"frame_analyzer", "frame_analyzer",
@ -191,9 +187,7 @@ if (!build_with_chromium) {
rtc_executable("psnr_ssim_analyzer") { rtc_executable("psnr_ssim_analyzer") {
testonly = true testonly = true
sources = [ sources = [ "psnr_ssim_analyzer/psnr_ssim_analyzer.cc" ]
"psnr_ssim_analyzer/psnr_ssim_analyzer.cc",
]
deps = [ deps = [
":video_file_reader", ":video_file_reader",
@ -225,9 +219,7 @@ if (!build_with_chromium) {
rtc_executable("reference_less_video_analysis") { rtc_executable("reference_less_video_analysis") {
testonly = true testonly = true
sources = [ sources = [ "frame_analyzer/reference_less_video_analysis.cc" ]
"frame_analyzer/reference_less_video_analysis.cc",
]
deps = [ deps = [
":reference_less_video_analysis_lib", ":reference_less_video_analysis_lib",
@ -320,9 +312,7 @@ if (rtc_include_tests) {
if (rtc_enable_protobuf && !build_with_chromium) { if (rtc_enable_protobuf && !build_with_chromium) {
rtc_executable("event_log_visualizer") { rtc_executable("event_log_visualizer") {
testonly = true testonly = true
sources = [ sources = [ "rtc_event_log_visualizer/main.cc" ]
"rtc_event_log_visualizer/main.cc",
]
data = [ data = [
# If --wav_filename is not provided, event_log_visualizer uses # 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 # EN_script2_F_sp2_B1.wav by default. This is a good default to use
@ -364,9 +354,7 @@ if (rtc_include_tests) {
bundle_data("tools_unittests_bundle_data") { bundle_data("tools_unittests_bundle_data") {
testonly = true testonly = true
sources = tools_unittests_resources sources = tools_unittests_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }
@ -424,9 +412,7 @@ if (rtc_include_tests) {
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
rtc_executable("audioproc_f") { rtc_executable("audioproc_f") {
testonly = true testonly = true
sources = [ sources = [ "audioproc_f/audioproc_float_main.cc" ]
"audioproc_f/audioproc_float_main.cc",
]
deps = [ deps = [
"../api:audioproc_f_api", "../api:audioproc_f_api",
"../modules/audio_processing", "../modules/audio_processing",
@ -442,20 +428,14 @@ if (rtc_include_tests) {
"py_event_log_analyzer/rtp_analyzer.py", "py_event_log_analyzer/rtp_analyzer.py",
"py_event_log_analyzer/rtp_analyzer.sh", "py_event_log_analyzer/rtp_analyzer.sh",
] ]
outputs = [ outputs = [ "$root_build_dir/{{source_file_part}}" ]
"$root_build_dir/{{source_file_part}}", deps = [ "../logging:rtc_event_log_proto" ]
]
deps = [
"../logging:rtc_event_log_proto",
]
} # rtp_analyzer } # rtp_analyzer
rtc_executable("unpack_aecdump") { rtc_executable("unpack_aecdump") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "unpack_aecdump/unpack.cc" ]
"unpack_aecdump/unpack.cc",
]
deps = [ deps = [
"../api:function_view", "../api:function_view",

View File

@ -13,16 +13,12 @@ if (rtc_enable_protobuf) {
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
proto_library("network_tester_config_proto") { proto_library("network_tester_config_proto") {
sources = [ sources = [ "network_tester_config.proto" ]
"network_tester_config.proto",
]
proto_out_dir = "rtc_tools/network_tester" proto_out_dir = "rtc_tools/network_tester"
} }
proto_library("network_tester_packet_proto") { proto_library("network_tester_packet_proto") {
sources = [ sources = [ "network_tester_packet.proto" ]
"network_tester_packet.proto",
]
proto_out_dir = "rtc_tools/network_tester" proto_out_dir = "rtc_tools/network_tester"
} }
@ -67,18 +63,14 @@ if (rtc_enable_protobuf) {
bundle_data("network_tester_unittests_bundle_data") { bundle_data("network_tester_unittests_bundle_data") {
testonly = true testonly = true
sources = network_tester_unittests_resources sources = network_tester_unittests_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }
rtc_library("network_tester_unittests") { rtc_library("network_tester_unittests") {
testonly = true testonly = true
sources = [ sources = [ "network_tester_unittest.cc" ]
"network_tester_unittest.cc",
]
deps = [ deps = [
":network_tester", ":network_tester",
@ -98,13 +90,9 @@ if (rtc_enable_protobuf) {
} }
rtc_executable("network_tester_server") { rtc_executable("network_tester_server") {
sources = [ sources = [ "server.cc" ]
"server.cc",
]
deps = [ deps = [ ":network_tester" ]
":network_tester",
]
} }
} }
@ -147,13 +135,9 @@ if (is_android) {
} }
rtc_shared_library("network_tester_so") { rtc_shared_library("network_tester_so") {
sources = [ sources = [ "jni.cpp" ]
"jni.cpp",
]
deps = [ deps = [ ":network_tester" ]
":network_tester",
]
suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ]
configs += [ "//build/config/android:hide_all_but_jni" ] configs += [ "//build/config/android:hide_all_but_jni" ]

View File

@ -75,9 +75,7 @@ if (is_android) {
# Old target that pulls in everything. This will be going away in the future, # Old target that pulls in everything. This will be going away in the future,
# clients should depend on individual video_java etc. targets instead. # clients should depend on individual video_java etc. targets instead.
rtc_android_library("libjingle_peerconnection_java") { rtc_android_library("libjingle_peerconnection_java") {
sources = [ sources = [ "src/java/org/webrtc/Empty.java" ]
"src/java/org/webrtc/Empty.java",
]
deps = [ deps = [
":audio_api_java", ":audio_api_java",
@ -97,9 +95,7 @@ if (is_android) {
} }
rtc_android_library("libjingle_peerconnection_metrics_default_java") { rtc_android_library("libjingle_peerconnection_metrics_default_java") {
sources = [ sources = [ "api/org/webrtc/Metrics.java" ]
"api/org/webrtc/Metrics.java",
]
deps = [ deps = [
":base_java", ":base_java",
@ -129,9 +125,7 @@ if (is_android) {
rtc_library("libjingle_peerconnection_metrics_default_jni") { rtc_library("libjingle_peerconnection_metrics_default_jni") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "src/jni/android_metrics.cc" ]
"src/jni/android_metrics.cc",
]
deps = [ deps = [
":base_jni", ":base_jni",
":generated_metrics_jni", ":generated_metrics_jni",
@ -143,9 +137,7 @@ if (is_android) {
} }
rtc_shared_library("libjingle_peerconnection_so") { rtc_shared_library("libjingle_peerconnection_so") {
sources = [ sources = [ "src/jni/jni_onload.cc" ]
"src/jni/jni_onload.cc",
]
suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ]
configs += [ "//build/config/android:hide_all_but_jni" ] configs += [ "//build/config/android:hide_all_but_jni" ]
@ -450,16 +442,12 @@ if (is_android) {
"api/org/webrtc/BuiltinAudioEncoderFactoryFactory.java", "api/org/webrtc/BuiltinAudioEncoderFactoryFactory.java",
] ]
deps = [ deps = [ ":audio_api_java" ]
":audio_api_java",
]
} }
rtc_android_library("screencapturer_java") { rtc_android_library("screencapturer_java") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "api/org/webrtc/ScreenCapturerAndroid.java" ]
"api/org/webrtc/ScreenCapturerAndroid.java",
]
deps = [ deps = [
":video_api_java", ":video_api_java",
@ -573,9 +561,7 @@ if (current_os == "linux" || is_android) {
rtc_library("audio_jni") { rtc_library("audio_jni") {
visibility = [ "*" ] visibility = [ "*" ]
allow_poison = [ "audio_codecs" ] allow_poison = [ "audio_codecs" ]
sources = [ sources = [ "src/jni/pc/audio.cc" ]
"src/jni/pc/audio.cc",
]
deps = [ deps = [
":base_jni", ":base_jni",
@ -798,9 +784,7 @@ if (current_os == "linux" || is_android) {
# JNI target for java_audio_device_module_java # JNI target for java_audio_device_module_java
rtc_library("java_audio_device_module_jni") { rtc_library("java_audio_device_module_jni") {
visibility = [ "*" ] visibility = [ "*" ]
sources = [ sources = [ "src/jni/audio_device/java_audio_device_module.cc" ]
"src/jni/audio_device/java_audio_device_module.cc",
]
deps = [ deps = [
":base_jni", ":base_jni",
@ -821,9 +805,7 @@ if (current_os == "linux" || is_android) {
rtc_library("libvpx_vp8_jni") { rtc_library("libvpx_vp8_jni") {
visibility = [ "*" ] visibility = [ "*" ]
allow_poison = [ "software_video_codecs" ] allow_poison = [ "software_video_codecs" ]
sources = [ sources = [ "src/jni/vp8_codec.cc" ]
"src/jni/vp8_codec.cc",
]
deps = [ deps = [
":base_jni", ":base_jni",
":generated_libvpx_vp8_jni", ":generated_libvpx_vp8_jni",
@ -835,9 +817,7 @@ if (current_os == "linux" || is_android) {
rtc_library("libvpx_vp9_jni") { rtc_library("libvpx_vp9_jni") {
visibility = [ "*" ] visibility = [ "*" ]
allow_poison = [ "software_video_codecs" ] allow_poison = [ "software_video_codecs" ]
sources = [ sources = [ "src/jni/vp9_codec.cc" ]
"src/jni/vp9_codec.cc",
]
deps = [ deps = [
":base_jni", ":base_jni",
":generated_libvpx_vp9_jni", ":generated_libvpx_vp9_jni",
@ -1016,9 +996,7 @@ if (current_os == "linux" || is_android) {
#################### ####################
rtc_android_library("logging_java") { rtc_android_library("logging_java") {
sources = [ sources = [ "src/java/org/webrtc/JNILogging.java" ]
"src/java/org/webrtc/JNILogging.java",
]
deps = [ deps = [
":base_java", ":base_java",
@ -1035,9 +1013,7 @@ if (current_os == "linux" || is_android) {
"src/jni/jvm.h", "src/jni/jvm.h",
] ]
deps = [ deps = [ "../../rtc_base:checks" ]
"../../rtc_base:checks",
]
} }
rtc_library("videoframe_jni") { rtc_library("videoframe_jni") {
@ -1199,9 +1175,7 @@ if (current_os == "linux" || is_android) {
} }
generate_jni("generated_metrics_jni") { generate_jni("generated_metrics_jni") {
sources = [ sources = [ "api/org/webrtc/Metrics.java" ]
"api/org/webrtc/Metrics.java",
]
namespace = "webrtc::jni" namespace = "webrtc::jni"
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h" jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
} }
@ -1307,9 +1281,7 @@ if (current_os == "linux" || is_android) {
} }
generate_jni("generated_java_audio_jni") { generate_jni("generated_java_audio_jni") {
sources = [ sources = [ "api/org/webrtc/audio/JavaAudioDeviceModule.java" ]
"api/org/webrtc/audio/JavaAudioDeviceModule.java",
]
namespace = "webrtc::jni" namespace = "webrtc::jni"
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h" jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
} }
@ -1337,16 +1309,12 @@ if (current_os == "linux" || is_android) {
# Generated JNI for internal targets. # Generated JNI for internal targets.
generate_jni("generated_logging_jni") { generate_jni("generated_logging_jni") {
sources = [ sources = [ "src/java/org/webrtc/JNILogging.java" ]
"src/java/org/webrtc/JNILogging.java",
]
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h" jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
} }
generate_jni("generated_audio_device_module_base_jni") { generate_jni("generated_audio_device_module_base_jni") {
sources = [ sources = [ "src/java/org/webrtc/audio/WebRtcAudioManager.java" ]
"src/java/org/webrtc/audio/WebRtcAudioManager.java",
]
namespace = "webrtc::jni" namespace = "webrtc::jni"
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h" jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
} }
@ -1406,9 +1374,7 @@ if (is_android) {
"instrumentationtests/src/org/webrtc/YuvHelperTest.java", "instrumentationtests/src/org/webrtc/YuvHelperTest.java",
] ]
data = [ data = [ "../../sdk/android/instrumentationtests/src/org/webrtc/capturetestvideo.y4m" ]
"../../sdk/android/instrumentationtests/src/org/webrtc/capturetestvideo.y4m",
]
deps = [ deps = [
":base_java", ":base_java",
@ -1434,9 +1400,7 @@ if (is_android) {
rtc_shared_library("libjingle_peerconnection_instrumentationtests_so") { rtc_shared_library("libjingle_peerconnection_instrumentationtests_so") {
testonly = true testonly = true
sources = [ sources = [ "src/jni/jni_onload.cc" ]
"src/jni/jni_onload.cc",
]
suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ]
configs += [ "//build/config/android:hide_all_but_jni" ] configs += [ "//build/config/android:hide_all_but_jni" ]
@ -1453,9 +1417,7 @@ if (is_android) {
rtc_library("instrumentationtests_jni") { rtc_library("instrumentationtests_jni") {
testonly = true testonly = true
sources = [ sources = [ "instrumentationtests/loggable_test.cc" ]
"instrumentationtests/loggable_test.cc",
]
deps = [ deps = [
":base_jni", ":base_jni",

View File

@ -9,9 +9,7 @@
import("../webrtc.gni") import("../webrtc.gni")
group("stats") { group("stats") {
deps = [ deps = [ ":rtc_stats" ]
":rtc_stats",
]
} }
rtc_library("rtc_stats") { rtc_library("rtc_stats") {

View File

@ -77,19 +77,13 @@ rtc_library("system_wrappers") {
} }
rtc_source_set("cpu_features_api") { rtc_source_set("cpu_features_api") {
sources = [ sources = [ "include/cpu_features_wrapper.h" ]
"include/cpu_features_wrapper.h",
]
} }
rtc_library("field_trial") { rtc_library("field_trial") {
visibility = [ "*" ] visibility = [ "*" ]
public = [ public = [ "include/field_trial.h" ]
"include/field_trial.h", sources = [ "source/field_trial.cc" ]
]
sources = [
"source/field_trial.cc",
]
if (rtc_exclude_field_trial_default) { if (rtc_exclude_field_trial_default) {
defines = [ "WEBRTC_EXCLUDE_FIELD_TRIAL_DEFAULT" ] defines = [ "WEBRTC_EXCLUDE_FIELD_TRIAL_DEFAULT" ]
} }
@ -110,19 +104,13 @@ rtc_library("event_wrapper") {
"include/event_wrapper.h", "include/event_wrapper.h",
"source/event.cc", "source/event.cc",
] ]
deps = [ deps = [ "../rtc_base:rtc_event" ]
"../rtc_base:rtc_event",
]
} }
rtc_library("metrics") { rtc_library("metrics") {
visibility = [ "*" ] visibility = [ "*" ]
public = [ public = [ "include/metrics.h" ]
"include/metrics.h", sources = [ "source/metrics.cc" ]
]
sources = [
"source/metrics.cc",
]
if (rtc_exclude_metrics_default) { if (rtc_exclude_metrics_default) {
defines = [ "WEBRTC_EXCLUDE_METRICS_DEFAULT" ] defines = [ "WEBRTC_EXCLUDE_METRICS_DEFAULT" ]
} }
@ -134,21 +122,15 @@ rtc_library("metrics") {
if (is_android && !build_with_mozilla) { if (is_android && !build_with_mozilla) {
rtc_library("cpu_features_android") { rtc_library("cpu_features_android") {
sources = [ sources = [ "source/cpu_features_android.c" ]
"source/cpu_features_android.c",
]
deps = [ deps = [ "//third_party/android_sdk:cpu_features" ]
"//third_party/android_sdk:cpu_features",
]
} }
} }
if (is_linux) { if (is_linux) {
rtc_library("cpu_features_linux") { rtc_library("cpu_features_linux") {
sources = [ sources = [ "source/cpu_features_linux.c" ]
"source/cpu_features_linux.c",
]
deps = [ deps = [
":cpu_features_api", ":cpu_features_api",
"../rtc_base/system:arch", "../rtc_base/system:arch",

View File

@ -215,9 +215,7 @@ rtc_library("field_trial") {
"field_trial.h", "field_trial.h",
] ]
deps = [ deps = [ "../system_wrappers:field_trial" ]
"../system_wrappers:field_trial",
]
} }
rtc_library("perf_test") { rtc_library("perf_test") {
@ -338,9 +336,7 @@ if (rtc_include_tests) {
rtc_library("test_main") { rtc_library("test_main") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true
sources = [ sources = [ "test_main.cc" ]
"test_main.cc",
]
deps = [ deps = [
":test_main_lib", ":test_main_lib",
@ -432,9 +428,7 @@ if (rtc_include_tests) {
bundle_data("test_support_unittests_bundle_data") { bundle_data("test_support_unittests_bundle_data") {
testonly = true testonly = true
sources = test_support_unittests_resources sources = test_support_unittests_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }
@ -553,9 +547,7 @@ if (is_mac) {
"testsupport/mac_file_utils.h", "testsupport/mac_file_utils.h",
"testsupport/mac_file_utils.mm", "testsupport/mac_file_utils.mm",
] ]
deps = [ deps = [ "../rtc_base:checks" ]
"../rtc_base:checks",
]
} }
} }
@ -591,26 +583,20 @@ rtc_library("resources_dir_flag") {
"testsupport/resources_dir_flag.cc", "testsupport/resources_dir_flag.cc",
"testsupport/resources_dir_flag.h", "testsupport/resources_dir_flag.h",
] ]
deps = [ deps = [ "//third_party/abseil-cpp/absl/flags:flag" ]
"//third_party/abseil-cpp/absl/flags:flag",
]
} }
# We separate header into own target to make it possible for downstream # We separate header into own target to make it possible for downstream
# projects to override implementation. # projects to override implementation.
rtc_source_set("fileutils_override_api") { rtc_source_set("fileutils_override_api") {
testonly = true testonly = true
sources = [ sources = [ "testsupport/file_utils_override.h" ]
"testsupport/file_utils_override.h",
]
} }
rtc_library("fileutils_override_impl") { rtc_library("fileutils_override_impl") {
testonly = true testonly = true
visibility = [ ":fileutils" ] visibility = [ ":fileutils" ]
sources = [ sources = [ "testsupport/file_utils_override.cc" ]
"testsupport/file_utils_override.cc",
]
deps = [ deps = [
":fileutils_override_api", ":fileutils_override_api",
"../rtc_base:checks", "../rtc_base:checks",
@ -632,52 +618,36 @@ rtc_library("fileutils_override_impl") {
rtc_source_set("run_test") { rtc_source_set("run_test") {
testonly = true testonly = true
if (is_mac) { if (is_mac) {
public_deps = [ # no-presubmit-check TODO(webrtc:8603) public_deps = [ ":run_test_objc" ] # no-presubmit-check TODO(webrtc:8603)
":run_test_objc",
]
} else { } else {
public_deps = [ # no-presubmit-check TODO(webrtc:8603) public_deps = [ ":run_test_generic" ] # no-presubmit-check TODO(webrtc:8603)
":run_test_generic",
]
} }
} }
rtc_source_set("run_test_interface") { rtc_source_set("run_test_interface") {
sources = [ sources = [ "run_test.h" ]
"run_test.h",
]
} }
if (is_mac) { if (is_mac) {
rtc_library("run_test_objc") { rtc_library("run_test_objc") {
testonly = true testonly = true
visibility = [ ":run_test" ] visibility = [ ":run_test" ]
sources = [ sources = [ "mac/run_test.mm" ]
"mac/run_test.mm", deps = [ ":run_test_interface" ]
]
deps = [
":run_test_interface",
]
} }
} }
rtc_library("run_test_generic") { rtc_library("run_test_generic") {
testonly = true testonly = true
visibility = [ ":run_test" ] visibility = [ ":run_test" ]
sources = [ sources = [ "run_test.cc" ]
"run_test.cc", deps = [ ":run_test_interface" ]
]
deps = [
":run_test_interface",
]
} }
rtc_library("fileutils_unittests") { rtc_library("fileutils_unittests") {
testonly = true testonly = true
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
sources = [ sources = [ "testsupport/file_utils_unittest.cc" ]
"testsupport/file_utils_unittest.cc",
]
deps = [ deps = [
":fileutils", ":fileutils",
":test_support", ":test_support",
@ -707,9 +677,7 @@ rtc_library("direct_transport") {
"../rtc_base/task_utils:repeating_task", "../rtc_base/task_utils:repeating_task",
"//third_party/abseil-cpp/absl/memory", "//third_party/abseil-cpp/absl/memory",
] ]
public_deps = [ # no-presubmit-check TODO(webrtc:8603) public_deps = [ "../call:fake_network" ] # no-presubmit-check TODO(webrtc:8603)
"../call:fake_network",
]
} }
rtc_library("fake_video_codecs") { rtc_library("fake_video_codecs") {
@ -759,9 +727,7 @@ rtc_library("null_transport") {
"null_transport.cc", "null_transport.cc",
"null_transport.h", "null_transport.h",
] ]
deps = [ deps = [ "../api:transport_api" ]
"../api:transport_api",
]
} }
rtc_library("encoder_settings") { rtc_library("encoder_settings") {
@ -782,12 +748,8 @@ rtc_library("encoder_settings") {
rtc_library("rtc_expect_death") { rtc_library("rtc_expect_death") {
testonly = true testonly = true
sources = [ sources = [ "testsupport/rtc_expect_death.h" ]
"testsupport/rtc_expect_death.h", deps = [ ":test_support" ]
]
deps = [
":test_support",
]
} }
rtc_library("test_common") { rtc_library("test_common") {
@ -870,9 +832,7 @@ rtc_library("test_common") {
} }
rtc_source_set("test_renderer") { rtc_source_set("test_renderer") {
public_deps = [ # no-presubmit-check TODO(webrtc:8603) public_deps = [ ":test_renderer_generic" ] # no-presubmit-check TODO(webrtc:8603)
":test_renderer_generic",
]
testonly = true testonly = true
if (is_mac) { if (is_mac) {
public_deps += [ ":test_renderer_objc" ] # no-presubmit-check TODO(webrtc:8603) public_deps += [ ":test_renderer_objc" ] # no-presubmit-check TODO(webrtc:8603)
@ -996,9 +956,7 @@ rtc_library("copy_to_file_audio_capturer") {
rtc_library("copy_to_file_audio_capturer_unittest") { rtc_library("copy_to_file_audio_capturer_unittest") {
testonly = true testonly = true
sources = [ sources = [ "testsupport/copy_to_file_audio_capturer_unittest.cc" ]
"testsupport/copy_to_file_audio_capturer_unittest.cc",
]
deps = [ deps = [
":copy_to_file_audio_capturer", ":copy_to_file_audio_capturer",
":fileutils", ":fileutils",

View File

@ -11,9 +11,7 @@ import("//testing/libfuzzer/fuzzer_test.gni")
import("../../webrtc.gni") import("../../webrtc.gni")
rtc_library("webrtc_fuzzer_main") { rtc_library("webrtc_fuzzer_main") {
sources = [ sources = [ "webrtc_fuzzer_main.cc" ]
"webrtc_fuzzer_main.cc",
]
deps = [ deps = [
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"//testing/libfuzzer:libfuzzer_main", "//testing/libfuzzer:libfuzzer_main",
@ -55,18 +53,12 @@ template("webrtc_fuzzer_test") {
} }
webrtc_fuzzer_test("h264_depacketizer_fuzzer") { webrtc_fuzzer_test("h264_depacketizer_fuzzer") {
sources = [ sources = [ "h264_depacketizer_fuzzer.cc" ]
"h264_depacketizer_fuzzer.cc", deps = [ "../../modules/rtp_rtcp" ]
]
deps = [
"../../modules/rtp_rtcp",
]
} }
webrtc_fuzzer_test("vp8_depacketizer_fuzzer") { webrtc_fuzzer_test("vp8_depacketizer_fuzzer") {
sources = [ sources = [ "vp8_depacketizer_fuzzer.cc" ]
"vp8_depacketizer_fuzzer.cc",
]
deps = [ deps = [
"../../api:array_view", "../../api:array_view",
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
@ -75,9 +67,7 @@ webrtc_fuzzer_test("vp8_depacketizer_fuzzer") {
} }
webrtc_fuzzer_test("vp9_depacketizer_fuzzer") { webrtc_fuzzer_test("vp9_depacketizer_fuzzer") {
sources = [ sources = [ "vp9_depacketizer_fuzzer.cc" ]
"vp9_depacketizer_fuzzer.cc",
]
deps = [ deps = [
"../../api:array_view", "../../api:array_view",
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
@ -86,9 +76,7 @@ webrtc_fuzzer_test("vp9_depacketizer_fuzzer") {
} }
webrtc_fuzzer_test("vp8_qp_parser_fuzzer") { webrtc_fuzzer_test("vp8_qp_parser_fuzzer") {
sources = [ sources = [ "vp8_qp_parser_fuzzer.cc" ]
"vp8_qp_parser_fuzzer.cc",
]
deps = [ deps = [
"../../modules/video_coding:video_coding_utility", "../../modules/video_coding:video_coding_utility",
"../../modules/video_coding/", "../../modules/video_coding/",
@ -96,9 +84,7 @@ webrtc_fuzzer_test("vp8_qp_parser_fuzzer") {
} }
webrtc_fuzzer_test("vp9_qp_parser_fuzzer") { webrtc_fuzzer_test("vp9_qp_parser_fuzzer") {
sources = [ sources = [ "vp9_qp_parser_fuzzer.cc" ]
"vp9_qp_parser_fuzzer.cc",
]
deps = [ deps = [
"../../modules/video_coding:video_coding_utility", "../../modules/video_coding:video_coding_utility",
"../../modules/video_coding/", "../../modules/video_coding/",
@ -106,9 +92,7 @@ webrtc_fuzzer_test("vp9_qp_parser_fuzzer") {
} }
webrtc_fuzzer_test("h264_bitstream_parser_fuzzer") { webrtc_fuzzer_test("h264_bitstream_parser_fuzzer") {
sources = [ sources = [ "h264_bitstream_parser_fuzzer.cc" ]
"h264_bitstream_parser_fuzzer.cc",
]
deps = [ deps = [
"../../common_video", "../../common_video",
"../../modules/video_coding/", "../../modules/video_coding/",
@ -116,9 +100,7 @@ webrtc_fuzzer_test("h264_bitstream_parser_fuzzer") {
} }
webrtc_fuzzer_test("forward_error_correction_fuzzer") { webrtc_fuzzer_test("forward_error_correction_fuzzer") {
sources = [ sources = [ "forward_error_correction_fuzzer.cc" ]
"forward_error_correction_fuzzer.cc",
]
deps = [ deps = [
"../../api:scoped_refptr", "../../api:scoped_refptr",
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
@ -128,9 +110,7 @@ webrtc_fuzzer_test("forward_error_correction_fuzzer") {
} }
webrtc_fuzzer_test("flexfec_header_reader_fuzzer") { webrtc_fuzzer_test("flexfec_header_reader_fuzzer") {
sources = [ sources = [ "flexfec_header_reader_fuzzer.cc" ]
"flexfec_header_reader_fuzzer.cc",
]
deps = [ deps = [
"../../api:scoped_refptr", "../../api:scoped_refptr",
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
@ -140,9 +120,7 @@ webrtc_fuzzer_test("flexfec_header_reader_fuzzer") {
} }
webrtc_fuzzer_test("flexfec_sender_fuzzer") { webrtc_fuzzer_test("flexfec_sender_fuzzer") {
sources = [ sources = [ "flexfec_sender_fuzzer.cc" ]
"flexfec_sender_fuzzer.cc",
]
deps = [ deps = [
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
"../../modules/rtp_rtcp:rtp_rtcp_format", "../../modules/rtp_rtcp:rtp_rtcp_format",
@ -151,9 +129,7 @@ webrtc_fuzzer_test("flexfec_sender_fuzzer") {
} }
webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") { webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") {
sources = [ sources = [ "ulpfec_header_reader_fuzzer.cc" ]
"ulpfec_header_reader_fuzzer.cc",
]
deps = [ deps = [
"../../api:scoped_refptr", "../../api:scoped_refptr",
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
@ -164,9 +140,7 @@ webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") {
} }
webrtc_fuzzer_test("ulpfec_generator_fuzzer") { webrtc_fuzzer_test("ulpfec_generator_fuzzer") {
sources = [ sources = [ "ulpfec_generator_fuzzer.cc" ]
"ulpfec_generator_fuzzer.cc",
]
deps = [ deps = [
"../../modules:module_api_public", "../../modules:module_api_public",
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
@ -178,9 +152,7 @@ webrtc_fuzzer_test("ulpfec_generator_fuzzer") {
} }
webrtc_fuzzer_test("ulpfec_receiver_fuzzer") { webrtc_fuzzer_test("ulpfec_receiver_fuzzer") {
sources = [ sources = [ "ulpfec_receiver_fuzzer.cc" ]
"ulpfec_receiver_fuzzer.cc",
]
deps = [ deps = [
":fuzz_data_helper", ":fuzz_data_helper",
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
@ -190,9 +162,7 @@ webrtc_fuzzer_test("ulpfec_receiver_fuzzer") {
} }
webrtc_fuzzer_test("flexfec_receiver_fuzzer") { webrtc_fuzzer_test("flexfec_receiver_fuzzer") {
sources = [ sources = [ "flexfec_receiver_fuzzer.cc" ]
"flexfec_receiver_fuzzer.cc",
]
deps = [ deps = [
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
"../../modules/rtp_rtcp:rtp_rtcp_format", "../../modules/rtp_rtcp:rtp_rtcp_format",
@ -201,9 +171,7 @@ webrtc_fuzzer_test("flexfec_receiver_fuzzer") {
} }
webrtc_fuzzer_test("packet_buffer_fuzzer") { webrtc_fuzzer_test("packet_buffer_fuzzer") {
sources = [ sources = [ "packet_buffer_fuzzer.cc" ]
"packet_buffer_fuzzer.cc",
]
deps = [ deps = [
"../../modules/video_coding/", "../../modules/video_coding/",
"../../system_wrappers", "../../system_wrappers",
@ -211,9 +179,7 @@ webrtc_fuzzer_test("packet_buffer_fuzzer") {
} }
webrtc_fuzzer_test("rtcp_receiver_fuzzer") { webrtc_fuzzer_test("rtcp_receiver_fuzzer") {
sources = [ sources = [ "rtcp_receiver_fuzzer.cc" ]
"rtcp_receiver_fuzzer.cc",
]
deps = [ deps = [
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
"../../modules/rtp_rtcp:rtp_rtcp_format", "../../modules/rtp_rtcp:rtp_rtcp_format",
@ -225,9 +191,7 @@ webrtc_fuzzer_test("rtcp_receiver_fuzzer") {
} }
webrtc_fuzzer_test("rtp_packet_fuzzer") { webrtc_fuzzer_test("rtp_packet_fuzzer") {
sources = [ sources = [ "rtp_packet_fuzzer.cc" ]
"rtp_packet_fuzzer.cc",
]
deps = [ deps = [
"../../modules/rtp_rtcp:rtp_rtcp_format", "../../modules/rtp_rtcp:rtp_rtcp_format",
"//third_party/abseil-cpp/absl/types:optional", "//third_party/abseil-cpp/absl/types:optional",
@ -236,9 +200,7 @@ webrtc_fuzzer_test("rtp_packet_fuzzer") {
} }
webrtc_fuzzer_test("rtp_packetizer_av1_fuzzer") { webrtc_fuzzer_test("rtp_packetizer_av1_fuzzer") {
sources = [ sources = [ "rtp_packetizer_av1_fuzzer.cc" ]
"rtp_packetizer_av1_fuzzer.cc",
]
deps = [ deps = [
"../../api/video:video_frame_type", "../../api/video:video_frame_type",
"../../modules/rtp_rtcp:rtp_rtcp", "../../modules/rtp_rtcp:rtp_rtcp",
@ -248,9 +210,7 @@ webrtc_fuzzer_test("rtp_packetizer_av1_fuzzer") {
} }
webrtc_fuzzer_test("rtp_header_fuzzer") { webrtc_fuzzer_test("rtp_header_fuzzer") {
sources = [ sources = [ "rtp_header_fuzzer.cc" ]
"rtp_header_fuzzer.cc",
]
deps = [ deps = [
"../../modules/rtp_rtcp", "../../modules/rtp_rtcp",
"../../modules/rtp_rtcp:rtp_rtcp_format", "../../modules/rtp_rtcp:rtp_rtcp_format",
@ -258,9 +218,7 @@ webrtc_fuzzer_test("rtp_header_fuzzer") {
} }
webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") { webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") {
sources = [ sources = [ "congestion_controller_feedback_fuzzer.cc" ]
"congestion_controller_feedback_fuzzer.cc",
]
deps = [ deps = [
"../../modules/congestion_controller", "../../modules/congestion_controller",
"../../modules/pacing", "../../modules/pacing",
@ -284,9 +242,7 @@ rtc_library("audio_decoder_fuzzer") {
} }
webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") {
sources = [ sources = [ "audio_decoder_ilbc_fuzzer.cc" ]
"audio_decoder_ilbc_fuzzer.cc",
]
deps = [ deps = [
":audio_decoder_fuzzer", ":audio_decoder_fuzzer",
"../../modules/audio_coding:ilbc", "../../modules/audio_coding:ilbc",
@ -294,9 +250,7 @@ webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") {
} }
webrtc_fuzzer_test("audio_decoder_isac_fuzzer") { webrtc_fuzzer_test("audio_decoder_isac_fuzzer") {
sources = [ sources = [ "audio_decoder_isac_fuzzer.cc" ]
"audio_decoder_isac_fuzzer.cc",
]
deps = [ deps = [
":audio_decoder_fuzzer", ":audio_decoder_fuzzer",
"../../modules/audio_coding:isac", "../../modules/audio_coding:isac",
@ -304,9 +258,7 @@ webrtc_fuzzer_test("audio_decoder_isac_fuzzer") {
} }
webrtc_fuzzer_test("audio_decoder_isacfix_fuzzer") { webrtc_fuzzer_test("audio_decoder_isacfix_fuzzer") {
sources = [ sources = [ "audio_decoder_isacfix_fuzzer.cc" ]
"audio_decoder_isacfix_fuzzer.cc",
]
deps = [ deps = [
":audio_decoder_fuzzer", ":audio_decoder_fuzzer",
"../../modules/audio_coding:isac_fix", "../../modules/audio_coding:isac_fix",
@ -314,9 +266,7 @@ webrtc_fuzzer_test("audio_decoder_isacfix_fuzzer") {
} }
webrtc_fuzzer_test("audio_decoder_opus_fuzzer") { webrtc_fuzzer_test("audio_decoder_opus_fuzzer") {
sources = [ sources = [ "audio_decoder_opus_fuzzer.cc" ]
"audio_decoder_opus_fuzzer.cc",
]
deps = [ deps = [
":audio_decoder_fuzzer", ":audio_decoder_fuzzer",
"../../modules/audio_coding:webrtc_opus", "../../modules/audio_coding:webrtc_opus",
@ -324,9 +274,7 @@ webrtc_fuzzer_test("audio_decoder_opus_fuzzer") {
} }
webrtc_fuzzer_test("audio_decoder_opus_redundant_fuzzer") { webrtc_fuzzer_test("audio_decoder_opus_redundant_fuzzer") {
sources = [ sources = [ "audio_decoder_opus_redundant_fuzzer.cc" ]
"audio_decoder_opus_redundant_fuzzer.cc",
]
deps = [ deps = [
":audio_decoder_fuzzer", ":audio_decoder_fuzzer",
"../../modules/audio_coding:webrtc_opus", "../../modules/audio_coding:webrtc_opus",
@ -334,9 +282,7 @@ webrtc_fuzzer_test("audio_decoder_opus_redundant_fuzzer") {
} }
webrtc_fuzzer_test("audio_decoder_multiopus_fuzzer") { webrtc_fuzzer_test("audio_decoder_multiopus_fuzzer") {
sources = [ sources = [ "audio_decoder_multistream_opus_fuzzer.cc" ]
"audio_decoder_multistream_opus_fuzzer.cc",
]
deps = [ deps = [
":audio_decoder_fuzzer", ":audio_decoder_fuzzer",
"../../api/audio_codecs/opus:audio_decoder_multiopus", "../../api/audio_codecs/opus:audio_decoder_multiopus",
@ -345,9 +291,7 @@ webrtc_fuzzer_test("audio_decoder_multiopus_fuzzer") {
} }
webrtc_fuzzer_test("audio_encoder_opus_fuzzer") { webrtc_fuzzer_test("audio_encoder_opus_fuzzer") {
sources = [ sources = [ "audio_encoder_opus_fuzzer.cc" ]
"audio_encoder_opus_fuzzer.cc",
]
deps = [ deps = [
"../../api:array_view", "../../api:array_view",
"../../api/audio_codecs/opus:audio_encoder_opus", "../../api/audio_codecs/opus:audio_encoder_opus",
@ -357,9 +301,7 @@ webrtc_fuzzer_test("audio_encoder_opus_fuzzer") {
} }
webrtc_fuzzer_test("turn_unwrap_fuzzer") { webrtc_fuzzer_test("turn_unwrap_fuzzer") {
sources = [ sources = [ "turn_unwrap_fuzzer.cc" ]
"turn_unwrap_fuzzer.cc",
]
deps = [ deps = [
"../../media", "../../media",
"../../media:rtc_media_base", "../../media:rtc_media_base",
@ -367,9 +309,7 @@ webrtc_fuzzer_test("turn_unwrap_fuzzer") {
} }
webrtc_fuzzer_test("neteq_rtp_fuzzer") { webrtc_fuzzer_test("neteq_rtp_fuzzer") {
sources = [ sources = [ "neteq_rtp_fuzzer.cc" ]
"neteq_rtp_fuzzer.cc",
]
deps = [ deps = [
"../../api:array_view", "../../api:array_view",
"../../api/audio_codecs:builtin_audio_decoder_factory", "../../api/audio_codecs:builtin_audio_decoder_factory",
@ -383,9 +323,7 @@ webrtc_fuzzer_test("neteq_rtp_fuzzer") {
} }
webrtc_fuzzer_test("neteq_signal_fuzzer") { webrtc_fuzzer_test("neteq_signal_fuzzer") {
sources = [ sources = [ "neteq_signal_fuzzer.cc" ]
"neteq_signal_fuzzer.cc",
]
deps = [ deps = [
"../../api:array_view", "../../api:array_view",
"../../api/audio_codecs:builtin_audio_decoder_factory", "../../api/audio_codecs:builtin_audio_decoder_factory",
@ -398,9 +336,7 @@ webrtc_fuzzer_test("neteq_signal_fuzzer") {
} }
webrtc_fuzzer_test("residual_echo_detector_fuzzer") { webrtc_fuzzer_test("residual_echo_detector_fuzzer") {
sources = [ sources = [ "residual_echo_detector_fuzzer.cc" ]
"residual_echo_detector_fuzzer.cc",
]
deps = [ deps = [
"../../modules/audio_processing", "../../modules/audio_processing",
"../../rtc_base:checks", "../../rtc_base:checks",
@ -409,9 +345,7 @@ webrtc_fuzzer_test("residual_echo_detector_fuzzer") {
} }
webrtc_fuzzer_test("sdp_parser_fuzzer") { webrtc_fuzzer_test("sdp_parser_fuzzer") {
sources = [ sources = [ "sdp_parser_fuzzer.cc" ]
"sdp_parser_fuzzer.cc",
]
deps = [ deps = [
"../../api:libjingle_peerconnection_api", "../../api:libjingle_peerconnection_api",
"../../pc:libjingle_peerconnection", "../../pc:libjingle_peerconnection",
@ -420,9 +354,7 @@ webrtc_fuzzer_test("sdp_parser_fuzzer") {
} }
webrtc_fuzzer_test("stun_parser_fuzzer") { webrtc_fuzzer_test("stun_parser_fuzzer") {
sources = [ sources = [ "stun_parser_fuzzer.cc" ]
"stun_parser_fuzzer.cc",
]
deps = [ deps = [
"../../api/transport:stun_types", "../../api/transport:stun_types",
"../../p2p:rtc_p2p", "../../p2p:rtc_p2p",
@ -432,9 +364,7 @@ webrtc_fuzzer_test("stun_parser_fuzzer") {
} }
webrtc_fuzzer_test("stun_validator_fuzzer") { webrtc_fuzzer_test("stun_validator_fuzzer") {
sources = [ sources = [ "stun_validator_fuzzer.cc" ]
"stun_validator_fuzzer.cc",
]
deps = [ deps = [
"../../api/transport:stun_types", "../../api/transport:stun_types",
"../../p2p:rtc_p2p", "../../p2p:rtc_p2p",
@ -444,9 +374,7 @@ webrtc_fuzzer_test("stun_validator_fuzzer") {
} }
webrtc_fuzzer_test("mdns_parser_fuzzer") { webrtc_fuzzer_test("mdns_parser_fuzzer") {
sources = [ sources = [ "mdns_parser_fuzzer.cc" ]
"mdns_parser_fuzzer.cc",
]
deps = [ deps = [
"../../p2p:rtc_p2p", "../../p2p:rtc_p2p",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
@ -455,9 +383,7 @@ webrtc_fuzzer_test("mdns_parser_fuzzer") {
} }
webrtc_fuzzer_test("pseudotcp_parser_fuzzer") { webrtc_fuzzer_test("pseudotcp_parser_fuzzer") {
sources = [ sources = [ "pseudotcp_parser_fuzzer.cc" ]
"pseudotcp_parser_fuzzer.cc",
]
deps = [ deps = [
"../../p2p:rtc_p2p", "../../p2p:rtc_p2p",
"../../rtc_base", "../../rtc_base",
@ -481,9 +407,7 @@ rtc_library("audio_processing_fuzzer_helper") {
} }
webrtc_fuzzer_test("audio_processing_fuzzer") { webrtc_fuzzer_test("audio_processing_fuzzer") {
sources = [ sources = [ "audio_processing_configs_fuzzer.cc" ]
"audio_processing_configs_fuzzer.cc",
]
deps = [ deps = [
":audio_processing_fuzzer_helper", ":audio_processing_fuzzer_helper",
"../../api:scoped_refptr", "../../api:scoped_refptr",
@ -505,9 +429,7 @@ webrtc_fuzzer_test("audio_processing_fuzzer") {
} }
webrtc_fuzzer_test("agc_fuzzer") { webrtc_fuzzer_test("agc_fuzzer") {
sources = [ sources = [ "agc_fuzzer.cc" ]
"agc_fuzzer.cc",
]
deps = [ deps = [
":fuzz_data_helper", ":fuzz_data_helper",
"../../modules/audio_processing", "../../modules/audio_processing",
@ -521,9 +443,7 @@ webrtc_fuzzer_test("agc_fuzzer") {
} }
webrtc_fuzzer_test("aec3_config_json_fuzzer") { webrtc_fuzzer_test("aec3_config_json_fuzzer") {
sources = [ sources = [ "aec3_config_json_fuzzer.cc" ]
"aec3_config_json_fuzzer.cc",
]
deps = [ deps = [
":fuzz_data_helper", ":fuzz_data_helper",
"../../api/audio:aec3_config", "../../api/audio:aec3_config",
@ -540,9 +460,7 @@ webrtc_fuzzer_test("aec3_fuzzer") {
} else { } else {
defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ]
} }
sources = [ sources = [ "aec3_fuzzer.cc" ]
"aec3_fuzzer.cc",
]
deps = [ deps = [
":fuzz_data_helper", ":fuzz_data_helper",
"../../modules/audio_processing:api", "../../modules/audio_processing:api",
@ -552,9 +470,7 @@ webrtc_fuzzer_test("aec3_fuzzer") {
} }
webrtc_fuzzer_test("comfort_noise_decoder_fuzzer") { webrtc_fuzzer_test("comfort_noise_decoder_fuzzer") {
sources = [ sources = [ "comfort_noise_decoder_fuzzer.cc" ]
"comfort_noise_decoder_fuzzer.cc",
]
deps = [ deps = [
"../../api:array_view", "../../api:array_view",
"../../modules/audio_coding:webrtc_cng", "../../modules/audio_coding:webrtc_cng",
@ -563,9 +479,7 @@ webrtc_fuzzer_test("comfort_noise_decoder_fuzzer") {
} }
webrtc_fuzzer_test("rtp_depacketizer_av1_assemble_frame_fuzzer") { webrtc_fuzzer_test("rtp_depacketizer_av1_assemble_frame_fuzzer") {
sources = [ sources = [ "rtp_depacketizer_av1_assemble_frame_fuzzer.cc" ]
"rtp_depacketizer_av1_assemble_frame_fuzzer.cc",
]
seed_corpus = "corpora/rtp-depacketizer-av1-assemble-frame-corpus" seed_corpus = "corpora/rtp-depacketizer-av1-assemble-frame-corpus"
deps = [ deps = [
":fuzz_data_helper", ":fuzz_data_helper",
@ -575,9 +489,7 @@ webrtc_fuzzer_test("rtp_depacketizer_av1_assemble_frame_fuzzer") {
} }
webrtc_fuzzer_test("rtp_dependency_descriptor_fuzzer") { webrtc_fuzzer_test("rtp_dependency_descriptor_fuzzer") {
sources = [ sources = [ "rtp_dependency_descriptor_fuzzer.cc" ]
"rtp_dependency_descriptor_fuzzer.cc",
]
seed_corpus = "corpora/dependency_descriptor-corpus" seed_corpus = "corpora/dependency_descriptor-corpus"
deps = [ deps = [
"../../api:array_view", "../../api:array_view",
@ -588,9 +500,7 @@ webrtc_fuzzer_test("rtp_dependency_descriptor_fuzzer") {
} }
webrtc_fuzzer_test("rtp_frame_reference_finder_fuzzer") { webrtc_fuzzer_test("rtp_frame_reference_finder_fuzzer") {
sources = [ sources = [ "rtp_frame_reference_finder_fuzzer.cc" ]
"rtp_frame_reference_finder_fuzzer.cc",
]
deps = [ deps = [
"../../api:rtp_packet_info", "../../api:rtp_packet_info",
"../../api:scoped_refptr", "../../api:scoped_refptr",
@ -600,9 +510,7 @@ webrtc_fuzzer_test("rtp_frame_reference_finder_fuzzer") {
} }
webrtc_fuzzer_test("frame_buffer2_fuzzer") { webrtc_fuzzer_test("frame_buffer2_fuzzer") {
sources = [ sources = [ "frame_buffer2_fuzzer.cc" ]
"frame_buffer2_fuzzer.cc",
]
deps = [ deps = [
"../../modules/video_coding/", "../../modules/video_coding/",
"../../system_wrappers", "../../system_wrappers",
@ -610,29 +518,19 @@ webrtc_fuzzer_test("frame_buffer2_fuzzer") {
} }
webrtc_fuzzer_test("field_trial_fuzzer") { webrtc_fuzzer_test("field_trial_fuzzer") {
sources = [ sources = [ "field_trial_fuzzer.cc" ]
"field_trial_fuzzer.cc", deps = [ "../../system_wrappers:field_trial" ]
]
deps = [
"../../system_wrappers:field_trial",
]
seed_corpus = "corpora/field_trial-corpus" seed_corpus = "corpora/field_trial-corpus"
} }
webrtc_fuzzer_test("string_to_number_fuzzer") { webrtc_fuzzer_test("string_to_number_fuzzer") {
sources = [ sources = [ "string_to_number_fuzzer.cc" ]
"string_to_number_fuzzer.cc", deps = [ "../../rtc_base:rtc_base_approved" ]
]
deps = [
"../../rtc_base:rtc_base_approved",
]
seed_corpus = "corpora/string_to_number-corpus" seed_corpus = "corpora/string_to_number-corpus"
} }
webrtc_fuzzer_test("rtp_rtcp_demuxer_helper_fuzzer") { webrtc_fuzzer_test("rtp_rtcp_demuxer_helper_fuzzer") {
sources = [ sources = [ "rtp_rtcp_demuxer_helper_fuzzer.cc" ]
"rtp_rtcp_demuxer_helper_fuzzer.cc",
]
deps = [ deps = [
"../../api:array_view", "../../api:array_view",
"../../call:rtp_receiver", "../../call:rtp_receiver",
@ -641,9 +539,7 @@ webrtc_fuzzer_test("rtp_rtcp_demuxer_helper_fuzzer") {
} }
webrtc_fuzzer_test("sctp_utils_fuzzer") { webrtc_fuzzer_test("sctp_utils_fuzzer") {
sources = [ sources = [ "sctp_utils_fuzzer.cc" ]
"sctp_utils_fuzzer.cc",
]
deps = [ deps = [
"../../api:libjingle_peerconnection_api", "../../api:libjingle_peerconnection_api",
"../../pc:libjingle_peerconnection", "../../pc:libjingle_peerconnection",
@ -653,27 +549,17 @@ webrtc_fuzzer_test("sctp_utils_fuzzer") {
} }
webrtc_fuzzer_test("rtp_header_parser_fuzzer") { webrtc_fuzzer_test("rtp_header_parser_fuzzer") {
sources = [ sources = [ "rtp_header_parser_fuzzer.cc" ]
"rtp_header_parser_fuzzer.cc", deps = [ "../:rtp_test_utils" ]
]
deps = [
"../:rtp_test_utils",
]
} }
webrtc_fuzzer_test("ssl_certificate_fuzzer") { webrtc_fuzzer_test("ssl_certificate_fuzzer") {
sources = [ sources = [ "rtp_header_parser_fuzzer.cc" ]
"rtp_header_parser_fuzzer.cc", deps = [ "../:rtp_test_utils" ]
]
deps = [
"../:rtp_test_utils",
]
} }
webrtc_fuzzer_test("vp8_replay_fuzzer") { webrtc_fuzzer_test("vp8_replay_fuzzer") {
sources = [ sources = [ "vp8_replay_fuzzer.cc" ]
"vp8_replay_fuzzer.cc",
]
deps = [ deps = [
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"utils:rtp_replayer", "utils:rtp_replayer",
@ -682,9 +568,7 @@ webrtc_fuzzer_test("vp8_replay_fuzzer") {
} }
webrtc_fuzzer_test("vp9_replay_fuzzer") { webrtc_fuzzer_test("vp9_replay_fuzzer") {
sources = [ sources = [ "vp9_replay_fuzzer.cc" ]
"vp9_replay_fuzzer.cc",
]
deps = [ deps = [
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"utils:rtp_replayer", "utils:rtp_replayer",

View File

@ -62,9 +62,7 @@ rtc_library("emulated_network") {
rtc_library("network_emulation_unittest") { rtc_library("network_emulation_unittest") {
testonly = true testonly = true
sources = [ sources = [ "network_emulation_unittest.cc" ]
"network_emulation_unittest.cc",
]
deps = [ deps = [
":emulated_network", ":emulated_network",
"../:test_support", "../:test_support",
@ -80,9 +78,7 @@ rtc_library("network_emulation_unittest") {
rtc_library("network_emulation_pc_unittest") { rtc_library("network_emulation_pc_unittest") {
testonly = true testonly = true
sources = [ sources = [ "network_emulation_pc_unittest.cc" ]
"network_emulation_pc_unittest.cc",
]
deps = [ deps = [
":emulated_network", ":emulated_network",
"../:test_support", "../:test_support",
@ -108,9 +104,7 @@ rtc_library("network_emulation_pc_unittest") {
rtc_library("cross_traffic_unittest") { rtc_library("cross_traffic_unittest") {
testonly = true testonly = true
sources = [ sources = [ "cross_traffic_unittest.cc" ]
"cross_traffic_unittest.cc",
]
deps = [ deps = [
":emulated_network", ":emulated_network",
"../:test_support", "../:test_support",
@ -141,9 +135,7 @@ rtc_library("feedback_generator") {
rtc_library("feedback_generator_unittest") { rtc_library("feedback_generator_unittest") {
testonly = true testonly = true
sources = [ sources = [ "feedback_generator_unittest.cc" ]
"feedback_generator_unittest.cc",
]
deps = [ deps = [
"../:test_support", "../:test_support",
"../../api/transport:test_feedback_generator", "../../api/transport:test_feedback_generator",

View File

@ -35,16 +35,12 @@ if (is_ios) {
bundle_data("scenario_resources_bundle_data") { bundle_data("scenario_resources_bundle_data") {
testonly = true testonly = true
sources = scenario_resources sources = scenario_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
bundle_data("scenario_unittest_resources_bundle_data") { bundle_data("scenario_unittest_resources_bundle_data") {
testonly = true testonly = true
sources = scenario_unittest_resources sources = scenario_unittest_resources
outputs = [ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"{{bundle_resources_dir}}/{{source_file_part}}",
]
} }
} }
if (rtc_include_tests) { if (rtc_include_tests) {

View File

@ -11,9 +11,7 @@ import("../../../webrtc.gni")
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_test("scenario_tests") { rtc_test("scenario_tests") {
testonly = true testonly = true
sources = [ sources = [ "bbr_performance.cc" ]
"bbr_performance.cc",
]
deps = [ deps = [
"../:scenario", "../:scenario",
"../..:test_main", "../..:test_main",

View File

@ -2,13 +2,9 @@ toolchain("toolchain") {
} }
static_library("foo") { static_library("foo") {
deps = [ deps = [ ":bar" ]
":bar",
]
} }
static_library("bar") { static_library("bar") {
deps = [ deps = [ ":foo" ]
":foo",
]
} }

View File

@ -11,7 +11,5 @@ rtc_library("webrtc") {
"call.h", "call.h",
"dummy_source.h", "dummy_source.h",
] ]
deps = [ deps = [ "call" ]
"call",
]
} }

View File

@ -9,7 +9,5 @@
# "libc++" is considered a "dangerous filename" because it's an invalid regex. # "libc++" is considered a "dangerous filename" because it's an invalid regex.
target("dummy_target") { target("dummy_target") {
sources = [ sources = [ "libc++/dummy_subpackage_file.h" ]
"libc++/dummy_subpackage_file.h",
]
} }

View File

@ -7,7 +7,5 @@
# be found in the AUTHORS file in the root of the source tree. # be found in the AUTHORS file in the root of the source tree.
group("dummy_subpackage") { group("dummy_subpackage") {
sources = [ sources = [ "dummy_subpackage.h" ]
"dummy_subpackage.h",
]
} }

View File

@ -7,16 +7,10 @@
# be found in the AUTHORS file in the root of the source tree. # be found in the AUTHORS file in the root of the source tree.
group("testdata") { group("testdata") {
deps = [ deps = [ ":dummy_target" ]
":dummy_target",
]
} }
static_library("dummy_target") { static_library("dummy_target") {
sources = [ sources = [ "dummy.cc" ]
"dummy.cc", deps = [ "subdir" ]
]
deps = [
"subdir",
]
} }

View File

@ -866,9 +866,7 @@ if (is_ios) {
script = "//tools_webrtc/ios/generate_umbrella_header.py" script = "//tools_webrtc/ios/generate_umbrella_header.py"
outputs = [ outputs = [ umbrella_header_path ]
umbrella_header_path,
]
args = [ args = [
"--out", "--out",
rebase_path(umbrella_header_path, root_build_dir), rebase_path(umbrella_header_path, root_build_dir),
@ -877,16 +875,11 @@ if (is_ios) {
} }
copy("copy_umbrella_header_$target_name") { copy("copy_umbrella_header_$target_name") {
sources = [ sources = [ umbrella_header_path ]
umbrella_header_path, outputs =
] [ "$root_out_dir/$output_name.framework/Headers/$output_name.h" ]
outputs = [
"$root_out_dir/$output_name.framework/Headers/$output_name.h",
]
deps = [ deps = [ ":umbrella_header_$target_name" ]
":umbrella_header_$target_name",
]
} }
} }
@ -933,9 +926,7 @@ if (is_mac) {
bundle_data("copy_framework_headers_$this_target_name") { bundle_data("copy_framework_headers_$this_target_name") {
forward_variables_from(invoker, [ "sources" ]) forward_variables_from(invoker, [ "sources" ])
outputs = [ outputs = [ "{{bundle_contents_dir}}/Headers/{{source_file_part}}" ]
"{{bundle_contents_dir}}/Headers/{{source_file_part}}",
]
} }
action("modulemap_$this_target_name") { action("modulemap_$this_target_name") {
@ -946,21 +937,13 @@ if (is_mac) {
"--name", "--name",
output_name, output_name,
] ]
outputs = [ outputs = [ modulemap_path ]
modulemap_path,
]
} }
bundle_data("copy_modulemap_$this_target_name") { bundle_data("copy_modulemap_$this_target_name") {
sources = [ sources = [ modulemap_path ]
modulemap_path, outputs = [ "{{bundle_contents_dir}}/Modules/module.modulemap" ]
] deps = [ ":modulemap_$this_target_name" ]
outputs = [
"{{bundle_contents_dir}}/Modules/module.modulemap",
]
deps = [
":modulemap_$this_target_name",
]
} }
action("umbrella_header_$this_target_name") { action("umbrella_header_$this_target_name") {
@ -968,9 +951,7 @@ if (is_mac) {
script = "//tools_webrtc/ios/generate_umbrella_header.py" script = "//tools_webrtc/ios/generate_umbrella_header.py"
outputs = [ outputs = [ umbrella_header_path ]
umbrella_header_path,
]
args = [ args = [
"--out", "--out",
rebase_path(umbrella_header_path, root_build_dir), rebase_path(umbrella_header_path, root_build_dir),
@ -979,16 +960,10 @@ if (is_mac) {
} }
bundle_data("copy_umbrella_header_$this_target_name") { bundle_data("copy_umbrella_header_$this_target_name") {
sources = [ sources = [ umbrella_header_path ]
umbrella_header_path, outputs = [ "{{bundle_contents_dir}}/Headers/$output_name.h" ]
]
outputs = [
"{{bundle_contents_dir}}/Headers/$output_name.h",
]
deps = [ deps = [ ":umbrella_header_$this_target_name" ]
":umbrella_header_$this_target_name",
]
} }
} }
} }