Index: webrtc/call/BUILD.gn |
diff --git a/webrtc/call/BUILD.gn b/webrtc/call/BUILD.gn |
index 8360534f41e75c4ccc1ddffab86b9ab4ccff171d..7caad9638b17e95112d235b779facdfb1c849056 100644 |
--- a/webrtc/call/BUILD.gn |
+++ b/webrtc/call/BUILD.gn |
@@ -16,12 +16,11 @@ rtc_source_set("call_interfaces") { |
"audio_state.h", |
"call.h", |
"flexfec_receive_stream.h", |
- "rtp_demuxer.h", |
- "rtp_transport_controller_send_interface.h", |
"syncable.cc", |
"syncable.h", |
] |
deps = [ |
+ ":rtp_interfaces", |
"..:video_stream_api", |
"..:webrtc_common", |
"../api:audio_mixer_api", |
@@ -33,17 +32,47 @@ rtc_source_set("call_interfaces") { |
] |
} |
+# TODO(nisse): These RTP targets should be moved elsewhere |
+# when interfaces have stabilized. |
+rtc_source_set("rtp_interfaces") { |
+ sources = [ |
+ "rtp_packet_sink_interface.h", |
+ "rtp_transport_controller_send_interface.h", |
+ ] |
+} |
+ |
+rtc_source_set("rtp_receiver") { |
+ sources = [ |
+ "rtp_demuxer.cc", |
+ "rtp_demuxer.h", |
+ "rtx_receive_stream.cc", |
+ "rtx_receive_stream.h", |
+ ] |
+ deps = [ |
+ ":rtp_interfaces", |
+ "../base:rtc_base_approved", |
+ "../modules/rtp_rtcp", |
+ ] |
+} |
+ |
+rtc_source_set("rtp_sender") { |
+ sources = [ |
+ "rtp_transport_controller_send.cc", |
+ "rtp_transport_controller_send.h", |
+ ] |
+ deps = [ |
+ ":rtp_interfaces", |
+ "../base:rtc_base_approved", |
+ "../modules/congestion_controller", |
+ ] |
+} |
+ |
rtc_static_library("call") { |
sources = [ |
"bitrate_allocator.cc", |
"call.cc", |
"flexfec_receive_stream_impl.cc", |
"flexfec_receive_stream_impl.h", |
- "rtp_demuxer.cc", |
- "rtp_transport_controller_send.cc", |
- "rtp_transport_controller_send.h", |
- "rtx_receive_stream.cc", |
- "rtx_receive_stream.h", |
] |
if (!build_with_chromium && is_clang) { |
@@ -58,6 +87,9 @@ rtc_static_library("call") { |
deps = [ |
":call_interfaces", |
+ ":rtp_interfaces", |
+ ":rtp_receiver", |
+ ":rtp_sender", |
"..:webrtc_common", |
"../api:transport_api", |
"../audio", |
@@ -94,6 +126,9 @@ if (rtc_include_tests) { |
] |
deps = [ |
":call", |
+ ":rtp_interfaces", |
+ ":rtp_receiver", |
+ ":rtp_sender", |
"../api:mock_audio_mixer", |
"../base:rtc_base_approved", |
"../logging:rtc_event_log_api", |