blob: 45d3bb59808b6d23bb9df6b94776def8c256696e [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",
199 "video_codecs:video_codecs_api",
200 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200201}
202
Artem Titovd57628f2019-03-22 12:34:25 +0100203rtc_source_set("video_quality_analyzer_api") {
204 visibility = [ "*" ]
205 testonly = true
206 sources = [
207 "test/video_quality_analyzer_interface.h",
208 ]
209
210 deps = [
211 ":stats_observer_interface",
212 "video:encoded_image",
213 "video:video_frame",
214 "video_codecs:video_codecs_api",
215 "//third_party/abseil-cpp/absl/strings",
216 "//third_party/abseil-cpp/absl/types:optional",
217 ]
218}
219
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200220rtc_source_set("track_id_stream_label_map") {
221 visibility = [ "*" ]
222 sources = [
223 "test/track_id_stream_label_map.h",
224 ]
225}
226
Artem Titovd57628f2019-03-22 12:34:25 +0100227rtc_source_set("audio_quality_analyzer_api") {
228 visibility = [ "*" ]
229 testonly = true
230 sources = [
231 "test/audio_quality_analyzer_interface.h",
232 ]
233
234 deps = [
235 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200236 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100237 ]
238}
239
240rtc_source_set("stats_observer_interface") {
241 visibility = [ "*" ]
242 testonly = true
243 sources = [
244 "test/stats_observer_interface.h",
245 ]
246
247 deps = [
248 ":libjingle_peerconnection_api",
249 "//third_party/abseil-cpp/absl/strings",
250 ]
251}
252
253rtc_source_set("peer_connection_quality_test_fixture_api") {
254 visibility = [ "*" ]
255 testonly = true
256 sources = [
257 "test/peerconnection_quality_test_fixture.h",
258 ]
259
260 deps = [
261 ":audio_quality_analyzer_api",
262 ":callfactory_api",
263 ":fec_controller_api",
264 ":function_view",
265 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200266 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100267 ":simulated_network_api",
268 ":video_quality_analyzer_api",
269 "../logging:rtc_event_log_api",
270 "../rtc_base:rtc_base",
271 "transport:network_control",
272 "units:time_delta",
273 "video_codecs:video_codecs_api",
274 "//third_party/abseil-cpp/absl/memory",
275 "//third_party/abseil-cpp/absl/types:optional",
276 ]
277}
278
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200279rtc_source_set("test_dependency_factory") {
280 visibility = [ "*" ]
281 testonly = true
282 sources = [
283 "test/test_dependency_factory.cc",
284 "test/test_dependency_factory.h",
285 ]
286 deps = [
287 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100288 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200289 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900290 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200291 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200292}
293
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200294if (rtc_include_tests) {
295 rtc_source_set("create_video_quality_test_fixture_api") {
296 visibility = [ "*" ]
297 testonly = true
298 sources = [
299 "test/create_video_quality_test_fixture.cc",
300 "test/create_video_quality_test_fixture.h",
301 ]
302 deps = [
303 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200304 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100305 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200306 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200307 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200308 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200309 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200310 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100311
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100312 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100313 visibility = [ "*" ]
314 testonly = true
315 sources = [
316 "test/create_network_emulation_manager.cc",
317 "test/create_network_emulation_manager.h",
318 ]
319 deps = [
320 ":network_emulation_manager_api",
321 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100322 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100323 ]
324 }
Artem Titovd57628f2019-03-22 12:34:25 +0100325
326 rtc_source_set("create_peerconnection_quality_test_fixture") {
327 visibility = [ "*" ]
328 testonly = true
329 sources = [
330 "test/create_peerconnection_quality_test_fixture.cc",
331 "test/create_peerconnection_quality_test_fixture.h",
332 ]
333
334 deps = [
335 ":audio_quality_analyzer_api",
336 ":peer_connection_quality_test_fixture_api",
337 ":video_quality_analyzer_api",
338 "../test/pc/e2e:peerconnection_quality_test",
339 "//third_party/abseil-cpp/absl/memory",
340 ]
341 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200342}
343
Elad Alon80810732017-10-06 13:07:32 +0200344rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000345 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200346 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800347 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200348 ]
349}
350
deadbeefe814a0d2017-02-25 18:15:09 -0800351rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000352 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800353 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800354 "ortc/packet_transport_interface.h",
355 "ortc/rtp_transport_interface.h",
356 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800357 ]
358
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100359 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800360 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100361 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200362 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800363 ]
364}
365
hbos74e1a4f2016-09-15 23:33:01 -0700366rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000367 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700368 cflags = []
369 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800370 "stats/rtc_stats.h",
371 "stats/rtc_stats_collector_callback.h",
372 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700373 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700374 ]
375
376 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100377 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100378 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700379 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200380 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700381 ]
382}
383
Niels Möllera6fe2612018-01-19 11:28:54 +0100384rtc_source_set("audio_options_api") {
385 visibility = [ "*" ]
386 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200387 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100388 "audio_options.h",
389 ]
390
391 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100392 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200393 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200394 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100395 ]
396}
397
aleloia8eb7562016-11-28 07:02:13 -0800398rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000399 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800400 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100401 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800402 "call/transport.h",
403 ]
404}
nisseb2250e52016-12-02 04:01:14 -0800405
Sebastian Jansson6736df12018-11-21 19:18:39 +0100406rtc_source_set("bitrate_allocation") {
407 visibility = [ "*" ]
408 sources = [
409 "call/bitrate_allocation.h",
410 ]
411 deps = [
412 "units:data_rate",
413 "units:time_delta",
414 ]
415}
416
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200417rtc_source_set("simulated_network_api") {
418 visibility = [ "*" ]
419 sources = [
420 "test/simulated_network.h",
421 ]
422 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100423 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200424 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200425 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200426 ]
427}
428
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100429rtc_source_set("network_emulation_manager_api") {
430 visibility = [ "*" ]
431 sources = [
432 "test/network_emulation_manager.h",
433 ]
434 deps = [
435 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100436 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200437 "units:data_rate",
438 "units:data_size",
439 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100440 ]
441}
442
Ying Wang3b790f32018-01-19 17:58:57 +0100443rtc_source_set("fec_controller_api") {
444 visibility = [ "*" ]
445 sources = [
446 "fec_controller.h",
447 ]
448
449 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100450 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100451 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100452 ]
453}
454
Ying Wang0810a7c2019-04-10 13:48:24 +0200455rtc_source_set("network_state_predictor_api") {
456 visibility = [ "*" ]
457 sources = [
458 "network_state_predictor.h",
459 ]
460}
461
kwiberg529662a2017-09-04 05:43:17 -0700462rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000463 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700464 sources = [
465 "array_view.h",
466 ]
467 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100468 "../rtc_base:checks",
469 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700470 ]
471}
472
Niels Möller9155e492017-10-23 11:22:30 +0200473rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000474 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200475 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800476 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200477 ]
478 deps = [
479 "../rtc_base:rtc_base_approved",
480 ]
481}
482
Harald Alvestrand98462622019-01-30 14:57:03 +0100483rtc_source_set("ice_transport_factory") {
484 visibility = [ "*" ]
485 sources = [
486 "ice_transport_factory.cc",
487 "ice_transport_factory.h",
488 ]
489 deps = [
490 ":libjingle_peerconnection_api",
491 ":scoped_refptr",
492 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100493 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200494 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100495 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100496 ]
497}
498
Ivo Creusen55de08e2018-09-03 11:49:27 +0200499rtc_source_set("neteq_simulator_api") {
500 visibility = [ "*" ]
501 sources = [
502 "test/neteq_simulator.cc",
503 "test/neteq_simulator.h",
504 ]
505}
506
Artem Titov741daaf2019-03-21 14:37:36 +0100507rtc_source_set("function_view") {
508 visibility = [ "*" ]
509 sources = [
510 "function_view.h",
511 ]
512 deps = [
513 "../rtc_base:checks",
514 ]
515}
516
kjellanderfd5b4e92016-06-13 12:08:33 -0700517if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100518 if (rtc_enable_protobuf) {
519 rtc_source_set("audioproc_f_api") {
520 visibility = [ "*" ]
521 testonly = true
522 sources = [
523 "test/audioproc_float.cc",
524 "test/audioproc_float.h",
525 ]
526
527 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100528 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000529 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100530 "../modules/audio_processing:audioproc_f_impl",
531 ]
532 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200533
534 rtc_source_set("neteq_simulator_factory") {
535 visibility = [ "*" ]
536 testonly = true
537 sources = [
538 "test/neteq_simulator_factory.cc",
539 "test/neteq_simulator_factory.h",
540 ]
541 deps = [
542 ":neteq_simulator_api",
543 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200544 "../rtc_base:checks",
545 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200546 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100547 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200548 ]
549 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100550 }
551
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200552 rtc_source_set("simulcast_test_fixture_api") {
553 visibility = [ "*" ]
554 testonly = true
555 sources = [
556 "test/simulcast_test_fixture.h",
557 ]
558 }
559
560 rtc_source_set("create_simulcast_test_fixture_api") {
561 visibility = [ "*" ]
562 testonly = true
563 sources = [
564 "test/create_simulcast_test_fixture.cc",
565 "test/create_simulcast_test_fixture.h",
566 ]
567 deps = [
568 ":simulcast_test_fixture_api",
569 "../modules/video_coding:simulcast_test_fixture_impl",
570 "../rtc_base:rtc_base_approved",
571 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200572 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200573 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200574 }
575
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200576 rtc_source_set("videocodec_test_fixture_api") {
577 visibility = [ "*" ]
578 testonly = true
579 sources = [
580 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200581 "test/videocodec_test_stats.cc",
582 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200583 ]
584 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200585 "..:webrtc_common",
586 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200587 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100588 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200589 "video_codecs:video_codecs_api",
590 ]
591 }
592
593 rtc_source_set("create_videocodec_test_fixture_api") {
594 visibility = [ "*" ]
595 testonly = true
596 sources = [
597 "test/create_videocodec_test_fixture.cc",
598 "test/create_videocodec_test_fixture.h",
599 ]
600 deps = [
601 ":videocodec_test_fixture_api",
602 "../modules/video_coding:video_codecs_test_framework",
603 "../modules/video_coding:videocodec_test_impl",
604 "../rtc_base:rtc_base_approved",
605 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200606 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200607 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200608 }
609
kjellander2f6af9c2017-03-02 22:26:23 -0800610 rtc_source_set("mock_audio_mixer") {
611 testonly = true
612 sources = [
613 "test/mock_audio_mixer.h",
614 ]
615
kjellander2f6af9c2017-03-02 22:26:23 -0800616 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700617 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100618 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800619 ]
620 }
621
Benjamin Wright78410ad2018-10-25 09:52:57 -0700622 rtc_source_set("mock_frame_encryptor") {
623 testonly = true
624 sources = [
625 "test/mock_frame_encryptor.cc",
626 "test/mock_frame_encryptor.h",
627 ]
628 deps = [
629 ":libjingle_peerconnection_api",
630 "../test:test_support",
631 ]
632 }
633
634 rtc_source_set("mock_frame_decryptor") {
635 testonly = true
636 sources = [
637 "test/mock_frame_decryptor.cc",
638 "test/mock_frame_decryptor.h",
639 ]
640 deps = [
641 ":libjingle_peerconnection_api",
642 "../test:test_support",
643 ]
644 }
645
646 rtc_source_set("fake_frame_encryptor") {
647 testonly = true
648 sources = [
649 "test/fake_frame_encryptor.cc",
650 "test/fake_frame_encryptor.h",
651 ]
652 deps = [
653 ":array_view",
654 ":libjingle_peerconnection_api",
655 "..:webrtc_common",
656 "../rtc_base:checks",
657 "../rtc_base:rtc_base_approved",
658 ]
659 }
660
661 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700662 testonly = true
663 sources = [
664 "test/fake_frame_decryptor.cc",
665 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700666 ]
667 deps = [
668 ":array_view",
669 ":libjingle_peerconnection_api",
670 "..:webrtc_common",
671 "../rtc_base:checks",
672 "../rtc_base:rtc_base_approved",
673 ]
674 }
675
Jiawei Ou651b92e2018-06-29 15:46:44 -0700676 rtc_source_set("mock_peerconnectioninterface") {
677 testonly = true
678 sources = [
679 "test/mock_peerconnectioninterface.h",
680 ]
681
682 deps = [
683 ":libjingle_peerconnection_api",
684 "../test:test_support",
685 ]
686 }
687
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100688 rtc_source_set("mock_rtp") {
689 testonly = true
690 sources = [
691 "test/mock_rtpreceiver.h",
692 "test/mock_rtpsender.h",
693 ]
694
695 deps = [
696 ":libjingle_peerconnection_api",
697 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100698 ]
699 }
700
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700701 rtc_source_set("mock_video_bitrate_allocator") {
702 testonly = true
703 sources = [
704 "test/mock_video_bitrate_allocator.h",
705 ]
706
707 deps = [
708 "../api/video:video_bitrate_allocator",
709 "../test:test_support",
710 ]
711 }
712
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800713 rtc_source_set("mock_video_bitrate_allocator_factory") {
714 testonly = true
715 sources = [
716 "test/mock_video_bitrate_allocator_factory.h",
717 ]
718
719 deps = [
720 "../api/video:video_bitrate_allocator_factory",
721 "../test:test_support",
722 ]
723 }
724
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700725 rtc_source_set("mock_video_codec_factory") {
726 testonly = true
727 sources = [
728 "test/mock_video_decoder_factory.h",
729 "test/mock_video_encoder_factory.h",
730 ]
731
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700732 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100733 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700734 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700735 ]
736 }
737
Erik Språngc84cd952018-10-15 11:55:13 +0200738 rtc_source_set("mock_video_decoder") {
739 visibility = [ "*" ]
740
741 testonly = true
742 sources = [
743 "test/mock_video_decoder.cc",
744 "test/mock_video_decoder.h",
745 ]
746
747 deps = [
748 "../api/video_codecs:video_codecs_api",
749 "../test:test_support",
750 ]
751 }
752
Erik Språng6af1c922018-10-12 10:01:30 +0200753 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200754 visibility = [ "*" ]
755
Erik Språng6af1c922018-10-12 10:01:30 +0200756 testonly = true
757 sources = [
758 "test/mock_video_encoder.cc",
759 "test/mock_video_encoder.h",
760 ]
761
762 deps = [
763 "../api/video_codecs:video_codecs_api",
764 "../test:test_support",
765 ]
766 }
767
Anton Sukhanov7940da02018-10-10 10:34:49 -0700768 rtc_source_set("fake_media_transport") {
769 testonly = true
770
771 sources = [
772 "test/fake_media_transport.h",
773 ]
774
775 deps = [
776 ":libjingle_peerconnection_api",
777 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700778 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100779 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700780 ]
781 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200782
783 rtc_source_set("loopback_media_transport") {
784 testonly = true
785
786 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100787 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200788 "test/loopback_media_transport.h",
789 ]
790
791 deps = [
792 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100793 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200794 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700795 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100796 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200797 ]
798 }
799
800 rtc_source_set("rtc_api_unittests") {
801 testonly = true
802
803 sources = [
804 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100805 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800806 "rtc_error_unittest.cc",
807 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200808 "test/loopback_media_transport_unittest.cc",
809 ]
810
Niels Möller2e47f7c2018-10-16 10:41:42 +0200811 deps = [
812 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100813 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200814 ":libjingle_peerconnection_api",
815 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200816 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100817 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200818 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200819 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100820 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200821 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200822 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200823 ]
824 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100825
826 rtc_source_set("compile_all_headers") {
827 testonly = true
828
829 sources = [
830 "test/compile_all_headers.cc",
831 ]
832
833 deps = [
834 ":fake_frame_decryptor",
835 ":fake_frame_encryptor",
836 ":fake_media_transport",
837 ":loopback_media_transport",
838 ":mock_audio_mixer",
839 ":mock_frame_decryptor",
840 ":mock_frame_encryptor",
841 ":mock_peerconnectioninterface",
842 ":mock_rtp",
843 ":mock_video_bitrate_allocator",
844 ":mock_video_bitrate_allocator_factory",
845 ":mock_video_codec_factory",
846 ":mock_video_decoder",
847 ":mock_video_encoder",
848 ":rtc_api_unittests",
849 "units:units_unittests",
850 ]
851 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700852}