blob: 0b86f196e5768dc653e2b06fcdbfbad0da474462 [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",
271 "../rtc_base:rtc_base",
272 "transport:network_control",
273 "units:time_delta",
274 "video_codecs:video_codecs_api",
275 "//third_party/abseil-cpp/absl/memory",
276 "//third_party/abseil-cpp/absl/types:optional",
277 ]
278}
279
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200280rtc_source_set("test_dependency_factory") {
281 visibility = [ "*" ]
282 testonly = true
283 sources = [
284 "test/test_dependency_factory.cc",
285 "test/test_dependency_factory.h",
286 ]
287 deps = [
288 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100289 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200290 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900291 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200292 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200293}
294
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200295if (rtc_include_tests) {
296 rtc_source_set("create_video_quality_test_fixture_api") {
297 visibility = [ "*" ]
298 testonly = true
299 sources = [
300 "test/create_video_quality_test_fixture.cc",
301 "test/create_video_quality_test_fixture.h",
302 ]
303 deps = [
304 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200305 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100306 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200307 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200308 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200309 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200310 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200311 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100312
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100313 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100314 visibility = [ "*" ]
315 testonly = true
316 sources = [
317 "test/create_network_emulation_manager.cc",
318 "test/create_network_emulation_manager.h",
319 ]
320 deps = [
321 ":network_emulation_manager_api",
322 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100323 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100324 ]
325 }
Artem Titovd57628f2019-03-22 12:34:25 +0100326
327 rtc_source_set("create_peerconnection_quality_test_fixture") {
328 visibility = [ "*" ]
329 testonly = true
330 sources = [
331 "test/create_peerconnection_quality_test_fixture.cc",
332 "test/create_peerconnection_quality_test_fixture.h",
333 ]
334
335 deps = [
336 ":audio_quality_analyzer_api",
337 ":peer_connection_quality_test_fixture_api",
338 ":video_quality_analyzer_api",
339 "../test/pc/e2e:peerconnection_quality_test",
340 "//third_party/abseil-cpp/absl/memory",
341 ]
342 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200343}
344
Elad Alon80810732017-10-06 13:07:32 +0200345rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000346 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200347 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800348 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200349 ]
350}
351
deadbeefe814a0d2017-02-25 18:15:09 -0800352rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000353 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800354 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800355 "ortc/packet_transport_interface.h",
356 "ortc/rtp_transport_interface.h",
357 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800358 ]
359
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100360 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800361 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100362 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200363 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800364 ]
365}
366
hbos74e1a4f2016-09-15 23:33:01 -0700367rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000368 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700369 cflags = []
370 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800371 "stats/rtc_stats.h",
372 "stats/rtc_stats_collector_callback.h",
373 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700374 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700375 ]
376
377 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100378 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100379 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700380 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200381 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700382 ]
383}
384
Niels Möllera6fe2612018-01-19 11:28:54 +0100385rtc_source_set("audio_options_api") {
386 visibility = [ "*" ]
387 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200388 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100389 "audio_options.h",
390 ]
391
392 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100393 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200394 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200395 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100396 ]
397}
398
aleloia8eb7562016-11-28 07:02:13 -0800399rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000400 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800401 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100402 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800403 "call/transport.h",
404 ]
405}
nisseb2250e52016-12-02 04:01:14 -0800406
Sebastian Jansson6736df12018-11-21 19:18:39 +0100407rtc_source_set("bitrate_allocation") {
408 visibility = [ "*" ]
409 sources = [
410 "call/bitrate_allocation.h",
411 ]
412 deps = [
413 "units:data_rate",
414 "units:time_delta",
415 ]
416}
417
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200418rtc_source_set("simulated_network_api") {
419 visibility = [ "*" ]
420 sources = [
421 "test/simulated_network.h",
422 ]
423 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100424 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200425 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200426 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200427 ]
428}
429
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100430rtc_source_set("network_emulation_manager_api") {
431 visibility = [ "*" ]
432 sources = [
433 "test/network_emulation_manager.h",
434 ]
435 deps = [
436 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100437 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200438 "units:data_rate",
439 "units:data_size",
440 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100441 ]
442}
443
Ying Wang3b790f32018-01-19 17:58:57 +0100444rtc_source_set("fec_controller_api") {
445 visibility = [ "*" ]
446 sources = [
447 "fec_controller.h",
448 ]
449
450 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100451 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100452 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100453 ]
454}
455
Ying Wang0810a7c2019-04-10 13:48:24 +0200456rtc_source_set("network_state_predictor_api") {
457 visibility = [ "*" ]
458 sources = [
459 "network_state_predictor.h",
460 ]
461}
462
kwiberg529662a2017-09-04 05:43:17 -0700463rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000464 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700465 sources = [
466 "array_view.h",
467 ]
468 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100469 "../rtc_base:checks",
470 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700471 ]
472}
473
Niels Möller9155e492017-10-23 11:22:30 +0200474rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000475 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200476 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800477 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200478 ]
479 deps = [
480 "../rtc_base:rtc_base_approved",
481 ]
482}
483
Harald Alvestrand98462622019-01-30 14:57:03 +0100484rtc_source_set("ice_transport_factory") {
485 visibility = [ "*" ]
486 sources = [
487 "ice_transport_factory.cc",
488 "ice_transport_factory.h",
489 ]
490 deps = [
491 ":libjingle_peerconnection_api",
492 ":scoped_refptr",
493 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100494 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200495 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100496 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100497 ]
498}
499
Ivo Creusen55de08e2018-09-03 11:49:27 +0200500rtc_source_set("neteq_simulator_api") {
501 visibility = [ "*" ]
502 sources = [
503 "test/neteq_simulator.cc",
504 "test/neteq_simulator.h",
505 ]
506}
507
Artem Titov741daaf2019-03-21 14:37:36 +0100508rtc_source_set("function_view") {
509 visibility = [ "*" ]
510 sources = [
511 "function_view.h",
512 ]
513 deps = [
514 "../rtc_base:checks",
515 ]
516}
517
kjellanderfd5b4e92016-06-13 12:08:33 -0700518if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100519 if (rtc_enable_protobuf) {
520 rtc_source_set("audioproc_f_api") {
521 visibility = [ "*" ]
522 testonly = true
523 sources = [
524 "test/audioproc_float.cc",
525 "test/audioproc_float.h",
526 ]
527
528 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100529 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000530 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100531 "../modules/audio_processing:audioproc_f_impl",
532 ]
533 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200534
535 rtc_source_set("neteq_simulator_factory") {
536 visibility = [ "*" ]
537 testonly = true
538 sources = [
539 "test/neteq_simulator_factory.cc",
540 "test/neteq_simulator_factory.h",
541 ]
542 deps = [
543 ":neteq_simulator_api",
544 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200545 "../rtc_base:checks",
546 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200547 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100548 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200549 ]
550 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100551 }
552
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200553 rtc_source_set("simulcast_test_fixture_api") {
554 visibility = [ "*" ]
555 testonly = true
556 sources = [
557 "test/simulcast_test_fixture.h",
558 ]
559 }
560
561 rtc_source_set("create_simulcast_test_fixture_api") {
562 visibility = [ "*" ]
563 testonly = true
564 sources = [
565 "test/create_simulcast_test_fixture.cc",
566 "test/create_simulcast_test_fixture.h",
567 ]
568 deps = [
569 ":simulcast_test_fixture_api",
570 "../modules/video_coding:simulcast_test_fixture_impl",
571 "../rtc_base:rtc_base_approved",
572 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200573 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200574 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200575 }
576
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200577 rtc_source_set("videocodec_test_fixture_api") {
578 visibility = [ "*" ]
579 testonly = true
580 sources = [
581 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200582 "test/videocodec_test_stats.cc",
583 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200584 ]
585 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200586 "..:webrtc_common",
587 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200588 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100589 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200590 "video_codecs:video_codecs_api",
591 ]
592 }
593
594 rtc_source_set("create_videocodec_test_fixture_api") {
595 visibility = [ "*" ]
596 testonly = true
597 sources = [
598 "test/create_videocodec_test_fixture.cc",
599 "test/create_videocodec_test_fixture.h",
600 ]
601 deps = [
602 ":videocodec_test_fixture_api",
603 "../modules/video_coding:video_codecs_test_framework",
604 "../modules/video_coding:videocodec_test_impl",
605 "../rtc_base:rtc_base_approved",
606 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200607 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200608 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200609 }
610
kjellander2f6af9c2017-03-02 22:26:23 -0800611 rtc_source_set("mock_audio_mixer") {
612 testonly = true
613 sources = [
614 "test/mock_audio_mixer.h",
615 ]
616
kjellander2f6af9c2017-03-02 22:26:23 -0800617 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700618 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100619 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800620 ]
621 }
622
Benjamin Wright78410ad2018-10-25 09:52:57 -0700623 rtc_source_set("mock_frame_encryptor") {
624 testonly = true
625 sources = [
626 "test/mock_frame_encryptor.cc",
627 "test/mock_frame_encryptor.h",
628 ]
629 deps = [
630 ":libjingle_peerconnection_api",
631 "../test:test_support",
632 ]
633 }
634
635 rtc_source_set("mock_frame_decryptor") {
636 testonly = true
637 sources = [
638 "test/mock_frame_decryptor.cc",
639 "test/mock_frame_decryptor.h",
640 ]
641 deps = [
642 ":libjingle_peerconnection_api",
643 "../test:test_support",
644 ]
645 }
646
647 rtc_source_set("fake_frame_encryptor") {
648 testonly = true
649 sources = [
650 "test/fake_frame_encryptor.cc",
651 "test/fake_frame_encryptor.h",
652 ]
653 deps = [
654 ":array_view",
655 ":libjingle_peerconnection_api",
656 "..:webrtc_common",
657 "../rtc_base:checks",
658 "../rtc_base:rtc_base_approved",
659 ]
660 }
661
662 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700663 testonly = true
664 sources = [
665 "test/fake_frame_decryptor.cc",
666 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700667 ]
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
Jiawei Ou651b92e2018-06-29 15:46:44 -0700677 rtc_source_set("mock_peerconnectioninterface") {
678 testonly = true
679 sources = [
680 "test/mock_peerconnectioninterface.h",
681 ]
682
683 deps = [
684 ":libjingle_peerconnection_api",
685 "../test:test_support",
686 ]
687 }
688
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100689 rtc_source_set("mock_rtp") {
690 testonly = true
691 sources = [
692 "test/mock_rtpreceiver.h",
693 "test/mock_rtpsender.h",
694 ]
695
696 deps = [
697 ":libjingle_peerconnection_api",
698 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100699 ]
700 }
701
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700702 rtc_source_set("mock_video_bitrate_allocator") {
703 testonly = true
704 sources = [
705 "test/mock_video_bitrate_allocator.h",
706 ]
707
708 deps = [
709 "../api/video:video_bitrate_allocator",
710 "../test:test_support",
711 ]
712 }
713
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800714 rtc_source_set("mock_video_bitrate_allocator_factory") {
715 testonly = true
716 sources = [
717 "test/mock_video_bitrate_allocator_factory.h",
718 ]
719
720 deps = [
721 "../api/video:video_bitrate_allocator_factory",
722 "../test:test_support",
723 ]
724 }
725
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700726 rtc_source_set("mock_video_codec_factory") {
727 testonly = true
728 sources = [
729 "test/mock_video_decoder_factory.h",
730 "test/mock_video_encoder_factory.h",
731 ]
732
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700733 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100734 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700735 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700736 ]
737 }
738
Erik Språngc84cd952018-10-15 11:55:13 +0200739 rtc_source_set("mock_video_decoder") {
740 visibility = [ "*" ]
741
742 testonly = true
743 sources = [
744 "test/mock_video_decoder.cc",
745 "test/mock_video_decoder.h",
746 ]
747
748 deps = [
749 "../api/video_codecs:video_codecs_api",
750 "../test:test_support",
751 ]
752 }
753
Erik Språng6af1c922018-10-12 10:01:30 +0200754 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200755 visibility = [ "*" ]
756
Erik Språng6af1c922018-10-12 10:01:30 +0200757 testonly = true
758 sources = [
759 "test/mock_video_encoder.cc",
760 "test/mock_video_encoder.h",
761 ]
762
763 deps = [
764 "../api/video_codecs:video_codecs_api",
765 "../test:test_support",
766 ]
767 }
768
Anton Sukhanov7940da02018-10-10 10:34:49 -0700769 rtc_source_set("fake_media_transport") {
770 testonly = true
771
772 sources = [
773 "test/fake_media_transport.h",
774 ]
775
776 deps = [
777 ":libjingle_peerconnection_api",
778 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700779 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100780 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700781 ]
782 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200783
784 rtc_source_set("loopback_media_transport") {
785 testonly = true
786
787 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100788 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200789 "test/loopback_media_transport.h",
790 ]
791
792 deps = [
793 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100794 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200795 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700796 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100797 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200798 ]
799 }
800
801 rtc_source_set("rtc_api_unittests") {
802 testonly = true
803
804 sources = [
805 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100806 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800807 "rtc_error_unittest.cc",
808 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200809 "test/loopback_media_transport_unittest.cc",
810 ]
811
Niels Möller2e47f7c2018-10-16 10:41:42 +0200812 deps = [
813 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100814 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200815 ":libjingle_peerconnection_api",
816 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200817 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100818 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200819 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200820 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100821 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200822 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200823 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200824 ]
825 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100826
827 rtc_source_set("compile_all_headers") {
828 testonly = true
829
830 sources = [
831 "test/compile_all_headers.cc",
832 ]
833
834 deps = [
835 ":fake_frame_decryptor",
836 ":fake_frame_encryptor",
837 ":fake_media_transport",
838 ":loopback_media_transport",
839 ":mock_audio_mixer",
840 ":mock_frame_decryptor",
841 ":mock_frame_encryptor",
842 ":mock_peerconnectioninterface",
843 ":mock_rtp",
844 ":mock_video_bitrate_allocator",
845 ":mock_video_bitrate_allocator_factory",
846 ":mock_video_codec_factory",
847 ":mock_video_decoder",
848 ":mock_video_encoder",
849 ":rtc_api_unittests",
850 "units:units_unittests",
851 ]
852 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700853}