blob: 925f32fc7143de43a85ea335ed61931010b4d49f [file] [log] [blame]
hjonaa32c3e2015-12-13 19:58:11 -08001# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 03:09:32 -070014
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
Dan Minor9c686132018-01-15 10:20:00 -050017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 03:09:32 -070022}
23
ehmaldonado38a21322016-09-02 04:10:34 -070024rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000025 visibility = [ "*" ]
kjellandera69d9732016-08-31 07:33:05 -070026 sources = [
kjellandera69d9732016-08-31 07:33:05 -070027 "call/audio_sink.h",
kjellandera69d9732016-08-31 07:33:05 -070028 ]
kjellandera69d9732016-08-31 07:33:05 -070029}
30
Niels Möller8366e172018-02-14 12:20:13 +010031rtc_source_set("callfactory_api") {
32 visibility = [ "*" ]
33 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080034 "call/call_factory_interface.h",
Niels Möller8366e172018-02-14 12:20:13 +010035 ]
36}
37
Danil Chapovalov5bf58062019-06-18 16:43:37 +020038if (!build_with_chromium) {
39 rtc_static_library("create_peerconnection_factory") {
40 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +020041 allow_poison = [ "default_task_queue" ]
Danil Chapovalov5bf58062019-06-18 16:43:37 +020042 sources = [
43 "create_peerconnection_factory.cc",
44 "create_peerconnection_factory.h",
45 ]
46 deps = [
47 ":callfactory_api",
48 ":libjingle_peerconnection_api",
49 ":scoped_refptr",
50 "../api/rtc_event_log:rtc_event_log_factory",
51 "../media:rtc_audio_video",
52 "../media:rtc_media_base",
53 "../modules/audio_device:audio_device_api",
54 "../modules/audio_processing:api",
55 "../pc:peerconnection",
56 "../rtc_base",
57 "../rtc_base:rtc_base_approved",
58 "audio:audio_mixer_api",
59 "audio_codecs:audio_codecs_api",
60 "task_queue:default_task_queue_factory",
61 "video_codecs:video_codecs_api",
62 "//third_party/abseil-cpp/absl/memory",
63 ]
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",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020076 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020077 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010078 "//third_party/abseil-cpp/absl/types:optional",
79 ]
Niels Möllerb8389522019-03-19 14:27:03 +010080}
81
Chen Xingd2a66862019-06-03 14:53:42 +020082rtc_source_set("rtp_packet_info") {
83 visibility = [ "*" ]
84 sources = [
85 "rtp_packet_info.cc",
86 "rtp_packet_info.h",
87 "rtp_packet_infos.h",
88 ]
89 deps = [
90 ":array_view",
91 ":refcountedbase",
92 ":rtp_headers",
93 ":scoped_refptr",
94 "..:webrtc_common",
Chen Xinge08648d2019-08-05 16:29:13 +020095 "../rtc_base:deprecation",
Chen Xingd2a66862019-06-03 14:53:42 +020096 "../rtc_base:rtc_base_approved",
97 "//third_party/abseil-cpp/absl/types:optional",
98 ]
99}
100
ossu7bb87ee2017-01-23 04:56:25 -0800101rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000102 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700103 cflags = []
104 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800105 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200106 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -0700107 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200108 "candidate.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700109 "congestion_control_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800110 "crypto/crypto_options.cc",
111 "crypto/crypto_options.h",
112 "crypto/frame_decryptor_interface.h",
113 "crypto/frame_encryptor_interface.h",
114 "crypto_params.h",
115 "data_channel_interface.cc",
116 "data_channel_interface.h",
Bjorn A Mellem05497f22019-08-01 10:48:20 -0700117 "data_channel_transport_interface.cc",
118 "data_channel_transport_interface.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700119 "datagram_transport_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200120 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800121 "dtls_transport_interface.h",
122 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100123 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800124 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700125 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800126 "jsep_ice_candidate.cc",
127 "jsep_ice_candidate.h",
128 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800129 "media_stream_interface.cc",
130 "media_stream_interface.h",
131 "media_stream_proxy.h",
132 "media_stream_track_proxy.h",
Anton Sukhanov4f08faa2019-05-21 11:12:57 -0700133 "media_transport_config.cc",
134 "media_transport_config.h",
Niels Möller3a742392018-10-08 11:13:58 +0200135 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400136 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700137 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800138 "peer_connection_factory_proxy.h",
139 "peer_connection_interface.cc",
140 "peer_connection_interface.h",
141 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700142 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700143 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800144 "rtc_error.cc",
145 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800146 "rtp_receiver_interface.cc",
147 "rtp_receiver_interface.h",
148 "rtp_sender_interface.cc",
149 "rtp_sender_interface.h",
150 "rtp_transceiver_interface.cc",
151 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100152 "sctp_transport_interface.cc",
153 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800154 "set_remote_description_observer_interface.h",
155 "stats_types.cc",
156 "stats_types.h",
157 "turn_customizer.h",
158 "uma_metrics.h",
159 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700160 ]
kjellanderc76dc952016-06-03 03:09:32 -0700161 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100162 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100163 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100164 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100165 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100166 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200167 ":network_state_predictor_api",
hbos74e1a4f2016-09-15 23:33:01 -0700168 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200169 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200170 ":rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100171 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100172 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100173 "audio_codecs:audio_codecs_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200174 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200175 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200176 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200177 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100178 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100179 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800180 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700181 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200182 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200183 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200184 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800185 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700186 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800187 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200188 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100189
190 # Basically, don't add stuff here. You might break sensitive downstream
191 # targets like pnacl. API should not depend on anything outside of this
192 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700193 "..:webrtc_common",
Niels Möller6daa2782018-01-23 10:37:42 +0100194 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100195 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100196 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100197 "../rtc_base:checks",
198 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700199 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200200 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700201 ]
ossu7bb87ee2017-01-23 04:56:25 -0800202}
kjellanderc76dc952016-06-03 03:09:32 -0700203
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100204rtc_source_set("scoped_refptr") {
205 visibility = [ "*" ]
206 sources = [
207 "scoped_refptr.h",
208 ]
209}
210
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200211rtc_source_set("video_quality_test_fixture_api") {
212 visibility = [ "*" ]
213 testonly = true
214 sources = [
215 "test/video_quality_test_fixture.h",
216 ]
217 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200218 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200219 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200220 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200221 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200222 ":simulated_network_api",
223 "../call:fake_network",
224 "../call:rtp_interfaces",
225 "../test:test_common",
226 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200227 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200228 "video_codecs:video_codecs_api",
229 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200230}
231
Artem Titovd57628f2019-03-22 12:34:25 +0100232rtc_source_set("video_quality_analyzer_api") {
233 visibility = [ "*" ]
234 testonly = true
235 sources = [
236 "test/video_quality_analyzer_interface.h",
237 ]
238
239 deps = [
240 ":stats_observer_interface",
241 "video:encoded_image",
242 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200243 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100244 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100245 "//third_party/abseil-cpp/absl/types:optional",
246 ]
247}
248
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200249rtc_source_set("track_id_stream_label_map") {
250 visibility = [ "*" ]
251 sources = [
252 "test/track_id_stream_label_map.h",
253 ]
254}
255
Niels Möller184b4af2019-08-23 13:33:50 +0200256rtc_source_set("rtp_parameters") {
257 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200258 sources = [
259 "media_types.cc",
260 "media_types.h",
261 "rtp_parameters.cc",
262 "rtp_parameters.h",
263 ]
264 deps = [
265 ":array_view",
266 "../rtc_base:checks",
267 "../rtc_base:stringutils",
268 "../rtc_base/system:rtc_export",
269 "//third_party/abseil-cpp/absl/types:optional",
270 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200271}
272
Artem Titovd57628f2019-03-22 12:34:25 +0100273rtc_source_set("audio_quality_analyzer_api") {
274 visibility = [ "*" ]
275 testonly = true
276 sources = [
277 "test/audio_quality_analyzer_interface.h",
278 ]
279
280 deps = [
281 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200282 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100283 ]
284}
285
286rtc_source_set("stats_observer_interface") {
287 visibility = [ "*" ]
288 testonly = true
289 sources = [
290 "test/stats_observer_interface.h",
291 ]
292
293 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200294 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100295 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200296 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100297 ]
298}
299
300rtc_source_set("peer_connection_quality_test_fixture_api") {
301 visibility = [ "*" ]
302 testonly = true
303 sources = [
304 "test/peerconnection_quality_test_fixture.h",
305 ]
306
307 deps = [
308 ":audio_quality_analyzer_api",
309 ":callfactory_api",
310 ":fec_controller_api",
311 ":function_view",
312 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200313 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100314 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200315 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100316 ":video_quality_analyzer_api",
317 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200318 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100319 "../rtc_base:rtc_base",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200320 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100321 "transport:network_control",
322 "units:time_delta",
323 "video_codecs:video_codecs_api",
324 "//third_party/abseil-cpp/absl/memory",
325 "//third_party/abseil-cpp/absl/types:optional",
326 ]
327}
328
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200329rtc_source_set("test_dependency_factory") {
330 visibility = [ "*" ]
331 testonly = true
332 sources = [
333 "test/test_dependency_factory.cc",
334 "test/test_dependency_factory.h",
335 ]
336 deps = [
337 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100338 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200339 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900340 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200341 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200342}
343
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200344if (rtc_include_tests) {
345 rtc_source_set("create_video_quality_test_fixture_api") {
346 visibility = [ "*" ]
347 testonly = true
348 sources = [
349 "test/create_video_quality_test_fixture.cc",
350 "test/create_video_quality_test_fixture.h",
351 ]
352 deps = [
353 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200354 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100355 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200356 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200357 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200358 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200359 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200360 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100361
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100362 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100363 visibility = [ "*" ]
364 testonly = true
365 sources = [
366 "test/create_network_emulation_manager.cc",
367 "test/create_network_emulation_manager.h",
368 ]
369 deps = [
370 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200371 "../test/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100372 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100373 ]
374 }
Artem Titovd57628f2019-03-22 12:34:25 +0100375
376 rtc_source_set("create_peerconnection_quality_test_fixture") {
377 visibility = [ "*" ]
378 testonly = true
379 sources = [
380 "test/create_peerconnection_quality_test_fixture.cc",
381 "test/create_peerconnection_quality_test_fixture.h",
382 ]
383
384 deps = [
385 ":audio_quality_analyzer_api",
386 ":peer_connection_quality_test_fixture_api",
387 ":video_quality_analyzer_api",
388 "../test/pc/e2e:peerconnection_quality_test",
389 "//third_party/abseil-cpp/absl/memory",
390 ]
391 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200392}
393
Elad Alon80810732017-10-06 13:07:32 +0200394rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000395 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200396 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800397 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200398 ]
399}
400
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200401rtc_source_set("rtc_event_log_output_file") {
402 visibility = [ "*" ]
403 sources = [
404 "rtc_event_log_output_file.cc",
405 "rtc_event_log_output_file.h",
406 ]
407
408 deps = [
409 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200410 "../rtc_base:checks",
411 "../rtc_base:rtc_base_approved",
412 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200413 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200414 ]
415}
416
hbos74e1a4f2016-09-15 23:33:01 -0700417rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000418 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700419 cflags = []
420 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800421 "stats/rtc_stats.h",
422 "stats/rtc_stats_collector_callback.h",
423 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700424 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700425 ]
426
427 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100428 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100429 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700430 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200431 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700432 ]
433}
434
Niels Möllera6fe2612018-01-19 11:28:54 +0100435rtc_source_set("audio_options_api") {
436 visibility = [ "*" ]
437 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200438 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100439 "audio_options.h",
440 ]
441
442 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100443 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200444 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200445 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100446 ]
447}
448
aleloia8eb7562016-11-28 07:02:13 -0800449rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000450 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800451 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100452 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800453 "call/transport.h",
454 ]
455}
nisseb2250e52016-12-02 04:01:14 -0800456
Sebastian Jansson6736df12018-11-21 19:18:39 +0100457rtc_source_set("bitrate_allocation") {
458 visibility = [ "*" ]
459 sources = [
460 "call/bitrate_allocation.h",
461 ]
462 deps = [
463 "units:data_rate",
464 "units:time_delta",
465 ]
466}
467
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200468rtc_source_set("simulated_network_api") {
469 visibility = [ "*" ]
470 sources = [
471 "test/simulated_network.h",
472 ]
473 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100474 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200475 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200476 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200477 ]
478}
479
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100480rtc_source_set("network_emulation_manager_api") {
481 visibility = [ "*" ]
482 sources = [
483 "test/network_emulation_manager.h",
484 ]
485 deps = [
486 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100487 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200488 "units:data_rate",
489 "units:data_size",
490 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100491 ]
492}
493
Ying Wang3b790f32018-01-19 17:58:57 +0100494rtc_source_set("fec_controller_api") {
495 visibility = [ "*" ]
496 sources = [
497 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200498 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100499 ]
500
501 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100502 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100503 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100504 ]
505}
506
Ying Wang0810a7c2019-04-10 13:48:24 +0200507rtc_source_set("network_state_predictor_api") {
508 visibility = [ "*" ]
509 sources = [
510 "network_state_predictor.h",
511 ]
512}
513
kwiberg529662a2017-09-04 05:43:17 -0700514rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000515 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700516 sources = [
517 "array_view.h",
518 ]
519 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100520 "../rtc_base:checks",
521 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700522 ]
523}
524
Niels Möller9155e492017-10-23 11:22:30 +0200525rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000526 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200527 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800528 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200529 ]
530 deps = [
531 "../rtc_base:rtc_base_approved",
532 ]
533}
534
Harald Alvestrand98462622019-01-30 14:57:03 +0100535rtc_source_set("ice_transport_factory") {
536 visibility = [ "*" ]
537 sources = [
538 "ice_transport_factory.cc",
539 "ice_transport_factory.h",
540 ]
541 deps = [
542 ":libjingle_peerconnection_api",
543 ":scoped_refptr",
544 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100545 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200546 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700547 "rtc_event_log:rtc_event_log",
Artem Titov533a9fe2019-03-21 12:18:05 +0100548 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100549 ]
550}
551
Ivo Creusen55de08e2018-09-03 11:49:27 +0200552rtc_source_set("neteq_simulator_api") {
553 visibility = [ "*" ]
554 sources = [
555 "test/neteq_simulator.cc",
556 "test/neteq_simulator.h",
557 ]
558}
559
Artem Titov741daaf2019-03-21 14:37:36 +0100560rtc_source_set("function_view") {
561 visibility = [ "*" ]
562 sources = [
563 "function_view.h",
564 ]
565 deps = [
566 "../rtc_base:checks",
567 ]
568}
569
kjellanderfd5b4e92016-06-13 12:08:33 -0700570if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100571 if (rtc_enable_protobuf) {
572 rtc_source_set("audioproc_f_api") {
573 visibility = [ "*" ]
574 testonly = true
575 sources = [
576 "test/audioproc_float.cc",
577 "test/audioproc_float.h",
578 ]
579
580 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100581 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000582 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100583 "../modules/audio_processing:audioproc_f_impl",
584 ]
585 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200586
587 rtc_source_set("neteq_simulator_factory") {
588 visibility = [ "*" ]
589 testonly = true
590 sources = [
591 "test/neteq_simulator_factory.cc",
592 "test/neteq_simulator_factory.h",
593 ]
594 deps = [
595 ":neteq_simulator_api",
596 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200597 "../rtc_base:checks",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200598 "//third_party/abseil-cpp/absl/flags:flag",
599 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200600 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100601 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200602 ]
603 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100604 }
605
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200606 rtc_source_set("simulcast_test_fixture_api") {
607 visibility = [ "*" ]
608 testonly = true
609 sources = [
610 "test/simulcast_test_fixture.h",
611 ]
612 }
613
614 rtc_source_set("create_simulcast_test_fixture_api") {
615 visibility = [ "*" ]
616 testonly = true
617 sources = [
618 "test/create_simulcast_test_fixture.cc",
619 "test/create_simulcast_test_fixture.h",
620 ]
621 deps = [
622 ":simulcast_test_fixture_api",
623 "../modules/video_coding:simulcast_test_fixture_impl",
624 "../rtc_base:rtc_base_approved",
625 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200626 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200627 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200628 }
629
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200630 rtc_source_set("videocodec_test_fixture_api") {
631 visibility = [ "*" ]
632 testonly = true
633 sources = [
634 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200635 "test/videocodec_test_stats.cc",
636 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200637 ]
638 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200639 "..:webrtc_common",
640 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200641 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100642 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200643 "video_codecs:video_codecs_api",
644 ]
645 }
646
647 rtc_source_set("create_videocodec_test_fixture_api") {
648 visibility = [ "*" ]
649 testonly = true
650 sources = [
651 "test/create_videocodec_test_fixture.cc",
652 "test/create_videocodec_test_fixture.h",
653 ]
654 deps = [
655 ":videocodec_test_fixture_api",
656 "../modules/video_coding:video_codecs_test_framework",
657 "../modules/video_coding:videocodec_test_impl",
658 "../rtc_base:rtc_base_approved",
659 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200660 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200661 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200662 }
663
kjellander2f6af9c2017-03-02 22:26:23 -0800664 rtc_source_set("mock_audio_mixer") {
665 testonly = true
666 sources = [
667 "test/mock_audio_mixer.h",
668 ]
669
kjellander2f6af9c2017-03-02 22:26:23 -0800670 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700671 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100672 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800673 ]
674 }
675
Elad Alon45befc52019-07-02 11:20:09 +0200676 rtc_source_set("mock_fec_controller_override") {
677 testonly = true
678 sources = [
679 "test/mock_fec_controller_override.h",
680 ]
681 deps = [
682 ":fec_controller_api",
683 "../test:test_support",
684 ]
685 }
686
Benjamin Wright78410ad2018-10-25 09:52:57 -0700687 rtc_source_set("mock_frame_encryptor") {
688 testonly = true
689 sources = [
690 "test/mock_frame_encryptor.cc",
691 "test/mock_frame_encryptor.h",
692 ]
693 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200694 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700695 ":libjingle_peerconnection_api",
696 "../test:test_support",
697 ]
698 }
699
700 rtc_source_set("mock_frame_decryptor") {
701 testonly = true
702 sources = [
703 "test/mock_frame_decryptor.cc",
704 "test/mock_frame_decryptor.h",
705 ]
706 deps = [
707 ":libjingle_peerconnection_api",
708 "../test:test_support",
709 ]
710 }
711
712 rtc_source_set("fake_frame_encryptor") {
713 testonly = true
714 sources = [
715 "test/fake_frame_encryptor.cc",
716 "test/fake_frame_encryptor.h",
717 ]
718 deps = [
719 ":array_view",
720 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200721 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700722 "..:webrtc_common",
723 "../rtc_base:checks",
724 "../rtc_base:rtc_base_approved",
725 ]
726 }
727
728 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700729 testonly = true
730 sources = [
731 "test/fake_frame_decryptor.cc",
732 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700733 ]
734 deps = [
735 ":array_view",
736 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200737 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700738 "..:webrtc_common",
739 "../rtc_base:checks",
740 "../rtc_base:rtc_base_approved",
741 ]
742 }
743
Jiawei Ou651b92e2018-06-29 15:46:44 -0700744 rtc_source_set("mock_peerconnectioninterface") {
745 testonly = true
746 sources = [
747 "test/mock_peerconnectioninterface.h",
748 ]
749
750 deps = [
751 ":libjingle_peerconnection_api",
752 "../test:test_support",
753 ]
754 }
755
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100756 rtc_source_set("mock_rtp") {
757 testonly = true
758 sources = [
759 "test/mock_rtpreceiver.h",
760 "test/mock_rtpsender.h",
761 ]
762
763 deps = [
764 ":libjingle_peerconnection_api",
765 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100766 ]
767 }
768
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700769 rtc_source_set("mock_video_bitrate_allocator") {
770 testonly = true
771 sources = [
772 "test/mock_video_bitrate_allocator.h",
773 ]
774
775 deps = [
776 "../api/video:video_bitrate_allocator",
777 "../test:test_support",
778 ]
779 }
780
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800781 rtc_source_set("mock_video_bitrate_allocator_factory") {
782 testonly = true
783 sources = [
784 "test/mock_video_bitrate_allocator_factory.h",
785 ]
786
787 deps = [
788 "../api/video:video_bitrate_allocator_factory",
789 "../test:test_support",
790 ]
791 }
792
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700793 rtc_source_set("mock_video_codec_factory") {
794 testonly = true
795 sources = [
796 "test/mock_video_decoder_factory.h",
797 "test/mock_video_encoder_factory.h",
798 ]
799
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700800 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100801 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700802 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700803 ]
804 }
805
Erik Språngc84cd952018-10-15 11:55:13 +0200806 rtc_source_set("mock_video_decoder") {
807 visibility = [ "*" ]
808
809 testonly = true
810 sources = [
811 "test/mock_video_decoder.cc",
812 "test/mock_video_decoder.h",
813 ]
814
815 deps = [
816 "../api/video_codecs:video_codecs_api",
817 "../test:test_support",
818 ]
819 }
820
Erik Språng6af1c922018-10-12 10:01:30 +0200821 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200822 visibility = [ "*" ]
823
Erik Språng6af1c922018-10-12 10:01:30 +0200824 testonly = true
825 sources = [
826 "test/mock_video_encoder.cc",
827 "test/mock_video_encoder.h",
828 ]
829
830 deps = [
831 "../api/video_codecs:video_codecs_api",
832 "../test:test_support",
833 ]
834 }
835
Anton Sukhanov7940da02018-10-10 10:34:49 -0700836 rtc_source_set("fake_media_transport") {
837 testonly = true
838
839 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700840 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700841 "test/fake_media_transport.h",
842 ]
843
844 deps = [
845 ":libjingle_peerconnection_api",
846 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700847 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100848 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700849 ]
850 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200851
852 rtc_source_set("loopback_media_transport") {
853 testonly = true
854
855 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100856 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200857 "test/loopback_media_transport.h",
858 ]
859
860 deps = [
861 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100862 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200863 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700864 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100865 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200866 ]
867 }
868
869 rtc_source_set("rtc_api_unittests") {
870 testonly = true
871
872 sources = [
873 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100874 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800875 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200876 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200877 "rtp_packet_info_unittest.cc",
878 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800879 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200880 "test/loopback_media_transport_unittest.cc",
881 ]
882
Niels Möller2e47f7c2018-10-16 10:41:42 +0200883 deps = [
884 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100885 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200886 ":libjingle_peerconnection_api",
887 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200888 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200889 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200890 ":rtp_parameters",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200891 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100892 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200893 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200894 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200895 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100896 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200897 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200898 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200899 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200900 ]
901 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100902
903 rtc_source_set("compile_all_headers") {
904 testonly = true
905
906 sources = [
907 "test/compile_all_headers.cc",
908 ]
909
910 deps = [
911 ":fake_frame_decryptor",
912 ":fake_frame_encryptor",
913 ":fake_media_transport",
914 ":loopback_media_transport",
915 ":mock_audio_mixer",
916 ":mock_frame_decryptor",
917 ":mock_frame_encryptor",
918 ":mock_peerconnectioninterface",
919 ":mock_rtp",
920 ":mock_video_bitrate_allocator",
921 ":mock_video_bitrate_allocator_factory",
922 ":mock_video_codec_factory",
923 ":mock_video_decoder",
924 ":mock_video_encoder",
925 ":rtc_api_unittests",
926 "units:units_unittests",
927 ]
928 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700929}