blob: 510fe4f55749ad1484f26d810ff46ed4e71f741b [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",
216 "//third_party/abseil-cpp/absl/strings",
217 "//third_party/abseil-cpp/absl/types:optional",
218 ]
219}
220
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200221rtc_source_set("track_id_stream_label_map") {
222 visibility = [ "*" ]
223 sources = [
224 "test/track_id_stream_label_map.h",
225 ]
226}
227
Artem Titovd57628f2019-03-22 12:34:25 +0100228rtc_source_set("audio_quality_analyzer_api") {
229 visibility = [ "*" ]
230 testonly = true
231 sources = [
232 "test/audio_quality_analyzer_interface.h",
233 ]
234
235 deps = [
236 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200237 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100238 ]
239}
240
241rtc_source_set("stats_observer_interface") {
242 visibility = [ "*" ]
243 testonly = true
244 sources = [
245 "test/stats_observer_interface.h",
246 ]
247
248 deps = [
249 ":libjingle_peerconnection_api",
250 "//third_party/abseil-cpp/absl/strings",
251 ]
252}
253
254rtc_source_set("peer_connection_quality_test_fixture_api") {
255 visibility = [ "*" ]
256 testonly = true
257 sources = [
258 "test/peerconnection_quality_test_fixture.h",
259 ]
260
261 deps = [
262 ":audio_quality_analyzer_api",
263 ":callfactory_api",
264 ":fec_controller_api",
265 ":function_view",
266 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200267 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100268 ":simulated_network_api",
269 ":video_quality_analyzer_api",
270 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200271 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100272 "../rtc_base:rtc_base",
273 "transport:network_control",
274 "units:time_delta",
275 "video_codecs:video_codecs_api",
276 "//third_party/abseil-cpp/absl/memory",
277 "//third_party/abseil-cpp/absl/types:optional",
278 ]
279}
280
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200281rtc_source_set("test_dependency_factory") {
282 visibility = [ "*" ]
283 testonly = true
284 sources = [
285 "test/test_dependency_factory.cc",
286 "test/test_dependency_factory.h",
287 ]
288 deps = [
289 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100290 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200291 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900292 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200293 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200294}
295
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200296if (rtc_include_tests) {
297 rtc_source_set("create_video_quality_test_fixture_api") {
298 visibility = [ "*" ]
299 testonly = true
300 sources = [
301 "test/create_video_quality_test_fixture.cc",
302 "test/create_video_quality_test_fixture.h",
303 ]
304 deps = [
305 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200306 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100307 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200308 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200309 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200310 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200311 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200312 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100313
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100314 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100315 visibility = [ "*" ]
316 testonly = true
317 sources = [
318 "test/create_network_emulation_manager.cc",
319 "test/create_network_emulation_manager.h",
320 ]
321 deps = [
322 ":network_emulation_manager_api",
323 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100324 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100325 ]
326 }
Artem Titovd57628f2019-03-22 12:34:25 +0100327
328 rtc_source_set("create_peerconnection_quality_test_fixture") {
329 visibility = [ "*" ]
330 testonly = true
331 sources = [
332 "test/create_peerconnection_quality_test_fixture.cc",
333 "test/create_peerconnection_quality_test_fixture.h",
334 ]
335
336 deps = [
337 ":audio_quality_analyzer_api",
338 ":peer_connection_quality_test_fixture_api",
339 ":video_quality_analyzer_api",
340 "../test/pc/e2e:peerconnection_quality_test",
341 "//third_party/abseil-cpp/absl/memory",
342 ]
343 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200344}
345
Elad Alon80810732017-10-06 13:07:32 +0200346rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000347 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200348 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800349 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200350 ]
351}
352
deadbeefe814a0d2017-02-25 18:15:09 -0800353rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000354 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800355 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800356 "ortc/packet_transport_interface.h",
357 "ortc/rtp_transport_interface.h",
358 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800359 ]
360
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100361 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800362 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100363 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200364 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800365 ]
366}
367
hbos74e1a4f2016-09-15 23:33:01 -0700368rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000369 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700370 cflags = []
371 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800372 "stats/rtc_stats.h",
373 "stats/rtc_stats_collector_callback.h",
374 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700375 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700376 ]
377
378 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100379 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100380 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700381 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200382 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700383 ]
384}
385
Niels Möllera6fe2612018-01-19 11:28:54 +0100386rtc_source_set("audio_options_api") {
387 visibility = [ "*" ]
388 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200389 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100390 "audio_options.h",
391 ]
392
393 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100394 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200395 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200396 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100397 ]
398}
399
aleloia8eb7562016-11-28 07:02:13 -0800400rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000401 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800402 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100403 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800404 "call/transport.h",
405 ]
406}
nisseb2250e52016-12-02 04:01:14 -0800407
Sebastian Jansson6736df12018-11-21 19:18:39 +0100408rtc_source_set("bitrate_allocation") {
409 visibility = [ "*" ]
410 sources = [
411 "call/bitrate_allocation.h",
412 ]
413 deps = [
414 "units:data_rate",
415 "units:time_delta",
416 ]
417}
418
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200419rtc_source_set("simulated_network_api") {
420 visibility = [ "*" ]
421 sources = [
422 "test/simulated_network.h",
423 ]
424 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100425 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200426 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200427 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200428 ]
429}
430
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100431rtc_source_set("network_emulation_manager_api") {
432 visibility = [ "*" ]
433 sources = [
434 "test/network_emulation_manager.h",
435 ]
436 deps = [
437 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100438 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200439 "units:data_rate",
440 "units:data_size",
441 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100442 ]
443}
444
Ying Wang3b790f32018-01-19 17:58:57 +0100445rtc_source_set("fec_controller_api") {
446 visibility = [ "*" ]
447 sources = [
448 "fec_controller.h",
449 ]
450
451 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100452 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100453 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100454 ]
455}
456
Ying Wang0810a7c2019-04-10 13:48:24 +0200457rtc_source_set("network_state_predictor_api") {
458 visibility = [ "*" ]
459 sources = [
460 "network_state_predictor.h",
461 ]
462}
463
kwiberg529662a2017-09-04 05:43:17 -0700464rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000465 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700466 sources = [
467 "array_view.h",
468 ]
469 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100470 "../rtc_base:checks",
471 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700472 ]
473}
474
Niels Möller9155e492017-10-23 11:22:30 +0200475rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000476 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200477 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800478 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200479 ]
480 deps = [
481 "../rtc_base:rtc_base_approved",
482 ]
483}
484
Harald Alvestrand98462622019-01-30 14:57:03 +0100485rtc_source_set("ice_transport_factory") {
486 visibility = [ "*" ]
487 sources = [
488 "ice_transport_factory.cc",
489 "ice_transport_factory.h",
490 ]
491 deps = [
492 ":libjingle_peerconnection_api",
493 ":scoped_refptr",
494 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100495 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200496 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100497 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100498 ]
499}
500
Ivo Creusen55de08e2018-09-03 11:49:27 +0200501rtc_source_set("neteq_simulator_api") {
502 visibility = [ "*" ]
503 sources = [
504 "test/neteq_simulator.cc",
505 "test/neteq_simulator.h",
506 ]
507}
508
Artem Titov741daaf2019-03-21 14:37:36 +0100509rtc_source_set("function_view") {
510 visibility = [ "*" ]
511 sources = [
512 "function_view.h",
513 ]
514 deps = [
515 "../rtc_base:checks",
516 ]
517}
518
kjellanderfd5b4e92016-06-13 12:08:33 -0700519if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100520 if (rtc_enable_protobuf) {
521 rtc_source_set("audioproc_f_api") {
522 visibility = [ "*" ]
523 testonly = true
524 sources = [
525 "test/audioproc_float.cc",
526 "test/audioproc_float.h",
527 ]
528
529 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100530 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000531 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100532 "../modules/audio_processing:audioproc_f_impl",
533 ]
534 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200535
536 rtc_source_set("neteq_simulator_factory") {
537 visibility = [ "*" ]
538 testonly = true
539 sources = [
540 "test/neteq_simulator_factory.cc",
541 "test/neteq_simulator_factory.h",
542 ]
543 deps = [
544 ":neteq_simulator_api",
545 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200546 "../rtc_base:checks",
547 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200548 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100549 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200550 ]
551 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100552 }
553
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200554 rtc_source_set("simulcast_test_fixture_api") {
555 visibility = [ "*" ]
556 testonly = true
557 sources = [
558 "test/simulcast_test_fixture.h",
559 ]
560 }
561
562 rtc_source_set("create_simulcast_test_fixture_api") {
563 visibility = [ "*" ]
564 testonly = true
565 sources = [
566 "test/create_simulcast_test_fixture.cc",
567 "test/create_simulcast_test_fixture.h",
568 ]
569 deps = [
570 ":simulcast_test_fixture_api",
571 "../modules/video_coding:simulcast_test_fixture_impl",
572 "../rtc_base:rtc_base_approved",
573 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200574 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200575 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200576 }
577
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200578 rtc_source_set("videocodec_test_fixture_api") {
579 visibility = [ "*" ]
580 testonly = true
581 sources = [
582 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200583 "test/videocodec_test_stats.cc",
584 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200585 ]
586 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200587 "..:webrtc_common",
588 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200589 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100590 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200591 "video_codecs:video_codecs_api",
592 ]
593 }
594
595 rtc_source_set("create_videocodec_test_fixture_api") {
596 visibility = [ "*" ]
597 testonly = true
598 sources = [
599 "test/create_videocodec_test_fixture.cc",
600 "test/create_videocodec_test_fixture.h",
601 ]
602 deps = [
603 ":videocodec_test_fixture_api",
604 "../modules/video_coding:video_codecs_test_framework",
605 "../modules/video_coding:videocodec_test_impl",
606 "../rtc_base:rtc_base_approved",
607 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200608 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200609 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200610 }
611
kjellander2f6af9c2017-03-02 22:26:23 -0800612 rtc_source_set("mock_audio_mixer") {
613 testonly = true
614 sources = [
615 "test/mock_audio_mixer.h",
616 ]
617
kjellander2f6af9c2017-03-02 22:26:23 -0800618 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700619 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100620 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800621 ]
622 }
623
Benjamin Wright78410ad2018-10-25 09:52:57 -0700624 rtc_source_set("mock_frame_encryptor") {
625 testonly = true
626 sources = [
627 "test/mock_frame_encryptor.cc",
628 "test/mock_frame_encryptor.h",
629 ]
630 deps = [
631 ":libjingle_peerconnection_api",
632 "../test:test_support",
633 ]
634 }
635
636 rtc_source_set("mock_frame_decryptor") {
637 testonly = true
638 sources = [
639 "test/mock_frame_decryptor.cc",
640 "test/mock_frame_decryptor.h",
641 ]
642 deps = [
643 ":libjingle_peerconnection_api",
644 "../test:test_support",
645 ]
646 }
647
648 rtc_source_set("fake_frame_encryptor") {
649 testonly = true
650 sources = [
651 "test/fake_frame_encryptor.cc",
652 "test/fake_frame_encryptor.h",
653 ]
654 deps = [
655 ":array_view",
656 ":libjingle_peerconnection_api",
657 "..:webrtc_common",
658 "../rtc_base:checks",
659 "../rtc_base:rtc_base_approved",
660 ]
661 }
662
663 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700664 testonly = true
665 sources = [
666 "test/fake_frame_decryptor.cc",
667 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700668 ]
669 deps = [
670 ":array_view",
671 ":libjingle_peerconnection_api",
672 "..:webrtc_common",
673 "../rtc_base:checks",
674 "../rtc_base:rtc_base_approved",
675 ]
676 }
677
Jiawei Ou651b92e2018-06-29 15:46:44 -0700678 rtc_source_set("mock_peerconnectioninterface") {
679 testonly = true
680 sources = [
681 "test/mock_peerconnectioninterface.h",
682 ]
683
684 deps = [
685 ":libjingle_peerconnection_api",
686 "../test:test_support",
687 ]
688 }
689
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100690 rtc_source_set("mock_rtp") {
691 testonly = true
692 sources = [
693 "test/mock_rtpreceiver.h",
694 "test/mock_rtpsender.h",
695 ]
696
697 deps = [
698 ":libjingle_peerconnection_api",
699 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100700 ]
701 }
702
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700703 rtc_source_set("mock_video_bitrate_allocator") {
704 testonly = true
705 sources = [
706 "test/mock_video_bitrate_allocator.h",
707 ]
708
709 deps = [
710 "../api/video:video_bitrate_allocator",
711 "../test:test_support",
712 ]
713 }
714
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800715 rtc_source_set("mock_video_bitrate_allocator_factory") {
716 testonly = true
717 sources = [
718 "test/mock_video_bitrate_allocator_factory.h",
719 ]
720
721 deps = [
722 "../api/video:video_bitrate_allocator_factory",
723 "../test:test_support",
724 ]
725 }
726
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700727 rtc_source_set("mock_video_codec_factory") {
728 testonly = true
729 sources = [
730 "test/mock_video_decoder_factory.h",
731 "test/mock_video_encoder_factory.h",
732 ]
733
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700734 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100735 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700736 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700737 ]
738 }
739
Erik Språngc84cd952018-10-15 11:55:13 +0200740 rtc_source_set("mock_video_decoder") {
741 visibility = [ "*" ]
742
743 testonly = true
744 sources = [
745 "test/mock_video_decoder.cc",
746 "test/mock_video_decoder.h",
747 ]
748
749 deps = [
750 "../api/video_codecs:video_codecs_api",
751 "../test:test_support",
752 ]
753 }
754
Erik Språng6af1c922018-10-12 10:01:30 +0200755 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200756 visibility = [ "*" ]
757
Erik Språng6af1c922018-10-12 10:01:30 +0200758 testonly = true
759 sources = [
760 "test/mock_video_encoder.cc",
761 "test/mock_video_encoder.h",
762 ]
763
764 deps = [
765 "../api/video_codecs:video_codecs_api",
766 "../test:test_support",
767 ]
768 }
769
Anton Sukhanov7940da02018-10-10 10:34:49 -0700770 rtc_source_set("fake_media_transport") {
771 testonly = true
772
773 sources = [
774 "test/fake_media_transport.h",
775 ]
776
777 deps = [
778 ":libjingle_peerconnection_api",
779 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700780 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100781 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700782 ]
783 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200784
785 rtc_source_set("loopback_media_transport") {
786 testonly = true
787
788 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100789 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200790 "test/loopback_media_transport.h",
791 ]
792
793 deps = [
794 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100795 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200796 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700797 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100798 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200799 ]
800 }
801
802 rtc_source_set("rtc_api_unittests") {
803 testonly = true
804
805 sources = [
806 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100807 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800808 "rtc_error_unittest.cc",
809 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200810 "test/loopback_media_transport_unittest.cc",
811 ]
812
Niels Möller2e47f7c2018-10-16 10:41:42 +0200813 deps = [
814 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100815 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200816 ":libjingle_peerconnection_api",
817 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200818 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100819 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200820 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200821 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100822 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200823 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200824 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200825 ]
826 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100827
828 rtc_source_set("compile_all_headers") {
829 testonly = true
830
831 sources = [
832 "test/compile_all_headers.cc",
833 ]
834
835 deps = [
836 ":fake_frame_decryptor",
837 ":fake_frame_encryptor",
838 ":fake_media_transport",
839 ":loopback_media_transport",
840 ":mock_audio_mixer",
841 ":mock_frame_decryptor",
842 ":mock_frame_encryptor",
843 ":mock_peerconnectioninterface",
844 ":mock_rtp",
845 ":mock_video_bitrate_allocator",
846 ":mock_video_bitrate_allocator_factory",
847 ":mock_video_codec_factory",
848 ":mock_video_decoder",
849 ":mock_video_encoder",
850 ":rtc_api_unittests",
851 "units:units_unittests",
852 ]
853 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700854}