blob: 2512bd465798d61611a30098bf2f2f9e4c73b9c6 [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
ossu7bb87ee2017-01-23 04:56:25 -080081rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000082 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070083 cflags = []
84 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080085 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020086 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070087 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020088 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -080089 "crypto/crypto_options.cc",
90 "crypto/crypto_options.h",
91 "crypto/frame_decryptor_interface.h",
92 "crypto/frame_encryptor_interface.h",
93 "crypto_params.h",
94 "data_channel_interface.cc",
95 "data_channel_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +020096 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -080097 "dtls_transport_interface.h",
98 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +010099 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800100 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700101 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800102 "jsep_ice_candidate.cc",
103 "jsep_ice_candidate.h",
104 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800105 "media_stream_interface.cc",
106 "media_stream_interface.h",
107 "media_stream_proxy.h",
108 "media_stream_track_proxy.h",
Niels Möller3a742392018-10-08 11:13:58 +0200109 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400110 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800111 "media_types.cc",
112 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -0700113 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800114 "peer_connection_factory_proxy.h",
115 "peer_connection_interface.cc",
116 "peer_connection_interface.h",
117 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700118 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700119 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800120 "rtc_error.cc",
121 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800122 "rtp_parameters.cc",
123 "rtp_parameters.h",
124 "rtp_receiver_interface.cc",
125 "rtp_receiver_interface.h",
126 "rtp_sender_interface.cc",
127 "rtp_sender_interface.h",
128 "rtp_transceiver_interface.cc",
129 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100130 "sctp_transport_interface.cc",
131 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800132 "set_remote_description_observer_interface.h",
133 "stats_types.cc",
134 "stats_types.h",
135 "turn_customizer.h",
136 "uma_metrics.h",
137 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700138 ]
kjellanderc76dc952016-06-03 03:09:32 -0700139 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100140 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100141 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100142 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100143 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100144 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200145 ":network_state_predictor_api",
hbos74e1a4f2016-09-15 23:33:01 -0700146 ":rtc_stats_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100147 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100148 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100149 "audio_codecs:audio_codecs_api",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200150 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200151 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200152 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100153 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100154 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800155 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200156 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200157 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800158 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800159 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200160 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100161
162 # Basically, don't add stuff here. You might break sensitive downstream
163 # targets like pnacl. API should not depend on anything outside of this
164 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700165 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100166 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100167 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100168 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100169 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100170 "../rtc_base:checks",
171 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700172 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200173 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700174 ]
ossu7bb87ee2017-01-23 04:56:25 -0800175}
kjellanderc76dc952016-06-03 03:09:32 -0700176
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100177rtc_source_set("scoped_refptr") {
178 visibility = [ "*" ]
179 sources = [
180 "scoped_refptr.h",
181 ]
182}
183
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200184rtc_source_set("video_quality_test_fixture_api") {
185 visibility = [ "*" ]
186 testonly = true
187 sources = [
188 "test/video_quality_test_fixture.h",
189 ]
190 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200191 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200192 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200193 ":network_state_predictor_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200194 ":simulated_network_api",
195 "../call:fake_network",
196 "../call:rtp_interfaces",
197 "../test:test_common",
198 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200199 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200200 "video_codecs:video_codecs_api",
201 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200202}
203
Artem Titovd57628f2019-03-22 12:34:25 +0100204rtc_source_set("video_quality_analyzer_api") {
205 visibility = [ "*" ]
206 testonly = true
207 sources = [
208 "test/video_quality_analyzer_interface.h",
209 ]
210
211 deps = [
212 ":stats_observer_interface",
213 "video:encoded_image",
214 "video:video_frame",
215 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100216 "//third_party/abseil-cpp/absl/types:optional",
217 ]
218}
219
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200220rtc_source_set("track_id_stream_label_map") {
221 visibility = [ "*" ]
222 sources = [
223 "test/track_id_stream_label_map.h",
224 ]
225}
226
Artem Titovd57628f2019-03-22 12:34:25 +0100227rtc_source_set("audio_quality_analyzer_api") {
228 visibility = [ "*" ]
229 testonly = true
230 sources = [
231 "test/audio_quality_analyzer_interface.h",
232 ]
233
234 deps = [
235 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200236 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100237 ]
238}
239
240rtc_source_set("stats_observer_interface") {
241 visibility = [ "*" ]
242 testonly = true
243 sources = [
244 "test/stats_observer_interface.h",
245 ]
246
247 deps = [
248 ":libjingle_peerconnection_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100249 ]
250}
251
252rtc_source_set("peer_connection_quality_test_fixture_api") {
253 visibility = [ "*" ]
254 testonly = true
255 sources = [
256 "test/peerconnection_quality_test_fixture.h",
257 ]
258
259 deps = [
260 ":audio_quality_analyzer_api",
261 ":callfactory_api",
262 ":fec_controller_api",
263 ":function_view",
264 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200265 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100266 ":simulated_network_api",
267 ":video_quality_analyzer_api",
268 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200269 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100270 "../rtc_base:rtc_base",
271 "transport:network_control",
272 "units:time_delta",
273 "video_codecs:video_codecs_api",
274 "//third_party/abseil-cpp/absl/memory",
275 "//third_party/abseil-cpp/absl/types:optional",
276 ]
277}
278
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200279rtc_source_set("test_dependency_factory") {
280 visibility = [ "*" ]
281 testonly = true
282 sources = [
283 "test/test_dependency_factory.cc",
284 "test/test_dependency_factory.h",
285 ]
286 deps = [
287 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100288 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200289 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900290 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200291 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200292}
293
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200294if (rtc_include_tests) {
295 rtc_source_set("create_video_quality_test_fixture_api") {
296 visibility = [ "*" ]
297 testonly = true
298 sources = [
299 "test/create_video_quality_test_fixture.cc",
300 "test/create_video_quality_test_fixture.h",
301 ]
302 deps = [
303 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200304 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100305 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200306 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200307 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200308 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200309 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200310 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100311
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100312 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100313 visibility = [ "*" ]
314 testonly = true
315 sources = [
316 "test/create_network_emulation_manager.cc",
317 "test/create_network_emulation_manager.h",
318 ]
319 deps = [
320 ":network_emulation_manager_api",
321 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100322 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100323 ]
324 }
Artem Titovd57628f2019-03-22 12:34:25 +0100325
326 rtc_source_set("create_peerconnection_quality_test_fixture") {
327 visibility = [ "*" ]
328 testonly = true
329 sources = [
330 "test/create_peerconnection_quality_test_fixture.cc",
331 "test/create_peerconnection_quality_test_fixture.h",
332 ]
333
334 deps = [
335 ":audio_quality_analyzer_api",
336 ":peer_connection_quality_test_fixture_api",
337 ":video_quality_analyzer_api",
338 "../test/pc/e2e:peerconnection_quality_test",
339 "//third_party/abseil-cpp/absl/memory",
340 ]
341 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200342}
343
Elad Alon80810732017-10-06 13:07:32 +0200344rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000345 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200346 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800347 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200348 ]
349}
350
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200351rtc_source_set("rtc_event_log_output_file") {
352 visibility = [ "*" ]
353 sources = [
354 "rtc_event_log_output_file.cc",
355 "rtc_event_log_output_file.h",
356 ]
357
358 deps = [
359 ":libjingle_logging_api",
360 "../logging:rtc_event_log_api",
361 "../rtc_base:checks",
362 "../rtc_base:rtc_base_approved",
363 "../rtc_base/system:file_wrapper",
364 ]
365}
366
deadbeefe814a0d2017-02-25 18:15:09 -0800367rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000368 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800369 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800370 "ortc/packet_transport_interface.h",
371 "ortc/rtp_transport_interface.h",
372 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800373 ]
374
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100375 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800376 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100377 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200378 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800379 ]
380}
381
hbos74e1a4f2016-09-15 23:33:01 -0700382rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000383 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700384 cflags = []
385 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800386 "stats/rtc_stats.h",
387 "stats/rtc_stats_collector_callback.h",
388 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700389 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700390 ]
391
392 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100393 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100394 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700395 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200396 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700397 ]
398}
399
Niels Möllera6fe2612018-01-19 11:28:54 +0100400rtc_source_set("audio_options_api") {
401 visibility = [ "*" ]
402 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200403 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100404 "audio_options.h",
405 ]
406
407 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100408 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200409 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200410 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100411 ]
412}
413
aleloia8eb7562016-11-28 07:02:13 -0800414rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000415 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800416 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100417 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800418 "call/transport.h",
419 ]
420}
nisseb2250e52016-12-02 04:01:14 -0800421
Sebastian Jansson6736df12018-11-21 19:18:39 +0100422rtc_source_set("bitrate_allocation") {
423 visibility = [ "*" ]
424 sources = [
425 "call/bitrate_allocation.h",
426 ]
427 deps = [
428 "units:data_rate",
429 "units:time_delta",
430 ]
431}
432
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200433rtc_source_set("simulated_network_api") {
434 visibility = [ "*" ]
435 sources = [
436 "test/simulated_network.h",
437 ]
438 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100439 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200440 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200441 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200442 ]
443}
444
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100445rtc_source_set("network_emulation_manager_api") {
446 visibility = [ "*" ]
447 sources = [
448 "test/network_emulation_manager.h",
449 ]
450 deps = [
451 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100452 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200453 "units:data_rate",
454 "units:data_size",
455 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100456 ]
457}
458
Ying Wang3b790f32018-01-19 17:58:57 +0100459rtc_source_set("fec_controller_api") {
460 visibility = [ "*" ]
461 sources = [
462 "fec_controller.h",
463 ]
464
465 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100466 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100467 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100468 ]
469}
470
Ying Wang0810a7c2019-04-10 13:48:24 +0200471rtc_source_set("network_state_predictor_api") {
472 visibility = [ "*" ]
473 sources = [
474 "network_state_predictor.h",
475 ]
476}
477
kwiberg529662a2017-09-04 05:43:17 -0700478rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000479 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700480 sources = [
481 "array_view.h",
482 ]
483 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100484 "../rtc_base:checks",
485 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700486 ]
487}
488
Niels Möller9155e492017-10-23 11:22:30 +0200489rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000490 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200491 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800492 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200493 ]
494 deps = [
495 "../rtc_base:rtc_base_approved",
496 ]
497}
498
Harald Alvestrand98462622019-01-30 14:57:03 +0100499rtc_source_set("ice_transport_factory") {
500 visibility = [ "*" ]
501 sources = [
502 "ice_transport_factory.cc",
503 "ice_transport_factory.h",
504 ]
505 deps = [
506 ":libjingle_peerconnection_api",
507 ":scoped_refptr",
508 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100509 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200510 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100511 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100512 ]
513}
514
Ivo Creusen55de08e2018-09-03 11:49:27 +0200515rtc_source_set("neteq_simulator_api") {
516 visibility = [ "*" ]
517 sources = [
518 "test/neteq_simulator.cc",
519 "test/neteq_simulator.h",
520 ]
521}
522
Artem Titov741daaf2019-03-21 14:37:36 +0100523rtc_source_set("function_view") {
524 visibility = [ "*" ]
525 sources = [
526 "function_view.h",
527 ]
528 deps = [
529 "../rtc_base:checks",
530 ]
531}
532
kjellanderfd5b4e92016-06-13 12:08:33 -0700533if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100534 if (rtc_enable_protobuf) {
535 rtc_source_set("audioproc_f_api") {
536 visibility = [ "*" ]
537 testonly = true
538 sources = [
539 "test/audioproc_float.cc",
540 "test/audioproc_float.h",
541 ]
542
543 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100544 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000545 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100546 "../modules/audio_processing:audioproc_f_impl",
547 ]
548 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200549
550 rtc_source_set("neteq_simulator_factory") {
551 visibility = [ "*" ]
552 testonly = true
553 sources = [
554 "test/neteq_simulator_factory.cc",
555 "test/neteq_simulator_factory.h",
556 ]
557 deps = [
558 ":neteq_simulator_api",
559 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200560 "../rtc_base:checks",
561 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200562 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100563 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200564 ]
565 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100566 }
567
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200568 rtc_source_set("simulcast_test_fixture_api") {
569 visibility = [ "*" ]
570 testonly = true
571 sources = [
572 "test/simulcast_test_fixture.h",
573 ]
574 }
575
576 rtc_source_set("create_simulcast_test_fixture_api") {
577 visibility = [ "*" ]
578 testonly = true
579 sources = [
580 "test/create_simulcast_test_fixture.cc",
581 "test/create_simulcast_test_fixture.h",
582 ]
583 deps = [
584 ":simulcast_test_fixture_api",
585 "../modules/video_coding:simulcast_test_fixture_impl",
586 "../rtc_base:rtc_base_approved",
587 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200588 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200589 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200590 }
591
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200592 rtc_source_set("videocodec_test_fixture_api") {
593 visibility = [ "*" ]
594 testonly = true
595 sources = [
596 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200597 "test/videocodec_test_stats.cc",
598 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200599 ]
600 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200601 "..:webrtc_common",
602 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200603 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100604 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200605 "video_codecs:video_codecs_api",
606 ]
607 }
608
609 rtc_source_set("create_videocodec_test_fixture_api") {
610 visibility = [ "*" ]
611 testonly = true
612 sources = [
613 "test/create_videocodec_test_fixture.cc",
614 "test/create_videocodec_test_fixture.h",
615 ]
616 deps = [
617 ":videocodec_test_fixture_api",
618 "../modules/video_coding:video_codecs_test_framework",
619 "../modules/video_coding:videocodec_test_impl",
620 "../rtc_base:rtc_base_approved",
621 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200622 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200623 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200624 }
625
kjellander2f6af9c2017-03-02 22:26:23 -0800626 rtc_source_set("mock_audio_mixer") {
627 testonly = true
628 sources = [
629 "test/mock_audio_mixer.h",
630 ]
631
kjellander2f6af9c2017-03-02 22:26:23 -0800632 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700633 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100634 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800635 ]
636 }
637
Benjamin Wright78410ad2018-10-25 09:52:57 -0700638 rtc_source_set("mock_frame_encryptor") {
639 testonly = true
640 sources = [
641 "test/mock_frame_encryptor.cc",
642 "test/mock_frame_encryptor.h",
643 ]
644 deps = [
645 ":libjingle_peerconnection_api",
646 "../test:test_support",
647 ]
648 }
649
650 rtc_source_set("mock_frame_decryptor") {
651 testonly = true
652 sources = [
653 "test/mock_frame_decryptor.cc",
654 "test/mock_frame_decryptor.h",
655 ]
656 deps = [
657 ":libjingle_peerconnection_api",
658 "../test:test_support",
659 ]
660 }
661
662 rtc_source_set("fake_frame_encryptor") {
663 testonly = true
664 sources = [
665 "test/fake_frame_encryptor.cc",
666 "test/fake_frame_encryptor.h",
667 ]
668 deps = [
669 ":array_view",
670 ":libjingle_peerconnection_api",
671 "..:webrtc_common",
672 "../rtc_base:checks",
673 "../rtc_base:rtc_base_approved",
674 ]
675 }
676
677 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700678 testonly = true
679 sources = [
680 "test/fake_frame_decryptor.cc",
681 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700682 ]
683 deps = [
684 ":array_view",
685 ":libjingle_peerconnection_api",
686 "..:webrtc_common",
687 "../rtc_base:checks",
688 "../rtc_base:rtc_base_approved",
689 ]
690 }
691
Jiawei Ou651b92e2018-06-29 15:46:44 -0700692 rtc_source_set("mock_peerconnectioninterface") {
693 testonly = true
694 sources = [
695 "test/mock_peerconnectioninterface.h",
696 ]
697
698 deps = [
699 ":libjingle_peerconnection_api",
700 "../test:test_support",
701 ]
702 }
703
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100704 rtc_source_set("mock_rtp") {
705 testonly = true
706 sources = [
707 "test/mock_rtpreceiver.h",
708 "test/mock_rtpsender.h",
709 ]
710
711 deps = [
712 ":libjingle_peerconnection_api",
713 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100714 ]
715 }
716
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700717 rtc_source_set("mock_video_bitrate_allocator") {
718 testonly = true
719 sources = [
720 "test/mock_video_bitrate_allocator.h",
721 ]
722
723 deps = [
724 "../api/video:video_bitrate_allocator",
725 "../test:test_support",
726 ]
727 }
728
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800729 rtc_source_set("mock_video_bitrate_allocator_factory") {
730 testonly = true
731 sources = [
732 "test/mock_video_bitrate_allocator_factory.h",
733 ]
734
735 deps = [
736 "../api/video:video_bitrate_allocator_factory",
737 "../test:test_support",
738 ]
739 }
740
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700741 rtc_source_set("mock_video_codec_factory") {
742 testonly = true
743 sources = [
744 "test/mock_video_decoder_factory.h",
745 "test/mock_video_encoder_factory.h",
746 ]
747
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700748 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100749 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700750 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700751 ]
752 }
753
Erik Språngc84cd952018-10-15 11:55:13 +0200754 rtc_source_set("mock_video_decoder") {
755 visibility = [ "*" ]
756
757 testonly = true
758 sources = [
759 "test/mock_video_decoder.cc",
760 "test/mock_video_decoder.h",
761 ]
762
763 deps = [
764 "../api/video_codecs:video_codecs_api",
765 "../test:test_support",
766 ]
767 }
768
Erik Språng6af1c922018-10-12 10:01:30 +0200769 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200770 visibility = [ "*" ]
771
Erik Språng6af1c922018-10-12 10:01:30 +0200772 testonly = true
773 sources = [
774 "test/mock_video_encoder.cc",
775 "test/mock_video_encoder.h",
776 ]
777
778 deps = [
779 "../api/video_codecs:video_codecs_api",
780 "../test:test_support",
781 ]
782 }
783
Anton Sukhanov7940da02018-10-10 10:34:49 -0700784 rtc_source_set("fake_media_transport") {
785 testonly = true
786
787 sources = [
788 "test/fake_media_transport.h",
789 ]
790
791 deps = [
792 ":libjingle_peerconnection_api",
793 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700794 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100795 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700796 ]
797 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200798
799 rtc_source_set("loopback_media_transport") {
800 testonly = true
801
802 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100803 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200804 "test/loopback_media_transport.h",
805 ]
806
807 deps = [
808 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100809 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200810 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700811 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100812 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200813 ]
814 }
815
816 rtc_source_set("rtc_api_unittests") {
817 testonly = true
818
819 sources = [
820 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100821 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800822 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200823 "rtc_event_log_output_file_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800824 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200825 "test/loopback_media_transport_unittest.cc",
826 ]
827
Niels Möller2e47f7c2018-10-16 10:41:42 +0200828 deps = [
829 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100830 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200831 ":libjingle_peerconnection_api",
832 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200833 ":rtc_event_log_output_file",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200834 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100835 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200836 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200837 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200838 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100839 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200840 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200841 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200842 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200843 ]
844 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100845
846 rtc_source_set("compile_all_headers") {
847 testonly = true
848
849 sources = [
850 "test/compile_all_headers.cc",
851 ]
852
853 deps = [
854 ":fake_frame_decryptor",
855 ":fake_frame_encryptor",
856 ":fake_media_transport",
857 ":loopback_media_transport",
858 ":mock_audio_mixer",
859 ":mock_frame_decryptor",
860 ":mock_frame_encryptor",
861 ":mock_peerconnectioninterface",
862 ":mock_rtp",
863 ":mock_video_bitrate_allocator",
864 ":mock_video_bitrate_allocator_factory",
865 ":mock_video_codec_factory",
866 ":mock_video_decoder",
867 ":mock_video_encoder",
868 ":rtc_api_unittests",
869 "units:units_unittests",
870 ]
871 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700872}