blob: 4bf0a3b3d3797b08e12a738e10389f582fa5fd71 [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 Chapovalovb32f2c72019-05-22 13:39:25 +0200154 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200155 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200156 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200157 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100158 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100159 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800160 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700161 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200162 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200163 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800164 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800165 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200166 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100167
168 # Basically, don't add stuff here. You might break sensitive downstream
169 # targets like pnacl. API should not depend on anything outside of this
170 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700171 "..:webrtc_common",
Niels Möller6daa2782018-01-23 10:37:42 +0100172 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100173 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100174 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100175 "../rtc_base:checks",
176 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700177 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200178 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700179 ]
ossu7bb87ee2017-01-23 04:56:25 -0800180}
kjellanderc76dc952016-06-03 03:09:32 -0700181
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100182rtc_source_set("scoped_refptr") {
183 visibility = [ "*" ]
184 sources = [
185 "scoped_refptr.h",
186 ]
187}
188
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200189rtc_source_set("video_quality_test_fixture_api") {
190 visibility = [ "*" ]
191 testonly = true
192 sources = [
193 "test/video_quality_test_fixture.h",
194 ]
195 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200196 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200197 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200198 ":network_state_predictor_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200199 ":simulated_network_api",
200 "../call:fake_network",
201 "../call:rtp_interfaces",
202 "../test:test_common",
203 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200204 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200205 "video_codecs:video_codecs_api",
206 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200207}
208
Artem Titovd57628f2019-03-22 12:34:25 +0100209rtc_source_set("video_quality_analyzer_api") {
210 visibility = [ "*" ]
211 testonly = true
212 sources = [
213 "test/video_quality_analyzer_interface.h",
214 ]
215
216 deps = [
217 ":stats_observer_interface",
218 "video:encoded_image",
219 "video:video_frame",
220 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100221 "//third_party/abseil-cpp/absl/types:optional",
222 ]
223}
224
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200225rtc_source_set("track_id_stream_label_map") {
226 visibility = [ "*" ]
227 sources = [
228 "test/track_id_stream_label_map.h",
229 ]
230}
231
Artem Titovd57628f2019-03-22 12:34:25 +0100232rtc_source_set("audio_quality_analyzer_api") {
233 visibility = [ "*" ]
234 testonly = true
235 sources = [
236 "test/audio_quality_analyzer_interface.h",
237 ]
238
239 deps = [
240 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200241 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100242 ]
243}
244
245rtc_source_set("stats_observer_interface") {
246 visibility = [ "*" ]
247 testonly = true
248 sources = [
249 "test/stats_observer_interface.h",
250 ]
251
252 deps = [
253 ":libjingle_peerconnection_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100254 ]
255}
256
257rtc_source_set("peer_connection_quality_test_fixture_api") {
258 visibility = [ "*" ]
259 testonly = true
260 sources = [
261 "test/peerconnection_quality_test_fixture.h",
262 ]
263
264 deps = [
265 ":audio_quality_analyzer_api",
266 ":callfactory_api",
267 ":fec_controller_api",
268 ":function_view",
269 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200270 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100271 ":simulated_network_api",
272 ":video_quality_analyzer_api",
273 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200274 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100275 "../rtc_base:rtc_base",
276 "transport:network_control",
277 "units:time_delta",
278 "video_codecs:video_codecs_api",
279 "//third_party/abseil-cpp/absl/memory",
280 "//third_party/abseil-cpp/absl/types:optional",
281 ]
282}
283
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200284rtc_source_set("test_dependency_factory") {
285 visibility = [ "*" ]
286 testonly = true
287 sources = [
288 "test/test_dependency_factory.cc",
289 "test/test_dependency_factory.h",
290 ]
291 deps = [
292 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100293 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200294 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900295 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200296 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200297}
298
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200299if (rtc_include_tests) {
300 rtc_source_set("create_video_quality_test_fixture_api") {
301 visibility = [ "*" ]
302 testonly = true
303 sources = [
304 "test/create_video_quality_test_fixture.cc",
305 "test/create_video_quality_test_fixture.h",
306 ]
307 deps = [
308 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200309 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100310 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200311 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200312 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200313 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200314 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200315 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100316
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100317 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100318 visibility = [ "*" ]
319 testonly = true
320 sources = [
321 "test/create_network_emulation_manager.cc",
322 "test/create_network_emulation_manager.h",
323 ]
324 deps = [
325 ":network_emulation_manager_api",
326 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100327 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100328 ]
329 }
Artem Titovd57628f2019-03-22 12:34:25 +0100330
331 rtc_source_set("create_peerconnection_quality_test_fixture") {
332 visibility = [ "*" ]
333 testonly = true
334 sources = [
335 "test/create_peerconnection_quality_test_fixture.cc",
336 "test/create_peerconnection_quality_test_fixture.h",
337 ]
338
339 deps = [
340 ":audio_quality_analyzer_api",
341 ":peer_connection_quality_test_fixture_api",
342 ":video_quality_analyzer_api",
343 "../test/pc/e2e:peerconnection_quality_test",
344 "//third_party/abseil-cpp/absl/memory",
345 ]
346 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200347}
348
Elad Alon80810732017-10-06 13:07:32 +0200349rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000350 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200351 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800352 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200353 ]
354}
355
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200356rtc_source_set("rtc_event_log_output_file") {
357 visibility = [ "*" ]
358 sources = [
359 "rtc_event_log_output_file.cc",
360 "rtc_event_log_output_file.h",
361 ]
362
363 deps = [
364 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200365 "../rtc_base:checks",
366 "../rtc_base:rtc_base_approved",
367 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200368 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200369 ]
370}
371
hbos74e1a4f2016-09-15 23:33:01 -0700372rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000373 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700374 cflags = []
375 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800376 "stats/rtc_stats.h",
377 "stats/rtc_stats_collector_callback.h",
378 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700379 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700380 ]
381
382 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100383 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100384 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700385 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200386 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700387 ]
388}
389
Niels Möllera6fe2612018-01-19 11:28:54 +0100390rtc_source_set("audio_options_api") {
391 visibility = [ "*" ]
392 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200393 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100394 "audio_options.h",
395 ]
396
397 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100398 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200399 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200400 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100401 ]
402}
403
aleloia8eb7562016-11-28 07:02:13 -0800404rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000405 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800406 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100407 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800408 "call/transport.h",
409 ]
410}
nisseb2250e52016-12-02 04:01:14 -0800411
Sebastian Jansson6736df12018-11-21 19:18:39 +0100412rtc_source_set("bitrate_allocation") {
413 visibility = [ "*" ]
414 sources = [
415 "call/bitrate_allocation.h",
416 ]
417 deps = [
418 "units:data_rate",
419 "units:time_delta",
420 ]
421}
422
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200423rtc_source_set("simulated_network_api") {
424 visibility = [ "*" ]
425 sources = [
426 "test/simulated_network.h",
427 ]
428 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100429 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200430 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200431 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200432 ]
433}
434
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100435rtc_source_set("network_emulation_manager_api") {
436 visibility = [ "*" ]
437 sources = [
438 "test/network_emulation_manager.h",
439 ]
440 deps = [
441 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100442 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200443 "units:data_rate",
444 "units:data_size",
445 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100446 ]
447}
448
Ying Wang3b790f32018-01-19 17:58:57 +0100449rtc_source_set("fec_controller_api") {
450 visibility = [ "*" ]
451 sources = [
452 "fec_controller.h",
453 ]
454
455 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100456 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100457 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100458 ]
459}
460
Ying Wang0810a7c2019-04-10 13:48:24 +0200461rtc_source_set("network_state_predictor_api") {
462 visibility = [ "*" ]
463 sources = [
464 "network_state_predictor.h",
465 ]
466}
467
kwiberg529662a2017-09-04 05:43:17 -0700468rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000469 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700470 sources = [
471 "array_view.h",
472 ]
473 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100474 "../rtc_base:checks",
475 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700476 ]
477}
478
Niels Möller9155e492017-10-23 11:22:30 +0200479rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000480 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200481 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800482 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200483 ]
484 deps = [
485 "../rtc_base:rtc_base_approved",
486 ]
487}
488
Harald Alvestrand98462622019-01-30 14:57:03 +0100489rtc_source_set("ice_transport_factory") {
490 visibility = [ "*" ]
491 sources = [
492 "ice_transport_factory.cc",
493 "ice_transport_factory.h",
494 ]
495 deps = [
496 ":libjingle_peerconnection_api",
497 ":scoped_refptr",
498 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100499 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200500 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100501 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100502 ]
503}
504
Ivo Creusen55de08e2018-09-03 11:49:27 +0200505rtc_source_set("neteq_simulator_api") {
506 visibility = [ "*" ]
507 sources = [
508 "test/neteq_simulator.cc",
509 "test/neteq_simulator.h",
510 ]
511}
512
Artem Titov741daaf2019-03-21 14:37:36 +0100513rtc_source_set("function_view") {
514 visibility = [ "*" ]
515 sources = [
516 "function_view.h",
517 ]
518 deps = [
519 "../rtc_base:checks",
520 ]
521}
522
kjellanderfd5b4e92016-06-13 12:08:33 -0700523if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100524 if (rtc_enable_protobuf) {
525 rtc_source_set("audioproc_f_api") {
526 visibility = [ "*" ]
527 testonly = true
528 sources = [
529 "test/audioproc_float.cc",
530 "test/audioproc_float.h",
531 ]
532
533 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100534 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000535 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100536 "../modules/audio_processing:audioproc_f_impl",
537 ]
538 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200539
540 rtc_source_set("neteq_simulator_factory") {
541 visibility = [ "*" ]
542 testonly = true
543 sources = [
544 "test/neteq_simulator_factory.cc",
545 "test/neteq_simulator_factory.h",
546 ]
547 deps = [
548 ":neteq_simulator_api",
549 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200550 "../rtc_base:checks",
551 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200552 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100553 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200554 ]
555 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100556 }
557
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200558 rtc_source_set("simulcast_test_fixture_api") {
559 visibility = [ "*" ]
560 testonly = true
561 sources = [
562 "test/simulcast_test_fixture.h",
563 ]
564 }
565
566 rtc_source_set("create_simulcast_test_fixture_api") {
567 visibility = [ "*" ]
568 testonly = true
569 sources = [
570 "test/create_simulcast_test_fixture.cc",
571 "test/create_simulcast_test_fixture.h",
572 ]
573 deps = [
574 ":simulcast_test_fixture_api",
575 "../modules/video_coding:simulcast_test_fixture_impl",
576 "../rtc_base:rtc_base_approved",
577 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200578 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200579 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200580 }
581
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200582 rtc_source_set("videocodec_test_fixture_api") {
583 visibility = [ "*" ]
584 testonly = true
585 sources = [
586 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200587 "test/videocodec_test_stats.cc",
588 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200589 ]
590 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200591 "..:webrtc_common",
592 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200593 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100594 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200595 "video_codecs:video_codecs_api",
596 ]
597 }
598
599 rtc_source_set("create_videocodec_test_fixture_api") {
600 visibility = [ "*" ]
601 testonly = true
602 sources = [
603 "test/create_videocodec_test_fixture.cc",
604 "test/create_videocodec_test_fixture.h",
605 ]
606 deps = [
607 ":videocodec_test_fixture_api",
608 "../modules/video_coding:video_codecs_test_framework",
609 "../modules/video_coding:videocodec_test_impl",
610 "../rtc_base:rtc_base_approved",
611 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200612 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200613 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200614 }
615
kjellander2f6af9c2017-03-02 22:26:23 -0800616 rtc_source_set("mock_audio_mixer") {
617 testonly = true
618 sources = [
619 "test/mock_audio_mixer.h",
620 ]
621
kjellander2f6af9c2017-03-02 22:26:23 -0800622 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700623 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100624 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800625 ]
626 }
627
Benjamin Wright78410ad2018-10-25 09:52:57 -0700628 rtc_source_set("mock_frame_encryptor") {
629 testonly = true
630 sources = [
631 "test/mock_frame_encryptor.cc",
632 "test/mock_frame_encryptor.h",
633 ]
634 deps = [
635 ":libjingle_peerconnection_api",
636 "../test:test_support",
637 ]
638 }
639
640 rtc_source_set("mock_frame_decryptor") {
641 testonly = true
642 sources = [
643 "test/mock_frame_decryptor.cc",
644 "test/mock_frame_decryptor.h",
645 ]
646 deps = [
647 ":libjingle_peerconnection_api",
648 "../test:test_support",
649 ]
650 }
651
652 rtc_source_set("fake_frame_encryptor") {
653 testonly = true
654 sources = [
655 "test/fake_frame_encryptor.cc",
656 "test/fake_frame_encryptor.h",
657 ]
658 deps = [
659 ":array_view",
660 ":libjingle_peerconnection_api",
661 "..:webrtc_common",
662 "../rtc_base:checks",
663 "../rtc_base:rtc_base_approved",
664 ]
665 }
666
667 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700668 testonly = true
669 sources = [
670 "test/fake_frame_decryptor.cc",
671 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700672 ]
673 deps = [
674 ":array_view",
675 ":libjingle_peerconnection_api",
676 "..:webrtc_common",
677 "../rtc_base:checks",
678 "../rtc_base:rtc_base_approved",
679 ]
680 }
681
Jiawei Ou651b92e2018-06-29 15:46:44 -0700682 rtc_source_set("mock_peerconnectioninterface") {
683 testonly = true
684 sources = [
685 "test/mock_peerconnectioninterface.h",
686 ]
687
688 deps = [
689 ":libjingle_peerconnection_api",
690 "../test:test_support",
691 ]
692 }
693
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100694 rtc_source_set("mock_rtp") {
695 testonly = true
696 sources = [
697 "test/mock_rtpreceiver.h",
698 "test/mock_rtpsender.h",
699 ]
700
701 deps = [
702 ":libjingle_peerconnection_api",
703 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100704 ]
705 }
706
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700707 rtc_source_set("mock_video_bitrate_allocator") {
708 testonly = true
709 sources = [
710 "test/mock_video_bitrate_allocator.h",
711 ]
712
713 deps = [
714 "../api/video:video_bitrate_allocator",
715 "../test:test_support",
716 ]
717 }
718
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800719 rtc_source_set("mock_video_bitrate_allocator_factory") {
720 testonly = true
721 sources = [
722 "test/mock_video_bitrate_allocator_factory.h",
723 ]
724
725 deps = [
726 "../api/video:video_bitrate_allocator_factory",
727 "../test:test_support",
728 ]
729 }
730
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700731 rtc_source_set("mock_video_codec_factory") {
732 testonly = true
733 sources = [
734 "test/mock_video_decoder_factory.h",
735 "test/mock_video_encoder_factory.h",
736 ]
737
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700738 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100739 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700740 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700741 ]
742 }
743
Erik Språngc84cd952018-10-15 11:55:13 +0200744 rtc_source_set("mock_video_decoder") {
745 visibility = [ "*" ]
746
747 testonly = true
748 sources = [
749 "test/mock_video_decoder.cc",
750 "test/mock_video_decoder.h",
751 ]
752
753 deps = [
754 "../api/video_codecs:video_codecs_api",
755 "../test:test_support",
756 ]
757 }
758
Erik Språng6af1c922018-10-12 10:01:30 +0200759 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200760 visibility = [ "*" ]
761
Erik Språng6af1c922018-10-12 10:01:30 +0200762 testonly = true
763 sources = [
764 "test/mock_video_encoder.cc",
765 "test/mock_video_encoder.h",
766 ]
767
768 deps = [
769 "../api/video_codecs:video_codecs_api",
770 "../test:test_support",
771 ]
772 }
773
Anton Sukhanov7940da02018-10-10 10:34:49 -0700774 rtc_source_set("fake_media_transport") {
775 testonly = true
776
777 sources = [
778 "test/fake_media_transport.h",
779 ]
780
781 deps = [
782 ":libjingle_peerconnection_api",
783 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700784 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100785 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700786 ]
787 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200788
789 rtc_source_set("loopback_media_transport") {
790 testonly = true
791
792 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100793 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200794 "test/loopback_media_transport.h",
795 ]
796
797 deps = [
798 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100799 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200800 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700801 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100802 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200803 ]
804 }
805
806 rtc_source_set("rtc_api_unittests") {
807 testonly = true
808
809 sources = [
810 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100811 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800812 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200813 "rtc_event_log_output_file_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800814 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200815 "test/loopback_media_transport_unittest.cc",
816 ]
817
Niels Möller2e47f7c2018-10-16 10:41:42 +0200818 deps = [
819 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100820 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200821 ":libjingle_peerconnection_api",
822 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200823 ":rtc_event_log_output_file",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200824 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100825 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200826 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200827 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200828 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100829 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200830 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200831 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200832 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200833 ]
834 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100835
836 rtc_source_set("compile_all_headers") {
837 testonly = true
838
839 sources = [
840 "test/compile_all_headers.cc",
841 ]
842
843 deps = [
844 ":fake_frame_decryptor",
845 ":fake_frame_encryptor",
846 ":fake_media_transport",
847 ":loopback_media_transport",
848 ":mock_audio_mixer",
849 ":mock_frame_decryptor",
850 ":mock_frame_encryptor",
851 ":mock_peerconnectioninterface",
852 ":mock_rtp",
853 ":mock_video_bitrate_allocator",
854 ":mock_video_bitrate_allocator_factory",
855 ":mock_video_codec_factory",
856 ":mock_video_decoder",
857 ":mock_video_encoder",
858 ":rtc_api_unittests",
859 "units:units_unittests",
860 ]
861 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700862}