Refactor a lot of the p2p:rtc_p2p target
This CL splits many of the source files in p2p:rtc_p2p into individual
compile targets.
One target - connection_and_port - was left with multiple source files
because it was too tangled to detangle at once.
Bug: webrtc:15796
Change-Id: I607417e5945306ef64335f40a0ae50f0d15dee6f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/335881
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41611}
diff --git a/api/BUILD.gn b/api/BUILD.gn
index 0652552..cb23ea3 100644
--- a/api/BUILD.gn
+++ b/api/BUILD.gn
@@ -334,6 +334,7 @@
":sequence_checker",
":turn_customizer",
"../call:rtp_interfaces",
+ "../p2p:connection_and_port",
"../p2p:rtc_p2p",
"../pc:media_factory",
"../rtc_base:copy_on_write_buffer",
@@ -935,6 +936,10 @@
":make_ref_counted",
":packet_socket_factory",
":scoped_refptr",
+ "../p2p:connection_and_port",
+ "../p2p:ice_transport_internal",
+ "../p2p:p2p_constants",
+ "../p2p:p2p_transport_channel",
"../p2p:rtc_p2p",
"../rtc_base:threading",
"../rtc_base/system:rtc_export",