blob: 84b0c0ebb3afb727facf30e3540a97848dcbb4cf [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",
96 "dtls_transport_interface.h",
97 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +010098 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -080099 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700100 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800101 "jsep_ice_candidate.cc",
102 "jsep_ice_candidate.h",
103 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800104 "media_stream_interface.cc",
105 "media_stream_interface.h",
106 "media_stream_proxy.h",
107 "media_stream_track_proxy.h",
Niels Möller3a742392018-10-08 11:13:58 +0200108 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400109 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800110 "media_types.cc",
111 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -0700112 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800113 "peer_connection_factory_proxy.h",
114 "peer_connection_interface.cc",
115 "peer_connection_interface.h",
116 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700117 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700118 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800119 "rtc_error.cc",
120 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800121 "rtp_parameters.cc",
122 "rtp_parameters.h",
123 "rtp_receiver_interface.cc",
124 "rtp_receiver_interface.h",
125 "rtp_sender_interface.cc",
126 "rtp_sender_interface.h",
127 "rtp_transceiver_interface.cc",
128 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100129 "sctp_transport_interface.cc",
130 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800131 "set_remote_description_observer_interface.h",
132 "stats_types.cc",
133 "stats_types.h",
134 "turn_customizer.h",
135 "uma_metrics.h",
136 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700137 ]
kjellanderc76dc952016-06-03 03:09:32 -0700138 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100139 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100140 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100141 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100142 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100143 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200144 ":network_state_predictor_api",
hbos74e1a4f2016-09-15 23:33:01 -0700145 ":rtc_stats_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100146 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100147 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100148 "audio_codecs:audio_codecs_api",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200149 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200150 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200151 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100152 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100153 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800154 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200155 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200156 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800157 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800158 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200159 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100160
161 # Basically, don't add stuff here. You might break sensitive downstream
162 # targets like pnacl. API should not depend on anything outside of this
163 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700164 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100165 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100166 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100167 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100168 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100169 "../rtc_base:checks",
170 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700171 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200172 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700173 ]
ossu7bb87ee2017-01-23 04:56:25 -0800174}
kjellanderc76dc952016-06-03 03:09:32 -0700175
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100176rtc_source_set("scoped_refptr") {
177 visibility = [ "*" ]
178 sources = [
179 "scoped_refptr.h",
180 ]
181}
182
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200183rtc_source_set("video_quality_test_fixture_api") {
184 visibility = [ "*" ]
185 testonly = true
186 sources = [
187 "test/video_quality_test_fixture.h",
188 ]
189 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200190 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200191 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200192 ":network_state_predictor_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200193 ":simulated_network_api",
194 "../call:fake_network",
195 "../call:rtp_interfaces",
196 "../test:test_common",
197 "../test:video_test_common",
198 "video_codecs:video_codecs_api",
199 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200200}
201
Artem Titovd57628f2019-03-22 12:34:25 +0100202rtc_source_set("video_quality_analyzer_api") {
203 visibility = [ "*" ]
204 testonly = true
205 sources = [
206 "test/video_quality_analyzer_interface.h",
207 ]
208
209 deps = [
210 ":stats_observer_interface",
211 "video:encoded_image",
212 "video:video_frame",
213 "video_codecs:video_codecs_api",
214 "//third_party/abseil-cpp/absl/strings",
215 "//third_party/abseil-cpp/absl/types:optional",
216 ]
217}
218
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200219rtc_source_set("track_id_stream_label_map") {
220 visibility = [ "*" ]
221 sources = [
222 "test/track_id_stream_label_map.h",
223 ]
224}
225
Artem Titovd57628f2019-03-22 12:34:25 +0100226rtc_source_set("audio_quality_analyzer_api") {
227 visibility = [ "*" ]
228 testonly = true
229 sources = [
230 "test/audio_quality_analyzer_interface.h",
231 ]
232
233 deps = [
234 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200235 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100236 ]
237}
238
239rtc_source_set("stats_observer_interface") {
240 visibility = [ "*" ]
241 testonly = true
242 sources = [
243 "test/stats_observer_interface.h",
244 ]
245
246 deps = [
247 ":libjingle_peerconnection_api",
248 "//third_party/abseil-cpp/absl/strings",
249 ]
250}
251
252rtc_source_set("peer_connection_quality_test_fixture_api") {
253 visibility = [ "*" ]
254 testonly = true
255 sources = [
256 "test/peerconnection_quality_test_fixture.h",
257 ]
258
259 deps = [
260 ":audio_quality_analyzer_api",
261 ":callfactory_api",
262 ":fec_controller_api",
263 ":function_view",
264 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200265 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100266 ":simulated_network_api",
267 ":video_quality_analyzer_api",
268 "../logging:rtc_event_log_api",
269 "../rtc_base:rtc_base",
270 "transport:network_control",
271 "units:time_delta",
272 "video_codecs:video_codecs_api",
273 "//third_party/abseil-cpp/absl/memory",
274 "//third_party/abseil-cpp/absl/types:optional",
275 ]
276}
277
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200278rtc_source_set("test_dependency_factory") {
279 visibility = [ "*" ]
280 testonly = true
281 sources = [
282 "test/test_dependency_factory.cc",
283 "test/test_dependency_factory.h",
284 ]
285 deps = [
286 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100287 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200288 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900289 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200290 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200291}
292
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200293if (rtc_include_tests) {
294 rtc_source_set("create_video_quality_test_fixture_api") {
295 visibility = [ "*" ]
296 testonly = true
297 sources = [
298 "test/create_video_quality_test_fixture.cc",
299 "test/create_video_quality_test_fixture.h",
300 ]
301 deps = [
302 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200303 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100304 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200305 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200306 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200307 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200308 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200309 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100310
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100311 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100312 visibility = [ "*" ]
313 testonly = true
314 sources = [
315 "test/create_network_emulation_manager.cc",
316 "test/create_network_emulation_manager.h",
317 ]
318 deps = [
319 ":network_emulation_manager_api",
320 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100321 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100322 ]
323 }
Artem Titovd57628f2019-03-22 12:34:25 +0100324
325 rtc_source_set("create_peerconnection_quality_test_fixture") {
326 visibility = [ "*" ]
327 testonly = true
328 sources = [
329 "test/create_peerconnection_quality_test_fixture.cc",
330 "test/create_peerconnection_quality_test_fixture.h",
331 ]
332
333 deps = [
334 ":audio_quality_analyzer_api",
335 ":peer_connection_quality_test_fixture_api",
336 ":video_quality_analyzer_api",
337 "../test/pc/e2e:peerconnection_quality_test",
338 "//third_party/abseil-cpp/absl/memory",
339 ]
340 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200341}
342
Elad Alon80810732017-10-06 13:07:32 +0200343rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000344 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200345 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800346 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200347 ]
348}
349
deadbeefe814a0d2017-02-25 18:15:09 -0800350rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000351 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800352 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800353 "ortc/packet_transport_interface.h",
354 "ortc/rtp_transport_interface.h",
355 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800356 ]
357
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100358 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800359 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100360 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200361 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800362 ]
363}
364
hbos74e1a4f2016-09-15 23:33:01 -0700365rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000366 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700367 cflags = []
368 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800369 "stats/rtc_stats.h",
370 "stats/rtc_stats_collector_callback.h",
371 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700372 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700373 ]
374
375 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100376 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100377 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700378 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200379 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700380 ]
381}
382
Niels Möllera6fe2612018-01-19 11:28:54 +0100383rtc_source_set("audio_options_api") {
384 visibility = [ "*" ]
385 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200386 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100387 "audio_options.h",
388 ]
389
390 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100391 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200392 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200393 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100394 ]
395}
396
aleloia8eb7562016-11-28 07:02:13 -0800397rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000398 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800399 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100400 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800401 "call/transport.h",
402 ]
403}
nisseb2250e52016-12-02 04:01:14 -0800404
Sebastian Jansson6736df12018-11-21 19:18:39 +0100405rtc_source_set("bitrate_allocation") {
406 visibility = [ "*" ]
407 sources = [
408 "call/bitrate_allocation.h",
409 ]
410 deps = [
411 "units:data_rate",
412 "units:time_delta",
413 ]
414}
415
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200416rtc_source_set("simulated_network_api") {
417 visibility = [ "*" ]
418 sources = [
419 "test/simulated_network.h",
420 ]
421 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100422 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200423 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200424 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200425 ]
426}
427
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100428rtc_source_set("network_emulation_manager_api") {
429 visibility = [ "*" ]
430 sources = [
431 "test/network_emulation_manager.h",
432 ]
433 deps = [
434 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100435 "../rtc_base",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100436 ]
437}
438
Ying Wang3b790f32018-01-19 17:58:57 +0100439rtc_source_set("fec_controller_api") {
440 visibility = [ "*" ]
441 sources = [
442 "fec_controller.h",
443 ]
444
445 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100446 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100447 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100448 ]
449}
450
Ying Wang0810a7c2019-04-10 13:48:24 +0200451rtc_source_set("network_state_predictor_api") {
452 visibility = [ "*" ]
453 sources = [
454 "network_state_predictor.h",
455 ]
456}
457
kwiberg529662a2017-09-04 05:43:17 -0700458rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000459 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700460 sources = [
461 "array_view.h",
462 ]
463 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100464 "../rtc_base:checks",
465 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700466 ]
467}
468
Niels Möller9155e492017-10-23 11:22:30 +0200469rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000470 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200471 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800472 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200473 ]
474 deps = [
475 "../rtc_base:rtc_base_approved",
476 ]
477}
478
Harald Alvestrand98462622019-01-30 14:57:03 +0100479rtc_source_set("ice_transport_factory") {
480 visibility = [ "*" ]
481 sources = [
482 "ice_transport_factory.cc",
483 "ice_transport_factory.h",
484 ]
485 deps = [
486 ":libjingle_peerconnection_api",
487 ":scoped_refptr",
488 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100489 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200490 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100491 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100492 ]
493}
494
Ivo Creusen55de08e2018-09-03 11:49:27 +0200495rtc_source_set("neteq_simulator_api") {
496 visibility = [ "*" ]
497 sources = [
498 "test/neteq_simulator.cc",
499 "test/neteq_simulator.h",
500 ]
501}
502
Artem Titov741daaf2019-03-21 14:37:36 +0100503rtc_source_set("function_view") {
504 visibility = [ "*" ]
505 sources = [
506 "function_view.h",
507 ]
508 deps = [
509 "../rtc_base:checks",
510 ]
511}
512
kjellanderfd5b4e92016-06-13 12:08:33 -0700513if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100514 if (rtc_enable_protobuf) {
515 rtc_source_set("audioproc_f_api") {
516 visibility = [ "*" ]
517 testonly = true
518 sources = [
519 "test/audioproc_float.cc",
520 "test/audioproc_float.h",
521 ]
522
523 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100524 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000525 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100526 "../modules/audio_processing:audioproc_f_impl",
527 ]
528 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200529
530 rtc_source_set("neteq_simulator_factory") {
531 visibility = [ "*" ]
532 testonly = true
533 sources = [
534 "test/neteq_simulator_factory.cc",
535 "test/neteq_simulator_factory.h",
536 ]
537 deps = [
538 ":neteq_simulator_api",
539 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200540 "../rtc_base:checks",
541 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200542 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100543 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200544 ]
545 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100546 }
547
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200548 rtc_source_set("simulcast_test_fixture_api") {
549 visibility = [ "*" ]
550 testonly = true
551 sources = [
552 "test/simulcast_test_fixture.h",
553 ]
554 }
555
556 rtc_source_set("create_simulcast_test_fixture_api") {
557 visibility = [ "*" ]
558 testonly = true
559 sources = [
560 "test/create_simulcast_test_fixture.cc",
561 "test/create_simulcast_test_fixture.h",
562 ]
563 deps = [
564 ":simulcast_test_fixture_api",
565 "../modules/video_coding:simulcast_test_fixture_impl",
566 "../rtc_base:rtc_base_approved",
567 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200568 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200569 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200570 }
571
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200572 rtc_source_set("videocodec_test_fixture_api") {
573 visibility = [ "*" ]
574 testonly = true
575 sources = [
576 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200577 "test/videocodec_test_stats.cc",
578 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200579 ]
580 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200581 "..:webrtc_common",
582 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200583 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100584 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200585 "video_codecs:video_codecs_api",
586 ]
587 }
588
589 rtc_source_set("create_videocodec_test_fixture_api") {
590 visibility = [ "*" ]
591 testonly = true
592 sources = [
593 "test/create_videocodec_test_fixture.cc",
594 "test/create_videocodec_test_fixture.h",
595 ]
596 deps = [
597 ":videocodec_test_fixture_api",
598 "../modules/video_coding:video_codecs_test_framework",
599 "../modules/video_coding:videocodec_test_impl",
600 "../rtc_base:rtc_base_approved",
601 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200602 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200603 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200604 }
605
kjellander2f6af9c2017-03-02 22:26:23 -0800606 rtc_source_set("mock_audio_mixer") {
607 testonly = true
608 sources = [
609 "test/mock_audio_mixer.h",
610 ]
611
kjellander2f6af9c2017-03-02 22:26:23 -0800612 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700613 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100614 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800615 ]
616 }
617
Benjamin Wright78410ad2018-10-25 09:52:57 -0700618 rtc_source_set("mock_frame_encryptor") {
619 testonly = true
620 sources = [
621 "test/mock_frame_encryptor.cc",
622 "test/mock_frame_encryptor.h",
623 ]
624 deps = [
625 ":libjingle_peerconnection_api",
626 "../test:test_support",
627 ]
628 }
629
630 rtc_source_set("mock_frame_decryptor") {
631 testonly = true
632 sources = [
633 "test/mock_frame_decryptor.cc",
634 "test/mock_frame_decryptor.h",
635 ]
636 deps = [
637 ":libjingle_peerconnection_api",
638 "../test:test_support",
639 ]
640 }
641
642 rtc_source_set("fake_frame_encryptor") {
643 testonly = true
644 sources = [
645 "test/fake_frame_encryptor.cc",
646 "test/fake_frame_encryptor.h",
647 ]
648 deps = [
649 ":array_view",
650 ":libjingle_peerconnection_api",
651 "..:webrtc_common",
652 "../rtc_base:checks",
653 "../rtc_base:rtc_base_approved",
654 ]
655 }
656
657 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700658 testonly = true
659 sources = [
660 "test/fake_frame_decryptor.cc",
661 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700662 ]
663 deps = [
664 ":array_view",
665 ":libjingle_peerconnection_api",
666 "..:webrtc_common",
667 "../rtc_base:checks",
668 "../rtc_base:rtc_base_approved",
669 ]
670 }
671
Jiawei Ou651b92e2018-06-29 15:46:44 -0700672 rtc_source_set("mock_peerconnectioninterface") {
673 testonly = true
674 sources = [
675 "test/mock_peerconnectioninterface.h",
676 ]
677
678 deps = [
679 ":libjingle_peerconnection_api",
680 "../test:test_support",
681 ]
682 }
683
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100684 rtc_source_set("mock_rtp") {
685 testonly = true
686 sources = [
687 "test/mock_rtpreceiver.h",
688 "test/mock_rtpsender.h",
689 ]
690
691 deps = [
692 ":libjingle_peerconnection_api",
693 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100694 ]
695 }
696
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700697 rtc_source_set("mock_video_bitrate_allocator") {
698 testonly = true
699 sources = [
700 "test/mock_video_bitrate_allocator.h",
701 ]
702
703 deps = [
704 "../api/video:video_bitrate_allocator",
705 "../test:test_support",
706 ]
707 }
708
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800709 rtc_source_set("mock_video_bitrate_allocator_factory") {
710 testonly = true
711 sources = [
712 "test/mock_video_bitrate_allocator_factory.h",
713 ]
714
715 deps = [
716 "../api/video:video_bitrate_allocator_factory",
717 "../test:test_support",
718 ]
719 }
720
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700721 rtc_source_set("mock_video_codec_factory") {
722 testonly = true
723 sources = [
724 "test/mock_video_decoder_factory.h",
725 "test/mock_video_encoder_factory.h",
726 ]
727
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700728 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100729 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700730 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700731 ]
732 }
733
Erik Språngc84cd952018-10-15 11:55:13 +0200734 rtc_source_set("mock_video_decoder") {
735 visibility = [ "*" ]
736
737 testonly = true
738 sources = [
739 "test/mock_video_decoder.cc",
740 "test/mock_video_decoder.h",
741 ]
742
743 deps = [
744 "../api/video_codecs:video_codecs_api",
745 "../test:test_support",
746 ]
747 }
748
Erik Språng6af1c922018-10-12 10:01:30 +0200749 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200750 visibility = [ "*" ]
751
Erik Språng6af1c922018-10-12 10:01:30 +0200752 testonly = true
753 sources = [
754 "test/mock_video_encoder.cc",
755 "test/mock_video_encoder.h",
756 ]
757
758 deps = [
759 "../api/video_codecs:video_codecs_api",
760 "../test:test_support",
761 ]
762 }
763
Anton Sukhanov7940da02018-10-10 10:34:49 -0700764 rtc_source_set("fake_media_transport") {
765 testonly = true
766
767 sources = [
768 "test/fake_media_transport.h",
769 ]
770
771 deps = [
772 ":libjingle_peerconnection_api",
773 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700774 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100775 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700776 ]
777 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200778
779 rtc_source_set("loopback_media_transport") {
780 testonly = true
781
782 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100783 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200784 "test/loopback_media_transport.h",
785 ]
786
787 deps = [
788 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100789 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200790 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700791 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100792 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200793 ]
794 }
795
796 rtc_source_set("rtc_api_unittests") {
797 testonly = true
798
799 sources = [
800 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100801 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800802 "rtc_error_unittest.cc",
803 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200804 "test/loopback_media_transport_unittest.cc",
805 ]
806
Niels Möller2e47f7c2018-10-16 10:41:42 +0200807 deps = [
808 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100809 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200810 ":libjingle_peerconnection_api",
811 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200812 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100813 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200814 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200815 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100816 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200817 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200818 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200819 ]
820 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100821
822 rtc_source_set("compile_all_headers") {
823 testonly = true
824
825 sources = [
826 "test/compile_all_headers.cc",
827 ]
828
829 deps = [
830 ":fake_frame_decryptor",
831 ":fake_frame_encryptor",
832 ":fake_media_transport",
833 ":loopback_media_transport",
834 ":mock_audio_mixer",
835 ":mock_frame_decryptor",
836 ":mock_frame_encryptor",
837 ":mock_peerconnectioninterface",
838 ":mock_rtp",
839 ":mock_video_bitrate_allocator",
840 ":mock_video_bitrate_allocator_factory",
841 ":mock_video_codec_factory",
842 ":mock_video_decoder",
843 ":mock_video_encoder",
844 ":rtc_api_unittests",
845 "units:units_unittests",
846 ]
847 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700848}