blob: 512c686f1b82e9a4306f5a02a3fc6db4988f6836 [file] [log] [blame]
hjonaa32c3e2015-12-13 19:58:11 -08001# 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")
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 03:09:32 -070014
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
Dan Minor9c686132018-01-15 10:20:00 -050017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 03:09:32 -070022}
23
ehmaldonado38a21322016-09-02 04:10:34 -070024rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000025 visibility = [ "*" ]
kjellandera69d9732016-08-31 07:33:05 -070026 sources = [
kjellandera69d9732016-08-31 07:33:05 -070027 "call/audio_sink.h",
kjellandera69d9732016-08-31 07:33:05 -070028 ]
kjellandera69d9732016-08-31 07:33:05 -070029}
30
Niels Möller8366e172018-02-14 12:20:13 +010031rtc_source_set("callfactory_api") {
32 visibility = [ "*" ]
33 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080034 "call/call_factory_interface.h",
Niels Möller8366e172018-02-14 12:20:13 +010035 ]
36}
37
Danil Chapovalov5bf58062019-06-18 16:43:37 +020038if (!build_with_chromium) {
39 rtc_static_library("create_peerconnection_factory") {
40 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +020041 allow_poison = [ "default_task_queue" ]
Danil Chapovalov5bf58062019-06-18 16:43:37 +020042 sources = [
43 "create_peerconnection_factory.cc",
44 "create_peerconnection_factory.h",
45 ]
46 deps = [
47 ":callfactory_api",
48 ":libjingle_peerconnection_api",
49 ":scoped_refptr",
50 "../api/rtc_event_log:rtc_event_log_factory",
51 "../media:rtc_audio_video",
52 "../media:rtc_media_base",
53 "../modules/audio_device:audio_device_api",
54 "../modules/audio_processing:api",
55 "../pc:peerconnection",
56 "../rtc_base",
57 "../rtc_base:rtc_base_approved",
58 "audio:audio_mixer_api",
59 "audio_codecs:audio_codecs_api",
60 "task_queue:default_task_queue_factory",
61 "video_codecs:video_codecs_api",
Danil Chapovalov5bf58062019-06-18 16:43:37 +020062 ]
63 }
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010064}
65
Niels Möllerb8389522019-03-19 14:27:03 +010066rtc_source_set("rtp_headers") {
67 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010068 sources = [
69 "rtp_headers.cc",
70 "rtp_headers.h",
71 ]
72 deps = [
73 ":array_view",
74 "..:webrtc_common",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020075 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020076 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010077 "//third_party/abseil-cpp/absl/types:optional",
78 ]
Niels Möllerb8389522019-03-19 14:27:03 +010079}
80
Chen Xingd2a66862019-06-03 14:53:42 +020081rtc_source_set("rtp_packet_info") {
82 visibility = [ "*" ]
83 sources = [
84 "rtp_packet_info.cc",
85 "rtp_packet_info.h",
86 "rtp_packet_infos.h",
87 ]
88 deps = [
89 ":array_view",
90 ":refcountedbase",
91 ":rtp_headers",
92 ":scoped_refptr",
93 "..:webrtc_common",
Chen Xinge08648d2019-08-05 16:29:13 +020094 "../rtc_base:deprecation",
Chen Xingd2a66862019-06-03 14:53:42 +020095 "../rtc_base:rtc_base_approved",
96 "//third_party/abseil-cpp/absl/types:optional",
97 ]
98}
99
Niels Möllerc1c62842019-09-17 10:16:05 +0200100rtc_source_set("media_stream_interface") {
101 visibility = [ "*" ]
102 # TODO(bugs.webrtc.org/8733): The files "media_stream_interface.cc",
103 # "media_stream_interface.h", and "notifier.h" should be moved into
104 # this target.
105}
106
ossu7bb87ee2017-01-23 04:56:25 -0800107rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000108 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700109 cflags = []
110 sources = [
Steve Anton36b28db2017-10-26 11:27:17 -0700111 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200112 "candidate.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700113 "congestion_control_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800114 "crypto_params.h",
115 "data_channel_interface.cc",
116 "data_channel_interface.h",
Bjorn A Mellem05497f22019-08-01 10:48:20 -0700117 "data_channel_transport_interface.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700118 "datagram_transport_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200119 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800120 "dtls_transport_interface.h",
121 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100122 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800123 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700124 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800125 "jsep_ice_candidate.cc",
126 "jsep_ice_candidate.h",
127 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800128 "media_stream_interface.cc",
129 "media_stream_interface.h",
130 "media_stream_proxy.h",
131 "media_stream_track_proxy.h",
Anton Sukhanov4f08faa2019-05-21 11:12:57 -0700132 "media_transport_config.h",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400133 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700134 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800135 "peer_connection_factory_proxy.h",
136 "peer_connection_interface.cc",
137 "peer_connection_interface.h",
138 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700139 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700140 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800141 "rtp_receiver_interface.cc",
142 "rtp_receiver_interface.h",
143 "rtp_sender_interface.cc",
144 "rtp_sender_interface.h",
145 "rtp_transceiver_interface.cc",
146 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100147 "sctp_transport_interface.cc",
148 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800149 "set_remote_description_observer_interface.h",
150 "stats_types.cc",
151 "stats_types.h",
152 "turn_customizer.h",
153 "uma_metrics.h",
154 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700155 ]
kjellanderc76dc952016-06-03 03:09:32 -0700156 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100157 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100158 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100159 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100160 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100161 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200162 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200163 ":packet_socket_factory",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200164 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700165 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200166 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200167 ":rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100168 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100169 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100170 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200171 "crypto:frame_decryptor_interface",
172 "crypto:frame_encryptor_interface",
173 "crypto:options",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200174 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200175 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200176 "transport:bitrate_settings",
Niels Möller65f17ca2019-09-12 13:59:36 +0200177 "transport:datagram_transport_interface",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200178 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100179 "transport/media:audio_interfaces",
Niels Möller65f17ca2019-09-12 13:59:36 +0200180 "transport/media:media_transport_interface",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100181 "transport/media:video_interfaces",
Niels Möllera8370302019-09-02 15:16:49 +0200182 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800183 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700184 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200185 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200186 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200187 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800188 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700189 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800190 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200191 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100192
193 # Basically, don't add stuff here. You might break sensitive downstream
194 # targets like pnacl. API should not depend on anything outside of this
195 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700196 "..:webrtc_common",
Niels Möller6daa2782018-01-23 10:37:42 +0100197 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100198 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100199 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100200 "../rtc_base:checks",
201 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700202 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200203 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700204 ]
ossu7bb87ee2017-01-23 04:56:25 -0800205}
kjellanderc76dc952016-06-03 03:09:32 -0700206
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200207rtc_source_set("rtc_error") {
208 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200209 sources = [
210 "rtc_error.cc",
211 "rtc_error.h",
212 ]
213 deps = [
214 "../rtc_base:checks",
215 "../rtc_base:logging",
216 "../rtc_base:macromagic",
217 "../rtc_base/system:rtc_export",
218 "//third_party/abseil-cpp/absl/strings",
219 ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200220}
221
Patrik Höglund662e31f2019-09-05 14:35:04 +0200222rtc_source_set("packet_socket_factory") {
223 visibility = [ "*" ]
224 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200225 "async_resolver_factory.h",
226 "packet_socket_factory.h",
227 ]
228 deps = [
229 "../rtc_base:rtc_base",
230 "../rtc_base/system:rtc_export",
231 ]
232}
233
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100234rtc_source_set("scoped_refptr") {
235 visibility = [ "*" ]
236 sources = [
237 "scoped_refptr.h",
238 ]
239}
240
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200241rtc_source_set("video_quality_test_fixture_api") {
242 visibility = [ "*" ]
243 testonly = true
244 sources = [
245 "test/video_quality_test_fixture.h",
246 ]
247 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200248 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200249 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200250 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200251 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200252 ":simulated_network_api",
253 "../call:fake_network",
254 "../call:rtp_interfaces",
255 "../test:test_common",
256 "../test:video_test_common",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200257 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200258 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200259 "transport/media:media_transport_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200260 "video_codecs:video_codecs_api",
261 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200262}
263
Artem Titovd57628f2019-03-22 12:34:25 +0100264rtc_source_set("video_quality_analyzer_api") {
265 visibility = [ "*" ]
266 testonly = true
267 sources = [
268 "test/video_quality_analyzer_interface.h",
269 ]
270
271 deps = [
272 ":stats_observer_interface",
273 "video:encoded_image",
274 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200275 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100276 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100277 "//third_party/abseil-cpp/absl/types:optional",
278 ]
279}
280
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200281rtc_source_set("track_id_stream_label_map") {
282 visibility = [ "*" ]
283 sources = [
284 "test/track_id_stream_label_map.h",
285 ]
286}
287
Niels Möller184b4af2019-08-23 13:33:50 +0200288rtc_source_set("rtp_parameters") {
289 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200290 sources = [
291 "media_types.cc",
292 "media_types.h",
293 "rtp_parameters.cc",
294 "rtp_parameters.h",
295 ]
296 deps = [
297 ":array_view",
298 "../rtc_base:checks",
299 "../rtc_base:stringutils",
300 "../rtc_base/system:rtc_export",
301 "//third_party/abseil-cpp/absl/types:optional",
302 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200303}
304
Artem Titovd57628f2019-03-22 12:34:25 +0100305rtc_source_set("audio_quality_analyzer_api") {
306 visibility = [ "*" ]
307 testonly = true
308 sources = [
309 "test/audio_quality_analyzer_interface.h",
310 ]
311
312 deps = [
313 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200314 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100315 ]
316}
317
318rtc_source_set("stats_observer_interface") {
319 visibility = [ "*" ]
320 testonly = true
321 sources = [
322 "test/stats_observer_interface.h",
323 ]
324
325 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200326 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100327 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200328 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100329 ]
330}
331
332rtc_source_set("peer_connection_quality_test_fixture_api") {
333 visibility = [ "*" ]
334 testonly = true
335 sources = [
336 "test/peerconnection_quality_test_fixture.h",
337 ]
338
339 deps = [
340 ":audio_quality_analyzer_api",
341 ":callfactory_api",
342 ":fec_controller_api",
343 ":function_view",
344 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200345 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200346 ":packet_socket_factory",
Artem Titovd57628f2019-03-22 12:34:25 +0100347 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200348 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100349 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200350 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100351 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200352 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200353 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100354 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200355 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100356 "units:time_delta",
357 "video_codecs:video_codecs_api",
358 "//third_party/abseil-cpp/absl/memory",
359 "//third_party/abseil-cpp/absl/types:optional",
360 ]
361}
362
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200363rtc_source_set("test_dependency_factory") {
364 visibility = [ "*" ]
365 testonly = true
366 sources = [
367 "test/test_dependency_factory.cc",
368 "test/test_dependency_factory.h",
369 ]
370 deps = [
371 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100372 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200373 "../rtc_base:thread_checker",
374 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200375}
376
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200377if (rtc_include_tests) {
378 rtc_source_set("create_video_quality_test_fixture_api") {
379 visibility = [ "*" ]
380 testonly = true
381 sources = [
382 "test/create_video_quality_test_fixture.cc",
383 "test/create_video_quality_test_fixture.h",
384 ]
385 deps = [
386 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200387 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100388 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200389 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200390 "../video:video_quality_test",
391 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200392 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100393
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100394 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100395 visibility = [ "*" ]
396 testonly = true
397 sources = [
398 "test/create_network_emulation_manager.cc",
399 "test/create_network_emulation_manager.h",
400 ]
401 deps = [
402 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200403 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100404 ]
405 }
Artem Titovd57628f2019-03-22 12:34:25 +0100406
407 rtc_source_set("create_peerconnection_quality_test_fixture") {
408 visibility = [ "*" ]
409 testonly = true
410 sources = [
411 "test/create_peerconnection_quality_test_fixture.cc",
412 "test/create_peerconnection_quality_test_fixture.h",
413 ]
414
415 deps = [
416 ":audio_quality_analyzer_api",
417 ":peer_connection_quality_test_fixture_api",
418 ":video_quality_analyzer_api",
419 "../test/pc/e2e:peerconnection_quality_test",
Artem Titovd57628f2019-03-22 12:34:25 +0100420 ]
421 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200422}
423
Elad Alon80810732017-10-06 13:07:32 +0200424rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000425 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200426 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800427 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200428 ]
429}
430
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200431rtc_source_set("rtc_event_log_output_file") {
432 visibility = [ "*" ]
433 sources = [
434 "rtc_event_log_output_file.cc",
435 "rtc_event_log_output_file.h",
436 ]
437
438 deps = [
439 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200440 "../rtc_base:checks",
441 "../rtc_base:rtc_base_approved",
442 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200443 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200444 ]
445}
446
hbos74e1a4f2016-09-15 23:33:01 -0700447rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000448 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700449 cflags = []
450 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800451 "stats/rtc_stats.h",
452 "stats/rtc_stats_collector_callback.h",
453 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700454 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700455 ]
456
457 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100458 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100459 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700460 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200461 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700462 ]
463}
464
Niels Möllera6fe2612018-01-19 11:28:54 +0100465rtc_source_set("audio_options_api") {
466 visibility = [ "*" ]
467 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200468 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100469 "audio_options.h",
470 ]
471
472 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100473 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200474 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200475 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100476 ]
477}
478
aleloia8eb7562016-11-28 07:02:13 -0800479rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000480 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800481 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100482 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800483 "call/transport.h",
484 ]
485}
nisseb2250e52016-12-02 04:01:14 -0800486
Sebastian Jansson6736df12018-11-21 19:18:39 +0100487rtc_source_set("bitrate_allocation") {
488 visibility = [ "*" ]
489 sources = [
490 "call/bitrate_allocation.h",
491 ]
492 deps = [
493 "units:data_rate",
494 "units:time_delta",
495 ]
496}
497
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200498rtc_source_set("simulated_network_api") {
499 visibility = [ "*" ]
500 sources = [
501 "test/simulated_network.h",
502 ]
503 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100504 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200505 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200506 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200507 ]
508}
509
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100510rtc_source_set("network_emulation_manager_api") {
511 visibility = [ "*" ]
512 sources = [
513 "test/network_emulation_manager.h",
514 ]
515 deps = [
516 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100517 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200518 "units:data_rate",
519 "units:data_size",
520 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100521 ]
522}
523
Ying Wang3b790f32018-01-19 17:58:57 +0100524rtc_source_set("fec_controller_api") {
525 visibility = [ "*" ]
526 sources = [
527 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200528 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100529 ]
530
531 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100532 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100533 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100534 ]
535}
536
Ying Wang0810a7c2019-04-10 13:48:24 +0200537rtc_source_set("network_state_predictor_api") {
538 visibility = [ "*" ]
539 sources = [
540 "network_state_predictor.h",
541 ]
542}
543
kwiberg529662a2017-09-04 05:43:17 -0700544rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000545 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700546 sources = [
547 "array_view.h",
548 ]
549 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100550 "../rtc_base:checks",
551 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700552 ]
553}
554
Niels Möller9155e492017-10-23 11:22:30 +0200555rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000556 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200557 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800558 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200559 ]
560 deps = [
561 "../rtc_base:rtc_base_approved",
562 ]
563}
564
Harald Alvestrand98462622019-01-30 14:57:03 +0100565rtc_source_set("ice_transport_factory") {
566 visibility = [ "*" ]
567 sources = [
568 "ice_transport_factory.cc",
569 "ice_transport_factory.h",
570 ]
571 deps = [
572 ":libjingle_peerconnection_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200573 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100574 ":scoped_refptr",
575 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100576 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200577 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700578 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100579 ]
580}
581
Ivo Creusen55de08e2018-09-03 11:49:27 +0200582rtc_source_set("neteq_simulator_api") {
583 visibility = [ "*" ]
584 sources = [
585 "test/neteq_simulator.cc",
586 "test/neteq_simulator.h",
587 ]
588}
589
Artem Titov741daaf2019-03-21 14:37:36 +0100590rtc_source_set("function_view") {
591 visibility = [ "*" ]
592 sources = [
593 "function_view.h",
594 ]
595 deps = [
596 "../rtc_base:checks",
597 ]
598}
599
kjellanderfd5b4e92016-06-13 12:08:33 -0700600if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100601 if (rtc_enable_protobuf) {
602 rtc_source_set("audioproc_f_api") {
603 visibility = [ "*" ]
604 testonly = true
605 sources = [
606 "test/audioproc_float.cc",
607 "test/audioproc_float.h",
608 ]
609
610 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100611 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000612 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100613 "../modules/audio_processing:audioproc_f_impl",
614 ]
615 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200616
617 rtc_source_set("neteq_simulator_factory") {
618 visibility = [ "*" ]
619 testonly = true
620 sources = [
621 "test/neteq_simulator_factory.cc",
622 "test/neteq_simulator_factory.h",
623 ]
624 deps = [
625 ":neteq_simulator_api",
626 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200627 "../rtc_base:checks",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200628 "//third_party/abseil-cpp/absl/flags:flag",
629 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100630 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200631 ]
632 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100633 }
634
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200635 rtc_source_set("simulcast_test_fixture_api") {
636 visibility = [ "*" ]
637 testonly = true
638 sources = [
639 "test/simulcast_test_fixture.h",
640 ]
641 }
642
643 rtc_source_set("create_simulcast_test_fixture_api") {
644 visibility = [ "*" ]
645 testonly = true
646 sources = [
647 "test/create_simulcast_test_fixture.cc",
648 "test/create_simulcast_test_fixture.h",
649 ]
650 deps = [
651 ":simulcast_test_fixture_api",
652 "../modules/video_coding:simulcast_test_fixture_impl",
653 "../rtc_base:rtc_base_approved",
654 "video_codecs:video_codecs_api",
655 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200656 }
657
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200658 rtc_source_set("videocodec_test_fixture_api") {
659 visibility = [ "*" ]
660 testonly = true
661 sources = [
662 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200663 "test/videocodec_test_stats.cc",
664 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200665 ]
666 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200667 "..:webrtc_common",
668 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200669 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100670 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200671 "video_codecs:video_codecs_api",
672 ]
673 }
674
675 rtc_source_set("create_videocodec_test_fixture_api") {
676 visibility = [ "*" ]
677 testonly = true
678 sources = [
679 "test/create_videocodec_test_fixture.cc",
680 "test/create_videocodec_test_fixture.h",
681 ]
682 deps = [
683 ":videocodec_test_fixture_api",
684 "../modules/video_coding:video_codecs_test_framework",
685 "../modules/video_coding:videocodec_test_impl",
686 "../rtc_base:rtc_base_approved",
687 "video_codecs:video_codecs_api",
688 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200689 }
690
kjellander2f6af9c2017-03-02 22:26:23 -0800691 rtc_source_set("mock_audio_mixer") {
692 testonly = true
693 sources = [
694 "test/mock_audio_mixer.h",
695 ]
696
kjellander2f6af9c2017-03-02 22:26:23 -0800697 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700698 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100699 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800700 ]
701 }
702
Elad Alon45befc52019-07-02 11:20:09 +0200703 rtc_source_set("mock_fec_controller_override") {
704 testonly = true
705 sources = [
706 "test/mock_fec_controller_override.h",
707 ]
708 deps = [
709 ":fec_controller_api",
710 "../test:test_support",
711 ]
712 }
713
Benjamin Wright78410ad2018-10-25 09:52:57 -0700714 rtc_source_set("mock_frame_encryptor") {
715 testonly = true
716 sources = [
717 "test/mock_frame_encryptor.cc",
718 "test/mock_frame_encryptor.h",
719 ]
720 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200721 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700722 ":libjingle_peerconnection_api",
723 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200724 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700725 ]
726 }
727
728 rtc_source_set("mock_frame_decryptor") {
729 testonly = true
730 sources = [
731 "test/mock_frame_decryptor.cc",
732 "test/mock_frame_decryptor.h",
733 ]
734 deps = [
735 ":libjingle_peerconnection_api",
736 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200737 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700738 ]
739 }
740
741 rtc_source_set("fake_frame_encryptor") {
742 testonly = true
743 sources = [
744 "test/fake_frame_encryptor.cc",
745 "test/fake_frame_encryptor.h",
746 ]
747 deps = [
748 ":array_view",
749 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200750 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700751 "..:webrtc_common",
752 "../rtc_base:checks",
753 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200754 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700755 ]
756 }
757
758 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700759 testonly = true
760 sources = [
761 "test/fake_frame_decryptor.cc",
762 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700763 ]
764 deps = [
765 ":array_view",
766 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200767 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700768 "..:webrtc_common",
769 "../rtc_base:checks",
770 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200771 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -0700772 ]
773 }
774
Niels Möllere78fd802019-09-13 14:45:55 +0200775 rtc_source_set("dummy_peer_connection") {
776 visibility = [ "*" ]
777 testonly = true
778 sources = [
779 "test/dummy_peer_connection.h",
780 ]
781
782 deps = [
783 ":libjingle_peerconnection_api",
784 ":rtc_error",
785 "../rtc_base:checks",
786 "../rtc_base:refcount",
787 ]
788 }
789
Jiawei Ou651b92e2018-06-29 15:46:44 -0700790 rtc_source_set("mock_peerconnectioninterface") {
791 testonly = true
792 sources = [
793 "test/mock_peerconnectioninterface.h",
794 ]
795
796 deps = [
797 ":libjingle_peerconnection_api",
798 "../test:test_support",
799 ]
800 }
801
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100802 rtc_source_set("mock_rtp") {
803 testonly = true
804 sources = [
805 "test/mock_rtpreceiver.h",
806 "test/mock_rtpsender.h",
807 ]
808
809 deps = [
810 ":libjingle_peerconnection_api",
811 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100812 ]
813 }
814
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700815 rtc_source_set("mock_video_bitrate_allocator") {
816 testonly = true
817 sources = [
818 "test/mock_video_bitrate_allocator.h",
819 ]
820
821 deps = [
822 "../api/video:video_bitrate_allocator",
823 "../test:test_support",
824 ]
825 }
826
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800827 rtc_source_set("mock_video_bitrate_allocator_factory") {
828 testonly = true
829 sources = [
830 "test/mock_video_bitrate_allocator_factory.h",
831 ]
832
833 deps = [
834 "../api/video:video_bitrate_allocator_factory",
835 "../test:test_support",
836 ]
837 }
838
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700839 rtc_source_set("mock_video_codec_factory") {
840 testonly = true
841 sources = [
842 "test/mock_video_decoder_factory.h",
843 "test/mock_video_encoder_factory.h",
844 ]
845
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700846 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100847 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700848 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700849 ]
850 }
851
Erik Språngc84cd952018-10-15 11:55:13 +0200852 rtc_source_set("mock_video_decoder") {
853 visibility = [ "*" ]
854
855 testonly = true
856 sources = [
857 "test/mock_video_decoder.cc",
858 "test/mock_video_decoder.h",
859 ]
860
861 deps = [
862 "../api/video_codecs:video_codecs_api",
863 "../test:test_support",
864 ]
865 }
866
Erik Språng6af1c922018-10-12 10:01:30 +0200867 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200868 visibility = [ "*" ]
869
Erik Språng6af1c922018-10-12 10:01:30 +0200870 testonly = true
871 sources = [
872 "test/mock_video_encoder.cc",
873 "test/mock_video_encoder.h",
874 ]
875
876 deps = [
877 "../api/video_codecs:video_codecs_api",
878 "../test:test_support",
879 ]
880 }
881
Anton Sukhanov7940da02018-10-10 10:34:49 -0700882 rtc_source_set("fake_media_transport") {
883 testonly = true
884
885 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700886 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700887 "test/fake_media_transport.h",
888 ]
889
890 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700891 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200892 "transport:datagram_transport_interface",
893 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700894 "//third_party/abseil-cpp/absl/algorithm:container",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700895 ]
896 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200897
898 rtc_source_set("loopback_media_transport") {
899 testonly = true
900
901 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100902 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200903 "test/loopback_media_transport.h",
904 ]
905
906 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100907 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200908 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200909 "transport:datagram_transport_interface",
910 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700911 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200912 ]
913 }
914
915 rtc_source_set("rtc_api_unittests") {
916 testonly = true
917
918 sources = [
919 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100920 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800921 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200922 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200923 "rtp_packet_info_unittest.cc",
924 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800925 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200926 "test/loopback_media_transport_unittest.cc",
927 ]
928
Niels Möller2e47f7c2018-10-16 10:41:42 +0200929 deps = [
930 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100931 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200932 ":libjingle_peerconnection_api",
933 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200934 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200935 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200936 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200937 ":rtp_parameters",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200938 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100939 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200940 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200941 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200942 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100943 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200944 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200945 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200946 ]
947 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100948
949 rtc_source_set("compile_all_headers") {
950 testonly = true
951
952 sources = [
953 "test/compile_all_headers.cc",
954 ]
955
956 deps = [
957 ":fake_frame_decryptor",
958 ":fake_frame_encryptor",
959 ":fake_media_transport",
960 ":loopback_media_transport",
961 ":mock_audio_mixer",
962 ":mock_frame_decryptor",
963 ":mock_frame_encryptor",
964 ":mock_peerconnectioninterface",
965 ":mock_rtp",
966 ":mock_video_bitrate_allocator",
967 ":mock_video_bitrate_allocator_factory",
968 ":mock_video_codec_factory",
969 ":mock_video_decoder",
970 ":mock_video_encoder",
971 ":rtc_api_unittests",
972 "units:units_unittests",
973 ]
974 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700975}