blob: 375cf9d2575824cfeee10fe90544ef4d343f3ee1 [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",
Niels Möller3a742392018-10-08 11:13:58 +0200161 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200162 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800163 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800164 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200165 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100166
167 # Basically, don't add stuff here. You might break sensitive downstream
168 # targets like pnacl. API should not depend on anything outside of this
169 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700170 "..:webrtc_common",
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",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200364 "../rtc_base:checks",
365 "../rtc_base:rtc_base_approved",
366 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200367 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200368 ]
369}
370
hbos74e1a4f2016-09-15 23:33:01 -0700371rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000372 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700373 cflags = []
374 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800375 "stats/rtc_stats.h",
376 "stats/rtc_stats_collector_callback.h",
377 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700378 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700379 ]
380
381 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100382 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100383 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700384 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200385 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700386 ]
387}
388
Niels Möllera6fe2612018-01-19 11:28:54 +0100389rtc_source_set("audio_options_api") {
390 visibility = [ "*" ]
391 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200392 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100393 "audio_options.h",
394 ]
395
396 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100397 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200398 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200399 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100400 ]
401}
402
aleloia8eb7562016-11-28 07:02:13 -0800403rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000404 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800405 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100406 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800407 "call/transport.h",
408 ]
409}
nisseb2250e52016-12-02 04:01:14 -0800410
Sebastian Jansson6736df12018-11-21 19:18:39 +0100411rtc_source_set("bitrate_allocation") {
412 visibility = [ "*" ]
413 sources = [
414 "call/bitrate_allocation.h",
415 ]
416 deps = [
417 "units:data_rate",
418 "units:time_delta",
419 ]
420}
421
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200422rtc_source_set("simulated_network_api") {
423 visibility = [ "*" ]
424 sources = [
425 "test/simulated_network.h",
426 ]
427 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100428 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200429 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200430 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200431 ]
432}
433
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100434rtc_source_set("network_emulation_manager_api") {
435 visibility = [ "*" ]
436 sources = [
437 "test/network_emulation_manager.h",
438 ]
439 deps = [
440 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100441 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200442 "units:data_rate",
443 "units:data_size",
444 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100445 ]
446}
447
Ying Wang3b790f32018-01-19 17:58:57 +0100448rtc_source_set("fec_controller_api") {
449 visibility = [ "*" ]
450 sources = [
451 "fec_controller.h",
452 ]
453
454 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100455 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100456 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100457 ]
458}
459
Ying Wang0810a7c2019-04-10 13:48:24 +0200460rtc_source_set("network_state_predictor_api") {
461 visibility = [ "*" ]
462 sources = [
463 "network_state_predictor.h",
464 ]
465}
466
kwiberg529662a2017-09-04 05:43:17 -0700467rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000468 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700469 sources = [
470 "array_view.h",
471 ]
472 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100473 "../rtc_base:checks",
474 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700475 ]
476}
477
Niels Möller9155e492017-10-23 11:22:30 +0200478rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000479 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200480 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800481 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200482 ]
483 deps = [
484 "../rtc_base:rtc_base_approved",
485 ]
486}
487
Harald Alvestrand98462622019-01-30 14:57:03 +0100488rtc_source_set("ice_transport_factory") {
489 visibility = [ "*" ]
490 sources = [
491 "ice_transport_factory.cc",
492 "ice_transport_factory.h",
493 ]
494 deps = [
495 ":libjingle_peerconnection_api",
496 ":scoped_refptr",
497 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100498 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200499 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100500 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100501 ]
502}
503
Ivo Creusen55de08e2018-09-03 11:49:27 +0200504rtc_source_set("neteq_simulator_api") {
505 visibility = [ "*" ]
506 sources = [
507 "test/neteq_simulator.cc",
508 "test/neteq_simulator.h",
509 ]
510}
511
Artem Titov741daaf2019-03-21 14:37:36 +0100512rtc_source_set("function_view") {
513 visibility = [ "*" ]
514 sources = [
515 "function_view.h",
516 ]
517 deps = [
518 "../rtc_base:checks",
519 ]
520}
521
kjellanderfd5b4e92016-06-13 12:08:33 -0700522if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100523 if (rtc_enable_protobuf) {
524 rtc_source_set("audioproc_f_api") {
525 visibility = [ "*" ]
526 testonly = true
527 sources = [
528 "test/audioproc_float.cc",
529 "test/audioproc_float.h",
530 ]
531
532 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100533 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000534 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100535 "../modules/audio_processing:audioproc_f_impl",
536 ]
537 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200538
539 rtc_source_set("neteq_simulator_factory") {
540 visibility = [ "*" ]
541 testonly = true
542 sources = [
543 "test/neteq_simulator_factory.cc",
544 "test/neteq_simulator_factory.h",
545 ]
546 deps = [
547 ":neteq_simulator_api",
548 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200549 "../rtc_base:checks",
550 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200551 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100552 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200553 ]
554 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100555 }
556
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200557 rtc_source_set("simulcast_test_fixture_api") {
558 visibility = [ "*" ]
559 testonly = true
560 sources = [
561 "test/simulcast_test_fixture.h",
562 ]
563 }
564
565 rtc_source_set("create_simulcast_test_fixture_api") {
566 visibility = [ "*" ]
567 testonly = true
568 sources = [
569 "test/create_simulcast_test_fixture.cc",
570 "test/create_simulcast_test_fixture.h",
571 ]
572 deps = [
573 ":simulcast_test_fixture_api",
574 "../modules/video_coding:simulcast_test_fixture_impl",
575 "../rtc_base:rtc_base_approved",
576 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200577 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200578 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200579 }
580
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200581 rtc_source_set("videocodec_test_fixture_api") {
582 visibility = [ "*" ]
583 testonly = true
584 sources = [
585 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200586 "test/videocodec_test_stats.cc",
587 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200588 ]
589 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200590 "..:webrtc_common",
591 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200592 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100593 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200594 "video_codecs:video_codecs_api",
595 ]
596 }
597
598 rtc_source_set("create_videocodec_test_fixture_api") {
599 visibility = [ "*" ]
600 testonly = true
601 sources = [
602 "test/create_videocodec_test_fixture.cc",
603 "test/create_videocodec_test_fixture.h",
604 ]
605 deps = [
606 ":videocodec_test_fixture_api",
607 "../modules/video_coding:video_codecs_test_framework",
608 "../modules/video_coding:videocodec_test_impl",
609 "../rtc_base:rtc_base_approved",
610 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200611 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200612 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200613 }
614
kjellander2f6af9c2017-03-02 22:26:23 -0800615 rtc_source_set("mock_audio_mixer") {
616 testonly = true
617 sources = [
618 "test/mock_audio_mixer.h",
619 ]
620
kjellander2f6af9c2017-03-02 22:26:23 -0800621 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700622 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100623 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800624 ]
625 }
626
Benjamin Wright78410ad2018-10-25 09:52:57 -0700627 rtc_source_set("mock_frame_encryptor") {
628 testonly = true
629 sources = [
630 "test/mock_frame_encryptor.cc",
631 "test/mock_frame_encryptor.h",
632 ]
633 deps = [
634 ":libjingle_peerconnection_api",
635 "../test:test_support",
636 ]
637 }
638
639 rtc_source_set("mock_frame_decryptor") {
640 testonly = true
641 sources = [
642 "test/mock_frame_decryptor.cc",
643 "test/mock_frame_decryptor.h",
644 ]
645 deps = [
646 ":libjingle_peerconnection_api",
647 "../test:test_support",
648 ]
649 }
650
651 rtc_source_set("fake_frame_encryptor") {
652 testonly = true
653 sources = [
654 "test/fake_frame_encryptor.cc",
655 "test/fake_frame_encryptor.h",
656 ]
657 deps = [
658 ":array_view",
659 ":libjingle_peerconnection_api",
660 "..:webrtc_common",
661 "../rtc_base:checks",
662 "../rtc_base:rtc_base_approved",
663 ]
664 }
665
666 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700667 testonly = true
668 sources = [
669 "test/fake_frame_decryptor.cc",
670 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700671 ]
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
Jiawei Ou651b92e2018-06-29 15:46:44 -0700681 rtc_source_set("mock_peerconnectioninterface") {
682 testonly = true
683 sources = [
684 "test/mock_peerconnectioninterface.h",
685 ]
686
687 deps = [
688 ":libjingle_peerconnection_api",
689 "../test:test_support",
690 ]
691 }
692
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100693 rtc_source_set("mock_rtp") {
694 testonly = true
695 sources = [
696 "test/mock_rtpreceiver.h",
697 "test/mock_rtpsender.h",
698 ]
699
700 deps = [
701 ":libjingle_peerconnection_api",
702 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100703 ]
704 }
705
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700706 rtc_source_set("mock_video_bitrate_allocator") {
707 testonly = true
708 sources = [
709 "test/mock_video_bitrate_allocator.h",
710 ]
711
712 deps = [
713 "../api/video:video_bitrate_allocator",
714 "../test:test_support",
715 ]
716 }
717
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800718 rtc_source_set("mock_video_bitrate_allocator_factory") {
719 testonly = true
720 sources = [
721 "test/mock_video_bitrate_allocator_factory.h",
722 ]
723
724 deps = [
725 "../api/video:video_bitrate_allocator_factory",
726 "../test:test_support",
727 ]
728 }
729
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700730 rtc_source_set("mock_video_codec_factory") {
731 testonly = true
732 sources = [
733 "test/mock_video_decoder_factory.h",
734 "test/mock_video_encoder_factory.h",
735 ]
736
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700737 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100738 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700739 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700740 ]
741 }
742
Erik Språngc84cd952018-10-15 11:55:13 +0200743 rtc_source_set("mock_video_decoder") {
744 visibility = [ "*" ]
745
746 testonly = true
747 sources = [
748 "test/mock_video_decoder.cc",
749 "test/mock_video_decoder.h",
750 ]
751
752 deps = [
753 "../api/video_codecs:video_codecs_api",
754 "../test:test_support",
755 ]
756 }
757
Erik Språng6af1c922018-10-12 10:01:30 +0200758 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200759 visibility = [ "*" ]
760
Erik Språng6af1c922018-10-12 10:01:30 +0200761 testonly = true
762 sources = [
763 "test/mock_video_encoder.cc",
764 "test/mock_video_encoder.h",
765 ]
766
767 deps = [
768 "../api/video_codecs:video_codecs_api",
769 "../test:test_support",
770 ]
771 }
772
Anton Sukhanov7940da02018-10-10 10:34:49 -0700773 rtc_source_set("fake_media_transport") {
774 testonly = true
775
776 sources = [
777 "test/fake_media_transport.h",
778 ]
779
780 deps = [
781 ":libjingle_peerconnection_api",
782 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700783 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100784 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700785 ]
786 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200787
788 rtc_source_set("loopback_media_transport") {
789 testonly = true
790
791 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100792 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200793 "test/loopback_media_transport.h",
794 ]
795
796 deps = [
797 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100798 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200799 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700800 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100801 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200802 ]
803 }
804
805 rtc_source_set("rtc_api_unittests") {
806 testonly = true
807
808 sources = [
809 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100810 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800811 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200812 "rtc_event_log_output_file_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800813 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200814 "test/loopback_media_transport_unittest.cc",
815 ]
816
Niels Möller2e47f7c2018-10-16 10:41:42 +0200817 deps = [
818 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100819 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200820 ":libjingle_peerconnection_api",
821 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200822 ":rtc_event_log_output_file",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200823 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100824 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200825 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200826 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200827 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100828 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200829 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200830 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200831 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200832 ]
833 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100834
835 rtc_source_set("compile_all_headers") {
836 testonly = true
837
838 sources = [
839 "test/compile_all_headers.cc",
840 ]
841
842 deps = [
843 ":fake_frame_decryptor",
844 ":fake_frame_encryptor",
845 ":fake_media_transport",
846 ":loopback_media_transport",
847 ":mock_audio_mixer",
848 ":mock_frame_decryptor",
849 ":mock_frame_encryptor",
850 ":mock_peerconnectioninterface",
851 ":mock_rtp",
852 ":mock_video_bitrate_allocator",
853 ":mock_video_bitrate_allocator_factory",
854 ":mock_video_codec_factory",
855 ":mock_video_decoder",
856 ":mock_video_encoder",
857 ":rtc_api_unittests",
858 "units:units_unittests",
859 ]
860 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700861}