Revise the pc:libjingle_peerconnection target

This adds the absolutely required files for this target that is used
by Chrome and others in order to link in all needed libraries, and
removes the dependency on peerconnection.

Bug: webrtc:13634
Change-Id: Ia66f5f627680ce15bcac941998ca1b6da4edb6ed
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/331621
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41395}
diff --git a/pc/BUILD.gn b/pc/BUILD.gn
index b83978f..baab6f7 100644
--- a/pc/BUILD.gn
+++ b/pc/BUILD.gn
@@ -2059,14 +2059,19 @@
   ]
 }
 
+# This target contains the libraries that are required in order to get an
+# usable peerconnection-using binary.
 rtc_source_set("libjingle_peerconnection") {
   # TODO(bugs.webrtc.org/13661): Reduce visibility if possible
   visibility = [ "*" ]  # Used by Chrome and others
   allow_poison = [ "environment_construction" ]
 
   deps = [
-    ":peerconnection",
+    ":jsep_session_description",
+    ":peer_connection_factory",
+    ":rtc_stats_collector",
     "../api:libjingle_peerconnection_api",
+    "../stats",
   ]
 }