From c1e8aeba729ac6abfb453ed85bef307ceb0c14df Mon Sep 17 00:00:00 2001 From: Harald Alvestrand Date: Thu, 31 Mar 2022 19:53:50 +0000 Subject: [PATCH] Remove internal dependencies on pc:peerconnection target This CL replaces those references with the smallest set of targets that can satisfy the linker dependencies revealed by building the "all" target. Bug: webrtc:13634 Change-Id: Ia778630b18e1164138c41d245c3c8effed67f8e5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/257282 Reviewed-by: Mirko Bonadei Commit-Queue: Harald Alvestrand Cr-Commit-Position: refs/heads/main@{#36445} --- BUILD.gn | 1 - api/BUILD.gn | 4 +++- examples/BUILD.gn | 2 -- pc/BUILD.gn | 5 ++++- sdk/BUILD.gn | 4 +++- sdk/android/BUILD.gn | 1 - test/pc/e2e/BUILD.gn | 3 --- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 23e7edec26..a2918645f8 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -473,7 +473,6 @@ if (!build_with_chromium) { "modules/video_capture:video_capture_internal_impl", "p2p:rtc_p2p", "pc:libjingle_peerconnection", - "pc:peerconnection", "pc:rtc_pc", "rtc_base", "sdk", diff --git a/api/BUILD.gn b/api/BUILD.gn index 9953ba77f0..76b4e8e83b 100644 --- a/api/BUILD.gn +++ b/api/BUILD.gn @@ -52,10 +52,12 @@ if (!build_with_chromium) { "../media:rtc_media_base", "../modules/audio_device:audio_device_api", "../modules/audio_processing:api", - "../pc:peerconnection", + "../pc:peer_connection_factory", + "../pc:webrtc_sdp", "../rtc_base", "../rtc_base:rtc_base_approved", "../rtc_base:threading", + "../stats:rtc_stats", "audio:audio_mixer_api", "audio_codecs:audio_codecs_api", "task_queue:default_task_queue_factory", diff --git a/examples/BUILD.gn b/examples/BUILD.gn index 36db1d5b45..fd0d33c5d1 100644 --- a/examples/BUILD.gn +++ b/examples/BUILD.gn @@ -739,7 +739,6 @@ if (is_linux || is_chromeos || is_win) { "../modules/audio_processing:api", "../modules/video_capture:video_capture_module", "../pc:libjingle_peerconnection", - "../pc:peerconnection", "../rtc_base", "../rtc_base:rtc_base_approved", "../rtc_base:rtc_json", @@ -844,7 +843,6 @@ if (is_win || is_android) { "../modules/audio_processing:api", "../modules/video_capture:video_capture_module", "../pc:libjingle_peerconnection", - "../pc:peerconnection", "../pc:video_track_source", "../rtc_base", "../test:platform_video_capturer", diff --git a/pc/BUILD.gn b/pc/BUILD.gn index 8f9491e94b..40006424fa 100644 --- a/pc/BUILD.gn +++ b/pc/BUILD.gn @@ -980,7 +980,10 @@ rtc_source_set("peer_connection_internal") { ] } rtc_source_set("rtc_stats_collector") { - visibility = [ ":*" ] + visibility = [ + ":*", + "../api:*", + ] sources = [ "rtc_stats_collector.cc", "rtc_stats_collector.h", diff --git a/sdk/BUILD.gn b/sdk/BUILD.gn index f5e35cf363..00e48e6615 100644 --- a/sdk/BUILD.gn +++ b/sdk/BUILD.gn @@ -1026,11 +1026,13 @@ if (is_ios || is_mac) { "../modules/audio_processing", "../modules/audio_processing:api", "../modules/video_coding:video_codec_interface", - "../pc:peerconnection", + "../pc:peer_connection_factory", + "../pc:webrtc_sdp", "../rtc_base", "../rtc_base:checks", "../rtc_base:logging", "../rtc_base:network_constants", + "../stats:rtc_stats", "../system_wrappers:field_trial", "../system_wrappers:metrics", ] diff --git a/sdk/android/BUILD.gn b/sdk/android/BUILD.gn index ef5666b5bf..be44785a19 100644 --- a/sdk/android/BUILD.gn +++ b/sdk/android/BUILD.gn @@ -792,7 +792,6 @@ if (current_os == "linux" || is_android) { "../../modules/audio_processing:api", "../../modules/utility", "../../pc:media_stream_observer", - "../../pc:peerconnection", "../../pc:webrtc_sdp", "../../rtc_base", "../../rtc_base:checks", diff --git a/test/pc/e2e/BUILD.gn b/test/pc/e2e/BUILD.gn index b011679468..ed6b65d02d 100644 --- a/test/pc/e2e/BUILD.gn +++ b/test/pc/e2e/BUILD.gn @@ -298,7 +298,6 @@ if (!build_with_chromium) { "../../../api:media_stream_interface", "../../../api:peer_connection_quality_test_fixture_api", "../../../api/video:video_frame", - "../../../pc:peerconnection", "../../../pc:session_description", "../../../pc:video_track_source", ] @@ -398,7 +397,6 @@ if (!build_with_chromium) { "../../../api/units:time_delta", "../../../api/units:timestamp", "../../../pc:pc_test_utils", - "../../../pc:peerconnection", "../../../pc:sdp_utils", "../../../rtc_base", "../../../rtc_base:gunit_helpers", @@ -828,7 +826,6 @@ if (!build_with_chromium) { "../../../api:rtp_parameters", "../../../media:rtc_media_base", "../../../p2p:rtc_p2p", - "../../../pc:peerconnection", "../../../pc:sdp_utils", "../../../pc:session_description", "../../../pc:simulcast_description",