blob: 5c681bc15f7455b56a1aec27feb597cf727b5aa9 [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",
95 "../rtc_base:rtc_base_approved",
96 "//third_party/abseil-cpp/absl/types:optional",
97 ]
98}
99
ossu7bb87ee2017-01-23 04:56:25 -0800100rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000101 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700102 cflags = []
103 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800104 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200105 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -0700106 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200107 "candidate.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700108 "congestion_control_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800109 "crypto/crypto_options.cc",
110 "crypto/crypto_options.h",
111 "crypto/frame_decryptor_interface.h",
112 "crypto/frame_encryptor_interface.h",
113 "crypto_params.h",
114 "data_channel_interface.cc",
115 "data_channel_interface.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700116 "datagram_transport_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200117 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800118 "dtls_transport_interface.h",
119 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100120 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800121 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700122 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800123 "jsep_ice_candidate.cc",
124 "jsep_ice_candidate.h",
125 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800126 "media_stream_interface.cc",
127 "media_stream_interface.h",
128 "media_stream_proxy.h",
129 "media_stream_track_proxy.h",
Anton Sukhanov4f08faa2019-05-21 11:12:57 -0700130 "media_transport_config.cc",
131 "media_transport_config.h",
Niels Möller3a742392018-10-08 11:13:58 +0200132 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400133 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800134 "media_types.cc",
135 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -0700136 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800137 "peer_connection_factory_proxy.h",
138 "peer_connection_interface.cc",
139 "peer_connection_interface.h",
140 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700141 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700142 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800143 "rtc_error.cc",
144 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800145 "rtp_parameters.cc",
146 "rtp_parameters.h",
147 "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",
hbos74e1a4f2016-09-15 23:33:01 -0700169 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200170 ":rtp_packet_info",
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",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200221 ":simulated_network_api",
222 "../call:fake_network",
223 "../call:rtp_interfaces",
224 "../test:test_common",
225 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200226 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200227 "video_codecs:video_codecs_api",
228 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200229}
230
Artem Titovd57628f2019-03-22 12:34:25 +0100231rtc_source_set("video_quality_analyzer_api") {
232 visibility = [ "*" ]
233 testonly = true
234 sources = [
235 "test/video_quality_analyzer_interface.h",
236 ]
237
238 deps = [
239 ":stats_observer_interface",
240 "video:encoded_image",
241 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200242 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100243 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100244 "//third_party/abseil-cpp/absl/types:optional",
245 ]
246}
247
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200248rtc_source_set("track_id_stream_label_map") {
249 visibility = [ "*" ]
250 sources = [
251 "test/track_id_stream_label_map.h",
252 ]
253}
254
Artem Titovd57628f2019-03-22 12:34:25 +0100255rtc_source_set("audio_quality_analyzer_api") {
256 visibility = [ "*" ]
257 testonly = true
258 sources = [
259 "test/audio_quality_analyzer_interface.h",
260 ]
261
262 deps = [
263 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200264 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100265 ]
266}
267
268rtc_source_set("stats_observer_interface") {
269 visibility = [ "*" ]
270 testonly = true
271 sources = [
272 "test/stats_observer_interface.h",
273 ]
274
275 deps = [
276 ":libjingle_peerconnection_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100277 ]
278}
279
280rtc_source_set("peer_connection_quality_test_fixture_api") {
281 visibility = [ "*" ]
282 testonly = true
283 sources = [
284 "test/peerconnection_quality_test_fixture.h",
285 ]
286
287 deps = [
288 ":audio_quality_analyzer_api",
289 ":callfactory_api",
290 ":fec_controller_api",
291 ":function_view",
292 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200293 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100294 ":simulated_network_api",
295 ":video_quality_analyzer_api",
296 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200297 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100298 "../rtc_base:rtc_base",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200299 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100300 "transport:network_control",
301 "units:time_delta",
302 "video_codecs:video_codecs_api",
303 "//third_party/abseil-cpp/absl/memory",
304 "//third_party/abseil-cpp/absl/types:optional",
305 ]
306}
307
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200308rtc_source_set("test_dependency_factory") {
309 visibility = [ "*" ]
310 testonly = true
311 sources = [
312 "test/test_dependency_factory.cc",
313 "test/test_dependency_factory.h",
314 ]
315 deps = [
316 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100317 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200318 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900319 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200320 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200321}
322
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200323if (rtc_include_tests) {
324 rtc_source_set("create_video_quality_test_fixture_api") {
325 visibility = [ "*" ]
326 testonly = true
327 sources = [
328 "test/create_video_quality_test_fixture.cc",
329 "test/create_video_quality_test_fixture.h",
330 ]
331 deps = [
332 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200333 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100334 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200335 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200336 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200337 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200338 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200339 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100340
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100341 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100342 visibility = [ "*" ]
343 testonly = true
344 sources = [
345 "test/create_network_emulation_manager.cc",
346 "test/create_network_emulation_manager.h",
347 ]
348 deps = [
349 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200350 "../test/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100351 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100352 ]
353 }
Artem Titovd57628f2019-03-22 12:34:25 +0100354
355 rtc_source_set("create_peerconnection_quality_test_fixture") {
356 visibility = [ "*" ]
357 testonly = true
358 sources = [
359 "test/create_peerconnection_quality_test_fixture.cc",
360 "test/create_peerconnection_quality_test_fixture.h",
361 ]
362
363 deps = [
364 ":audio_quality_analyzer_api",
365 ":peer_connection_quality_test_fixture_api",
366 ":video_quality_analyzer_api",
367 "../test/pc/e2e:peerconnection_quality_test",
368 "//third_party/abseil-cpp/absl/memory",
369 ]
370 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200371}
372
Elad Alon80810732017-10-06 13:07:32 +0200373rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000374 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200375 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800376 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200377 ]
378}
379
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200380rtc_source_set("rtc_event_log_output_file") {
381 visibility = [ "*" ]
382 sources = [
383 "rtc_event_log_output_file.cc",
384 "rtc_event_log_output_file.h",
385 ]
386
387 deps = [
388 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200389 "../rtc_base:checks",
390 "../rtc_base:rtc_base_approved",
391 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200392 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200393 ]
394}
395
hbos74e1a4f2016-09-15 23:33:01 -0700396rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000397 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700398 cflags = []
399 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800400 "stats/rtc_stats.h",
401 "stats/rtc_stats_collector_callback.h",
402 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700403 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700404 ]
405
406 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100407 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100408 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700409 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200410 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700411 ]
412}
413
Niels Möllera6fe2612018-01-19 11:28:54 +0100414rtc_source_set("audio_options_api") {
415 visibility = [ "*" ]
416 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200417 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100418 "audio_options.h",
419 ]
420
421 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100422 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200423 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200424 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100425 ]
426}
427
aleloia8eb7562016-11-28 07:02:13 -0800428rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000429 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800430 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100431 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800432 "call/transport.h",
433 ]
434}
nisseb2250e52016-12-02 04:01:14 -0800435
Sebastian Jansson6736df12018-11-21 19:18:39 +0100436rtc_source_set("bitrate_allocation") {
437 visibility = [ "*" ]
438 sources = [
439 "call/bitrate_allocation.h",
440 ]
441 deps = [
442 "units:data_rate",
443 "units:time_delta",
444 ]
445}
446
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200447rtc_source_set("simulated_network_api") {
448 visibility = [ "*" ]
449 sources = [
450 "test/simulated_network.h",
451 ]
452 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100453 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200454 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200455 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200456 ]
457}
458
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100459rtc_source_set("network_emulation_manager_api") {
460 visibility = [ "*" ]
461 sources = [
462 "test/network_emulation_manager.h",
463 ]
464 deps = [
465 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100466 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200467 "units:data_rate",
468 "units:data_size",
469 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100470 ]
471}
472
Ying Wang3b790f32018-01-19 17:58:57 +0100473rtc_source_set("fec_controller_api") {
474 visibility = [ "*" ]
475 sources = [
476 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200477 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100478 ]
479
480 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100481 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100482 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100483 ]
484}
485
Ying Wang0810a7c2019-04-10 13:48:24 +0200486rtc_source_set("network_state_predictor_api") {
487 visibility = [ "*" ]
488 sources = [
489 "network_state_predictor.h",
490 ]
491}
492
kwiberg529662a2017-09-04 05:43:17 -0700493rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000494 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700495 sources = [
496 "array_view.h",
497 ]
498 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100499 "../rtc_base:checks",
500 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700501 ]
502}
503
Niels Möller9155e492017-10-23 11:22:30 +0200504rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000505 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200506 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800507 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200508 ]
509 deps = [
510 "../rtc_base:rtc_base_approved",
511 ]
512}
513
Harald Alvestrand98462622019-01-30 14:57:03 +0100514rtc_source_set("ice_transport_factory") {
515 visibility = [ "*" ]
516 sources = [
517 "ice_transport_factory.cc",
518 "ice_transport_factory.h",
519 ]
520 deps = [
521 ":libjingle_peerconnection_api",
522 ":scoped_refptr",
523 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100524 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200525 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700526 "rtc_event_log:rtc_event_log",
Artem Titov533a9fe2019-03-21 12:18:05 +0100527 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100528 ]
529}
530
Ivo Creusen55de08e2018-09-03 11:49:27 +0200531rtc_source_set("neteq_simulator_api") {
532 visibility = [ "*" ]
533 sources = [
534 "test/neteq_simulator.cc",
535 "test/neteq_simulator.h",
536 ]
537}
538
Artem Titov741daaf2019-03-21 14:37:36 +0100539rtc_source_set("function_view") {
540 visibility = [ "*" ]
541 sources = [
542 "function_view.h",
543 ]
544 deps = [
545 "../rtc_base:checks",
546 ]
547}
548
kjellanderfd5b4e92016-06-13 12:08:33 -0700549if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100550 if (rtc_enable_protobuf) {
551 rtc_source_set("audioproc_f_api") {
552 visibility = [ "*" ]
553 testonly = true
554 sources = [
555 "test/audioproc_float.cc",
556 "test/audioproc_float.h",
557 ]
558
559 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100560 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000561 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100562 "../modules/audio_processing:audioproc_f_impl",
563 ]
564 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200565
566 rtc_source_set("neteq_simulator_factory") {
567 visibility = [ "*" ]
568 testonly = true
569 sources = [
570 "test/neteq_simulator_factory.cc",
571 "test/neteq_simulator_factory.h",
572 ]
573 deps = [
574 ":neteq_simulator_api",
575 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200576 "../rtc_base:checks",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200577 "//third_party/abseil-cpp/absl/flags:flag",
578 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200579 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100580 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200581 ]
582 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100583 }
584
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200585 rtc_source_set("simulcast_test_fixture_api") {
586 visibility = [ "*" ]
587 testonly = true
588 sources = [
589 "test/simulcast_test_fixture.h",
590 ]
591 }
592
593 rtc_source_set("create_simulcast_test_fixture_api") {
594 visibility = [ "*" ]
595 testonly = true
596 sources = [
597 "test/create_simulcast_test_fixture.cc",
598 "test/create_simulcast_test_fixture.h",
599 ]
600 deps = [
601 ":simulcast_test_fixture_api",
602 "../modules/video_coding:simulcast_test_fixture_impl",
603 "../rtc_base:rtc_base_approved",
604 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200605 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200606 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200607 }
608
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200609 rtc_source_set("videocodec_test_fixture_api") {
610 visibility = [ "*" ]
611 testonly = true
612 sources = [
613 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200614 "test/videocodec_test_stats.cc",
615 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200616 ]
617 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200618 "..:webrtc_common",
619 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200620 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100621 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200622 "video_codecs:video_codecs_api",
623 ]
624 }
625
626 rtc_source_set("create_videocodec_test_fixture_api") {
627 visibility = [ "*" ]
628 testonly = true
629 sources = [
630 "test/create_videocodec_test_fixture.cc",
631 "test/create_videocodec_test_fixture.h",
632 ]
633 deps = [
634 ":videocodec_test_fixture_api",
635 "../modules/video_coding:video_codecs_test_framework",
636 "../modules/video_coding:videocodec_test_impl",
637 "../rtc_base:rtc_base_approved",
638 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200639 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200640 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200641 }
642
kjellander2f6af9c2017-03-02 22:26:23 -0800643 rtc_source_set("mock_audio_mixer") {
644 testonly = true
645 sources = [
646 "test/mock_audio_mixer.h",
647 ]
648
kjellander2f6af9c2017-03-02 22:26:23 -0800649 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700650 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100651 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800652 ]
653 }
654
Elad Alon45befc52019-07-02 11:20:09 +0200655 rtc_source_set("mock_fec_controller_override") {
656 testonly = true
657 sources = [
658 "test/mock_fec_controller_override.h",
659 ]
660 deps = [
661 ":fec_controller_api",
662 "../test:test_support",
663 ]
664 }
665
Benjamin Wright78410ad2018-10-25 09:52:57 -0700666 rtc_source_set("mock_frame_encryptor") {
667 testonly = true
668 sources = [
669 "test/mock_frame_encryptor.cc",
670 "test/mock_frame_encryptor.h",
671 ]
672 deps = [
673 ":libjingle_peerconnection_api",
674 "../test:test_support",
675 ]
676 }
677
678 rtc_source_set("mock_frame_decryptor") {
679 testonly = true
680 sources = [
681 "test/mock_frame_decryptor.cc",
682 "test/mock_frame_decryptor.h",
683 ]
684 deps = [
685 ":libjingle_peerconnection_api",
686 "../test:test_support",
687 ]
688 }
689
690 rtc_source_set("fake_frame_encryptor") {
691 testonly = true
692 sources = [
693 "test/fake_frame_encryptor.cc",
694 "test/fake_frame_encryptor.h",
695 ]
696 deps = [
697 ":array_view",
698 ":libjingle_peerconnection_api",
699 "..:webrtc_common",
700 "../rtc_base:checks",
701 "../rtc_base:rtc_base_approved",
702 ]
703 }
704
705 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700706 testonly = true
707 sources = [
708 "test/fake_frame_decryptor.cc",
709 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700710 ]
711 deps = [
712 ":array_view",
713 ":libjingle_peerconnection_api",
714 "..:webrtc_common",
715 "../rtc_base:checks",
716 "../rtc_base:rtc_base_approved",
717 ]
718 }
719
Jiawei Ou651b92e2018-06-29 15:46:44 -0700720 rtc_source_set("mock_peerconnectioninterface") {
721 testonly = true
722 sources = [
723 "test/mock_peerconnectioninterface.h",
724 ]
725
726 deps = [
727 ":libjingle_peerconnection_api",
728 "../test:test_support",
729 ]
730 }
731
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100732 rtc_source_set("mock_rtp") {
733 testonly = true
734 sources = [
735 "test/mock_rtpreceiver.h",
736 "test/mock_rtpsender.h",
737 ]
738
739 deps = [
740 ":libjingle_peerconnection_api",
741 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100742 ]
743 }
744
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700745 rtc_source_set("mock_video_bitrate_allocator") {
746 testonly = true
747 sources = [
748 "test/mock_video_bitrate_allocator.h",
749 ]
750
751 deps = [
752 "../api/video:video_bitrate_allocator",
753 "../test:test_support",
754 ]
755 }
756
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800757 rtc_source_set("mock_video_bitrate_allocator_factory") {
758 testonly = true
759 sources = [
760 "test/mock_video_bitrate_allocator_factory.h",
761 ]
762
763 deps = [
764 "../api/video:video_bitrate_allocator_factory",
765 "../test:test_support",
766 ]
767 }
768
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700769 rtc_source_set("mock_video_codec_factory") {
770 testonly = true
771 sources = [
772 "test/mock_video_decoder_factory.h",
773 "test/mock_video_encoder_factory.h",
774 ]
775
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700776 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100777 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700778 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700779 ]
780 }
781
Erik Språngc84cd952018-10-15 11:55:13 +0200782 rtc_source_set("mock_video_decoder") {
783 visibility = [ "*" ]
784
785 testonly = true
786 sources = [
787 "test/mock_video_decoder.cc",
788 "test/mock_video_decoder.h",
789 ]
790
791 deps = [
792 "../api/video_codecs:video_codecs_api",
793 "../test:test_support",
794 ]
795 }
796
Erik Språng6af1c922018-10-12 10:01:30 +0200797 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200798 visibility = [ "*" ]
799
Erik Språng6af1c922018-10-12 10:01:30 +0200800 testonly = true
801 sources = [
802 "test/mock_video_encoder.cc",
803 "test/mock_video_encoder.h",
804 ]
805
806 deps = [
807 "../api/video_codecs:video_codecs_api",
808 "../test:test_support",
809 ]
810 }
811
Anton Sukhanov7940da02018-10-10 10:34:49 -0700812 rtc_source_set("fake_media_transport") {
813 testonly = true
814
815 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700816 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700817 "test/fake_media_transport.h",
818 ]
819
820 deps = [
821 ":libjingle_peerconnection_api",
822 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700823 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100824 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700825 ]
826 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200827
828 rtc_source_set("loopback_media_transport") {
829 testonly = true
830
831 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100832 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200833 "test/loopback_media_transport.h",
834 ]
835
836 deps = [
837 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100838 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200839 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700840 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100841 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200842 ]
843 }
844
845 rtc_source_set("rtc_api_unittests") {
846 testonly = true
847
848 sources = [
849 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100850 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800851 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200852 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200853 "rtp_packet_info_unittest.cc",
854 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800855 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200856 "test/loopback_media_transport_unittest.cc",
857 ]
858
Niels Möller2e47f7c2018-10-16 10:41:42 +0200859 deps = [
860 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100861 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200862 ":libjingle_peerconnection_api",
863 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200864 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200865 ":rtp_packet_info",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200866 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100867 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200868 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200869 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200870 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100871 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200872 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200873 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200874 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200875 ]
876 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100877
878 rtc_source_set("compile_all_headers") {
879 testonly = true
880
881 sources = [
882 "test/compile_all_headers.cc",
883 ]
884
885 deps = [
886 ":fake_frame_decryptor",
887 ":fake_frame_encryptor",
888 ":fake_media_transport",
889 ":loopback_media_transport",
890 ":mock_audio_mixer",
891 ":mock_frame_decryptor",
892 ":mock_frame_encryptor",
893 ":mock_peerconnectioninterface",
894 ":mock_rtp",
895 ":mock_video_bitrate_allocator",
896 ":mock_video_bitrate_allocator_factory",
897 ":mock_video_codec_factory",
898 ":mock_video_decoder",
899 ":mock_video_encoder",
900 ":rtc_api_unittests",
901 "units:units_unittests",
902 ]
903 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700904}