blob: 8e9767d40fed8e99c790f6a28ed486a84c5fd8a4 [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 = [ "*" ]
41 sources = [
42 "create_peerconnection_factory.cc",
43 "create_peerconnection_factory.h",
44 ]
45 deps = [
46 ":callfactory_api",
47 ":libjingle_peerconnection_api",
48 ":scoped_refptr",
49 "../api/rtc_event_log:rtc_event_log_factory",
50 "../media:rtc_audio_video",
51 "../media:rtc_media_base",
52 "../modules/audio_device:audio_device_api",
53 "../modules/audio_processing:api",
54 "../pc:peerconnection",
55 "../rtc_base",
56 "../rtc_base:rtc_base_approved",
57 "audio:audio_mixer_api",
58 "audio_codecs:audio_codecs_api",
59 "task_queue:default_task_queue_factory",
60 "video_codecs:video_codecs_api",
61 "//third_party/abseil-cpp/absl/memory",
62 ]
63 }
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010064}
65
Niels Möllerb8389522019-03-19 14:27:03 +010066rtc_source_set("rtp_headers") {
67 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010068 sources = [
69 "rtp_headers.cc",
70 "rtp_headers.h",
71 ]
72 deps = [
73 ":array_view",
74 "..:webrtc_common",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020075 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020076 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010077 "//third_party/abseil-cpp/absl/types:optional",
78 ]
Niels Möllerb8389522019-03-19 14:27:03 +010079}
80
Chen Xingd2a66862019-06-03 14:53:42 +020081rtc_source_set("rtp_packet_info") {
82 visibility = [ "*" ]
83 sources = [
84 "rtp_packet_info.cc",
85 "rtp_packet_info.h",
86 "rtp_packet_infos.h",
87 ]
88 deps = [
89 ":array_view",
90 ":refcountedbase",
91 ":rtp_headers",
92 ":scoped_refptr",
93 "..:webrtc_common",
94 "../rtc_base:rtc_base_approved",
95 "//third_party/abseil-cpp/absl/types:optional",
96 ]
97}
98
ossu7bb87ee2017-01-23 04:56:25 -080099rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000100 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700101 cflags = []
102 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800103 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200104 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -0700105 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200106 "candidate.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700107 "congestion_control_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800108 "crypto/crypto_options.cc",
109 "crypto/crypto_options.h",
110 "crypto/frame_decryptor_interface.h",
111 "crypto/frame_encryptor_interface.h",
112 "crypto_params.h",
113 "data_channel_interface.cc",
114 "data_channel_interface.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700115 "datagram_transport_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200116 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800117 "dtls_transport_interface.h",
118 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100119 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800120 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700121 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800122 "jsep_ice_candidate.cc",
123 "jsep_ice_candidate.h",
124 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800125 "media_stream_interface.cc",
126 "media_stream_interface.h",
127 "media_stream_proxy.h",
128 "media_stream_track_proxy.h",
Anton Sukhanov4f08faa2019-05-21 11:12:57 -0700129 "media_transport_config.cc",
130 "media_transport_config.h",
Niels Möller3a742392018-10-08 11:13:58 +0200131 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400132 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800133 "media_types.cc",
134 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -0700135 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800136 "peer_connection_factory_proxy.h",
137 "peer_connection_interface.cc",
138 "peer_connection_interface.h",
139 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700140 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700141 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800142 "rtc_error.cc",
143 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800144 "rtp_parameters.cc",
145 "rtp_parameters.h",
146 "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",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100170 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100171 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100172 "audio_codecs:audio_codecs_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200173 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200174 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200175 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200176 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100177 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100178 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800179 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700180 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200181 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200182 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200183 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800184 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800185 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200186 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100187
188 # Basically, don't add stuff here. You might break sensitive downstream
189 # targets like pnacl. API should not depend on anything outside of this
190 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700191 "..:webrtc_common",
Niels Möller6daa2782018-01-23 10:37:42 +0100192 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100193 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100194 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100195 "../rtc_base:checks",
196 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700197 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200198 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700199 ]
ossu7bb87ee2017-01-23 04:56:25 -0800200}
kjellanderc76dc952016-06-03 03:09:32 -0700201
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100202rtc_source_set("scoped_refptr") {
203 visibility = [ "*" ]
204 sources = [
205 "scoped_refptr.h",
206 ]
207}
208
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200209rtc_source_set("video_quality_test_fixture_api") {
210 visibility = [ "*" ]
211 testonly = true
212 sources = [
213 "test/video_quality_test_fixture.h",
214 ]
215 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200216 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200217 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200218 ":network_state_predictor_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200219 ":simulated_network_api",
220 "../call:fake_network",
221 "../call:rtp_interfaces",
222 "../test:test_common",
223 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200224 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200225 "video_codecs:video_codecs_api",
226 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200227}
228
Artem Titovd57628f2019-03-22 12:34:25 +0100229rtc_source_set("video_quality_analyzer_api") {
230 visibility = [ "*" ]
231 testonly = true
232 sources = [
233 "test/video_quality_analyzer_interface.h",
234 ]
235
236 deps = [
237 ":stats_observer_interface",
238 "video:encoded_image",
239 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200240 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100241 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100242 "//third_party/abseil-cpp/absl/types:optional",
243 ]
244}
245
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200246rtc_source_set("track_id_stream_label_map") {
247 visibility = [ "*" ]
248 sources = [
249 "test/track_id_stream_label_map.h",
250 ]
251}
252
Artem Titovd57628f2019-03-22 12:34:25 +0100253rtc_source_set("audio_quality_analyzer_api") {
254 visibility = [ "*" ]
255 testonly = true
256 sources = [
257 "test/audio_quality_analyzer_interface.h",
258 ]
259
260 deps = [
261 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200262 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100263 ]
264}
265
266rtc_source_set("stats_observer_interface") {
267 visibility = [ "*" ]
268 testonly = true
269 sources = [
270 "test/stats_observer_interface.h",
271 ]
272
273 deps = [
274 ":libjingle_peerconnection_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100275 ]
276}
277
278rtc_source_set("peer_connection_quality_test_fixture_api") {
279 visibility = [ "*" ]
280 testonly = true
281 sources = [
282 "test/peerconnection_quality_test_fixture.h",
283 ]
284
285 deps = [
286 ":audio_quality_analyzer_api",
287 ":callfactory_api",
288 ":fec_controller_api",
289 ":function_view",
290 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200291 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100292 ":simulated_network_api",
293 ":video_quality_analyzer_api",
294 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200295 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100296 "../rtc_base:rtc_base",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200297 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100298 "transport:network_control",
299 "units:time_delta",
300 "video_codecs:video_codecs_api",
301 "//third_party/abseil-cpp/absl/memory",
302 "//third_party/abseil-cpp/absl/types:optional",
303 ]
304}
305
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200306rtc_source_set("test_dependency_factory") {
307 visibility = [ "*" ]
308 testonly = true
309 sources = [
310 "test/test_dependency_factory.cc",
311 "test/test_dependency_factory.h",
312 ]
313 deps = [
314 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100315 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200316 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900317 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200318 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200319}
320
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200321if (rtc_include_tests) {
322 rtc_source_set("create_video_quality_test_fixture_api") {
323 visibility = [ "*" ]
324 testonly = true
325 sources = [
326 "test/create_video_quality_test_fixture.cc",
327 "test/create_video_quality_test_fixture.h",
328 ]
329 deps = [
330 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200331 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100332 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200333 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200334 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200335 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200336 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200337 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100338
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100339 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100340 visibility = [ "*" ]
341 testonly = true
342 sources = [
343 "test/create_network_emulation_manager.cc",
344 "test/create_network_emulation_manager.h",
345 ]
346 deps = [
347 ":network_emulation_manager_api",
348 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100349 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100350 ]
351 }
Artem Titovd57628f2019-03-22 12:34:25 +0100352
353 rtc_source_set("create_peerconnection_quality_test_fixture") {
354 visibility = [ "*" ]
355 testonly = true
356 sources = [
357 "test/create_peerconnection_quality_test_fixture.cc",
358 "test/create_peerconnection_quality_test_fixture.h",
359 ]
360
361 deps = [
362 ":audio_quality_analyzer_api",
363 ":peer_connection_quality_test_fixture_api",
364 ":video_quality_analyzer_api",
365 "../test/pc/e2e:peerconnection_quality_test",
366 "//third_party/abseil-cpp/absl/memory",
367 ]
368 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200369}
370
Elad Alon80810732017-10-06 13:07:32 +0200371rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000372 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200373 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800374 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200375 ]
376}
377
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200378rtc_source_set("rtc_event_log_output_file") {
379 visibility = [ "*" ]
380 sources = [
381 "rtc_event_log_output_file.cc",
382 "rtc_event_log_output_file.h",
383 ]
384
385 deps = [
386 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200387 "../rtc_base:checks",
388 "../rtc_base:rtc_base_approved",
389 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200390 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200391 ]
392}
393
hbos74e1a4f2016-09-15 23:33:01 -0700394rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000395 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700396 cflags = []
397 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800398 "stats/rtc_stats.h",
399 "stats/rtc_stats_collector_callback.h",
400 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700401 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700402 ]
403
404 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100405 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100406 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700407 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200408 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700409 ]
410}
411
Niels Möllera6fe2612018-01-19 11:28:54 +0100412rtc_source_set("audio_options_api") {
413 visibility = [ "*" ]
414 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200415 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100416 "audio_options.h",
417 ]
418
419 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100420 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200421 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200422 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100423 ]
424}
425
aleloia8eb7562016-11-28 07:02:13 -0800426rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000427 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800428 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100429 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800430 "call/transport.h",
431 ]
432}
nisseb2250e52016-12-02 04:01:14 -0800433
Sebastian Jansson6736df12018-11-21 19:18:39 +0100434rtc_source_set("bitrate_allocation") {
435 visibility = [ "*" ]
436 sources = [
437 "call/bitrate_allocation.h",
438 ]
439 deps = [
440 "units:data_rate",
441 "units:time_delta",
442 ]
443}
444
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200445rtc_source_set("simulated_network_api") {
446 visibility = [ "*" ]
447 sources = [
448 "test/simulated_network.h",
449 ]
450 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100451 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200452 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200453 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200454 ]
455}
456
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100457rtc_source_set("network_emulation_manager_api") {
458 visibility = [ "*" ]
459 sources = [
460 "test/network_emulation_manager.h",
461 ]
462 deps = [
463 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100464 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200465 "units:data_rate",
466 "units:data_size",
467 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100468 ]
469}
470
Ying Wang3b790f32018-01-19 17:58:57 +0100471rtc_source_set("fec_controller_api") {
472 visibility = [ "*" ]
473 sources = [
474 "fec_controller.h",
475 ]
476
477 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100478 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100479 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100480 ]
481}
482
Ying Wang0810a7c2019-04-10 13:48:24 +0200483rtc_source_set("network_state_predictor_api") {
484 visibility = [ "*" ]
485 sources = [
486 "network_state_predictor.h",
487 ]
488}
489
kwiberg529662a2017-09-04 05:43:17 -0700490rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000491 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700492 sources = [
493 "array_view.h",
494 ]
495 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100496 "../rtc_base:checks",
497 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700498 ]
499}
500
Niels Möller9155e492017-10-23 11:22:30 +0200501rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000502 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200503 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800504 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200505 ]
506 deps = [
507 "../rtc_base:rtc_base_approved",
508 ]
509}
510
Harald Alvestrand98462622019-01-30 14:57:03 +0100511rtc_source_set("ice_transport_factory") {
512 visibility = [ "*" ]
513 sources = [
514 "ice_transport_factory.cc",
515 "ice_transport_factory.h",
516 ]
517 deps = [
518 ":libjingle_peerconnection_api",
519 ":scoped_refptr",
520 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100521 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200522 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100523 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100524 ]
525}
526
Ivo Creusen55de08e2018-09-03 11:49:27 +0200527rtc_source_set("neteq_simulator_api") {
528 visibility = [ "*" ]
529 sources = [
530 "test/neteq_simulator.cc",
531 "test/neteq_simulator.h",
532 ]
533}
534
Artem Titov741daaf2019-03-21 14:37:36 +0100535rtc_source_set("function_view") {
536 visibility = [ "*" ]
537 sources = [
538 "function_view.h",
539 ]
540 deps = [
541 "../rtc_base:checks",
542 ]
543}
544
kjellanderfd5b4e92016-06-13 12:08:33 -0700545if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100546 if (rtc_enable_protobuf) {
547 rtc_source_set("audioproc_f_api") {
548 visibility = [ "*" ]
549 testonly = true
550 sources = [
551 "test/audioproc_float.cc",
552 "test/audioproc_float.h",
553 ]
554
555 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100556 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000557 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100558 "../modules/audio_processing:audioproc_f_impl",
559 ]
560 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200561
562 rtc_source_set("neteq_simulator_factory") {
563 visibility = [ "*" ]
564 testonly = true
565 sources = [
566 "test/neteq_simulator_factory.cc",
567 "test/neteq_simulator_factory.h",
568 ]
569 deps = [
570 ":neteq_simulator_api",
571 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200572 "../rtc_base:checks",
573 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200574 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100575 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200576 ]
577 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100578 }
579
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200580 rtc_source_set("simulcast_test_fixture_api") {
581 visibility = [ "*" ]
582 testonly = true
583 sources = [
584 "test/simulcast_test_fixture.h",
585 ]
586 }
587
588 rtc_source_set("create_simulcast_test_fixture_api") {
589 visibility = [ "*" ]
590 testonly = true
591 sources = [
592 "test/create_simulcast_test_fixture.cc",
593 "test/create_simulcast_test_fixture.h",
594 ]
595 deps = [
596 ":simulcast_test_fixture_api",
597 "../modules/video_coding:simulcast_test_fixture_impl",
598 "../rtc_base:rtc_base_approved",
599 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200600 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200601 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200602 }
603
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200604 rtc_source_set("videocodec_test_fixture_api") {
605 visibility = [ "*" ]
606 testonly = true
607 sources = [
608 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200609 "test/videocodec_test_stats.cc",
610 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200611 ]
612 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200613 "..:webrtc_common",
614 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200615 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100616 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200617 "video_codecs:video_codecs_api",
618 ]
619 }
620
621 rtc_source_set("create_videocodec_test_fixture_api") {
622 visibility = [ "*" ]
623 testonly = true
624 sources = [
625 "test/create_videocodec_test_fixture.cc",
626 "test/create_videocodec_test_fixture.h",
627 ]
628 deps = [
629 ":videocodec_test_fixture_api",
630 "../modules/video_coding:video_codecs_test_framework",
631 "../modules/video_coding:videocodec_test_impl",
632 "../rtc_base:rtc_base_approved",
633 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200634 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200635 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200636 }
637
kjellander2f6af9c2017-03-02 22:26:23 -0800638 rtc_source_set("mock_audio_mixer") {
639 testonly = true
640 sources = [
641 "test/mock_audio_mixer.h",
642 ]
643
kjellander2f6af9c2017-03-02 22:26:23 -0800644 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700645 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100646 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800647 ]
648 }
649
Benjamin Wright78410ad2018-10-25 09:52:57 -0700650 rtc_source_set("mock_frame_encryptor") {
651 testonly = true
652 sources = [
653 "test/mock_frame_encryptor.cc",
654 "test/mock_frame_encryptor.h",
655 ]
656 deps = [
657 ":libjingle_peerconnection_api",
658 "../test:test_support",
659 ]
660 }
661
662 rtc_source_set("mock_frame_decryptor") {
663 testonly = true
664 sources = [
665 "test/mock_frame_decryptor.cc",
666 "test/mock_frame_decryptor.h",
667 ]
668 deps = [
669 ":libjingle_peerconnection_api",
670 "../test:test_support",
671 ]
672 }
673
674 rtc_source_set("fake_frame_encryptor") {
675 testonly = true
676 sources = [
677 "test/fake_frame_encryptor.cc",
678 "test/fake_frame_encryptor.h",
679 ]
680 deps = [
681 ":array_view",
682 ":libjingle_peerconnection_api",
683 "..:webrtc_common",
684 "../rtc_base:checks",
685 "../rtc_base:rtc_base_approved",
686 ]
687 }
688
689 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700690 testonly = true
691 sources = [
692 "test/fake_frame_decryptor.cc",
693 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700694 ]
695 deps = [
696 ":array_view",
697 ":libjingle_peerconnection_api",
698 "..:webrtc_common",
699 "../rtc_base:checks",
700 "../rtc_base:rtc_base_approved",
701 ]
702 }
703
Jiawei Ou651b92e2018-06-29 15:46:44 -0700704 rtc_source_set("mock_peerconnectioninterface") {
705 testonly = true
706 sources = [
707 "test/mock_peerconnectioninterface.h",
708 ]
709
710 deps = [
711 ":libjingle_peerconnection_api",
712 "../test:test_support",
713 ]
714 }
715
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100716 rtc_source_set("mock_rtp") {
717 testonly = true
718 sources = [
719 "test/mock_rtpreceiver.h",
720 "test/mock_rtpsender.h",
721 ]
722
723 deps = [
724 ":libjingle_peerconnection_api",
725 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100726 ]
727 }
728
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700729 rtc_source_set("mock_video_bitrate_allocator") {
730 testonly = true
731 sources = [
732 "test/mock_video_bitrate_allocator.h",
733 ]
734
735 deps = [
736 "../api/video:video_bitrate_allocator",
737 "../test:test_support",
738 ]
739 }
740
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800741 rtc_source_set("mock_video_bitrate_allocator_factory") {
742 testonly = true
743 sources = [
744 "test/mock_video_bitrate_allocator_factory.h",
745 ]
746
747 deps = [
748 "../api/video:video_bitrate_allocator_factory",
749 "../test:test_support",
750 ]
751 }
752
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700753 rtc_source_set("mock_video_codec_factory") {
754 testonly = true
755 sources = [
756 "test/mock_video_decoder_factory.h",
757 "test/mock_video_encoder_factory.h",
758 ]
759
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700760 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100761 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700762 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700763 ]
764 }
765
Erik Språngc84cd952018-10-15 11:55:13 +0200766 rtc_source_set("mock_video_decoder") {
767 visibility = [ "*" ]
768
769 testonly = true
770 sources = [
771 "test/mock_video_decoder.cc",
772 "test/mock_video_decoder.h",
773 ]
774
775 deps = [
776 "../api/video_codecs:video_codecs_api",
777 "../test:test_support",
778 ]
779 }
780
Erik Språng6af1c922018-10-12 10:01:30 +0200781 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200782 visibility = [ "*" ]
783
Erik Språng6af1c922018-10-12 10:01:30 +0200784 testonly = true
785 sources = [
786 "test/mock_video_encoder.cc",
787 "test/mock_video_encoder.h",
788 ]
789
790 deps = [
791 "../api/video_codecs:video_codecs_api",
792 "../test:test_support",
793 ]
794 }
795
Anton Sukhanov7940da02018-10-10 10:34:49 -0700796 rtc_source_set("fake_media_transport") {
797 testonly = true
798
799 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700800 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700801 "test/fake_media_transport.h",
802 ]
803
804 deps = [
805 ":libjingle_peerconnection_api",
806 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700807 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100808 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700809 ]
810 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200811
812 rtc_source_set("loopback_media_transport") {
813 testonly = true
814
815 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100816 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200817 "test/loopback_media_transport.h",
818 ]
819
820 deps = [
821 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100822 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200823 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700824 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100825 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200826 ]
827 }
828
829 rtc_source_set("rtc_api_unittests") {
830 testonly = true
831
832 sources = [
833 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100834 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800835 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200836 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200837 "rtp_packet_info_unittest.cc",
838 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800839 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200840 "test/loopback_media_transport_unittest.cc",
841 ]
842
Niels Möller2e47f7c2018-10-16 10:41:42 +0200843 deps = [
844 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100845 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200846 ":libjingle_peerconnection_api",
847 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200848 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200849 ":rtp_packet_info",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200850 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100851 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200852 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200853 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200854 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100855 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200856 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200857 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200858 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200859 ]
860 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100861
862 rtc_source_set("compile_all_headers") {
863 testonly = true
864
865 sources = [
866 "test/compile_all_headers.cc",
867 ]
868
869 deps = [
870 ":fake_frame_decryptor",
871 ":fake_frame_encryptor",
872 ":fake_media_transport",
873 ":loopback_media_transport",
874 ":mock_audio_mixer",
875 ":mock_frame_decryptor",
876 ":mock_frame_encryptor",
877 ":mock_peerconnectioninterface",
878 ":mock_rtp",
879 ":mock_video_bitrate_allocator",
880 ":mock_video_bitrate_allocator_factory",
881 ":mock_video_codec_factory",
882 ":mock_video_decoder",
883 ":mock_video_encoder",
884 ":rtc_api_unittests",
885 "units:units_unittests",
886 ]
887 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700888}