blob: b97118b575991ecc50bb9b3470a653aa20b71b09 [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 ]
Mirko Bonadei35214fc2019-09-23 14:54:28 +020036 deps = [
37 "../rtc_base/system:rtc_export",
38 ]
Niels Möller8366e172018-02-14 12:20:13 +010039}
40
Danil Chapovalov5bf58062019-06-18 16:43:37 +020041if (!build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +020042 rtc_library("create_peerconnection_factory") {
Danil Chapovalov5bf58062019-06-18 16:43:37 +020043 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +020044 allow_poison = [ "default_task_queue" ]
Danil Chapovalov5bf58062019-06-18 16:43:37 +020045 sources = [
46 "create_peerconnection_factory.cc",
47 "create_peerconnection_factory.h",
48 ]
49 deps = [
50 ":callfactory_api",
51 ":libjingle_peerconnection_api",
52 ":scoped_refptr",
53 "../api/rtc_event_log:rtc_event_log_factory",
54 "../media:rtc_audio_video",
55 "../media:rtc_media_base",
56 "../modules/audio_device:audio_device_api",
57 "../modules/audio_processing:api",
58 "../pc:peerconnection",
59 "../rtc_base",
60 "../rtc_base:rtc_base_approved",
61 "audio:audio_mixer_api",
62 "audio_codecs:audio_codecs_api",
63 "task_queue:default_task_queue_factory",
64 "video_codecs:video_codecs_api",
Danil Chapovalov5bf58062019-06-18 16:43:37 +020065 ]
66 }
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010067}
68
Mirko Bonadei86d053c2019-10-17 21:32:04 +020069rtc_library("rtp_headers") {
Niels Möllerb8389522019-03-19 14:27:03 +010070 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010071 sources = [
72 "rtp_headers.cc",
73 "rtp_headers.h",
74 ]
75 deps = [
76 ":array_view",
77 "..:webrtc_common",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020078 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020079 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010080 "//third_party/abseil-cpp/absl/types:optional",
81 ]
Niels Möllerb8389522019-03-19 14:27:03 +010082}
83
Mirko Bonadei86d053c2019-10-17 21:32:04 +020084rtc_library("rtp_packet_info") {
Chen Xingd2a66862019-06-03 14:53:42 +020085 visibility = [ "*" ]
86 sources = [
87 "rtp_packet_info.cc",
88 "rtp_packet_info.h",
89 "rtp_packet_infos.h",
90 ]
91 deps = [
92 ":array_view",
93 ":refcountedbase",
94 ":rtp_headers",
95 ":scoped_refptr",
96 "..:webrtc_common",
Chen Xinge08648d2019-08-05 16:29:13 +020097 "../rtc_base:deprecation",
Chen Xingd2a66862019-06-03 14:53:42 +020098 "../rtc_base:rtc_base_approved",
99 "//third_party/abseil-cpp/absl/types:optional",
100 ]
101}
102
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200103rtc_library("media_stream_interface") {
Niels Möllerc1c62842019-09-17 10:16:05 +0200104 visibility = [ "*" ]
Niels Möllere942b142019-09-17 14:30:41 +0200105 sources = [
106 "media_stream_interface.cc",
107 "media_stream_interface.h",
108 "notifier.h",
109 ]
110 deps = [
111 ":audio_options_api",
112 ":rtp_parameters",
113 ":scoped_refptr",
114 "../modules/audio_processing:audio_processing_statistics",
115 "../rtc_base:checks",
116 "../rtc_base:refcount",
117 "../rtc_base/system:rtc_export",
118 "video:video_frame",
119 "//third_party/abseil-cpp/absl/types:optional",
120 ]
Niels Möllerc1c62842019-09-17 10:16:05 +0200121}
122
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200123rtc_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000124 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700125 cflags = []
126 sources = [
Steve Anton36b28db2017-10-26 11:27:17 -0700127 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200128 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -0800129 "crypto_params.h",
130 "data_channel_interface.cc",
131 "data_channel_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200132 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800133 "dtls_transport_interface.h",
134 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100135 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800136 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700137 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800138 "jsep_ice_candidate.cc",
139 "jsep_ice_candidate.h",
140 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800141 "media_stream_proxy.h",
142 "media_stream_track_proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800143 "peer_connection_factory_proxy.h",
144 "peer_connection_interface.cc",
145 "peer_connection_interface.h",
146 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700147 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700148 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800149 "rtp_receiver_interface.cc",
150 "rtp_receiver_interface.h",
151 "rtp_sender_interface.cc",
152 "rtp_sender_interface.h",
153 "rtp_transceiver_interface.cc",
154 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100155 "sctp_transport_interface.cc",
156 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800157 "set_remote_description_observer_interface.h",
158 "stats_types.cc",
159 "stats_types.h",
160 "turn_customizer.h",
161 "uma_metrics.h",
162 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700163 ]
kjellanderc76dc952016-06-03 03:09:32 -0700164 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100165 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100166 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100167 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100168 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100169 ":libjingle_logging_api",
Niels Möllere942b142019-09-17 14:30:41 +0200170 ":media_stream_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +0200171 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200172 ":packet_socket_factory",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200173 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700174 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200175 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200176 ":rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100177 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100178 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100179 "audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200180 "crypto:frame_decryptor_interface",
181 "crypto:frame_encryptor_interface",
182 "crypto:options",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +0100183 "neteq:neteq_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200184 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200185 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200186 "transport:bitrate_settings",
Niels Möller65f17ca2019-09-12 13:59:36 +0200187 "transport:datagram_transport_interface",
Honghai Zhangf8998cf2019-10-14 11:27:50 -0700188 "transport:enums",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200189 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100190 "transport/media:audio_interfaces",
Niels Möller65f17ca2019-09-12 13:59:36 +0200191 "transport/media:media_transport_interface",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100192 "transport/media:video_interfaces",
Niels Möllera8370302019-09-02 15:16:49 +0200193 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800194 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700195 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200196 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200197 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200198 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800199 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700200 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800201 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200202 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100203
204 # Basically, don't add stuff here. You might break sensitive downstream
205 # targets like pnacl. API should not depend on anything outside of this
206 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700207 "..:webrtc_common",
Niels Möllere24557f2019-09-19 11:36:35 +0200208 "../media:rtc_media_base",
Niels Möller6daa2782018-01-23 10:37:42 +0100209 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100210 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100211 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100212 "../rtc_base:checks",
213 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700214 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200215 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700216 ]
ossu7bb87ee2017-01-23 04:56:25 -0800217}
kjellanderc76dc952016-06-03 03:09:32 -0700218
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200219rtc_library("rtc_error") {
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200220 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200221 sources = [
222 "rtc_error.cc",
223 "rtc_error.h",
224 ]
225 deps = [
226 "../rtc_base:checks",
227 "../rtc_base:logging",
228 "../rtc_base:macromagic",
229 "../rtc_base/system:rtc_export",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200230 ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200231}
232
Patrik Höglund662e31f2019-09-05 14:35:04 +0200233rtc_source_set("packet_socket_factory") {
234 visibility = [ "*" ]
235 sources = [
Patrik Höglund662e31f2019-09-05 14:35:04 +0200236 "async_resolver_factory.h",
237 "packet_socket_factory.h",
238 ]
239 deps = [
240 "../rtc_base:rtc_base",
241 "../rtc_base/system:rtc_export",
242 ]
243}
244
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100245rtc_source_set("scoped_refptr") {
246 visibility = [ "*" ]
247 sources = [
248 "scoped_refptr.h",
249 ]
250}
251
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200252rtc_source_set("video_quality_test_fixture_api") {
253 visibility = [ "*" ]
254 testonly = true
255 sources = [
256 "test/video_quality_test_fixture.h",
257 ]
258 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200259 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200260 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200261 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200262 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200263 ":simulated_network_api",
264 "../call:fake_network",
265 "../call:rtp_interfaces",
266 "../test:test_common",
267 "../test:video_test_common",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200268 "transport:bitrate_settings",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200269 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200270 "transport/media:media_transport_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200271 "video_codecs:video_codecs_api",
272 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200273}
274
Artem Titovd57628f2019-03-22 12:34:25 +0100275rtc_source_set("video_quality_analyzer_api") {
276 visibility = [ "*" ]
277 testonly = true
278 sources = [
279 "test/video_quality_analyzer_interface.h",
280 ]
281
282 deps = [
283 ":stats_observer_interface",
284 "video:encoded_image",
285 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200286 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100287 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100288 "//third_party/abseil-cpp/absl/types:optional",
289 ]
290}
291
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200292rtc_source_set("track_id_stream_label_map") {
293 visibility = [ "*" ]
294 sources = [
295 "test/track_id_stream_label_map.h",
296 ]
297}
298
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200299rtc_library("rtp_parameters") {
Niels Möller184b4af2019-08-23 13:33:50 +0200300 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200301 sources = [
302 "media_types.cc",
303 "media_types.h",
304 "rtp_parameters.cc",
305 "rtp_parameters.h",
306 ]
307 deps = [
308 ":array_view",
309 "../rtc_base:checks",
310 "../rtc_base:stringutils",
311 "../rtc_base/system:rtc_export",
312 "//third_party/abseil-cpp/absl/types:optional",
313 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200314}
315
Artem Titovd57628f2019-03-22 12:34:25 +0100316rtc_source_set("audio_quality_analyzer_api") {
317 visibility = [ "*" ]
318 testonly = true
319 sources = [
320 "test/audio_quality_analyzer_interface.h",
321 ]
322
323 deps = [
324 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200325 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100326 ]
327}
328
329rtc_source_set("stats_observer_interface") {
330 visibility = [ "*" ]
331 testonly = true
332 sources = [
333 "test/stats_observer_interface.h",
334 ]
335
336 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200337 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100338 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200339 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100340 ]
341}
342
343rtc_source_set("peer_connection_quality_test_fixture_api") {
344 visibility = [ "*" ]
345 testonly = true
346 sources = [
347 "test/peerconnection_quality_test_fixture.h",
348 ]
349
350 deps = [
351 ":audio_quality_analyzer_api",
352 ":callfactory_api",
353 ":fec_controller_api",
354 ":function_view",
355 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200356 ":network_state_predictor_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200357 ":packet_socket_factory",
Artem Titovd57628f2019-03-22 12:34:25 +0100358 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200359 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100360 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200361 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100362 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200363 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200364 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100365 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200366 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100367 "units:time_delta",
Artem Titovb4463ee2019-11-12 17:27:44 +0100368 "video:video_frame",
Artem Titovd57628f2019-03-22 12:34:25 +0100369 "video_codecs:video_codecs_api",
370 "//third_party/abseil-cpp/absl/memory",
371 "//third_party/abseil-cpp/absl/types:optional",
372 ]
373}
374
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200375rtc_library("test_dependency_factory") {
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200376 visibility = [ "*" ]
377 testonly = true
378 sources = [
379 "test/test_dependency_factory.cc",
380 "test/test_dependency_factory.h",
381 ]
382 deps = [
383 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100384 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200385 "../rtc_base:thread_checker",
386 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200387}
388
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200389if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200390 rtc_library("create_video_quality_test_fixture_api") {
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200391 visibility = [ "*" ]
392 testonly = true
393 sources = [
394 "test/create_video_quality_test_fixture.cc",
395 "test/create_video_quality_test_fixture.h",
396 ]
397 deps = [
398 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200399 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100400 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200401 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200402 "../video:video_quality_test",
403 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200404 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100405
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200406 rtc_library("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100407 visibility = [ "*" ]
408 testonly = true
409 sources = [
410 "test/create_network_emulation_manager.cc",
411 "test/create_network_emulation_manager.h",
412 ]
413 deps = [
414 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200415 "../test/network:emulated_network",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100416 ]
417 }
Artem Titovd57628f2019-03-22 12:34:25 +0100418
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200419 rtc_library("create_peerconnection_quality_test_fixture") {
Artem Titovd57628f2019-03-22 12:34:25 +0100420 visibility = [ "*" ]
421 testonly = true
422 sources = [
423 "test/create_peerconnection_quality_test_fixture.cc",
424 "test/create_peerconnection_quality_test_fixture.h",
425 ]
426
427 deps = [
428 ":audio_quality_analyzer_api",
429 ":peer_connection_quality_test_fixture_api",
430 ":video_quality_analyzer_api",
431 "../test/pc/e2e:peerconnection_quality_test",
Artem Titovd57628f2019-03-22 12:34:25 +0100432 ]
433 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200434}
435
Elad Alon80810732017-10-06 13:07:32 +0200436rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000437 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200438 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800439 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200440 ]
441}
442
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200443rtc_library("rtc_event_log_output_file") {
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200444 visibility = [ "*" ]
445 sources = [
446 "rtc_event_log_output_file.cc",
447 "rtc_event_log_output_file.h",
448 ]
449
450 deps = [
451 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200452 "../rtc_base:checks",
453 "../rtc_base:rtc_base_approved",
454 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200455 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200456 ]
457}
458
hbos74e1a4f2016-09-15 23:33:01 -0700459rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000460 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700461 cflags = []
462 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800463 "stats/rtc_stats.h",
464 "stats/rtc_stats_collector_callback.h",
465 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700466 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700467 ]
468
469 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100470 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100471 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700472 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200473 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700474 ]
475}
476
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200477rtc_library("audio_options_api") {
Niels Möllera6fe2612018-01-19 11:28:54 +0100478 visibility = [ "*" ]
479 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200480 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100481 "audio_options.h",
482 ]
483
484 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100485 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200486 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200487 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100488 ]
489}
490
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200491rtc_library("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000492 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800493 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100494 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800495 "call/transport.h",
496 ]
497}
nisseb2250e52016-12-02 04:01:14 -0800498
Sebastian Jansson6736df12018-11-21 19:18:39 +0100499rtc_source_set("bitrate_allocation") {
500 visibility = [ "*" ]
501 sources = [
502 "call/bitrate_allocation.h",
503 ]
504 deps = [
505 "units:data_rate",
506 "units:time_delta",
507 ]
508}
509
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200510rtc_source_set("simulated_network_api") {
511 visibility = [ "*" ]
512 sources = [
513 "test/simulated_network.h",
514 ]
515 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100516 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200517 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200518 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200519 ]
520}
521
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100522rtc_source_set("network_emulation_manager_api") {
523 visibility = [ "*" ]
524 sources = [
525 "test/network_emulation_manager.h",
526 ]
527 deps = [
528 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100529 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200530 "units:data_rate",
531 "units:data_size",
532 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100533 ]
534}
535
Ying Wang3b790f32018-01-19 17:58:57 +0100536rtc_source_set("fec_controller_api") {
537 visibility = [ "*" ]
538 sources = [
539 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200540 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100541 ]
542
543 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100544 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100545 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100546 ]
547}
548
Ying Wang0810a7c2019-04-10 13:48:24 +0200549rtc_source_set("network_state_predictor_api") {
550 visibility = [ "*" ]
551 sources = [
552 "network_state_predictor.h",
553 ]
554}
555
kwiberg529662a2017-09-04 05:43:17 -0700556rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000557 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700558 sources = [
559 "array_view.h",
560 ]
561 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100562 "../rtc_base:checks",
563 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700564 ]
565}
566
Niels Möller9155e492017-10-23 11:22:30 +0200567rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000568 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200569 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800570 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200571 ]
572 deps = [
573 "../rtc_base:rtc_base_approved",
574 ]
575}
576
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200577rtc_library("ice_transport_factory") {
Harald Alvestrand98462622019-01-30 14:57:03 +0100578 visibility = [ "*" ]
579 sources = [
580 "ice_transport_factory.cc",
581 "ice_transport_factory.h",
582 ]
583 deps = [
584 ":libjingle_peerconnection_api",
Patrik Höglund7d003422019-09-17 12:16:35 +0200585 ":packet_socket_factory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100586 ":scoped_refptr",
587 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100588 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200589 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700590 "rtc_event_log:rtc_event_log",
Harald Alvestrand98462622019-01-30 14:57:03 +0100591 ]
592}
593
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200594rtc_library("neteq_simulator_api") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200595 visibility = [ "*" ]
596 sources = [
597 "test/neteq_simulator.cc",
598 "test/neteq_simulator.h",
599 ]
600}
601
Ivo Creusen3ce44a32019-10-31 14:38:11 +0100602rtc_source_set("neteq_factory_with_codecs") {
603 visibility = [ "*" ]
604 testonly = true
605 sources = [
606 "test/neteq_factory_with_codecs.cc",
607 "test/neteq_factory_with_codecs.h",
608 ]
609
610 deps = [
611 ":scoped_refptr",
612 "../modules/audio_coding:neteq",
613 "../system_wrappers:system_wrappers",
614 "audio_codecs:audio_codecs_api",
615 "audio_codecs:builtin_audio_decoder_factory",
616 "neteq:default_neteq_controller_factory",
617 "neteq:neteq_api",
618 "neteq:neteq_controller_api",
619 ]
620}
621
Artem Titov741daaf2019-03-21 14:37:36 +0100622rtc_source_set("function_view") {
623 visibility = [ "*" ]
624 sources = [
625 "function_view.h",
626 ]
627 deps = [
628 "../rtc_base:checks",
629 ]
630}
631
kjellanderfd5b4e92016-06-13 12:08:33 -0700632if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100633 if (rtc_enable_protobuf) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200634 rtc_library("audioproc_f_api") {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100635 visibility = [ "*" ]
636 testonly = true
637 sources = [
638 "test/audioproc_float.cc",
639 "test/audioproc_float.h",
640 ]
641
642 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100643 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000644 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100645 "../modules/audio_processing:audioproc_f_impl",
646 ]
647 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200648
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200649 rtc_library("neteq_simulator_factory") {
Ivo Creusen55de08e2018-09-03 11:49:27 +0200650 visibility = [ "*" ]
651 testonly = true
652 sources = [
653 "test/neteq_simulator_factory.cc",
654 "test/neteq_simulator_factory.h",
655 ]
656 deps = [
657 ":neteq_simulator_api",
658 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200659 "../rtc_base:checks",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200660 "//third_party/abseil-cpp/absl/flags:flag",
661 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100662 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200663 ]
664 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100665 }
666
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200667 rtc_source_set("simulcast_test_fixture_api") {
668 visibility = [ "*" ]
669 testonly = true
670 sources = [
671 "test/simulcast_test_fixture.h",
672 ]
673 }
674
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200675 rtc_library("create_simulcast_test_fixture_api") {
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200676 visibility = [ "*" ]
677 testonly = true
678 sources = [
679 "test/create_simulcast_test_fixture.cc",
680 "test/create_simulcast_test_fixture.h",
681 ]
682 deps = [
683 ":simulcast_test_fixture_api",
684 "../modules/video_coding:simulcast_test_fixture_impl",
685 "../rtc_base:rtc_base_approved",
686 "video_codecs:video_codecs_api",
687 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200688 }
689
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200690 rtc_library("videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200691 visibility = [ "*" ]
692 testonly = true
693 sources = [
694 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200695 "test/videocodec_test_stats.cc",
696 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200697 ]
698 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200699 "..:webrtc_common",
700 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200701 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100702 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200703 "video_codecs:video_codecs_api",
704 ]
705 }
706
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200707 rtc_library("create_videocodec_test_fixture_api") {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200708 visibility = [ "*" ]
709 testonly = true
710 sources = [
711 "test/create_videocodec_test_fixture.cc",
712 "test/create_videocodec_test_fixture.h",
713 ]
714 deps = [
715 ":videocodec_test_fixture_api",
716 "../modules/video_coding:video_codecs_test_framework",
717 "../modules/video_coding:videocodec_test_impl",
718 "../rtc_base:rtc_base_approved",
719 "video_codecs:video_codecs_api",
720 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200721 }
722
kjellander2f6af9c2017-03-02 22:26:23 -0800723 rtc_source_set("mock_audio_mixer") {
724 testonly = true
725 sources = [
726 "test/mock_audio_mixer.h",
727 ]
728
kjellander2f6af9c2017-03-02 22:26:23 -0800729 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700730 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100731 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800732 ]
733 }
734
Elad Alon45befc52019-07-02 11:20:09 +0200735 rtc_source_set("mock_fec_controller_override") {
736 testonly = true
737 sources = [
738 "test/mock_fec_controller_override.h",
739 ]
740 deps = [
741 ":fec_controller_api",
742 "../test:test_support",
743 ]
744 }
745
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200746 rtc_library("mock_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700747 testonly = true
748 sources = [
749 "test/mock_frame_encryptor.cc",
750 "test/mock_frame_encryptor.h",
751 ]
752 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200753 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700754 ":libjingle_peerconnection_api",
755 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200756 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700757 ]
758 }
759
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200760 rtc_library("mock_frame_decryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700761 testonly = true
762 sources = [
763 "test/mock_frame_decryptor.cc",
764 "test/mock_frame_decryptor.h",
765 ]
766 deps = [
767 ":libjingle_peerconnection_api",
768 "../test:test_support",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200769 "crypto:frame_decryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700770 ]
771 }
772
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200773 rtc_library("fake_frame_encryptor") {
Benjamin Wright78410ad2018-10-25 09:52:57 -0700774 testonly = true
775 sources = [
776 "test/fake_frame_encryptor.cc",
777 "test/fake_frame_encryptor.h",
778 ]
779 deps = [
780 ":array_view",
781 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200782 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700783 "..:webrtc_common",
784 "../rtc_base:checks",
785 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200786 "crypto:frame_encryptor_interface",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700787 ]
788 }
789
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200790 rtc_library("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700791 testonly = true
792 sources = [
793 "test/fake_frame_decryptor.cc",
794 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700795 ]
796 deps = [
797 ":array_view",
798 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200799 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700800 "..:webrtc_common",
801 "../rtc_base:checks",
802 "../rtc_base:rtc_base_approved",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200803 "crypto:frame_decryptor_interface",
Benjamin Wright84583f62018-10-04 14:22:34 -0700804 ]
805 }
806
Niels Möllere78fd802019-09-13 14:45:55 +0200807 rtc_source_set("dummy_peer_connection") {
808 visibility = [ "*" ]
809 testonly = true
810 sources = [
811 "test/dummy_peer_connection.h",
812 ]
813
814 deps = [
815 ":libjingle_peerconnection_api",
816 ":rtc_error",
817 "../rtc_base:checks",
818 "../rtc_base:refcount",
819 ]
820 }
821
Jiawei Ou651b92e2018-06-29 15:46:44 -0700822 rtc_source_set("mock_peerconnectioninterface") {
823 testonly = true
824 sources = [
825 "test/mock_peerconnectioninterface.h",
826 ]
827
828 deps = [
829 ":libjingle_peerconnection_api",
830 "../test:test_support",
831 ]
832 }
833
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100834 rtc_source_set("mock_rtp") {
835 testonly = true
836 sources = [
837 "test/mock_rtpreceiver.h",
838 "test/mock_rtpsender.h",
839 ]
840
841 deps = [
842 ":libjingle_peerconnection_api",
843 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100844 ]
845 }
846
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700847 rtc_source_set("mock_video_bitrate_allocator") {
848 testonly = true
849 sources = [
850 "test/mock_video_bitrate_allocator.h",
851 ]
852
853 deps = [
854 "../api/video:video_bitrate_allocator",
855 "../test:test_support",
856 ]
857 }
858
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800859 rtc_source_set("mock_video_bitrate_allocator_factory") {
860 testonly = true
861 sources = [
862 "test/mock_video_bitrate_allocator_factory.h",
863 ]
864
865 deps = [
866 "../api/video:video_bitrate_allocator_factory",
867 "../test:test_support",
868 ]
869 }
870
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700871 rtc_source_set("mock_video_codec_factory") {
872 testonly = true
873 sources = [
874 "test/mock_video_decoder_factory.h",
875 "test/mock_video_encoder_factory.h",
876 ]
877
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700878 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100879 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700880 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700881 ]
882 }
883
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200884 rtc_library("mock_video_decoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200885 visibility = [ "*" ]
886
887 testonly = true
888 sources = [
889 "test/mock_video_decoder.cc",
890 "test/mock_video_decoder.h",
891 ]
892
893 deps = [
894 "../api/video_codecs:video_codecs_api",
895 "../test:test_support",
896 ]
897 }
898
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200899 rtc_library("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200900 visibility = [ "*" ]
901
Erik Språng6af1c922018-10-12 10:01:30 +0200902 testonly = true
903 sources = [
904 "test/mock_video_encoder.cc",
905 "test/mock_video_encoder.h",
906 ]
907
908 deps = [
909 "../api/video_codecs:video_codecs_api",
910 "../test:test_support",
911 ]
912 }
913
Anton Sukhanov7940da02018-10-10 10:34:49 -0700914 rtc_source_set("fake_media_transport") {
915 testonly = true
916
917 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700918 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700919 "test/fake_media_transport.h",
920 ]
921
922 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700923 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200924 "transport:datagram_transport_interface",
925 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700926 "//third_party/abseil-cpp/absl/algorithm:container",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700927 ]
928 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200929
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200930 rtc_library("loopback_media_transport") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200931 testonly = true
932
933 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100934 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200935 "test/loopback_media_transport.h",
936 ]
937
938 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100939 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200940 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200941 "transport:datagram_transport_interface",
942 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700943 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200944 ]
945 }
946
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200947 rtc_library("rtc_api_unittests") {
Niels Möller2e47f7c2018-10-16 10:41:42 +0200948 testonly = true
949
950 sources = [
951 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100952 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800953 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200954 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200955 "rtp_packet_info_unittest.cc",
956 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800957 "rtp_parameters_unittest.cc",
Danil Chapovalovba916b72019-11-12 10:24:43 +0100958 "scoped_refptr_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200959 "test/loopback_media_transport_unittest.cc",
960 ]
961
Niels Möller2e47f7c2018-10-16 10:41:42 +0200962 deps = [
963 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100964 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200965 ":libjingle_peerconnection_api",
966 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200967 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200968 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200969 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200970 ":rtp_parameters",
Danil Chapovalovba916b72019-11-12 10:24:43 +0100971 ":scoped_refptr",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200972 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100973 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200974 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200975 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200976 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100977 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200978 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200979 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200980 ]
981 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100982
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200983 rtc_library("compile_all_headers") {
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100984 testonly = true
985
986 sources = [
987 "test/compile_all_headers.cc",
988 ]
989
990 deps = [
991 ":fake_frame_decryptor",
992 ":fake_frame_encryptor",
993 ":fake_media_transport",
994 ":loopback_media_transport",
995 ":mock_audio_mixer",
996 ":mock_frame_decryptor",
997 ":mock_frame_encryptor",
998 ":mock_peerconnectioninterface",
999 ":mock_rtp",
1000 ":mock_video_bitrate_allocator",
1001 ":mock_video_bitrate_allocator_factory",
1002 ":mock_video_codec_factory",
1003 ":mock_video_decoder",
1004 ":mock_video_encoder",
1005 ":rtc_api_unittests",
1006 "units:units_unittests",
1007 ]
1008 }
kjellanderfd5b4e92016-06-13 12:08:33 -07001009}