blob: b9c322967fd27d44002569c22c463e2aa2935ce3 [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",
Niels Möller3a742392018-10-08 11:13:58 +0200111 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400112 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800113 "media_types.cc",
114 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -0700115 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800116 "peer_connection_factory_proxy.h",
117 "peer_connection_interface.cc",
118 "peer_connection_interface.h",
119 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700120 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700121 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800122 "rtc_error.cc",
123 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800124 "rtp_parameters.cc",
125 "rtp_parameters.h",
126 "rtp_receiver_interface.cc",
127 "rtp_receiver_interface.h",
128 "rtp_sender_interface.cc",
129 "rtp_sender_interface.h",
130 "rtp_transceiver_interface.cc",
131 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100132 "sctp_transport_interface.cc",
133 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800134 "set_remote_description_observer_interface.h",
135 "stats_types.cc",
136 "stats_types.h",
137 "turn_customizer.h",
138 "uma_metrics.h",
139 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700140 ]
kjellanderc76dc952016-06-03 03:09:32 -0700141 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100142 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100143 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100144 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100145 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100146 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200147 ":network_state_predictor_api",
hbos74e1a4f2016-09-15 23:33:01 -0700148 ":rtc_stats_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100149 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100150 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100151 "audio_codecs:audio_codecs_api",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200152 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200153 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200154 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100155 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100156 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800157 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200158 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200159 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800160 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800161 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200162 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100163
164 # Basically, don't add stuff here. You might break sensitive downstream
165 # targets like pnacl. API should not depend on anything outside of this
166 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700167 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100168 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100169 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100170 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100171 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100172 "../rtc_base:checks",
173 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700174 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200175 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700176 ]
ossu7bb87ee2017-01-23 04:56:25 -0800177}
kjellanderc76dc952016-06-03 03:09:32 -0700178
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100179rtc_source_set("scoped_refptr") {
180 visibility = [ "*" ]
181 sources = [
182 "scoped_refptr.h",
183 ]
184}
185
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200186rtc_source_set("video_quality_test_fixture_api") {
187 visibility = [ "*" ]
188 testonly = true
189 sources = [
190 "test/video_quality_test_fixture.h",
191 ]
192 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200193 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200194 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200195 ":network_state_predictor_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200196 ":simulated_network_api",
197 "../call:fake_network",
198 "../call:rtp_interfaces",
199 "../test:test_common",
200 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200201 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200202 "video_codecs:video_codecs_api",
203 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200204}
205
Artem Titovd57628f2019-03-22 12:34:25 +0100206rtc_source_set("video_quality_analyzer_api") {
207 visibility = [ "*" ]
208 testonly = true
209 sources = [
210 "test/video_quality_analyzer_interface.h",
211 ]
212
213 deps = [
214 ":stats_observer_interface",
215 "video:encoded_image",
216 "video:video_frame",
217 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100218 "//third_party/abseil-cpp/absl/types:optional",
219 ]
220}
221
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200222rtc_source_set("track_id_stream_label_map") {
223 visibility = [ "*" ]
224 sources = [
225 "test/track_id_stream_label_map.h",
226 ]
227}
228
Artem Titovd57628f2019-03-22 12:34:25 +0100229rtc_source_set("audio_quality_analyzer_api") {
230 visibility = [ "*" ]
231 testonly = true
232 sources = [
233 "test/audio_quality_analyzer_interface.h",
234 ]
235
236 deps = [
237 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200238 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100239 ]
240}
241
242rtc_source_set("stats_observer_interface") {
243 visibility = [ "*" ]
244 testonly = true
245 sources = [
246 "test/stats_observer_interface.h",
247 ]
248
249 deps = [
250 ":libjingle_peerconnection_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100251 ]
252}
253
254rtc_source_set("peer_connection_quality_test_fixture_api") {
255 visibility = [ "*" ]
256 testonly = true
257 sources = [
258 "test/peerconnection_quality_test_fixture.h",
259 ]
260
261 deps = [
262 ":audio_quality_analyzer_api",
263 ":callfactory_api",
264 ":fec_controller_api",
265 ":function_view",
266 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200267 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100268 ":simulated_network_api",
269 ":video_quality_analyzer_api",
270 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200271 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100272 "../rtc_base:rtc_base",
273 "transport:network_control",
274 "units:time_delta",
275 "video_codecs:video_codecs_api",
276 "//third_party/abseil-cpp/absl/memory",
277 "//third_party/abseil-cpp/absl/types:optional",
278 ]
279}
280
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200281rtc_source_set("test_dependency_factory") {
282 visibility = [ "*" ]
283 testonly = true
284 sources = [
285 "test/test_dependency_factory.cc",
286 "test/test_dependency_factory.h",
287 ]
288 deps = [
289 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100290 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200291 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900292 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200293 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200294}
295
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200296if (rtc_include_tests) {
297 rtc_source_set("create_video_quality_test_fixture_api") {
298 visibility = [ "*" ]
299 testonly = true
300 sources = [
301 "test/create_video_quality_test_fixture.cc",
302 "test/create_video_quality_test_fixture.h",
303 ]
304 deps = [
305 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200306 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100307 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200308 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200309 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200310 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200311 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200312 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100313
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100314 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100315 visibility = [ "*" ]
316 testonly = true
317 sources = [
318 "test/create_network_emulation_manager.cc",
319 "test/create_network_emulation_manager.h",
320 ]
321 deps = [
322 ":network_emulation_manager_api",
323 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100324 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100325 ]
326 }
Artem Titovd57628f2019-03-22 12:34:25 +0100327
328 rtc_source_set("create_peerconnection_quality_test_fixture") {
329 visibility = [ "*" ]
330 testonly = true
331 sources = [
332 "test/create_peerconnection_quality_test_fixture.cc",
333 "test/create_peerconnection_quality_test_fixture.h",
334 ]
335
336 deps = [
337 ":audio_quality_analyzer_api",
338 ":peer_connection_quality_test_fixture_api",
339 ":video_quality_analyzer_api",
340 "../test/pc/e2e:peerconnection_quality_test",
341 "//third_party/abseil-cpp/absl/memory",
342 ]
343 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200344}
345
Elad Alon80810732017-10-06 13:07:32 +0200346rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000347 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200348 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800349 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200350 ]
351}
352
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200353rtc_source_set("rtc_event_log_output_file") {
354 visibility = [ "*" ]
355 sources = [
356 "rtc_event_log_output_file.cc",
357 "rtc_event_log_output_file.h",
358 ]
359
360 deps = [
361 ":libjingle_logging_api",
362 "../logging:rtc_event_log_api",
363 "../rtc_base:checks",
364 "../rtc_base:rtc_base_approved",
365 "../rtc_base/system:file_wrapper",
366 ]
367}
368
deadbeefe814a0d2017-02-25 18:15:09 -0800369rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000370 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800371 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800372 "ortc/packet_transport_interface.h",
373 "ortc/rtp_transport_interface.h",
374 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800375 ]
376
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100377 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800378 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100379 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200380 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800381 ]
382}
383
hbos74e1a4f2016-09-15 23:33:01 -0700384rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000385 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700386 cflags = []
387 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800388 "stats/rtc_stats.h",
389 "stats/rtc_stats_collector_callback.h",
390 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700391 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700392 ]
393
394 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100395 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100396 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700397 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200398 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700399 ]
400}
401
Niels Möllera6fe2612018-01-19 11:28:54 +0100402rtc_source_set("audio_options_api") {
403 visibility = [ "*" ]
404 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200405 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100406 "audio_options.h",
407 ]
408
409 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100410 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200411 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200412 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100413 ]
414}
415
aleloia8eb7562016-11-28 07:02:13 -0800416rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000417 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800418 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100419 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800420 "call/transport.h",
421 ]
422}
nisseb2250e52016-12-02 04:01:14 -0800423
Sebastian Jansson6736df12018-11-21 19:18:39 +0100424rtc_source_set("bitrate_allocation") {
425 visibility = [ "*" ]
426 sources = [
427 "call/bitrate_allocation.h",
428 ]
429 deps = [
430 "units:data_rate",
431 "units:time_delta",
432 ]
433}
434
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200435rtc_source_set("simulated_network_api") {
436 visibility = [ "*" ]
437 sources = [
438 "test/simulated_network.h",
439 ]
440 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100441 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200442 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200443 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200444 ]
445}
446
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100447rtc_source_set("network_emulation_manager_api") {
448 visibility = [ "*" ]
449 sources = [
450 "test/network_emulation_manager.h",
451 ]
452 deps = [
453 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100454 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200455 "units:data_rate",
456 "units:data_size",
457 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100458 ]
459}
460
Ying Wang3b790f32018-01-19 17:58:57 +0100461rtc_source_set("fec_controller_api") {
462 visibility = [ "*" ]
463 sources = [
464 "fec_controller.h",
465 ]
466
467 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100468 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100469 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100470 ]
471}
472
Ying Wang0810a7c2019-04-10 13:48:24 +0200473rtc_source_set("network_state_predictor_api") {
474 visibility = [ "*" ]
475 sources = [
476 "network_state_predictor.h",
477 ]
478}
479
kwiberg529662a2017-09-04 05:43:17 -0700480rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000481 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700482 sources = [
483 "array_view.h",
484 ]
485 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100486 "../rtc_base:checks",
487 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700488 ]
489}
490
Niels Möller9155e492017-10-23 11:22:30 +0200491rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000492 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200493 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800494 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200495 ]
496 deps = [
497 "../rtc_base:rtc_base_approved",
498 ]
499}
500
Harald Alvestrand98462622019-01-30 14:57:03 +0100501rtc_source_set("ice_transport_factory") {
502 visibility = [ "*" ]
503 sources = [
504 "ice_transport_factory.cc",
505 "ice_transport_factory.h",
506 ]
507 deps = [
508 ":libjingle_peerconnection_api",
509 ":scoped_refptr",
510 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100511 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200512 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100513 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100514 ]
515}
516
Ivo Creusen55de08e2018-09-03 11:49:27 +0200517rtc_source_set("neteq_simulator_api") {
518 visibility = [ "*" ]
519 sources = [
520 "test/neteq_simulator.cc",
521 "test/neteq_simulator.h",
522 ]
523}
524
Artem Titov741daaf2019-03-21 14:37:36 +0100525rtc_source_set("function_view") {
526 visibility = [ "*" ]
527 sources = [
528 "function_view.h",
529 ]
530 deps = [
531 "../rtc_base:checks",
532 ]
533}
534
kjellanderfd5b4e92016-06-13 12:08:33 -0700535if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100536 if (rtc_enable_protobuf) {
537 rtc_source_set("audioproc_f_api") {
538 visibility = [ "*" ]
539 testonly = true
540 sources = [
541 "test/audioproc_float.cc",
542 "test/audioproc_float.h",
543 ]
544
545 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100546 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000547 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100548 "../modules/audio_processing:audioproc_f_impl",
549 ]
550 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200551
552 rtc_source_set("neteq_simulator_factory") {
553 visibility = [ "*" ]
554 testonly = true
555 sources = [
556 "test/neteq_simulator_factory.cc",
557 "test/neteq_simulator_factory.h",
558 ]
559 deps = [
560 ":neteq_simulator_api",
561 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200562 "../rtc_base:checks",
563 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200564 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100565 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200566 ]
567 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100568 }
569
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200570 rtc_source_set("simulcast_test_fixture_api") {
571 visibility = [ "*" ]
572 testonly = true
573 sources = [
574 "test/simulcast_test_fixture.h",
575 ]
576 }
577
578 rtc_source_set("create_simulcast_test_fixture_api") {
579 visibility = [ "*" ]
580 testonly = true
581 sources = [
582 "test/create_simulcast_test_fixture.cc",
583 "test/create_simulcast_test_fixture.h",
584 ]
585 deps = [
586 ":simulcast_test_fixture_api",
587 "../modules/video_coding:simulcast_test_fixture_impl",
588 "../rtc_base:rtc_base_approved",
589 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200590 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200591 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200592 }
593
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200594 rtc_source_set("videocodec_test_fixture_api") {
595 visibility = [ "*" ]
596 testonly = true
597 sources = [
598 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200599 "test/videocodec_test_stats.cc",
600 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200601 ]
602 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200603 "..:webrtc_common",
604 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200605 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100606 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200607 "video_codecs:video_codecs_api",
608 ]
609 }
610
611 rtc_source_set("create_videocodec_test_fixture_api") {
612 visibility = [ "*" ]
613 testonly = true
614 sources = [
615 "test/create_videocodec_test_fixture.cc",
616 "test/create_videocodec_test_fixture.h",
617 ]
618 deps = [
619 ":videocodec_test_fixture_api",
620 "../modules/video_coding:video_codecs_test_framework",
621 "../modules/video_coding:videocodec_test_impl",
622 "../rtc_base:rtc_base_approved",
623 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200624 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200625 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200626 }
627
kjellander2f6af9c2017-03-02 22:26:23 -0800628 rtc_source_set("mock_audio_mixer") {
629 testonly = true
630 sources = [
631 "test/mock_audio_mixer.h",
632 ]
633
kjellander2f6af9c2017-03-02 22:26:23 -0800634 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700635 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100636 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800637 ]
638 }
639
Benjamin Wright78410ad2018-10-25 09:52:57 -0700640 rtc_source_set("mock_frame_encryptor") {
641 testonly = true
642 sources = [
643 "test/mock_frame_encryptor.cc",
644 "test/mock_frame_encryptor.h",
645 ]
646 deps = [
647 ":libjingle_peerconnection_api",
648 "../test:test_support",
649 ]
650 }
651
652 rtc_source_set("mock_frame_decryptor") {
653 testonly = true
654 sources = [
655 "test/mock_frame_decryptor.cc",
656 "test/mock_frame_decryptor.h",
657 ]
658 deps = [
659 ":libjingle_peerconnection_api",
660 "../test:test_support",
661 ]
662 }
663
664 rtc_source_set("fake_frame_encryptor") {
665 testonly = true
666 sources = [
667 "test/fake_frame_encryptor.cc",
668 "test/fake_frame_encryptor.h",
669 ]
670 deps = [
671 ":array_view",
672 ":libjingle_peerconnection_api",
673 "..:webrtc_common",
674 "../rtc_base:checks",
675 "../rtc_base:rtc_base_approved",
676 ]
677 }
678
679 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700680 testonly = true
681 sources = [
682 "test/fake_frame_decryptor.cc",
683 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700684 ]
685 deps = [
686 ":array_view",
687 ":libjingle_peerconnection_api",
688 "..:webrtc_common",
689 "../rtc_base:checks",
690 "../rtc_base:rtc_base_approved",
691 ]
692 }
693
Jiawei Ou651b92e2018-06-29 15:46:44 -0700694 rtc_source_set("mock_peerconnectioninterface") {
695 testonly = true
696 sources = [
697 "test/mock_peerconnectioninterface.h",
698 ]
699
700 deps = [
701 ":libjingle_peerconnection_api",
702 "../test:test_support",
703 ]
704 }
705
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100706 rtc_source_set("mock_rtp") {
707 testonly = true
708 sources = [
709 "test/mock_rtpreceiver.h",
710 "test/mock_rtpsender.h",
711 ]
712
713 deps = [
714 ":libjingle_peerconnection_api",
715 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100716 ]
717 }
718
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700719 rtc_source_set("mock_video_bitrate_allocator") {
720 testonly = true
721 sources = [
722 "test/mock_video_bitrate_allocator.h",
723 ]
724
725 deps = [
726 "../api/video:video_bitrate_allocator",
727 "../test:test_support",
728 ]
729 }
730
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800731 rtc_source_set("mock_video_bitrate_allocator_factory") {
732 testonly = true
733 sources = [
734 "test/mock_video_bitrate_allocator_factory.h",
735 ]
736
737 deps = [
738 "../api/video:video_bitrate_allocator_factory",
739 "../test:test_support",
740 ]
741 }
742
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700743 rtc_source_set("mock_video_codec_factory") {
744 testonly = true
745 sources = [
746 "test/mock_video_decoder_factory.h",
747 "test/mock_video_encoder_factory.h",
748 ]
749
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700750 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100751 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700752 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700753 ]
754 }
755
Erik Språngc84cd952018-10-15 11:55:13 +0200756 rtc_source_set("mock_video_decoder") {
757 visibility = [ "*" ]
758
759 testonly = true
760 sources = [
761 "test/mock_video_decoder.cc",
762 "test/mock_video_decoder.h",
763 ]
764
765 deps = [
766 "../api/video_codecs:video_codecs_api",
767 "../test:test_support",
768 ]
769 }
770
Erik Språng6af1c922018-10-12 10:01:30 +0200771 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200772 visibility = [ "*" ]
773
Erik Språng6af1c922018-10-12 10:01:30 +0200774 testonly = true
775 sources = [
776 "test/mock_video_encoder.cc",
777 "test/mock_video_encoder.h",
778 ]
779
780 deps = [
781 "../api/video_codecs:video_codecs_api",
782 "../test:test_support",
783 ]
784 }
785
Anton Sukhanov7940da02018-10-10 10:34:49 -0700786 rtc_source_set("fake_media_transport") {
787 testonly = true
788
789 sources = [
790 "test/fake_media_transport.h",
791 ]
792
793 deps = [
794 ":libjingle_peerconnection_api",
795 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700796 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100797 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700798 ]
799 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200800
801 rtc_source_set("loopback_media_transport") {
802 testonly = true
803
804 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100805 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200806 "test/loopback_media_transport.h",
807 ]
808
809 deps = [
810 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100811 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200812 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700813 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100814 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200815 ]
816 }
817
818 rtc_source_set("rtc_api_unittests") {
819 testonly = true
820
821 sources = [
822 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100823 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800824 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200825 "rtc_event_log_output_file_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800826 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200827 "test/loopback_media_transport_unittest.cc",
828 ]
829
Niels Möller2e47f7c2018-10-16 10:41:42 +0200830 deps = [
831 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100832 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200833 ":libjingle_peerconnection_api",
834 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200835 ":rtc_event_log_output_file",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200836 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100837 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200838 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200839 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200840 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100841 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200842 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200843 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200844 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200845 ]
846 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100847
848 rtc_source_set("compile_all_headers") {
849 testonly = true
850
851 sources = [
852 "test/compile_all_headers.cc",
853 ]
854
855 deps = [
856 ":fake_frame_decryptor",
857 ":fake_frame_encryptor",
858 ":fake_media_transport",
859 ":loopback_media_transport",
860 ":mock_audio_mixer",
861 ":mock_frame_decryptor",
862 ":mock_frame_encryptor",
863 ":mock_peerconnectioninterface",
864 ":mock_rtp",
865 ":mock_video_bitrate_allocator",
866 ":mock_video_bitrate_allocator_factory",
867 ":mock_video_codec_factory",
868 ":mock_video_decoder",
869 ":mock_video_encoder",
870 ":rtc_api_unittests",
871 "units:units_unittests",
872 ]
873 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700874}