Use source_sets in component builds and static_library in release builds.
Static libraries don't guarantee that an exported symbol gets linked into a shared library (and in order to support Chromium's component build mode, WebRTC needs to be linked as a shared library). Source sets always pass all the object files to the linker. On the flip side, source_sets link more object files in release builds and to avoid this, this CL introduces a the GN template "rtc_library" that expands to static_library during release builds and to source_set during component builds. See: https://gn.googlesource.com/gn/+/master/docs/reference.md#func_source_set Bug: webrtc:9419 Change-Id: I4667e820c2b3fcec417becbd2034acc13e4f04fe Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/157168 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#29525}
This commit is contained in:
committed by
Commit Bot
parent
e8b962bd3c
commit
86d053c2db
@ -34,7 +34,7 @@ group("test") {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("video_test_common") {
|
||||
rtc_library("video_test_common") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -74,7 +74,7 @@ rtc_source_set("video_test_common") {
|
||||
|
||||
if (!build_with_chromium) {
|
||||
if (is_mac || is_ios) {
|
||||
rtc_source_set("video_test_mac") {
|
||||
rtc_library("video_test_mac") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"mac_capturer.h",
|
||||
@ -95,7 +95,7 @@ if (!build_with_chromium) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("platform_video_capturer") {
|
||||
rtc_library("platform_video_capturer") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"platform_video_capturer.cc",
|
||||
@ -122,7 +122,7 @@ if (!build_with_chromium) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("rtp_test_utils") {
|
||||
rtc_library("rtp_test_utils") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"rtcp_packet_parser.cc",
|
||||
@ -146,7 +146,7 @@ rtc_source_set("rtp_test_utils") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("field_trial") {
|
||||
rtc_library("field_trial") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -159,7 +159,7 @@ rtc_source_set("field_trial") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("perf_test") {
|
||||
rtc_library("perf_test") {
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
"testsupport/perf_test.cc",
|
||||
@ -174,7 +174,7 @@ rtc_source_set("perf_test") {
|
||||
}
|
||||
|
||||
if (is_ios) {
|
||||
rtc_source_set("test_support_objc") {
|
||||
rtc_library("test_support_objc") {
|
||||
testonly = true
|
||||
visibility = [ ":test_support" ]
|
||||
sources = [
|
||||
@ -243,7 +243,7 @@ rtc_source_set("test_support") {
|
||||
}
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_source_set("test_main_lib") {
|
||||
rtc_library("test_main_lib") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -267,7 +267,7 @@ if (rtc_include_tests) {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("test_main") {
|
||||
rtc_library("test_main") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -281,7 +281,7 @@ if (rtc_include_tests) {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("video_test_support") {
|
||||
rtc_library("video_test_support") {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
@ -323,7 +323,7 @@ if (rtc_include_tests) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("test_support_test_artifacts") {
|
||||
rtc_library("test_support_test_artifacts") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"testsupport/test_artifacts.cc",
|
||||
@ -436,7 +436,7 @@ if (rtc_include_tests) {
|
||||
}
|
||||
|
||||
if (is_ios) {
|
||||
rtc_source_set("fileutils_ios_objc") {
|
||||
rtc_library("fileutils_ios_objc") {
|
||||
visibility = [
|
||||
":fileutils",
|
||||
":fileutils_override_impl",
|
||||
@ -454,7 +454,7 @@ if (is_ios) {
|
||||
}
|
||||
|
||||
if (is_mac) {
|
||||
rtc_source_set("fileutils_mac_objc") {
|
||||
rtc_library("fileutils_mac_objc") {
|
||||
visibility = [
|
||||
":fileutils",
|
||||
":fileutils_override_impl",
|
||||
@ -469,7 +469,7 @@ if (is_mac) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("fileutils") {
|
||||
rtc_library("fileutils") {
|
||||
testonly = true
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
@ -495,7 +495,7 @@ rtc_source_set("fileutils") {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("resources_dir_flag") {
|
||||
rtc_library("resources_dir_flag") {
|
||||
testonly = true
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
@ -516,7 +516,7 @@ rtc_source_set("fileutils_override_api") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("fileutils_override_impl") {
|
||||
rtc_library("fileutils_override_impl") {
|
||||
testonly = true
|
||||
visibility = [ ":fileutils" ]
|
||||
sources = [
|
||||
@ -560,7 +560,7 @@ rtc_source_set("run_test_interface") {
|
||||
}
|
||||
|
||||
if (is_mac) {
|
||||
rtc_source_set("run_test_objc") {
|
||||
rtc_library("run_test_objc") {
|
||||
testonly = true
|
||||
visibility = [ ":run_test" ]
|
||||
sources = [
|
||||
@ -572,7 +572,7 @@ if (is_mac) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("run_test_generic") {
|
||||
rtc_library("run_test_generic") {
|
||||
testonly = true
|
||||
visibility = [ ":run_test" ]
|
||||
sources = [
|
||||
@ -583,7 +583,7 @@ rtc_source_set("run_test_generic") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("fileutils_unittests") {
|
||||
rtc_library("fileutils_unittests") {
|
||||
testonly = true
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
sources = [
|
||||
@ -599,7 +599,7 @@ rtc_source_set("fileutils_unittests") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("direct_transport") {
|
||||
rtc_library("direct_transport") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -627,7 +627,7 @@ rtc_source_set("direct_transport") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("single_threaded_task_queue") {
|
||||
rtc_library("single_threaded_task_queue") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"single_threaded_task_queue.cc",
|
||||
@ -643,7 +643,7 @@ rtc_source_set("single_threaded_task_queue") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("fake_video_codecs") {
|
||||
rtc_library("fake_video_codecs") {
|
||||
allow_poison = [ "software_video_codecs" ]
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
@ -685,7 +685,7 @@ rtc_source_set("fake_video_codecs") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("null_transport") {
|
||||
rtc_library("null_transport") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"null_transport.cc",
|
||||
@ -696,7 +696,7 @@ rtc_source_set("null_transport") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("encoder_settings") {
|
||||
rtc_library("encoder_settings") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"encoder_settings.cc",
|
||||
@ -712,7 +712,7 @@ rtc_source_set("encoder_settings") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("test_common") {
|
||||
rtc_library("test_common") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"call_test.cc",
|
||||
@ -816,7 +816,7 @@ rtc_source_set("test_renderer") {
|
||||
}
|
||||
|
||||
if (is_mac) {
|
||||
rtc_source_set("test_renderer_objc") {
|
||||
rtc_library("test_renderer_objc") {
|
||||
testonly = true
|
||||
visibility = [ ":test_renderer" ]
|
||||
sources = [
|
||||
@ -835,7 +835,7 @@ if (is_mac) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("test_renderer_generic") {
|
||||
rtc_library("test_renderer_generic") {
|
||||
testonly = true
|
||||
visibility = [
|
||||
":test_renderer",
|
||||
@ -889,7 +889,7 @@ rtc_source_set("test_renderer_generic") {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("audio_codec_mocks") {
|
||||
rtc_library("audio_codec_mocks") {
|
||||
testonly = true
|
||||
sources = [
|
||||
# TODO(nisse): Move these factories to their own target, to avoid
|
||||
@ -916,7 +916,7 @@ rtc_source_set("audio_codec_mocks") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("copy_to_file_audio_capturer") {
|
||||
rtc_library("copy_to_file_audio_capturer") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"testsupport/copy_to_file_audio_capturer.cc",
|
||||
@ -931,7 +931,7 @@ rtc_source_set("copy_to_file_audio_capturer") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("copy_to_file_audio_capturer_unittest") {
|
||||
rtc_library("copy_to_file_audio_capturer_unittest") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"testsupport/copy_to_file_audio_capturer_unittest.cc",
|
||||
@ -958,7 +958,7 @@ if (!build_with_chromium && is_android) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("call_config_utils") {
|
||||
rtc_library("call_config_utils") {
|
||||
# TODO(bugs.webrtc.org/10814): Remove rtc_json_suppressions as soon as it
|
||||
# gets removed upstream.
|
||||
public_configs = [ "../rtc_base:rtc_json_suppressions" ]
|
||||
|
||||
@ -10,7 +10,7 @@ import("//build/config/features.gni")
|
||||
import("//testing/libfuzzer/fuzzer_test.gni")
|
||||
import("../../webrtc.gni")
|
||||
|
||||
rtc_static_library("webrtc_fuzzer_main") {
|
||||
rtc_library("webrtc_fuzzer_main") {
|
||||
sources = [
|
||||
"webrtc_fuzzer_main.cc",
|
||||
]
|
||||
@ -29,7 +29,7 @@ rtc_static_library("webrtc_fuzzer_main") {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_static_library("fuzz_data_helper") {
|
||||
rtc_library("fuzz_data_helper") {
|
||||
sources = [
|
||||
"fuzz_data_helper.cc",
|
||||
"fuzz_data_helper.h",
|
||||
@ -262,7 +262,7 @@ webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_static_library("audio_decoder_fuzzer") {
|
||||
rtc_library("audio_decoder_fuzzer") {
|
||||
sources = [
|
||||
"audio_decoder_fuzzer.cc",
|
||||
"audio_decoder_fuzzer.h",
|
||||
@ -468,7 +468,7 @@ webrtc_fuzzer_test("transport_feedback_packet_loss_tracker_fuzzer") {
|
||||
"../../rtc_base:rtc_base_approved",
|
||||
]
|
||||
}
|
||||
rtc_static_library("audio_processing_fuzzer_helper") {
|
||||
rtc_library("audio_processing_fuzzer_helper") {
|
||||
sources = [
|
||||
"audio_processing_fuzzer_helper.cc",
|
||||
"audio_processing_fuzzer_helper.h",
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
import("../../../webrtc.gni")
|
||||
|
||||
rtc_source_set("rtp_replayer") {
|
||||
rtc_library("rtp_replayer") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"rtp_replayer.cc",
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
import("../../webrtc.gni")
|
||||
|
||||
rtc_source_set("log_writer") {
|
||||
rtc_library("log_writer") {
|
||||
testonly = true
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
import("../../webrtc.gni")
|
||||
|
||||
rtc_source_set("emulated_network") {
|
||||
rtc_library("emulated_network") {
|
||||
visibility = [
|
||||
"../../api:create_network_emulation_manager",
|
||||
":*",
|
||||
@ -62,7 +62,7 @@ rtc_source_set("emulated_network") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("network_emulation_unittest") {
|
||||
rtc_library("network_emulation_unittest") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"network_emulation_unittest.cc",
|
||||
@ -80,7 +80,7 @@ rtc_source_set("network_emulation_unittest") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("network_emulation_pc_unittest") {
|
||||
rtc_library("network_emulation_pc_unittest") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"network_emulation_pc_unittest.cc",
|
||||
@ -108,7 +108,7 @@ rtc_source_set("network_emulation_pc_unittest") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("cross_traffic_unittest") {
|
||||
rtc_library("cross_traffic_unittest") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"cross_traffic_unittest.cc",
|
||||
@ -124,7 +124,7 @@ rtc_source_set("cross_traffic_unittest") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("feedback_generator") {
|
||||
rtc_library("feedback_generator") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"feedback_generator.cc",
|
||||
@ -140,7 +140,7 @@ rtc_source_set("feedback_generator") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("feedback_generator_unittest") {
|
||||
rtc_library("feedback_generator_unittest") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"feedback_generator_unittest.cc",
|
||||
@ -151,7 +151,7 @@ rtc_source_set("feedback_generator_unittest") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("network_emulation_unittests") {
|
||||
rtc_library("network_emulation_unittests") {
|
||||
testonly = true
|
||||
deps = [
|
||||
":cross_traffic_unittest",
|
||||
|
||||
@ -41,7 +41,7 @@ if (rtc_include_tests) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("peer_connection_quality_test_params") {
|
||||
rtc_library("peer_connection_quality_test_params") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -63,7 +63,7 @@ rtc_source_set("peer_connection_quality_test_params") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("encoded_image_data_injector_api") {
|
||||
rtc_library("encoded_image_data_injector_api") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -75,7 +75,7 @@ rtc_source_set("encoded_image_data_injector_api") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("default_encoded_image_data_injector") {
|
||||
rtc_library("default_encoded_image_data_injector") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -92,7 +92,7 @@ rtc_source_set("default_encoded_image_data_injector") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("single_process_encoded_image_data_injector") {
|
||||
rtc_library("single_process_encoded_image_data_injector") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -109,7 +109,7 @@ rtc_source_set("single_process_encoded_image_data_injector") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("id_generator") {
|
||||
rtc_library("id_generator") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -119,7 +119,7 @@ rtc_source_set("id_generator") {
|
||||
deps = []
|
||||
}
|
||||
|
||||
rtc_source_set("simulcast_dummy_buffer_helper") {
|
||||
rtc_library("simulcast_dummy_buffer_helper") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -132,7 +132,7 @@ rtc_source_set("simulcast_dummy_buffer_helper") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("quality_analyzing_video_decoder") {
|
||||
rtc_library("quality_analyzing_video_decoder") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -156,7 +156,7 @@ rtc_source_set("quality_analyzing_video_decoder") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("quality_analyzing_video_encoder") {
|
||||
rtc_library("quality_analyzing_video_encoder") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -178,7 +178,7 @@ rtc_source_set("quality_analyzing_video_encoder") {
|
||||
}
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_source_set("video_quality_analyzer_injection_helper") {
|
||||
rtc_library("video_quality_analyzer_injection_helper") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -204,7 +204,7 @@ if (rtc_include_tests) {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("echo_emulation") {
|
||||
rtc_library("echo_emulation") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -218,7 +218,7 @@ if (rtc_include_tests) {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("test_peer") {
|
||||
rtc_library("test_peer") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -256,7 +256,7 @@ if (rtc_include_tests) {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("peerconnection_quality_test") {
|
||||
rtc_library("peerconnection_quality_test") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
|
||||
@ -305,7 +305,7 @@ if (rtc_include_tests) {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("single_process_encoded_image_data_injector_unittest") {
|
||||
rtc_library("single_process_encoded_image_data_injector_unittest") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"analyzer/video/single_process_encoded_image_data_injector_unittest.cc",
|
||||
@ -318,7 +318,7 @@ if (rtc_include_tests) {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("default_encoded_image_data_injector_unittest") {
|
||||
rtc_library("default_encoded_image_data_injector_unittest") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"analyzer/video/default_encoded_image_data_injector_unittest.cc",
|
||||
@ -345,7 +345,7 @@ if (rtc_include_tests) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("peer_connection_e2e_smoke_test") {
|
||||
rtc_library("peer_connection_e2e_smoke_test") {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
@ -388,7 +388,7 @@ if (rtc_include_tests) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("stats_poller") {
|
||||
rtc_library("stats_poller") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"stats_poller.cc",
|
||||
@ -403,7 +403,7 @@ if (rtc_include_tests) {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("analyzer_helper") {
|
||||
rtc_library("analyzer_helper") {
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
"analyzer_helper.cc",
|
||||
@ -416,7 +416,7 @@ rtc_source_set("analyzer_helper") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("default_audio_quality_analyzer") {
|
||||
rtc_library("default_audio_quality_analyzer") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -436,7 +436,7 @@ rtc_source_set("default_audio_quality_analyzer") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("example_video_quality_analyzer") {
|
||||
rtc_library("example_video_quality_analyzer") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -454,7 +454,7 @@ rtc_source_set("example_video_quality_analyzer") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("default_video_quality_analyzer") {
|
||||
rtc_library("default_video_quality_analyzer") {
|
||||
visibility = [ "*" ]
|
||||
|
||||
testonly = true
|
||||
@ -481,7 +481,7 @@ rtc_source_set("default_video_quality_analyzer") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("network_quality_metrics_reporter") {
|
||||
rtc_library("network_quality_metrics_reporter") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -499,7 +499,7 @@ rtc_source_set("network_quality_metrics_reporter") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("sdp_changer") {
|
||||
rtc_library("sdp_changer") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"sdp/sdp_changer.cc",
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
import("../../webrtc.gni")
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_source_set("peer_scenario") {
|
||||
rtc_library("peer_scenario") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"peer_scenario.cc",
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
import("../../../webrtc.gni")
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_source_set("tests") {
|
||||
rtc_library("tests") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"peer_scenario_quality_test.cc",
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
import("../../webrtc.gni")
|
||||
|
||||
rtc_source_set("column_printer") {
|
||||
rtc_library("column_printer") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"column_printer.cc",
|
||||
@ -48,7 +48,7 @@ if (is_ios) {
|
||||
}
|
||||
}
|
||||
if (rtc_include_tests) {
|
||||
rtc_source_set("scenario") {
|
||||
rtc_library("scenario") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"audio_stream.cc",
|
||||
@ -159,7 +159,7 @@ if (rtc_include_tests) {
|
||||
deps += [ ":scenario_resources_bundle_data" ]
|
||||
}
|
||||
}
|
||||
rtc_source_set("scenario_unittests") {
|
||||
rtc_library("scenario_unittests") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"performance_stats_unittest.cc",
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
import("../../webrtc.gni")
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_source_set("time_controller") {
|
||||
rtc_library("time_controller") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"real_time_controller.cc",
|
||||
@ -36,7 +36,7 @@ if (rtc_include_tests) {
|
||||
"//third_party/abseil-cpp/absl/strings",
|
||||
]
|
||||
}
|
||||
rtc_source_set("time_controller_unittests") {
|
||||
rtc_library("time_controller_unittests") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"simulated_time_controller_unittest.cc",
|
||||
|
||||
Reference in New Issue
Block a user