blob: 17f6c6cb97792bc59e2e150c1c496433372712d6 [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",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200138 "packet_socket_factory.h",
Steve Anton10542f22019-01-11 09:11:00 -0800139 "peer_connection_factory_proxy.h",
140 "peer_connection_interface.cc",
141 "peer_connection_interface.h",
142 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700143 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700144 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800145 "rtc_error.cc",
146 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800147 "rtp_receiver_interface.cc",
148 "rtp_receiver_interface.h",
149 "rtp_sender_interface.cc",
150 "rtp_sender_interface.h",
151 "rtp_transceiver_interface.cc",
152 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100153 "sctp_transport_interface.cc",
154 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800155 "set_remote_description_observer_interface.h",
156 "stats_types.cc",
157 "stats_types.h",
158 "turn_customizer.h",
159 "uma_metrics.h",
160 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700161 ]
kjellanderc76dc952016-06-03 03:09:32 -0700162 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100163 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100164 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100165 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100166 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100167 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200168 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200169 ":packet_socket_factory",
hbos74e1a4f2016-09-15 23:33:01 -0700170 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200171 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200172 ":rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100173 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100174 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100175 "audio_codecs:audio_codecs_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200176 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200177 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200178 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200179 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100180 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100181 "transport/media:video_interfaces",
Niels Möllera8370302019-09-02 15:16:49 +0200182 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800183 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700184 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200185 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200186 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200187 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800188 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700189 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800190 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200191 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100192
193 # Basically, don't add stuff here. You might break sensitive downstream
194 # targets like pnacl. API should not depend on anything outside of this
195 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700196 "..:webrtc_common",
Niels Möller6daa2782018-01-23 10:37:42 +0100197 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100198 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100199 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100200 "../rtc_base:checks",
201 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700202 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200203 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700204 ]
ossu7bb87ee2017-01-23 04:56:25 -0800205}
kjellanderc76dc952016-06-03 03:09:32 -0700206
Patrik Höglund662e31f2019-09-05 14:35:04 +0200207rtc_source_set("packet_socket_factory") {
208 visibility = [ "*" ]
209 sources = [
210 # TODO(bugs.webrtc.org/7447: remove .h files from the api target once
211 # downstream is updated to use the new target.
212 "async_resolver_factory.h",
213 "packet_socket_factory.h",
214 ]
215 deps = [
216 "../rtc_base:rtc_base",
217 "../rtc_base/system:rtc_export",
218 ]
219}
220
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100221rtc_source_set("scoped_refptr") {
222 visibility = [ "*" ]
223 sources = [
224 "scoped_refptr.h",
225 ]
226}
227
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200228rtc_source_set("video_quality_test_fixture_api") {
229 visibility = [ "*" ]
230 testonly = true
231 sources = [
232 "test/video_quality_test_fixture.h",
233 ]
234 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200235 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200236 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200237 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200238 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200239 ":simulated_network_api",
240 "../call:fake_network",
241 "../call:rtp_interfaces",
242 "../test:test_common",
243 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200244 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200245 "video_codecs:video_codecs_api",
246 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200247}
248
Artem Titovd57628f2019-03-22 12:34:25 +0100249rtc_source_set("video_quality_analyzer_api") {
250 visibility = [ "*" ]
251 testonly = true
252 sources = [
253 "test/video_quality_analyzer_interface.h",
254 ]
255
256 deps = [
257 ":stats_observer_interface",
258 "video:encoded_image",
259 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200260 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100261 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100262 "//third_party/abseil-cpp/absl/types:optional",
263 ]
264}
265
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200266rtc_source_set("track_id_stream_label_map") {
267 visibility = [ "*" ]
268 sources = [
269 "test/track_id_stream_label_map.h",
270 ]
271}
272
Niels Möller184b4af2019-08-23 13:33:50 +0200273rtc_source_set("rtp_parameters") {
274 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200275 sources = [
276 "media_types.cc",
277 "media_types.h",
278 "rtp_parameters.cc",
279 "rtp_parameters.h",
280 ]
281 deps = [
282 ":array_view",
283 "../rtc_base:checks",
284 "../rtc_base:stringutils",
285 "../rtc_base/system:rtc_export",
286 "//third_party/abseil-cpp/absl/types:optional",
287 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200288}
289
Artem Titovd57628f2019-03-22 12:34:25 +0100290rtc_source_set("audio_quality_analyzer_api") {
291 visibility = [ "*" ]
292 testonly = true
293 sources = [
294 "test/audio_quality_analyzer_interface.h",
295 ]
296
297 deps = [
298 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200299 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100300 ]
301}
302
303rtc_source_set("stats_observer_interface") {
304 visibility = [ "*" ]
305 testonly = true
306 sources = [
307 "test/stats_observer_interface.h",
308 ]
309
310 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200311 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100312 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200313 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100314 ]
315}
316
317rtc_source_set("peer_connection_quality_test_fixture_api") {
318 visibility = [ "*" ]
319 testonly = true
320 sources = [
321 "test/peerconnection_quality_test_fixture.h",
322 ]
323
324 deps = [
325 ":audio_quality_analyzer_api",
326 ":callfactory_api",
327 ":fec_controller_api",
328 ":function_view",
329 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200330 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100331 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200332 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100333 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200334 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100335 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200336 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200337 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100338 "transport:network_control",
339 "units:time_delta",
340 "video_codecs:video_codecs_api",
341 "//third_party/abseil-cpp/absl/memory",
342 "//third_party/abseil-cpp/absl/types:optional",
343 ]
344}
345
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200346rtc_source_set("test_dependency_factory") {
347 visibility = [ "*" ]
348 testonly = true
349 sources = [
350 "test/test_dependency_factory.cc",
351 "test/test_dependency_factory.h",
352 ]
353 deps = [
354 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100355 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200356 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900357 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200358 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200359}
360
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200361if (rtc_include_tests) {
362 rtc_source_set("create_video_quality_test_fixture_api") {
363 visibility = [ "*" ]
364 testonly = true
365 sources = [
366 "test/create_video_quality_test_fixture.cc",
367 "test/create_video_quality_test_fixture.h",
368 ]
369 deps = [
370 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200371 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100372 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200373 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200374 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200375 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200376 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200377 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100378
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100379 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100380 visibility = [ "*" ]
381 testonly = true
382 sources = [
383 "test/create_network_emulation_manager.cc",
384 "test/create_network_emulation_manager.h",
385 ]
386 deps = [
387 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200388 "../test/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100389 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100390 ]
391 }
Artem Titovd57628f2019-03-22 12:34:25 +0100392
393 rtc_source_set("create_peerconnection_quality_test_fixture") {
394 visibility = [ "*" ]
395 testonly = true
396 sources = [
397 "test/create_peerconnection_quality_test_fixture.cc",
398 "test/create_peerconnection_quality_test_fixture.h",
399 ]
400
401 deps = [
402 ":audio_quality_analyzer_api",
403 ":peer_connection_quality_test_fixture_api",
404 ":video_quality_analyzer_api",
405 "../test/pc/e2e:peerconnection_quality_test",
406 "//third_party/abseil-cpp/absl/memory",
407 ]
408 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200409}
410
Elad Alon80810732017-10-06 13:07:32 +0200411rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000412 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200413 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800414 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200415 ]
416}
417
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200418rtc_source_set("rtc_event_log_output_file") {
419 visibility = [ "*" ]
420 sources = [
421 "rtc_event_log_output_file.cc",
422 "rtc_event_log_output_file.h",
423 ]
424
425 deps = [
426 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200427 "../rtc_base:checks",
428 "../rtc_base:rtc_base_approved",
429 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200430 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200431 ]
432}
433
hbos74e1a4f2016-09-15 23:33:01 -0700434rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000435 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700436 cflags = []
437 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800438 "stats/rtc_stats.h",
439 "stats/rtc_stats_collector_callback.h",
440 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700441 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700442 ]
443
444 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100445 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100446 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700447 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200448 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700449 ]
450}
451
Niels Möllera6fe2612018-01-19 11:28:54 +0100452rtc_source_set("audio_options_api") {
453 visibility = [ "*" ]
454 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200455 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100456 "audio_options.h",
457 ]
458
459 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100460 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200461 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200462 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100463 ]
464}
465
aleloia8eb7562016-11-28 07:02:13 -0800466rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000467 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800468 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100469 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800470 "call/transport.h",
471 ]
472}
nisseb2250e52016-12-02 04:01:14 -0800473
Sebastian Jansson6736df12018-11-21 19:18:39 +0100474rtc_source_set("bitrate_allocation") {
475 visibility = [ "*" ]
476 sources = [
477 "call/bitrate_allocation.h",
478 ]
479 deps = [
480 "units:data_rate",
481 "units:time_delta",
482 ]
483}
484
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200485rtc_source_set("simulated_network_api") {
486 visibility = [ "*" ]
487 sources = [
488 "test/simulated_network.h",
489 ]
490 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100491 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200492 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200493 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200494 ]
495}
496
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100497rtc_source_set("network_emulation_manager_api") {
498 visibility = [ "*" ]
499 sources = [
500 "test/network_emulation_manager.h",
501 ]
502 deps = [
503 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100504 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200505 "units:data_rate",
506 "units:data_size",
507 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100508 ]
509}
510
Ying Wang3b790f32018-01-19 17:58:57 +0100511rtc_source_set("fec_controller_api") {
512 visibility = [ "*" ]
513 sources = [
514 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200515 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100516 ]
517
518 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100519 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100520 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100521 ]
522}
523
Ying Wang0810a7c2019-04-10 13:48:24 +0200524rtc_source_set("network_state_predictor_api") {
525 visibility = [ "*" ]
526 sources = [
527 "network_state_predictor.h",
528 ]
529}
530
kwiberg529662a2017-09-04 05:43:17 -0700531rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000532 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700533 sources = [
534 "array_view.h",
535 ]
536 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100537 "../rtc_base:checks",
538 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700539 ]
540}
541
Niels Möller9155e492017-10-23 11:22:30 +0200542rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000543 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200544 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800545 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200546 ]
547 deps = [
548 "../rtc_base:rtc_base_approved",
549 ]
550}
551
Harald Alvestrand98462622019-01-30 14:57:03 +0100552rtc_source_set("ice_transport_factory") {
553 visibility = [ "*" ]
554 sources = [
555 "ice_transport_factory.cc",
556 "ice_transport_factory.h",
557 ]
558 deps = [
559 ":libjingle_peerconnection_api",
560 ":scoped_refptr",
561 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100562 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200563 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700564 "rtc_event_log:rtc_event_log",
Artem Titov533a9fe2019-03-21 12:18:05 +0100565 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100566 ]
567}
568
Ivo Creusen55de08e2018-09-03 11:49:27 +0200569rtc_source_set("neteq_simulator_api") {
570 visibility = [ "*" ]
571 sources = [
572 "test/neteq_simulator.cc",
573 "test/neteq_simulator.h",
574 ]
575}
576
Artem Titov741daaf2019-03-21 14:37:36 +0100577rtc_source_set("function_view") {
578 visibility = [ "*" ]
579 sources = [
580 "function_view.h",
581 ]
582 deps = [
583 "../rtc_base:checks",
584 ]
585}
586
kjellanderfd5b4e92016-06-13 12:08:33 -0700587if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100588 if (rtc_enable_protobuf) {
589 rtc_source_set("audioproc_f_api") {
590 visibility = [ "*" ]
591 testonly = true
592 sources = [
593 "test/audioproc_float.cc",
594 "test/audioproc_float.h",
595 ]
596
597 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100598 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000599 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100600 "../modules/audio_processing:audioproc_f_impl",
601 ]
602 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200603
604 rtc_source_set("neteq_simulator_factory") {
605 visibility = [ "*" ]
606 testonly = true
607 sources = [
608 "test/neteq_simulator_factory.cc",
609 "test/neteq_simulator_factory.h",
610 ]
611 deps = [
612 ":neteq_simulator_api",
613 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200614 "../rtc_base:checks",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200615 "//third_party/abseil-cpp/absl/flags:flag",
616 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200617 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100618 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200619 ]
620 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100621 }
622
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200623 rtc_source_set("simulcast_test_fixture_api") {
624 visibility = [ "*" ]
625 testonly = true
626 sources = [
627 "test/simulcast_test_fixture.h",
628 ]
629 }
630
631 rtc_source_set("create_simulcast_test_fixture_api") {
632 visibility = [ "*" ]
633 testonly = true
634 sources = [
635 "test/create_simulcast_test_fixture.cc",
636 "test/create_simulcast_test_fixture.h",
637 ]
638 deps = [
639 ":simulcast_test_fixture_api",
640 "../modules/video_coding:simulcast_test_fixture_impl",
641 "../rtc_base:rtc_base_approved",
642 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200643 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200644 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200645 }
646
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200647 rtc_source_set("videocodec_test_fixture_api") {
648 visibility = [ "*" ]
649 testonly = true
650 sources = [
651 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200652 "test/videocodec_test_stats.cc",
653 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200654 ]
655 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200656 "..:webrtc_common",
657 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200658 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100659 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200660 "video_codecs:video_codecs_api",
661 ]
662 }
663
664 rtc_source_set("create_videocodec_test_fixture_api") {
665 visibility = [ "*" ]
666 testonly = true
667 sources = [
668 "test/create_videocodec_test_fixture.cc",
669 "test/create_videocodec_test_fixture.h",
670 ]
671 deps = [
672 ":videocodec_test_fixture_api",
673 "../modules/video_coding:video_codecs_test_framework",
674 "../modules/video_coding:videocodec_test_impl",
675 "../rtc_base:rtc_base_approved",
676 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200677 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200678 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200679 }
680
kjellander2f6af9c2017-03-02 22:26:23 -0800681 rtc_source_set("mock_audio_mixer") {
682 testonly = true
683 sources = [
684 "test/mock_audio_mixer.h",
685 ]
686
kjellander2f6af9c2017-03-02 22:26:23 -0800687 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700688 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100689 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800690 ]
691 }
692
Elad Alon45befc52019-07-02 11:20:09 +0200693 rtc_source_set("mock_fec_controller_override") {
694 testonly = true
695 sources = [
696 "test/mock_fec_controller_override.h",
697 ]
698 deps = [
699 ":fec_controller_api",
700 "../test:test_support",
701 ]
702 }
703
Benjamin Wright78410ad2018-10-25 09:52:57 -0700704 rtc_source_set("mock_frame_encryptor") {
705 testonly = true
706 sources = [
707 "test/mock_frame_encryptor.cc",
708 "test/mock_frame_encryptor.h",
709 ]
710 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200711 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700712 ":libjingle_peerconnection_api",
713 "../test:test_support",
714 ]
715 }
716
717 rtc_source_set("mock_frame_decryptor") {
718 testonly = true
719 sources = [
720 "test/mock_frame_decryptor.cc",
721 "test/mock_frame_decryptor.h",
722 ]
723 deps = [
724 ":libjingle_peerconnection_api",
725 "../test:test_support",
726 ]
727 }
728
729 rtc_source_set("fake_frame_encryptor") {
730 testonly = true
731 sources = [
732 "test/fake_frame_encryptor.cc",
733 "test/fake_frame_encryptor.h",
734 ]
735 deps = [
736 ":array_view",
737 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200738 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700739 "..:webrtc_common",
740 "../rtc_base:checks",
741 "../rtc_base:rtc_base_approved",
742 ]
743 }
744
745 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700746 testonly = true
747 sources = [
748 "test/fake_frame_decryptor.cc",
749 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700750 ]
751 deps = [
752 ":array_view",
753 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200754 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700755 "..:webrtc_common",
756 "../rtc_base:checks",
757 "../rtc_base:rtc_base_approved",
758 ]
759 }
760
Jiawei Ou651b92e2018-06-29 15:46:44 -0700761 rtc_source_set("mock_peerconnectioninterface") {
762 testonly = true
763 sources = [
764 "test/mock_peerconnectioninterface.h",
765 ]
766
767 deps = [
768 ":libjingle_peerconnection_api",
769 "../test:test_support",
770 ]
771 }
772
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100773 rtc_source_set("mock_rtp") {
774 testonly = true
775 sources = [
776 "test/mock_rtpreceiver.h",
777 "test/mock_rtpsender.h",
778 ]
779
780 deps = [
781 ":libjingle_peerconnection_api",
782 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100783 ]
784 }
785
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700786 rtc_source_set("mock_video_bitrate_allocator") {
787 testonly = true
788 sources = [
789 "test/mock_video_bitrate_allocator.h",
790 ]
791
792 deps = [
793 "../api/video:video_bitrate_allocator",
794 "../test:test_support",
795 ]
796 }
797
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800798 rtc_source_set("mock_video_bitrate_allocator_factory") {
799 testonly = true
800 sources = [
801 "test/mock_video_bitrate_allocator_factory.h",
802 ]
803
804 deps = [
805 "../api/video:video_bitrate_allocator_factory",
806 "../test:test_support",
807 ]
808 }
809
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700810 rtc_source_set("mock_video_codec_factory") {
811 testonly = true
812 sources = [
813 "test/mock_video_decoder_factory.h",
814 "test/mock_video_encoder_factory.h",
815 ]
816
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700817 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100818 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700819 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700820 ]
821 }
822
Erik Språngc84cd952018-10-15 11:55:13 +0200823 rtc_source_set("mock_video_decoder") {
824 visibility = [ "*" ]
825
826 testonly = true
827 sources = [
828 "test/mock_video_decoder.cc",
829 "test/mock_video_decoder.h",
830 ]
831
832 deps = [
833 "../api/video_codecs:video_codecs_api",
834 "../test:test_support",
835 ]
836 }
837
Erik Språng6af1c922018-10-12 10:01:30 +0200838 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200839 visibility = [ "*" ]
840
Erik Språng6af1c922018-10-12 10:01:30 +0200841 testonly = true
842 sources = [
843 "test/mock_video_encoder.cc",
844 "test/mock_video_encoder.h",
845 ]
846
847 deps = [
848 "../api/video_codecs:video_codecs_api",
849 "../test:test_support",
850 ]
851 }
852
Anton Sukhanov7940da02018-10-10 10:34:49 -0700853 rtc_source_set("fake_media_transport") {
854 testonly = true
855
856 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700857 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700858 "test/fake_media_transport.h",
859 ]
860
861 deps = [
862 ":libjingle_peerconnection_api",
863 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700864 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100865 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700866 ]
867 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200868
869 rtc_source_set("loopback_media_transport") {
870 testonly = true
871
872 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100873 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200874 "test/loopback_media_transport.h",
875 ]
876
877 deps = [
878 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100879 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200880 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700881 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100882 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200883 ]
884 }
885
886 rtc_source_set("rtc_api_unittests") {
887 testonly = true
888
889 sources = [
890 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100891 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800892 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200893 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200894 "rtp_packet_info_unittest.cc",
895 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800896 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200897 "test/loopback_media_transport_unittest.cc",
898 ]
899
Niels Möller2e47f7c2018-10-16 10:41:42 +0200900 deps = [
901 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100902 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200903 ":libjingle_peerconnection_api",
904 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200905 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200906 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200907 ":rtp_parameters",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200908 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100909 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200910 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200911 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200912 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100913 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200914 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200915 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200916 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200917 ]
918 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100919
920 rtc_source_set("compile_all_headers") {
921 testonly = true
922
923 sources = [
924 "test/compile_all_headers.cc",
925 ]
926
927 deps = [
928 ":fake_frame_decryptor",
929 ":fake_frame_encryptor",
930 ":fake_media_transport",
931 ":loopback_media_transport",
932 ":mock_audio_mixer",
933 ":mock_frame_decryptor",
934 ":mock_frame_encryptor",
935 ":mock_peerconnectioninterface",
936 ":mock_rtp",
937 ":mock_video_bitrate_allocator",
938 ":mock_video_bitrate_allocator_factory",
939 ":mock_video_codec_factory",
940 ":mock_video_decoder",
941 ":mock_video_encoder",
942 ":rtc_api_unittests",
943 "units:units_unittests",
944 ]
945 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700946}