blob: 2617a19f7b79c86332a005a9e0f13b63535fbb00 [file] [log] [blame]
hjonaa32c3e2015-12-13 19:58:11 -08001# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 03:09:32 -070014
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
Dan Minor9c686132018-01-15 10:20:00 -050017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 03:09:32 -070022}
23
ehmaldonado38a21322016-09-02 04:10:34 -070024rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000025 visibility = [ "*" ]
kjellandera69d9732016-08-31 07:33:05 -070026 sources = [
kjellandera69d9732016-08-31 07:33:05 -070027 "call/audio_sink.h",
kjellandera69d9732016-08-31 07:33:05 -070028 ]
kjellandera69d9732016-08-31 07:33:05 -070029}
30
Niels Möller8366e172018-02-14 12:20:13 +010031rtc_source_set("callfactory_api") {
32 visibility = [ "*" ]
33 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080034 "call/call_factory_interface.h",
Niels Möller8366e172018-02-14 12:20:13 +010035 ]
36}
37
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010038rtc_static_library("create_peerconnection_factory") {
Mirko Bonadeic3313a32018-11-19 14:30:17 +010039 visibility = [ "*" ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010040 sources = [
41 "create_peerconnection_factory.cc",
42 "create_peerconnection_factory.h",
43 ]
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010044 deps = [
45 ":callfactory_api",
46 ":fec_controller_api",
47 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +020048 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010049 ":scoped_refptr",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010050 "../logging:rtc_event_log_api",
51 "../logging:rtc_event_log_impl_base",
52 "../media:rtc_audio_video",
Yves Gerey3e707812018-11-28 16:47:49 +010053 "../media:rtc_media_base",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010054 "../modules/audio_device:audio_device_api",
55 "../modules/audio_processing:api",
56 "../pc:peerconnection",
Artem Titov94b57c02019-03-21 13:35:10 +010057 "../rtc_base",
Anders Carlsson01092952018-12-11 15:44:54 +010058 "../rtc_base:deprecation",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010059 "../rtc_base:rtc_base_approved",
60 "audio:audio_mixer_api",
61 "audio_codecs:audio_codecs_api",
62 "transport:network_control",
63 "video_codecs:video_codecs_api",
64 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010065}
66
Niels Möllerb8389522019-03-19 14:27:03 +010067rtc_source_set("rtp_headers") {
68 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010069 sources = [
70 "rtp_headers.cc",
71 "rtp_headers.h",
72 ]
73 deps = [
74 ":array_view",
75 "..:webrtc_common",
76 "video:video_frame",
77 "//third_party/abseil-cpp/absl/types:optional",
78 ]
Niels Möllerb8389522019-03-19 14:27:03 +010079}
80
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",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800183 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800184 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200185 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100186
187 # Basically, don't add stuff here. You might break sensitive downstream
188 # targets like pnacl. API should not depend on anything outside of this
189 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700190 "..:webrtc_common",
Niels Möller6daa2782018-01-23 10:37:42 +0100191 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100192 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100193 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100194 "../rtc_base:checks",
195 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700196 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200197 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700198 ]
ossu7bb87ee2017-01-23 04:56:25 -0800199}
kjellanderc76dc952016-06-03 03:09:32 -0700200
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100201rtc_source_set("scoped_refptr") {
202 visibility = [ "*" ]
203 sources = [
204 "scoped_refptr.h",
205 ]
206}
207
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200208rtc_source_set("video_quality_test_fixture_api") {
209 visibility = [ "*" ]
210 testonly = true
211 sources = [
212 "test/video_quality_test_fixture.h",
213 ]
214 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200215 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200216 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200217 ":network_state_predictor_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200218 ":simulated_network_api",
219 "../call:fake_network",
220 "../call:rtp_interfaces",
221 "../test:test_common",
222 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200223 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200224 "video_codecs:video_codecs_api",
225 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200226}
227
Artem Titovd57628f2019-03-22 12:34:25 +0100228rtc_source_set("video_quality_analyzer_api") {
229 visibility = [ "*" ]
230 testonly = true
231 sources = [
232 "test/video_quality_analyzer_interface.h",
233 ]
234
235 deps = [
236 ":stats_observer_interface",
237 "video:encoded_image",
238 "video:video_frame",
239 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100240 "//third_party/abseil-cpp/absl/types:optional",
241 ]
242}
243
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200244rtc_source_set("track_id_stream_label_map") {
245 visibility = [ "*" ]
246 sources = [
247 "test/track_id_stream_label_map.h",
248 ]
249}
250
Artem Titovd57628f2019-03-22 12:34:25 +0100251rtc_source_set("audio_quality_analyzer_api") {
252 visibility = [ "*" ]
253 testonly = true
254 sources = [
255 "test/audio_quality_analyzer_interface.h",
256 ]
257
258 deps = [
259 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200260 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100261 ]
262}
263
264rtc_source_set("stats_observer_interface") {
265 visibility = [ "*" ]
266 testonly = true
267 sources = [
268 "test/stats_observer_interface.h",
269 ]
270
271 deps = [
272 ":libjingle_peerconnection_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100273 ]
274}
275
276rtc_source_set("peer_connection_quality_test_fixture_api") {
277 visibility = [ "*" ]
278 testonly = true
279 sources = [
280 "test/peerconnection_quality_test_fixture.h",
281 ]
282
283 deps = [
284 ":audio_quality_analyzer_api",
285 ":callfactory_api",
286 ":fec_controller_api",
287 ":function_view",
288 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200289 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100290 ":simulated_network_api",
291 ":video_quality_analyzer_api",
292 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200293 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100294 "../rtc_base:rtc_base",
295 "transport:network_control",
296 "units:time_delta",
297 "video_codecs:video_codecs_api",
298 "//third_party/abseil-cpp/absl/memory",
299 "//third_party/abseil-cpp/absl/types:optional",
300 ]
301}
302
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200303rtc_source_set("test_dependency_factory") {
304 visibility = [ "*" ]
305 testonly = true
306 sources = [
307 "test/test_dependency_factory.cc",
308 "test/test_dependency_factory.h",
309 ]
310 deps = [
311 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100312 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200313 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900314 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200315 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200316}
317
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200318if (rtc_include_tests) {
319 rtc_source_set("create_video_quality_test_fixture_api") {
320 visibility = [ "*" ]
321 testonly = true
322 sources = [
323 "test/create_video_quality_test_fixture.cc",
324 "test/create_video_quality_test_fixture.h",
325 ]
326 deps = [
327 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200328 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100329 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200330 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200331 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200332 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200333 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200334 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100335
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100336 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100337 visibility = [ "*" ]
338 testonly = true
339 sources = [
340 "test/create_network_emulation_manager.cc",
341 "test/create_network_emulation_manager.h",
342 ]
343 deps = [
344 ":network_emulation_manager_api",
345 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100346 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100347 ]
348 }
Artem Titovd57628f2019-03-22 12:34:25 +0100349
350 rtc_source_set("create_peerconnection_quality_test_fixture") {
351 visibility = [ "*" ]
352 testonly = true
353 sources = [
354 "test/create_peerconnection_quality_test_fixture.cc",
355 "test/create_peerconnection_quality_test_fixture.h",
356 ]
357
358 deps = [
359 ":audio_quality_analyzer_api",
360 ":peer_connection_quality_test_fixture_api",
361 ":video_quality_analyzer_api",
362 "../test/pc/e2e:peerconnection_quality_test",
363 "//third_party/abseil-cpp/absl/memory",
364 ]
365 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200366}
367
Elad Alon80810732017-10-06 13:07:32 +0200368rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000369 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200370 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800371 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200372 ]
373}
374
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200375rtc_source_set("rtc_event_log_output_file") {
376 visibility = [ "*" ]
377 sources = [
378 "rtc_event_log_output_file.cc",
379 "rtc_event_log_output_file.h",
380 ]
381
382 deps = [
383 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200384 "../rtc_base:checks",
385 "../rtc_base:rtc_base_approved",
386 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200387 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200388 ]
389}
390
hbos74e1a4f2016-09-15 23:33:01 -0700391rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000392 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700393 cflags = []
394 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800395 "stats/rtc_stats.h",
396 "stats/rtc_stats_collector_callback.h",
397 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700398 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700399 ]
400
401 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100402 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100403 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700404 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200405 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700406 ]
407}
408
Niels Möllera6fe2612018-01-19 11:28:54 +0100409rtc_source_set("audio_options_api") {
410 visibility = [ "*" ]
411 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200412 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100413 "audio_options.h",
414 ]
415
416 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100417 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200418 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200419 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100420 ]
421}
422
aleloia8eb7562016-11-28 07:02:13 -0800423rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000424 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800425 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100426 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800427 "call/transport.h",
428 ]
429}
nisseb2250e52016-12-02 04:01:14 -0800430
Sebastian Jansson6736df12018-11-21 19:18:39 +0100431rtc_source_set("bitrate_allocation") {
432 visibility = [ "*" ]
433 sources = [
434 "call/bitrate_allocation.h",
435 ]
436 deps = [
437 "units:data_rate",
438 "units:time_delta",
439 ]
440}
441
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200442rtc_source_set("simulated_network_api") {
443 visibility = [ "*" ]
444 sources = [
445 "test/simulated_network.h",
446 ]
447 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100448 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200449 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200450 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200451 ]
452}
453
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100454rtc_source_set("network_emulation_manager_api") {
455 visibility = [ "*" ]
456 sources = [
457 "test/network_emulation_manager.h",
458 ]
459 deps = [
460 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100461 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200462 "units:data_rate",
463 "units:data_size",
464 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100465 ]
466}
467
Ying Wang3b790f32018-01-19 17:58:57 +0100468rtc_source_set("fec_controller_api") {
469 visibility = [ "*" ]
470 sources = [
471 "fec_controller.h",
472 ]
473
474 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100475 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100476 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100477 ]
478}
479
Ying Wang0810a7c2019-04-10 13:48:24 +0200480rtc_source_set("network_state_predictor_api") {
481 visibility = [ "*" ]
482 sources = [
483 "network_state_predictor.h",
484 ]
485}
486
kwiberg529662a2017-09-04 05:43:17 -0700487rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000488 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700489 sources = [
490 "array_view.h",
491 ]
492 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100493 "../rtc_base:checks",
494 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700495 ]
496}
497
Niels Möller9155e492017-10-23 11:22:30 +0200498rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000499 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200500 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800501 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200502 ]
503 deps = [
504 "../rtc_base:rtc_base_approved",
505 ]
506}
507
Harald Alvestrand98462622019-01-30 14:57:03 +0100508rtc_source_set("ice_transport_factory") {
509 visibility = [ "*" ]
510 sources = [
511 "ice_transport_factory.cc",
512 "ice_transport_factory.h",
513 ]
514 deps = [
515 ":libjingle_peerconnection_api",
516 ":scoped_refptr",
517 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100518 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200519 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100520 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100521 ]
522}
523
Ivo Creusen55de08e2018-09-03 11:49:27 +0200524rtc_source_set("neteq_simulator_api") {
525 visibility = [ "*" ]
526 sources = [
527 "test/neteq_simulator.cc",
528 "test/neteq_simulator.h",
529 ]
530}
531
Artem Titov741daaf2019-03-21 14:37:36 +0100532rtc_source_set("function_view") {
533 visibility = [ "*" ]
534 sources = [
535 "function_view.h",
536 ]
537 deps = [
538 "../rtc_base:checks",
539 ]
540}
541
kjellanderfd5b4e92016-06-13 12:08:33 -0700542if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100543 if (rtc_enable_protobuf) {
544 rtc_source_set("audioproc_f_api") {
545 visibility = [ "*" ]
546 testonly = true
547 sources = [
548 "test/audioproc_float.cc",
549 "test/audioproc_float.h",
550 ]
551
552 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100553 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000554 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100555 "../modules/audio_processing:audioproc_f_impl",
556 ]
557 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200558
559 rtc_source_set("neteq_simulator_factory") {
560 visibility = [ "*" ]
561 testonly = true
562 sources = [
563 "test/neteq_simulator_factory.cc",
564 "test/neteq_simulator_factory.h",
565 ]
566 deps = [
567 ":neteq_simulator_api",
568 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200569 "../rtc_base:checks",
570 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200571 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100572 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200573 ]
574 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100575 }
576
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200577 rtc_source_set("simulcast_test_fixture_api") {
578 visibility = [ "*" ]
579 testonly = true
580 sources = [
581 "test/simulcast_test_fixture.h",
582 ]
583 }
584
585 rtc_source_set("create_simulcast_test_fixture_api") {
586 visibility = [ "*" ]
587 testonly = true
588 sources = [
589 "test/create_simulcast_test_fixture.cc",
590 "test/create_simulcast_test_fixture.h",
591 ]
592 deps = [
593 ":simulcast_test_fixture_api",
594 "../modules/video_coding:simulcast_test_fixture_impl",
595 "../rtc_base:rtc_base_approved",
596 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200597 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200598 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200599 }
600
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200601 rtc_source_set("videocodec_test_fixture_api") {
602 visibility = [ "*" ]
603 testonly = true
604 sources = [
605 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200606 "test/videocodec_test_stats.cc",
607 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200608 ]
609 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200610 "..:webrtc_common",
611 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200612 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100613 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200614 "video_codecs:video_codecs_api",
615 ]
616 }
617
618 rtc_source_set("create_videocodec_test_fixture_api") {
619 visibility = [ "*" ]
620 testonly = true
621 sources = [
622 "test/create_videocodec_test_fixture.cc",
623 "test/create_videocodec_test_fixture.h",
624 ]
625 deps = [
626 ":videocodec_test_fixture_api",
627 "../modules/video_coding:video_codecs_test_framework",
628 "../modules/video_coding:videocodec_test_impl",
629 "../rtc_base:rtc_base_approved",
630 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200631 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200632 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200633 }
634
kjellander2f6af9c2017-03-02 22:26:23 -0800635 rtc_source_set("mock_audio_mixer") {
636 testonly = true
637 sources = [
638 "test/mock_audio_mixer.h",
639 ]
640
kjellander2f6af9c2017-03-02 22:26:23 -0800641 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700642 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100643 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800644 ]
645 }
646
Benjamin Wright78410ad2018-10-25 09:52:57 -0700647 rtc_source_set("mock_frame_encryptor") {
648 testonly = true
649 sources = [
650 "test/mock_frame_encryptor.cc",
651 "test/mock_frame_encryptor.h",
652 ]
653 deps = [
654 ":libjingle_peerconnection_api",
655 "../test:test_support",
656 ]
657 }
658
659 rtc_source_set("mock_frame_decryptor") {
660 testonly = true
661 sources = [
662 "test/mock_frame_decryptor.cc",
663 "test/mock_frame_decryptor.h",
664 ]
665 deps = [
666 ":libjingle_peerconnection_api",
667 "../test:test_support",
668 ]
669 }
670
671 rtc_source_set("fake_frame_encryptor") {
672 testonly = true
673 sources = [
674 "test/fake_frame_encryptor.cc",
675 "test/fake_frame_encryptor.h",
676 ]
677 deps = [
678 ":array_view",
679 ":libjingle_peerconnection_api",
680 "..:webrtc_common",
681 "../rtc_base:checks",
682 "../rtc_base:rtc_base_approved",
683 ]
684 }
685
686 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700687 testonly = true
688 sources = [
689 "test/fake_frame_decryptor.cc",
690 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700691 ]
692 deps = [
693 ":array_view",
694 ":libjingle_peerconnection_api",
695 "..:webrtc_common",
696 "../rtc_base:checks",
697 "../rtc_base:rtc_base_approved",
698 ]
699 }
700
Jiawei Ou651b92e2018-06-29 15:46:44 -0700701 rtc_source_set("mock_peerconnectioninterface") {
702 testonly = true
703 sources = [
704 "test/mock_peerconnectioninterface.h",
705 ]
706
707 deps = [
708 ":libjingle_peerconnection_api",
709 "../test:test_support",
710 ]
711 }
712
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100713 rtc_source_set("mock_rtp") {
714 testonly = true
715 sources = [
716 "test/mock_rtpreceiver.h",
717 "test/mock_rtpsender.h",
718 ]
719
720 deps = [
721 ":libjingle_peerconnection_api",
722 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100723 ]
724 }
725
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700726 rtc_source_set("mock_video_bitrate_allocator") {
727 testonly = true
728 sources = [
729 "test/mock_video_bitrate_allocator.h",
730 ]
731
732 deps = [
733 "../api/video:video_bitrate_allocator",
734 "../test:test_support",
735 ]
736 }
737
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800738 rtc_source_set("mock_video_bitrate_allocator_factory") {
739 testonly = true
740 sources = [
741 "test/mock_video_bitrate_allocator_factory.h",
742 ]
743
744 deps = [
745 "../api/video:video_bitrate_allocator_factory",
746 "../test:test_support",
747 ]
748 }
749
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700750 rtc_source_set("mock_video_codec_factory") {
751 testonly = true
752 sources = [
753 "test/mock_video_decoder_factory.h",
754 "test/mock_video_encoder_factory.h",
755 ]
756
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700757 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100758 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700759 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700760 ]
761 }
762
Erik Språngc84cd952018-10-15 11:55:13 +0200763 rtc_source_set("mock_video_decoder") {
764 visibility = [ "*" ]
765
766 testonly = true
767 sources = [
768 "test/mock_video_decoder.cc",
769 "test/mock_video_decoder.h",
770 ]
771
772 deps = [
773 "../api/video_codecs:video_codecs_api",
774 "../test:test_support",
775 ]
776 }
777
Erik Språng6af1c922018-10-12 10:01:30 +0200778 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200779 visibility = [ "*" ]
780
Erik Språng6af1c922018-10-12 10:01:30 +0200781 testonly = true
782 sources = [
783 "test/mock_video_encoder.cc",
784 "test/mock_video_encoder.h",
785 ]
786
787 deps = [
788 "../api/video_codecs:video_codecs_api",
789 "../test:test_support",
790 ]
791 }
792
Anton Sukhanov7940da02018-10-10 10:34:49 -0700793 rtc_source_set("fake_media_transport") {
794 testonly = true
795
796 sources = [
797 "test/fake_media_transport.h",
798 ]
799
800 deps = [
801 ":libjingle_peerconnection_api",
802 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700803 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100804 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700805 ]
806 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200807
808 rtc_source_set("loopback_media_transport") {
809 testonly = true
810
811 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100812 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200813 "test/loopback_media_transport.h",
814 ]
815
816 deps = [
817 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100818 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200819 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700820 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100821 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200822 ]
823 }
824
825 rtc_source_set("rtc_api_unittests") {
826 testonly = true
827
828 sources = [
829 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100830 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800831 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200832 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200833 "rtp_packet_info_unittest.cc",
834 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800835 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200836 "test/loopback_media_transport_unittest.cc",
837 ]
838
Niels Möller2e47f7c2018-10-16 10:41:42 +0200839 deps = [
840 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100841 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200842 ":libjingle_peerconnection_api",
843 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200844 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200845 ":rtp_packet_info",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200846 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100847 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200848 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200849 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200850 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100851 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200852 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200853 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200854 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200855 ]
856 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100857
858 rtc_source_set("compile_all_headers") {
859 testonly = true
860
861 sources = [
862 "test/compile_all_headers.cc",
863 ]
864
865 deps = [
866 ":fake_frame_decryptor",
867 ":fake_frame_encryptor",
868 ":fake_media_transport",
869 ":loopback_media_transport",
870 ":mock_audio_mixer",
871 ":mock_frame_decryptor",
872 ":mock_frame_encryptor",
873 ":mock_peerconnectioninterface",
874 ":mock_rtp",
875 ":mock_video_bitrate_allocator",
876 ":mock_video_bitrate_allocator_factory",
877 ":mock_video_codec_factory",
878 ":mock_video_decoder",
879 ":mock_video_encoder",
880 ":rtc_api_unittests",
881 "units:units_unittests",
882 ]
883 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700884}