blob: 6700a9531ae61d77273868c770e00b95ff0c8cc8 [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
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010038rtc_static_library("create_peerconnection_factory") {
Mirko Bonadeic3313a32018-11-19 14:30:17 +010039 visibility = [ "*" ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010040 sources = [
41 "create_peerconnection_factory.cc",
42 "create_peerconnection_factory.h",
43 ]
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010044 deps = [
45 ":callfactory_api",
46 ":fec_controller_api",
47 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +020048 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010049 ":scoped_refptr",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010050 "../logging:rtc_event_log_api",
51 "../logging:rtc_event_log_impl_base",
52 "../media:rtc_audio_video",
Yves Gerey3e707812018-11-28 16:47:49 +010053 "../media:rtc_media_base",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010054 "../modules/audio_device:audio_device_api",
55 "../modules/audio_processing:api",
56 "../pc:peerconnection",
Artem Titov94b57c02019-03-21 13:35:10 +010057 "../rtc_base",
Anders Carlsson01092952018-12-11 15:44:54 +010058 "../rtc_base:deprecation",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010059 "../rtc_base:rtc_base_approved",
60 "audio:audio_mixer_api",
61 "audio_codecs:audio_codecs_api",
62 "transport:network_control",
63 "video_codecs:video_codecs_api",
64 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010065}
66
Niels Möllerb8389522019-03-19 14:27:03 +010067rtc_source_set("rtp_headers") {
68 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010069 sources = [
70 "rtp_headers.cc",
71 "rtp_headers.h",
72 ]
73 deps = [
74 ":array_view",
75 "..:webrtc_common",
76 "video:video_frame",
77 "//third_party/abseil-cpp/absl/types:optional",
78 ]
Niels Möllerb8389522019-03-19 14:27:03 +010079}
80
ossu7bb87ee2017-01-23 04:56:25 -080081rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000082 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070083 cflags = []
84 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080085 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020086 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070087 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020088 "candidate.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -070089 "congestion_control_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -080090 "crypto/crypto_options.cc",
91 "crypto/crypto_options.h",
92 "crypto/frame_decryptor_interface.h",
93 "crypto/frame_encryptor_interface.h",
94 "crypto_params.h",
95 "data_channel_interface.cc",
96 "data_channel_interface.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -070097 "datagram_transport_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +020098 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -080099 "dtls_transport_interface.h",
100 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100101 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800102 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700103 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800104 "jsep_ice_candidate.cc",
105 "jsep_ice_candidate.h",
106 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800107 "media_stream_interface.cc",
108 "media_stream_interface.h",
109 "media_stream_proxy.h",
110 "media_stream_track_proxy.h",
Anton Sukhanov4f08faa2019-05-21 11:12:57 -0700111 "media_transport_config.cc",
112 "media_transport_config.h",
Niels Möller3a742392018-10-08 11:13:58 +0200113 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400114 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800115 "media_types.cc",
116 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -0700117 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800118 "peer_connection_factory_proxy.h",
119 "peer_connection_interface.cc",
120 "peer_connection_interface.h",
121 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700122 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700123 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800124 "rtc_error.cc",
125 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800126 "rtp_parameters.cc",
127 "rtp_parameters.h",
128 "rtp_receiver_interface.cc",
129 "rtp_receiver_interface.h",
130 "rtp_sender_interface.cc",
131 "rtp_sender_interface.h",
132 "rtp_transceiver_interface.cc",
133 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100134 "sctp_transport_interface.cc",
135 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800136 "set_remote_description_observer_interface.h",
137 "stats_types.cc",
138 "stats_types.h",
139 "turn_customizer.h",
140 "uma_metrics.h",
141 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700142 ]
kjellanderc76dc952016-06-03 03:09:32 -0700143 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100144 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100145 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100146 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100147 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100148 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200149 ":network_state_predictor_api",
hbos74e1a4f2016-09-15 23:33:01 -0700150 ":rtc_stats_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100151 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100152 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100153 "audio_codecs:audio_codecs_api",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200154 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200155 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200156 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100157 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100158 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800159 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200160 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200161 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800162 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800163 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200164 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100165
166 # Basically, don't add stuff here. You might break sensitive downstream
167 # targets like pnacl. API should not depend on anything outside of this
168 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700169 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100170 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100171 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100172 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100173 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100174 "../rtc_base:checks",
175 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700176 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200177 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700178 ]
ossu7bb87ee2017-01-23 04:56:25 -0800179}
kjellanderc76dc952016-06-03 03:09:32 -0700180
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100181rtc_source_set("scoped_refptr") {
182 visibility = [ "*" ]
183 sources = [
184 "scoped_refptr.h",
185 ]
186}
187
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200188rtc_source_set("video_quality_test_fixture_api") {
189 visibility = [ "*" ]
190 testonly = true
191 sources = [
192 "test/video_quality_test_fixture.h",
193 ]
194 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200195 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200196 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200197 ":network_state_predictor_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200198 ":simulated_network_api",
199 "../call:fake_network",
200 "../call:rtp_interfaces",
201 "../test:test_common",
202 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200203 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200204 "video_codecs:video_codecs_api",
205 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200206}
207
Artem Titovd57628f2019-03-22 12:34:25 +0100208rtc_source_set("video_quality_analyzer_api") {
209 visibility = [ "*" ]
210 testonly = true
211 sources = [
212 "test/video_quality_analyzer_interface.h",
213 ]
214
215 deps = [
216 ":stats_observer_interface",
217 "video:encoded_image",
218 "video:video_frame",
219 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100220 "//third_party/abseil-cpp/absl/types:optional",
221 ]
222}
223
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200224rtc_source_set("track_id_stream_label_map") {
225 visibility = [ "*" ]
226 sources = [
227 "test/track_id_stream_label_map.h",
228 ]
229}
230
Artem Titovd57628f2019-03-22 12:34:25 +0100231rtc_source_set("audio_quality_analyzer_api") {
232 visibility = [ "*" ]
233 testonly = true
234 sources = [
235 "test/audio_quality_analyzer_interface.h",
236 ]
237
238 deps = [
239 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200240 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100241 ]
242}
243
244rtc_source_set("stats_observer_interface") {
245 visibility = [ "*" ]
246 testonly = true
247 sources = [
248 "test/stats_observer_interface.h",
249 ]
250
251 deps = [
252 ":libjingle_peerconnection_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100253 ]
254}
255
256rtc_source_set("peer_connection_quality_test_fixture_api") {
257 visibility = [ "*" ]
258 testonly = true
259 sources = [
260 "test/peerconnection_quality_test_fixture.h",
261 ]
262
263 deps = [
264 ":audio_quality_analyzer_api",
265 ":callfactory_api",
266 ":fec_controller_api",
267 ":function_view",
268 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200269 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100270 ":simulated_network_api",
271 ":video_quality_analyzer_api",
272 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200273 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100274 "../rtc_base:rtc_base",
275 "transport:network_control",
276 "units:time_delta",
277 "video_codecs:video_codecs_api",
278 "//third_party/abseil-cpp/absl/memory",
279 "//third_party/abseil-cpp/absl/types:optional",
280 ]
281}
282
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200283rtc_source_set("test_dependency_factory") {
284 visibility = [ "*" ]
285 testonly = true
286 sources = [
287 "test/test_dependency_factory.cc",
288 "test/test_dependency_factory.h",
289 ]
290 deps = [
291 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100292 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200293 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900294 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200295 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200296}
297
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200298if (rtc_include_tests) {
299 rtc_source_set("create_video_quality_test_fixture_api") {
300 visibility = [ "*" ]
301 testonly = true
302 sources = [
303 "test/create_video_quality_test_fixture.cc",
304 "test/create_video_quality_test_fixture.h",
305 ]
306 deps = [
307 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200308 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100309 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200310 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200311 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200312 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200313 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200314 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100315
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100316 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100317 visibility = [ "*" ]
318 testonly = true
319 sources = [
320 "test/create_network_emulation_manager.cc",
321 "test/create_network_emulation_manager.h",
322 ]
323 deps = [
324 ":network_emulation_manager_api",
325 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100326 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100327 ]
328 }
Artem Titovd57628f2019-03-22 12:34:25 +0100329
330 rtc_source_set("create_peerconnection_quality_test_fixture") {
331 visibility = [ "*" ]
332 testonly = true
333 sources = [
334 "test/create_peerconnection_quality_test_fixture.cc",
335 "test/create_peerconnection_quality_test_fixture.h",
336 ]
337
338 deps = [
339 ":audio_quality_analyzer_api",
340 ":peer_connection_quality_test_fixture_api",
341 ":video_quality_analyzer_api",
342 "../test/pc/e2e:peerconnection_quality_test",
343 "//third_party/abseil-cpp/absl/memory",
344 ]
345 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200346}
347
Elad Alon80810732017-10-06 13:07:32 +0200348rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000349 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200350 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800351 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200352 ]
353}
354
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200355rtc_source_set("rtc_event_log_output_file") {
356 visibility = [ "*" ]
357 sources = [
358 "rtc_event_log_output_file.cc",
359 "rtc_event_log_output_file.h",
360 ]
361
362 deps = [
363 ":libjingle_logging_api",
364 "../logging:rtc_event_log_api",
365 "../rtc_base:checks",
366 "../rtc_base:rtc_base_approved",
367 "../rtc_base/system:file_wrapper",
368 ]
369}
370
deadbeefe814a0d2017-02-25 18:15:09 -0800371rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000372 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800373 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800374 "ortc/packet_transport_interface.h",
375 "ortc/rtp_transport_interface.h",
376 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800377 ]
378
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100379 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800380 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100381 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200382 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800383 ]
384}
385
hbos74e1a4f2016-09-15 23:33:01 -0700386rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000387 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700388 cflags = []
389 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800390 "stats/rtc_stats.h",
391 "stats/rtc_stats_collector_callback.h",
392 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700393 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700394 ]
395
396 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100397 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100398 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700399 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200400 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700401 ]
402}
403
Niels Möllera6fe2612018-01-19 11:28:54 +0100404rtc_source_set("audio_options_api") {
405 visibility = [ "*" ]
406 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200407 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100408 "audio_options.h",
409 ]
410
411 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100412 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200413 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200414 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100415 ]
416}
417
aleloia8eb7562016-11-28 07:02:13 -0800418rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000419 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800420 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100421 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800422 "call/transport.h",
423 ]
424}
nisseb2250e52016-12-02 04:01:14 -0800425
Sebastian Jansson6736df12018-11-21 19:18:39 +0100426rtc_source_set("bitrate_allocation") {
427 visibility = [ "*" ]
428 sources = [
429 "call/bitrate_allocation.h",
430 ]
431 deps = [
432 "units:data_rate",
433 "units:time_delta",
434 ]
435}
436
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200437rtc_source_set("simulated_network_api") {
438 visibility = [ "*" ]
439 sources = [
440 "test/simulated_network.h",
441 ]
442 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100443 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200444 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200445 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200446 ]
447}
448
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100449rtc_source_set("network_emulation_manager_api") {
450 visibility = [ "*" ]
451 sources = [
452 "test/network_emulation_manager.h",
453 ]
454 deps = [
455 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100456 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200457 "units:data_rate",
458 "units:data_size",
459 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100460 ]
461}
462
Ying Wang3b790f32018-01-19 17:58:57 +0100463rtc_source_set("fec_controller_api") {
464 visibility = [ "*" ]
465 sources = [
466 "fec_controller.h",
467 ]
468
469 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100470 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100471 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100472 ]
473}
474
Ying Wang0810a7c2019-04-10 13:48:24 +0200475rtc_source_set("network_state_predictor_api") {
476 visibility = [ "*" ]
477 sources = [
478 "network_state_predictor.h",
479 ]
480}
481
kwiberg529662a2017-09-04 05:43:17 -0700482rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000483 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700484 sources = [
485 "array_view.h",
486 ]
487 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100488 "../rtc_base:checks",
489 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700490 ]
491}
492
Niels Möller9155e492017-10-23 11:22:30 +0200493rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000494 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200495 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800496 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200497 ]
498 deps = [
499 "../rtc_base:rtc_base_approved",
500 ]
501}
502
Harald Alvestrand98462622019-01-30 14:57:03 +0100503rtc_source_set("ice_transport_factory") {
504 visibility = [ "*" ]
505 sources = [
506 "ice_transport_factory.cc",
507 "ice_transport_factory.h",
508 ]
509 deps = [
510 ":libjingle_peerconnection_api",
511 ":scoped_refptr",
512 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100513 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200514 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100515 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100516 ]
517}
518
Ivo Creusen55de08e2018-09-03 11:49:27 +0200519rtc_source_set("neteq_simulator_api") {
520 visibility = [ "*" ]
521 sources = [
522 "test/neteq_simulator.cc",
523 "test/neteq_simulator.h",
524 ]
525}
526
Artem Titov741daaf2019-03-21 14:37:36 +0100527rtc_source_set("function_view") {
528 visibility = [ "*" ]
529 sources = [
530 "function_view.h",
531 ]
532 deps = [
533 "../rtc_base:checks",
534 ]
535}
536
kjellanderfd5b4e92016-06-13 12:08:33 -0700537if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100538 if (rtc_enable_protobuf) {
539 rtc_source_set("audioproc_f_api") {
540 visibility = [ "*" ]
541 testonly = true
542 sources = [
543 "test/audioproc_float.cc",
544 "test/audioproc_float.h",
545 ]
546
547 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100548 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000549 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100550 "../modules/audio_processing:audioproc_f_impl",
551 ]
552 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200553
554 rtc_source_set("neteq_simulator_factory") {
555 visibility = [ "*" ]
556 testonly = true
557 sources = [
558 "test/neteq_simulator_factory.cc",
559 "test/neteq_simulator_factory.h",
560 ]
561 deps = [
562 ":neteq_simulator_api",
563 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200564 "../rtc_base:checks",
565 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200566 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100567 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200568 ]
569 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100570 }
571
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200572 rtc_source_set("simulcast_test_fixture_api") {
573 visibility = [ "*" ]
574 testonly = true
575 sources = [
576 "test/simulcast_test_fixture.h",
577 ]
578 }
579
580 rtc_source_set("create_simulcast_test_fixture_api") {
581 visibility = [ "*" ]
582 testonly = true
583 sources = [
584 "test/create_simulcast_test_fixture.cc",
585 "test/create_simulcast_test_fixture.h",
586 ]
587 deps = [
588 ":simulcast_test_fixture_api",
589 "../modules/video_coding:simulcast_test_fixture_impl",
590 "../rtc_base:rtc_base_approved",
591 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200592 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200593 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200594 }
595
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200596 rtc_source_set("videocodec_test_fixture_api") {
597 visibility = [ "*" ]
598 testonly = true
599 sources = [
600 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200601 "test/videocodec_test_stats.cc",
602 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200603 ]
604 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200605 "..:webrtc_common",
606 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200607 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100608 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200609 "video_codecs:video_codecs_api",
610 ]
611 }
612
613 rtc_source_set("create_videocodec_test_fixture_api") {
614 visibility = [ "*" ]
615 testonly = true
616 sources = [
617 "test/create_videocodec_test_fixture.cc",
618 "test/create_videocodec_test_fixture.h",
619 ]
620 deps = [
621 ":videocodec_test_fixture_api",
622 "../modules/video_coding:video_codecs_test_framework",
623 "../modules/video_coding:videocodec_test_impl",
624 "../rtc_base:rtc_base_approved",
625 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200626 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200627 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200628 }
629
kjellander2f6af9c2017-03-02 22:26:23 -0800630 rtc_source_set("mock_audio_mixer") {
631 testonly = true
632 sources = [
633 "test/mock_audio_mixer.h",
634 ]
635
kjellander2f6af9c2017-03-02 22:26:23 -0800636 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700637 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100638 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800639 ]
640 }
641
Benjamin Wright78410ad2018-10-25 09:52:57 -0700642 rtc_source_set("mock_frame_encryptor") {
643 testonly = true
644 sources = [
645 "test/mock_frame_encryptor.cc",
646 "test/mock_frame_encryptor.h",
647 ]
648 deps = [
649 ":libjingle_peerconnection_api",
650 "../test:test_support",
651 ]
652 }
653
654 rtc_source_set("mock_frame_decryptor") {
655 testonly = true
656 sources = [
657 "test/mock_frame_decryptor.cc",
658 "test/mock_frame_decryptor.h",
659 ]
660 deps = [
661 ":libjingle_peerconnection_api",
662 "../test:test_support",
663 ]
664 }
665
666 rtc_source_set("fake_frame_encryptor") {
667 testonly = true
668 sources = [
669 "test/fake_frame_encryptor.cc",
670 "test/fake_frame_encryptor.h",
671 ]
672 deps = [
673 ":array_view",
674 ":libjingle_peerconnection_api",
675 "..:webrtc_common",
676 "../rtc_base:checks",
677 "../rtc_base:rtc_base_approved",
678 ]
679 }
680
681 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700682 testonly = true
683 sources = [
684 "test/fake_frame_decryptor.cc",
685 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700686 ]
687 deps = [
688 ":array_view",
689 ":libjingle_peerconnection_api",
690 "..:webrtc_common",
691 "../rtc_base:checks",
692 "../rtc_base:rtc_base_approved",
693 ]
694 }
695
Jiawei Ou651b92e2018-06-29 15:46:44 -0700696 rtc_source_set("mock_peerconnectioninterface") {
697 testonly = true
698 sources = [
699 "test/mock_peerconnectioninterface.h",
700 ]
701
702 deps = [
703 ":libjingle_peerconnection_api",
704 "../test:test_support",
705 ]
706 }
707
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100708 rtc_source_set("mock_rtp") {
709 testonly = true
710 sources = [
711 "test/mock_rtpreceiver.h",
712 "test/mock_rtpsender.h",
713 ]
714
715 deps = [
716 ":libjingle_peerconnection_api",
717 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100718 ]
719 }
720
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700721 rtc_source_set("mock_video_bitrate_allocator") {
722 testonly = true
723 sources = [
724 "test/mock_video_bitrate_allocator.h",
725 ]
726
727 deps = [
728 "../api/video:video_bitrate_allocator",
729 "../test:test_support",
730 ]
731 }
732
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800733 rtc_source_set("mock_video_bitrate_allocator_factory") {
734 testonly = true
735 sources = [
736 "test/mock_video_bitrate_allocator_factory.h",
737 ]
738
739 deps = [
740 "../api/video:video_bitrate_allocator_factory",
741 "../test:test_support",
742 ]
743 }
744
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700745 rtc_source_set("mock_video_codec_factory") {
746 testonly = true
747 sources = [
748 "test/mock_video_decoder_factory.h",
749 "test/mock_video_encoder_factory.h",
750 ]
751
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700752 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100753 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700754 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700755 ]
756 }
757
Erik Språngc84cd952018-10-15 11:55:13 +0200758 rtc_source_set("mock_video_decoder") {
759 visibility = [ "*" ]
760
761 testonly = true
762 sources = [
763 "test/mock_video_decoder.cc",
764 "test/mock_video_decoder.h",
765 ]
766
767 deps = [
768 "../api/video_codecs:video_codecs_api",
769 "../test:test_support",
770 ]
771 }
772
Erik Språng6af1c922018-10-12 10:01:30 +0200773 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200774 visibility = [ "*" ]
775
Erik Språng6af1c922018-10-12 10:01:30 +0200776 testonly = true
777 sources = [
778 "test/mock_video_encoder.cc",
779 "test/mock_video_encoder.h",
780 ]
781
782 deps = [
783 "../api/video_codecs:video_codecs_api",
784 "../test:test_support",
785 ]
786 }
787
Anton Sukhanov7940da02018-10-10 10:34:49 -0700788 rtc_source_set("fake_media_transport") {
789 testonly = true
790
791 sources = [
792 "test/fake_media_transport.h",
793 ]
794
795 deps = [
796 ":libjingle_peerconnection_api",
797 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700798 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100799 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700800 ]
801 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200802
803 rtc_source_set("loopback_media_transport") {
804 testonly = true
805
806 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100807 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200808 "test/loopback_media_transport.h",
809 ]
810
811 deps = [
812 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100813 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200814 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700815 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100816 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200817 ]
818 }
819
820 rtc_source_set("rtc_api_unittests") {
821 testonly = true
822
823 sources = [
824 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100825 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800826 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200827 "rtc_event_log_output_file_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800828 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200829 "test/loopback_media_transport_unittest.cc",
830 ]
831
Niels Möller2e47f7c2018-10-16 10:41:42 +0200832 deps = [
833 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100834 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200835 ":libjingle_peerconnection_api",
836 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200837 ":rtc_event_log_output_file",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200838 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100839 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200840 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200841 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200842 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100843 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200844 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200845 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200846 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200847 ]
848 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100849
850 rtc_source_set("compile_all_headers") {
851 testonly = true
852
853 sources = [
854 "test/compile_all_headers.cc",
855 ]
856
857 deps = [
858 ":fake_frame_decryptor",
859 ":fake_frame_encryptor",
860 ":fake_media_transport",
861 ":loopback_media_transport",
862 ":mock_audio_mixer",
863 ":mock_frame_decryptor",
864 ":mock_frame_encryptor",
865 ":mock_peerconnectioninterface",
866 ":mock_rtp",
867 ":mock_video_bitrate_allocator",
868 ":mock_video_bitrate_allocator_factory",
869 ":mock_video_codec_factory",
870 ":mock_video_decoder",
871 ":mock_video_encoder",
872 ":rtc_api_unittests",
873 "units:units_unittests",
874 ]
875 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700876}