blob: 0d26945fef3223d7e5dbd319d695f14529a80e23 [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",
Mirko Bonadeid9708072019-01-25 20:26:48 +010048 ":scoped_refptr",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010049 "../logging:rtc_event_log_api",
50 "../logging:rtc_event_log_impl_base",
51 "../media:rtc_audio_video",
Yves Gerey3e707812018-11-28 16:47:49 +010052 "../media:rtc_media_base",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010053 "../modules/audio_device:audio_device_api",
54 "../modules/audio_processing:api",
55 "../pc:peerconnection",
Artem Titov94b57c02019-03-21 13:35:10 +010056 "../rtc_base",
Anders Carlsson01092952018-12-11 15:44:54 +010057 "../rtc_base:deprecation",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010058 "../rtc_base:rtc_base_approved",
59 "audio:audio_mixer_api",
60 "audio_codecs:audio_codecs_api",
61 "transport:network_control",
62 "video_codecs:video_codecs_api",
63 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010064}
65
Niels Möllerb8389522019-03-19 14:27:03 +010066rtc_source_set("rtp_headers") {
67 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010068 sources = [
69 "rtp_headers.cc",
70 "rtp_headers.h",
71 ]
72 deps = [
73 ":array_view",
74 "..:webrtc_common",
75 "video:video_frame",
76 "//third_party/abseil-cpp/absl/types:optional",
77 ]
Niels Möllerb8389522019-03-19 14:27:03 +010078}
79
ossu7bb87ee2017-01-23 04:56:25 -080080rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000081 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070082 cflags = []
83 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080084 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020085 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070086 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020087 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -080088 "crypto/crypto_options.cc",
89 "crypto/crypto_options.h",
90 "crypto/frame_decryptor_interface.h",
91 "crypto/frame_encryptor_interface.h",
92 "crypto_params.h",
93 "data_channel_interface.cc",
94 "data_channel_interface.h",
95 "dtls_transport_interface.h",
96 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +010097 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -080098 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070099 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800100 "jsep_ice_candidate.cc",
101 "jsep_ice_candidate.h",
102 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800103 "media_stream_interface.cc",
104 "media_stream_interface.h",
105 "media_stream_proxy.h",
106 "media_stream_track_proxy.h",
Niels Möller3a742392018-10-08 11:13:58 +0200107 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400108 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800109 "media_types.cc",
110 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -0700111 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800112 "peer_connection_factory_proxy.h",
113 "peer_connection_interface.cc",
114 "peer_connection_interface.h",
115 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700116 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700117 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800118 "rtc_error.cc",
119 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800120 "rtp_parameters.cc",
121 "rtp_parameters.h",
122 "rtp_receiver_interface.cc",
123 "rtp_receiver_interface.h",
124 "rtp_sender_interface.cc",
125 "rtp_sender_interface.h",
126 "rtp_transceiver_interface.cc",
127 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100128 "sctp_transport_interface.cc",
129 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800130 "set_remote_description_observer_interface.h",
131 "stats_types.cc",
132 "stats_types.h",
133 "turn_customizer.h",
134 "uma_metrics.h",
135 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700136 ]
kjellanderc76dc952016-06-03 03:09:32 -0700137 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100138 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100139 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100140 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100141 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100142 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700143 ":rtc_stats_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100144 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100145 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100146 "audio_codecs:audio_codecs_api",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200147 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200148 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200149 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100150 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100151 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800152 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200153 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200154 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800155 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800156 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200157 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100158
159 # Basically, don't add stuff here. You might break sensitive downstream
160 # targets like pnacl. API should not depend on anything outside of this
161 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700162 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100163 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100164 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100165 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100166 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100167 "../rtc_base:checks",
168 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700169 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200170 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700171 ]
ossu7bb87ee2017-01-23 04:56:25 -0800172}
kjellanderc76dc952016-06-03 03:09:32 -0700173
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100174rtc_source_set("scoped_refptr") {
175 visibility = [ "*" ]
176 sources = [
177 "scoped_refptr.h",
178 ]
179}
180
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200181rtc_source_set("video_quality_test_fixture_api") {
182 visibility = [ "*" ]
183 testonly = true
184 sources = [
185 "test/video_quality_test_fixture.h",
186 ]
187 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200188 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200189 ":libjingle_peerconnection_api",
190 ":simulated_network_api",
191 "../call:fake_network",
192 "../call:rtp_interfaces",
193 "../test:test_common",
194 "../test:video_test_common",
195 "video_codecs:video_codecs_api",
196 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200197}
198
Artem Titovd57628f2019-03-22 12:34:25 +0100199rtc_source_set("video_quality_analyzer_api") {
200 visibility = [ "*" ]
201 testonly = true
202 sources = [
203 "test/video_quality_analyzer_interface.h",
204 ]
205
206 deps = [
207 ":stats_observer_interface",
208 "video:encoded_image",
209 "video:video_frame",
210 "video_codecs:video_codecs_api",
211 "//third_party/abseil-cpp/absl/strings",
212 "//third_party/abseil-cpp/absl/types:optional",
213 ]
214}
215
216rtc_source_set("audio_quality_analyzer_api") {
217 visibility = [ "*" ]
218 testonly = true
219 sources = [
220 "test/audio_quality_analyzer_interface.h",
221 ]
222
223 deps = [
224 ":stats_observer_interface",
225 ]
226}
227
228rtc_source_set("stats_observer_interface") {
229 visibility = [ "*" ]
230 testonly = true
231 sources = [
232 "test/stats_observer_interface.h",
233 ]
234
235 deps = [
236 ":libjingle_peerconnection_api",
237 "//third_party/abseil-cpp/absl/strings",
238 ]
239}
240
241rtc_source_set("peer_connection_quality_test_fixture_api") {
242 visibility = [ "*" ]
243 testonly = true
244 sources = [
245 "test/peerconnection_quality_test_fixture.h",
246 ]
247
248 deps = [
249 ":audio_quality_analyzer_api",
250 ":callfactory_api",
251 ":fec_controller_api",
252 ":function_view",
253 ":libjingle_peerconnection_api",
254 ":simulated_network_api",
255 ":video_quality_analyzer_api",
256 "../logging:rtc_event_log_api",
257 "../rtc_base:rtc_base",
258 "transport:network_control",
259 "units:time_delta",
260 "video_codecs:video_codecs_api",
261 "//third_party/abseil-cpp/absl/memory",
262 "//third_party/abseil-cpp/absl/types:optional",
263 ]
264}
265
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200266rtc_source_set("test_dependency_factory") {
267 visibility = [ "*" ]
268 testonly = true
269 sources = [
270 "test/test_dependency_factory.cc",
271 "test/test_dependency_factory.h",
272 ]
273 deps = [
274 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100275 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200276 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900277 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200278 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200279}
280
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200281if (rtc_include_tests) {
282 rtc_source_set("create_video_quality_test_fixture_api") {
283 visibility = [ "*" ]
284 testonly = true
285 sources = [
286 "test/create_video_quality_test_fixture.cc",
287 "test/create_video_quality_test_fixture.h",
288 ]
289 deps = [
290 ":fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100291 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200292 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200293 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200294 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200295 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200296 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100297
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100298 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100299 visibility = [ "*" ]
300 testonly = true
301 sources = [
302 "test/create_network_emulation_manager.cc",
303 "test/create_network_emulation_manager.h",
304 ]
305 deps = [
306 ":network_emulation_manager_api",
307 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100308 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100309 ]
310 }
Artem Titovd57628f2019-03-22 12:34:25 +0100311
312 rtc_source_set("create_peerconnection_quality_test_fixture") {
313 visibility = [ "*" ]
314 testonly = true
315 sources = [
316 "test/create_peerconnection_quality_test_fixture.cc",
317 "test/create_peerconnection_quality_test_fixture.h",
318 ]
319
320 deps = [
321 ":audio_quality_analyzer_api",
322 ":peer_connection_quality_test_fixture_api",
323 ":video_quality_analyzer_api",
324 "../test/pc/e2e:peerconnection_quality_test",
325 "//third_party/abseil-cpp/absl/memory",
326 ]
327 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200328}
329
Elad Alon80810732017-10-06 13:07:32 +0200330rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000331 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200332 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800333 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200334 ]
335}
336
deadbeefe814a0d2017-02-25 18:15:09 -0800337rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000338 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800339 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800340 "ortc/packet_transport_interface.h",
341 "ortc/rtp_transport_interface.h",
342 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800343 ]
344
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100345 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800346 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100347 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200348 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800349 ]
350}
351
hbos74e1a4f2016-09-15 23:33:01 -0700352rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000353 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700354 cflags = []
355 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800356 "stats/rtc_stats.h",
357 "stats/rtc_stats_collector_callback.h",
358 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700359 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700360 ]
361
362 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100363 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100364 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700365 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200366 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700367 ]
368}
369
Niels Möllera6fe2612018-01-19 11:28:54 +0100370rtc_source_set("audio_options_api") {
371 visibility = [ "*" ]
372 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200373 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100374 "audio_options.h",
375 ]
376
377 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100378 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200379 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200380 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100381 ]
382}
383
aleloia8eb7562016-11-28 07:02:13 -0800384rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000385 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800386 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100387 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800388 "call/transport.h",
389 ]
390}
nisseb2250e52016-12-02 04:01:14 -0800391
Sebastian Jansson6736df12018-11-21 19:18:39 +0100392rtc_source_set("bitrate_allocation") {
393 visibility = [ "*" ]
394 sources = [
395 "call/bitrate_allocation.h",
396 ]
397 deps = [
398 "units:data_rate",
399 "units:time_delta",
400 ]
401}
402
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200403rtc_source_set("simulated_network_api") {
404 visibility = [ "*" ]
405 sources = [
406 "test/simulated_network.h",
407 ]
408 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100409 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200410 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200411 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200412 ]
413}
414
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100415rtc_source_set("network_emulation_manager_api") {
416 visibility = [ "*" ]
417 sources = [
418 "test/network_emulation_manager.h",
419 ]
420 deps = [
421 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100422 "../rtc_base",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100423 ]
424}
425
Ying Wang3b790f32018-01-19 17:58:57 +0100426rtc_source_set("fec_controller_api") {
427 visibility = [ "*" ]
428 sources = [
429 "fec_controller.h",
430 ]
431
432 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100433 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100434 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100435 ]
436}
437
kwiberg529662a2017-09-04 05:43:17 -0700438rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000439 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700440 sources = [
441 "array_view.h",
442 ]
443 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100444 "../rtc_base:checks",
445 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700446 ]
447}
448
Niels Möller9155e492017-10-23 11:22:30 +0200449rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000450 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200451 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800452 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200453 ]
454 deps = [
455 "../rtc_base:rtc_base_approved",
456 ]
457}
458
Harald Alvestrand98462622019-01-30 14:57:03 +0100459rtc_source_set("ice_transport_factory") {
460 visibility = [ "*" ]
461 sources = [
462 "ice_transport_factory.cc",
463 "ice_transport_factory.h",
464 ]
465 deps = [
466 ":libjingle_peerconnection_api",
467 ":scoped_refptr",
468 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100469 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200470 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100471 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100472 ]
473}
474
Ivo Creusen55de08e2018-09-03 11:49:27 +0200475rtc_source_set("neteq_simulator_api") {
476 visibility = [ "*" ]
477 sources = [
478 "test/neteq_simulator.cc",
479 "test/neteq_simulator.h",
480 ]
481}
482
Artem Titov741daaf2019-03-21 14:37:36 +0100483rtc_source_set("function_view") {
484 visibility = [ "*" ]
485 sources = [
486 "function_view.h",
487 ]
488 deps = [
489 "../rtc_base:checks",
490 ]
491}
492
kjellanderfd5b4e92016-06-13 12:08:33 -0700493if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100494 if (rtc_enable_protobuf) {
495 rtc_source_set("audioproc_f_api") {
496 visibility = [ "*" ]
497 testonly = true
498 sources = [
499 "test/audioproc_float.cc",
500 "test/audioproc_float.h",
501 ]
502
503 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100504 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000505 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100506 "../modules/audio_processing:audioproc_f_impl",
507 ]
508 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200509
510 rtc_source_set("neteq_simulator_factory") {
511 visibility = [ "*" ]
512 testonly = true
513 sources = [
514 "test/neteq_simulator_factory.cc",
515 "test/neteq_simulator_factory.h",
516 ]
517 deps = [
518 ":neteq_simulator_api",
519 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200520 "../rtc_base:checks",
521 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200522 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100523 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200524 ]
525 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100526 }
527
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200528 rtc_source_set("simulcast_test_fixture_api") {
529 visibility = [ "*" ]
530 testonly = true
531 sources = [
532 "test/simulcast_test_fixture.h",
533 ]
534 }
535
536 rtc_source_set("create_simulcast_test_fixture_api") {
537 visibility = [ "*" ]
538 testonly = true
539 sources = [
540 "test/create_simulcast_test_fixture.cc",
541 "test/create_simulcast_test_fixture.h",
542 ]
543 deps = [
544 ":simulcast_test_fixture_api",
545 "../modules/video_coding:simulcast_test_fixture_impl",
546 "../rtc_base:rtc_base_approved",
547 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200548 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200549 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200550 }
551
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200552 rtc_source_set("videocodec_test_fixture_api") {
553 visibility = [ "*" ]
554 testonly = true
555 sources = [
556 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200557 "test/videocodec_test_stats.cc",
558 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200559 ]
560 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200561 "..:webrtc_common",
562 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200563 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100564 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200565 "video_codecs:video_codecs_api",
566 ]
567 }
568
569 rtc_source_set("create_videocodec_test_fixture_api") {
570 visibility = [ "*" ]
571 testonly = true
572 sources = [
573 "test/create_videocodec_test_fixture.cc",
574 "test/create_videocodec_test_fixture.h",
575 ]
576 deps = [
577 ":videocodec_test_fixture_api",
578 "../modules/video_coding:video_codecs_test_framework",
579 "../modules/video_coding:videocodec_test_impl",
580 "../rtc_base:rtc_base_approved",
581 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200582 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200583 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200584 }
585
kjellander2f6af9c2017-03-02 22:26:23 -0800586 rtc_source_set("mock_audio_mixer") {
587 testonly = true
588 sources = [
589 "test/mock_audio_mixer.h",
590 ]
591
kjellander2f6af9c2017-03-02 22:26:23 -0800592 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700593 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100594 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800595 ]
596 }
597
Benjamin Wright78410ad2018-10-25 09:52:57 -0700598 rtc_source_set("mock_frame_encryptor") {
599 testonly = true
600 sources = [
601 "test/mock_frame_encryptor.cc",
602 "test/mock_frame_encryptor.h",
603 ]
604 deps = [
605 ":libjingle_peerconnection_api",
606 "../test:test_support",
607 ]
608 }
609
610 rtc_source_set("mock_frame_decryptor") {
611 testonly = true
612 sources = [
613 "test/mock_frame_decryptor.cc",
614 "test/mock_frame_decryptor.h",
615 ]
616 deps = [
617 ":libjingle_peerconnection_api",
618 "../test:test_support",
619 ]
620 }
621
622 rtc_source_set("fake_frame_encryptor") {
623 testonly = true
624 sources = [
625 "test/fake_frame_encryptor.cc",
626 "test/fake_frame_encryptor.h",
627 ]
628 deps = [
629 ":array_view",
630 ":libjingle_peerconnection_api",
631 "..:webrtc_common",
632 "../rtc_base:checks",
633 "../rtc_base:rtc_base_approved",
634 ]
635 }
636
637 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700638 testonly = true
639 sources = [
640 "test/fake_frame_decryptor.cc",
641 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700642 ]
643 deps = [
644 ":array_view",
645 ":libjingle_peerconnection_api",
646 "..:webrtc_common",
647 "../rtc_base:checks",
648 "../rtc_base:rtc_base_approved",
649 ]
650 }
651
Jiawei Ou651b92e2018-06-29 15:46:44 -0700652 rtc_source_set("mock_peerconnectioninterface") {
653 testonly = true
654 sources = [
655 "test/mock_peerconnectioninterface.h",
656 ]
657
658 deps = [
659 ":libjingle_peerconnection_api",
660 "../test:test_support",
661 ]
662 }
663
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100664 rtc_source_set("mock_rtp") {
665 testonly = true
666 sources = [
667 "test/mock_rtpreceiver.h",
668 "test/mock_rtpsender.h",
669 ]
670
671 deps = [
672 ":libjingle_peerconnection_api",
673 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100674 ]
675 }
676
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700677 rtc_source_set("mock_video_bitrate_allocator") {
678 testonly = true
679 sources = [
680 "test/mock_video_bitrate_allocator.h",
681 ]
682
683 deps = [
684 "../api/video:video_bitrate_allocator",
685 "../test:test_support",
686 ]
687 }
688
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800689 rtc_source_set("mock_video_bitrate_allocator_factory") {
690 testonly = true
691 sources = [
692 "test/mock_video_bitrate_allocator_factory.h",
693 ]
694
695 deps = [
696 "../api/video:video_bitrate_allocator_factory",
697 "../test:test_support",
698 ]
699 }
700
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700701 rtc_source_set("mock_video_codec_factory") {
702 testonly = true
703 sources = [
704 "test/mock_video_decoder_factory.h",
705 "test/mock_video_encoder_factory.h",
706 ]
707
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700708 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100709 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700710 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700711 ]
712 }
713
Erik Språngc84cd952018-10-15 11:55:13 +0200714 rtc_source_set("mock_video_decoder") {
715 visibility = [ "*" ]
716
717 testonly = true
718 sources = [
719 "test/mock_video_decoder.cc",
720 "test/mock_video_decoder.h",
721 ]
722
723 deps = [
724 "../api/video_codecs:video_codecs_api",
725 "../test:test_support",
726 ]
727 }
728
Erik Språng6af1c922018-10-12 10:01:30 +0200729 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200730 visibility = [ "*" ]
731
Erik Språng6af1c922018-10-12 10:01:30 +0200732 testonly = true
733 sources = [
734 "test/mock_video_encoder.cc",
735 "test/mock_video_encoder.h",
736 ]
737
738 deps = [
739 "../api/video_codecs:video_codecs_api",
740 "../test:test_support",
741 ]
742 }
743
Anton Sukhanov7940da02018-10-10 10:34:49 -0700744 rtc_source_set("fake_media_transport") {
745 testonly = true
746
747 sources = [
748 "test/fake_media_transport.h",
749 ]
750
751 deps = [
752 ":libjingle_peerconnection_api",
753 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700754 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100755 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700756 ]
757 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200758
759 rtc_source_set("loopback_media_transport") {
760 testonly = true
761
762 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100763 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200764 "test/loopback_media_transport.h",
765 ]
766
767 deps = [
768 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100769 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200770 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700771 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100772 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200773 ]
774 }
775
776 rtc_source_set("rtc_api_unittests") {
777 testonly = true
778
779 sources = [
780 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100781 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800782 "rtc_error_unittest.cc",
783 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200784 "test/loopback_media_transport_unittest.cc",
785 ]
786
Niels Möller2e47f7c2018-10-16 10:41:42 +0200787 deps = [
788 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100789 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200790 ":libjingle_peerconnection_api",
791 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200792 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100793 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200794 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200795 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100796 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200797 "units:units_unittests",
798 ]
799 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100800
801 rtc_source_set("compile_all_headers") {
802 testonly = true
803
804 sources = [
805 "test/compile_all_headers.cc",
806 ]
807
808 deps = [
809 ":fake_frame_decryptor",
810 ":fake_frame_encryptor",
811 ":fake_media_transport",
812 ":loopback_media_transport",
813 ":mock_audio_mixer",
814 ":mock_frame_decryptor",
815 ":mock_frame_encryptor",
816 ":mock_peerconnectioninterface",
817 ":mock_rtp",
818 ":mock_video_bitrate_allocator",
819 ":mock_video_bitrate_allocator_factory",
820 ":mock_video_codec_factory",
821 ":mock_video_decoder",
822 ":mock_video_encoder",
823 ":rtc_api_unittests",
824 "units:units_unittests",
825 ]
826 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700827}