blob: d41dd70dfed1a8dc66d10c3566dad45ad5d6f91f [file] [log] [blame]
Peter Boström5c389d32015-09-25 13:58:30 +02001# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
Peter Boström5c389d32015-09-25 13:58:30 +020010
ossuf515ab82016-12-07 04:52:58 -080011rtc_source_set("call_interfaces") {
12 sources = [
13 "audio_receive_stream.h",
14 "audio_send_stream.cc",
15 "audio_send_stream.h",
16 "audio_state.h",
17 "call.h",
zhihuang38ede132017-06-15 12:52:32 -070018 "callfactoryinterface.h",
brandtr7250b392016-12-19 01:13:46 -080019 "flexfec_receive_stream.h",
solenberg3ebbcb52017-01-31 03:58:40 -080020 "syncable.cc",
21 "syncable.h",
ossuf515ab82016-12-07 04:52:58 -080022 ]
kjellander2f1a5552017-02-27 15:57:45 -080023 deps = [
nissed76b7b22017-06-01 04:02:35 -070024 ":rtp_interfaces",
aleloi440b6d92017-08-22 05:43:23 -070025 ":video_stream_api",
kjellander2f1a5552017-02-27 15:57:45 -080026 "..:webrtc_common",
27 "../api:audio_mixer_api",
hbos8d609f62017-04-10 07:39:05 -070028 "../api:libjingle_peerconnection_api",
kwiberg84f6a3f2017-09-05 08:43:13 -070029 "../api:optional",
kjellander2f1a5552017-02-27 15:57:45 -080030 "../api:transport_api",
31 "../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -070032 "../rtc_base:rtc_base",
33 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -080034 ]
ossuf515ab82016-12-07 04:52:58 -080035}
36
nissed76b7b22017-06-01 04:02:35 -070037# TODO(nisse): These RTP targets should be moved elsewhere
eladalone2173d92017-07-28 10:05:45 -070038# when interfaces have stabilized. See also TODO for |mock_rtp_interfaces|.
nissed76b7b22017-06-01 04:02:35 -070039rtc_source_set("rtp_interfaces") {
40 sources = [
eladalona52722f2017-06-26 11:23:54 -070041 "rtcp_packet_sink_interface.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020042 "rtp_config.cc",
43 "rtp_config.h",
nissed76b7b22017-06-01 04:02:35 -070044 "rtp_packet_sink_interface.h",
nisse0f15f922017-06-21 01:05:22 -070045 "rtp_stream_receiver_controller_interface.h",
nissed76b7b22017-06-01 04:02:35 -070046 "rtp_transport_controller_send_interface.h",
47 ]
eladalona52722f2017-06-26 11:23:54 -070048 deps = [
kwiberg529662a2017-09-04 05:43:17 -070049 "../api:array_view",
ehmaldonadof6a861a2017-07-19 10:40:47 -070050 "../rtc_base:rtc_base_approved",
eladalona52722f2017-06-26 11:23:54 -070051 ]
nissed76b7b22017-06-01 04:02:35 -070052}
53
54rtc_source_set("rtp_receiver") {
55 sources = [
eladalona52722f2017-06-26 11:23:54 -070056 "rtcp_demuxer.cc",
57 "rtcp_demuxer.h",
nissed76b7b22017-06-01 04:02:35 -070058 "rtp_demuxer.cc",
59 "rtp_demuxer.h",
eladalona52722f2017-06-26 11:23:54 -070060 "rtp_rtcp_demuxer_helper.cc",
61 "rtp_rtcp_demuxer_helper.h",
nisse0f15f922017-06-21 01:05:22 -070062 "rtp_stream_receiver_controller.cc",
63 "rtp_stream_receiver_controller.h",
nissed76b7b22017-06-01 04:02:35 -070064 "rtx_receive_stream.cc",
65 "rtx_receive_stream.h",
Steve Antonb3329172017-08-17 15:23:51 -070066 "ssrc_binding_observer.h",
nissed76b7b22017-06-01 04:02:35 -070067 ]
68 deps = [
69 ":rtp_interfaces",
eladalona52722f2017-06-26 11:23:54 -070070 "..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -070071 "../api:array_view",
kwiberg84f6a3f2017-09-05 08:43:13 -070072 "../api:optional",
nissed76b7b22017-06-01 04:02:35 -070073 "../modules/rtp_rtcp",
ehmaldonadof6a861a2017-07-19 10:40:47 -070074 "../rtc_base:rtc_base_approved",
nissed76b7b22017-06-01 04:02:35 -070075 ]
76}
77
78rtc_source_set("rtp_sender") {
79 sources = [
80 "rtp_transport_controller_send.cc",
81 "rtp_transport_controller_send.h",
82 ]
83 deps = [
84 ":rtp_interfaces",
sprangdb2a9fc2017-08-09 06:42:32 -070085 "..:webrtc_common",
nissed76b7b22017-06-01 04:02:35 -070086 "../modules/congestion_controller",
ehmaldonadof6a861a2017-07-19 10:40:47 -070087 "../rtc_base:rtc_base_approved",
nissed76b7b22017-06-01 04:02:35 -070088 ]
89}
90
Mirko Bonadei245660a2017-10-10 14:38:11 +020091rtc_source_set("bitrate_allocator") {
Peter Boström5c389d32015-09-25 13:58:30 +020092 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080093 "bitrate_allocator.cc",
Mirko Bonadei245660a2017-10-10 14:38:11 +020094 "bitrate_allocator.h",
95 ]
96 deps = [
97 "../modules/bitrate_controller",
98 "../rtc_base:rtc_base_approved",
99 "../rtc_base:sequenced_task_checker",
100 "../system_wrappers",
101 ]
102 if (!build_with_chromium && is_clang) {
103 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
104 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
105 }
106}
107
108rtc_static_library("call") {
109 sources = [
Peter Boström5c389d32015-09-25 13:58:30 +0200110 "call.cc",
zhihuang38ede132017-06-15 12:52:32 -0700111 "callfactory.cc",
112 "callfactory.h",
brandtr7250b392016-12-19 01:13:46 -0800113 "flexfec_receive_stream_impl.cc",
114 "flexfec_receive_stream_impl.h",
Peter Boström5c389d32015-09-25 13:58:30 +0200115 ]
116
kjellandere40a7ee2016-10-16 23:56:12 -0700117 if (!build_with_chromium && is_clang) {
118 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700119 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +0200120 }
121
aleloidd310712016-11-17 06:28:59 -0800122 public_deps = [
ossuf515ab82016-12-07 04:52:58 -0800123 ":call_interfaces",
aleloidd310712016-11-17 06:28:59 -0800124 "../api:call_api",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200125 "../api:libjingle_peerconnection_api",
aleloidd310712016-11-17 06:28:59 -0800126 ]
127
Peter Boström5c389d32015-09-25 13:58:30 +0200128 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200129 ":bitrate_allocator",
ossuf515ab82016-12-07 04:52:58 -0800130 ":call_interfaces",
nissed76b7b22017-06-01 04:02:35 -0700131 ":rtp_interfaces",
132 ":rtp_receiver",
133 ":rtp_sender",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200134 ":video_stream_api",
Peter Boström5c389d32015-09-25 13:58:30 +0200135 "..:webrtc_common",
kwiberg84f6a3f2017-09-05 08:43:13 -0700136 "../api:optional",
aleloia8eb7562016-11-28 07:02:13 -0800137 "../api:transport_api",
katrielc14897d02016-06-03 13:14:28 -0700138 "../audio",
kjellander2f1a5552017-02-27 15:57:45 -0800139 "../logging:rtc_event_log_api",
skvladcc91d282016-10-03 18:31:22 -0700140 "../logging:rtc_event_log_impl",
kjellander2f1a5552017-02-27 15:57:45 -0800141 "../modules/bitrate_controller",
Stefan Holmer80e12072016-02-23 13:30:42 +0100142 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800143 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +0200144 "../modules/rtp_rtcp",
kjellander2f1a5552017-02-27 15:57:45 -0800145 "../modules/utility",
mbonadei95c8f652017-08-27 23:40:10 -0700146 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700147 "../rtc_base:rtc_task_queue",
eladalonf3f5c0e2017-08-18 02:47:08 -0700148 "../rtc_base:sequenced_task_checker",
Peter Boström5c389d32015-09-25 13:58:30 +0200149 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -0700150 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +0200151 ]
152}
Peter Boström02083222016-06-14 12:52:54 +0200153
aleloi440b6d92017-08-22 05:43:23 -0700154rtc_source_set("video_stream_api") {
155 sources = [
Stefan Holmer1acbd682017-09-01 15:29:28 +0200156 "video_config.cc",
157 "video_config.h",
aleloi440b6d92017-08-22 05:43:23 -0700158 "video_receive_stream.cc",
159 "video_receive_stream.h",
160 "video_send_stream.cc",
161 "video_send_stream.h",
162 ]
163 deps = [
Stefan Holmer1acbd682017-09-01 15:29:28 +0200164 ":rtp_interfaces",
aleloi440b6d92017-08-22 05:43:23 -0700165 "../:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200166 "../api:libjingle_peerconnection_api",
kwiberg84f6a3f2017-09-05 08:43:13 -0700167 "../api:optional",
aleloi440b6d92017-08-22 05:43:23 -0700168 "../api:transport_api",
169 "../common_video:common_video",
170 "../rtc_base:rtc_base_approved",
171 ]
172}
173
Peter Boström02083222016-06-14 12:52:54 +0200174if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -0700175 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +0200176 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700177
178 # Skip restricting visibility on mobile platforms since the tests on those
179 # gets additional generated targets which would require many lines here to
180 # cover (which would be confusing to read and hard to maintain).
181 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -0700182 visibility = [ "..:video_engine_tests" ]
kjellandere0629c02017-04-25 04:04:50 -0700183 }
Peter Boström02083222016-06-14 12:52:54 +0200184 sources = [
185 "bitrate_allocator_unittest.cc",
186 "bitrate_estimator_tests.cc",
187 "call_unittest.cc",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200188 "fake_rtp_transport_controller_send.h",
brandtr76648da2016-10-20 04:54:48 -0700189 "flexfec_receive_stream_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700190 "rtcp_demuxer_unittest.cc",
eladalon760a0762017-05-31 09:12:25 -0700191 "rtp_demuxer_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700192 "rtp_rtcp_demuxer_helper_unittest.cc",
nisseeed52bf2017-05-19 06:15:19 -0700193 "rtx_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200194 ]
195 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200196 ":bitrate_allocator",
Peter Boström02083222016-06-14 12:52:54 +0200197 ":call",
eladalone2173d92017-07-28 10:05:45 -0700198 ":mock_rtp_interfaces",
nissed76b7b22017-06-01 04:02:35 -0700199 ":rtp_interfaces",
200 ":rtp_receiver",
201 ":rtp_sender",
eladalona52722f2017-06-26 11:23:54 -0700202 "..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700203 "../api:array_view",
ossuc3d4b482017-05-23 06:07:11 -0700204 "../api:mock_audio_mixer",
kjellander2f1a5552017-02-27 15:57:45 -0800205 "../logging:rtc_event_log_api",
aleloidd310712016-11-17 06:28:59 -0800206 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -0800207 "../modules/audio_mixer",
kjellander2f1a5552017-02-27 15:57:45 -0800208 "../modules/bitrate_controller",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200209 "../modules/congestion_controller",
zstein7cb69d52017-05-08 11:52:38 -0700210 "../modules/congestion_controller:mock_congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800211 "../modules/pacing",
mbonadei334f9e62017-09-04 04:57:11 -0700212 "../modules/pacing:mock_paced_sender",
kjellander2f1a5552017-02-27 15:57:45 -0800213 "../modules/rtp_rtcp",
danilchap2d9d21f2017-05-10 08:41:13 -0700214 "../modules/rtp_rtcp:mock_rtp_rtcp",
mbonadei5166e542017-08-03 05:57:11 -0700215 "../modules/utility:mock_process_thread",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700216 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800217 "../system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -0700218 "../test:audio_codec_mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800219 "../test:direct_transport",
aleloi10111bc2016-11-17 06:48:48 -0800220 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800221 "../test:test_support",
222 "../test:video_test_common",
Peter Boström02083222016-06-14 12:52:54 +0200223 "//testing/gmock",
224 "//testing/gtest",
225 ]
kjellandere40a7ee2016-10-16 23:56:12 -0700226 if (!build_with_chromium && is_clang) {
227 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700228 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +0200229 }
230 }
ehmaldonado021eef32017-01-05 07:09:50 -0800231
232 rtc_source_set("call_perf_tests") {
233 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700234
235 # Skip restricting visibility on mobile platforms since the tests on those
236 # gets additional generated targets which would require many lines here to
237 # cover (which would be confusing to read and hard to maintain).
238 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -0700239 visibility = [ "..:webrtc_perf_tests" ]
kjellandere0629c02017-04-25 04:04:50 -0700240 }
ehmaldonado021eef32017-01-05 07:09:50 -0800241 sources = [
242 "call_perf_tests.cc",
243 "rampup_tests.cc",
244 "rampup_tests.h",
245 ]
246 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800247 ":call_interfaces",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200248 ":video_stream_api",
kjellander2f1a5552017-02-27 15:57:45 -0800249 "..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -0700250 "../api/audio_codecs:builtin_audio_encoder_factory",
kjellander2f1a5552017-02-27 15:57:45 -0800251 "../logging:rtc_event_log_api",
252 "../modules/audio_coding",
253 "../modules/audio_mixer:audio_mixer_impl",
254 "../modules/rtp_rtcp",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700255 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800256 "../system_wrappers",
257 "../system_wrappers:metrics_default",
258 "../test:direct_transport",
perkj16ccfdf2017-02-28 14:41:05 -0800259 "../test:fake_audio_device",
jianjun.zhuc0247402017-07-11 06:20:45 -0700260 "../test:field_trial",
261 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800262 "../test:test_support",
263 "../test:video_test_common",
264 "../video",
265 "../voice_engine",
ehmaldonado021eef32017-01-05 07:09:50 -0800266 "//testing/gtest",
ehmaldonado021eef32017-01-05 07:09:50 -0800267 ]
268 if (!build_with_chromium && is_clang) {
269 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
270 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
271 }
272 }
eladalone2173d92017-07-28 10:05:45 -0700273
274 # TODO(eladalon): This should be moved, as with the TODO for |rtp_interfaces|.
275 rtc_source_set("mock_rtp_interfaces") {
276 testonly = true
277
278 sources = [
279 "test/mock_rtp_packet_sink_interface.h",
280 ]
281 deps = [
282 ":rtp_interfaces",
283 "../test:test_support",
284 "//testing/gmock",
285 ]
286 }
Peter Boström02083222016-06-14 12:52:54 +0200287}