blob: 28ddff11be84c950967f8b3c7cd177738e399e4b [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
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200216rtc_source_set("track_id_stream_label_map") {
217 visibility = [ "*" ]
218 sources = [
219 "test/track_id_stream_label_map.h",
220 ]
221}
222
Artem Titovd57628f2019-03-22 12:34:25 +0100223rtc_source_set("audio_quality_analyzer_api") {
224 visibility = [ "*" ]
225 testonly = true
226 sources = [
227 "test/audio_quality_analyzer_interface.h",
228 ]
229
230 deps = [
231 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200232 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100233 ]
234}
235
236rtc_source_set("stats_observer_interface") {
237 visibility = [ "*" ]
238 testonly = true
239 sources = [
240 "test/stats_observer_interface.h",
241 ]
242
243 deps = [
244 ":libjingle_peerconnection_api",
245 "//third_party/abseil-cpp/absl/strings",
246 ]
247}
248
249rtc_source_set("peer_connection_quality_test_fixture_api") {
250 visibility = [ "*" ]
251 testonly = true
252 sources = [
253 "test/peerconnection_quality_test_fixture.h",
254 ]
255
256 deps = [
257 ":audio_quality_analyzer_api",
258 ":callfactory_api",
259 ":fec_controller_api",
260 ":function_view",
261 ":libjingle_peerconnection_api",
262 ":simulated_network_api",
263 ":video_quality_analyzer_api",
264 "../logging:rtc_event_log_api",
265 "../rtc_base:rtc_base",
266 "transport:network_control",
267 "units:time_delta",
268 "video_codecs:video_codecs_api",
269 "//third_party/abseil-cpp/absl/memory",
270 "//third_party/abseil-cpp/absl/types:optional",
271 ]
272}
273
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200274rtc_source_set("test_dependency_factory") {
275 visibility = [ "*" ]
276 testonly = true
277 sources = [
278 "test/test_dependency_factory.cc",
279 "test/test_dependency_factory.h",
280 ]
281 deps = [
282 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100283 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200284 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900285 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200286 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200287}
288
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200289if (rtc_include_tests) {
290 rtc_source_set("create_video_quality_test_fixture_api") {
291 visibility = [ "*" ]
292 testonly = true
293 sources = [
294 "test/create_video_quality_test_fixture.cc",
295 "test/create_video_quality_test_fixture.h",
296 ]
297 deps = [
298 ":fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100299 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200300 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200301 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200302 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200303 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200304 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100305
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100306 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100307 visibility = [ "*" ]
308 testonly = true
309 sources = [
310 "test/create_network_emulation_manager.cc",
311 "test/create_network_emulation_manager.h",
312 ]
313 deps = [
314 ":network_emulation_manager_api",
315 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100316 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100317 ]
318 }
Artem Titovd57628f2019-03-22 12:34:25 +0100319
320 rtc_source_set("create_peerconnection_quality_test_fixture") {
321 visibility = [ "*" ]
322 testonly = true
323 sources = [
324 "test/create_peerconnection_quality_test_fixture.cc",
325 "test/create_peerconnection_quality_test_fixture.h",
326 ]
327
328 deps = [
329 ":audio_quality_analyzer_api",
330 ":peer_connection_quality_test_fixture_api",
331 ":video_quality_analyzer_api",
332 "../test/pc/e2e:peerconnection_quality_test",
333 "//third_party/abseil-cpp/absl/memory",
334 ]
335 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200336}
337
Elad Alon80810732017-10-06 13:07:32 +0200338rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000339 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200340 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800341 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200342 ]
343}
344
deadbeefe814a0d2017-02-25 18:15:09 -0800345rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000346 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800347 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800348 "ortc/packet_transport_interface.h",
349 "ortc/rtp_transport_interface.h",
350 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800351 ]
352
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100353 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800354 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100355 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200356 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800357 ]
358}
359
hbos74e1a4f2016-09-15 23:33:01 -0700360rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000361 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700362 cflags = []
363 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800364 "stats/rtc_stats.h",
365 "stats/rtc_stats_collector_callback.h",
366 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700367 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700368 ]
369
370 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100371 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100372 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700373 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200374 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700375 ]
376}
377
Niels Möllera6fe2612018-01-19 11:28:54 +0100378rtc_source_set("audio_options_api") {
379 visibility = [ "*" ]
380 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200381 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100382 "audio_options.h",
383 ]
384
385 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100386 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200387 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200388 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100389 ]
390}
391
aleloia8eb7562016-11-28 07:02:13 -0800392rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000393 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800394 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100395 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800396 "call/transport.h",
397 ]
398}
nisseb2250e52016-12-02 04:01:14 -0800399
Sebastian Jansson6736df12018-11-21 19:18:39 +0100400rtc_source_set("bitrate_allocation") {
401 visibility = [ "*" ]
402 sources = [
403 "call/bitrate_allocation.h",
404 ]
405 deps = [
406 "units:data_rate",
407 "units:time_delta",
408 ]
409}
410
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200411rtc_source_set("simulated_network_api") {
412 visibility = [ "*" ]
413 sources = [
414 "test/simulated_network.h",
415 ]
416 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100417 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200418 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200419 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200420 ]
421}
422
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100423rtc_source_set("network_emulation_manager_api") {
424 visibility = [ "*" ]
425 sources = [
426 "test/network_emulation_manager.h",
427 ]
428 deps = [
429 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100430 "../rtc_base",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100431 ]
432}
433
Ying Wang3b790f32018-01-19 17:58:57 +0100434rtc_source_set("fec_controller_api") {
435 visibility = [ "*" ]
436 sources = [
437 "fec_controller.h",
438 ]
439
440 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100441 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100442 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100443 ]
444}
445
kwiberg529662a2017-09-04 05:43:17 -0700446rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000447 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700448 sources = [
449 "array_view.h",
450 ]
451 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100452 "../rtc_base:checks",
453 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700454 ]
455}
456
Niels Möller9155e492017-10-23 11:22:30 +0200457rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000458 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200459 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800460 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200461 ]
462 deps = [
463 "../rtc_base:rtc_base_approved",
464 ]
465}
466
Harald Alvestrand98462622019-01-30 14:57:03 +0100467rtc_source_set("ice_transport_factory") {
468 visibility = [ "*" ]
469 sources = [
470 "ice_transport_factory.cc",
471 "ice_transport_factory.h",
472 ]
473 deps = [
474 ":libjingle_peerconnection_api",
475 ":scoped_refptr",
476 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100477 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200478 "../rtc_base/system:rtc_export",
Artem Titov533a9fe2019-03-21 12:18:05 +0100479 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100480 ]
481}
482
Ivo Creusen55de08e2018-09-03 11:49:27 +0200483rtc_source_set("neteq_simulator_api") {
484 visibility = [ "*" ]
485 sources = [
486 "test/neteq_simulator.cc",
487 "test/neteq_simulator.h",
488 ]
489}
490
Artem Titov741daaf2019-03-21 14:37:36 +0100491rtc_source_set("function_view") {
492 visibility = [ "*" ]
493 sources = [
494 "function_view.h",
495 ]
496 deps = [
497 "../rtc_base:checks",
498 ]
499}
500
kjellanderfd5b4e92016-06-13 12:08:33 -0700501if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100502 if (rtc_enable_protobuf) {
503 rtc_source_set("audioproc_f_api") {
504 visibility = [ "*" ]
505 testonly = true
506 sources = [
507 "test/audioproc_float.cc",
508 "test/audioproc_float.h",
509 ]
510
511 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100512 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000513 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100514 "../modules/audio_processing:audioproc_f_impl",
515 ]
516 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200517
518 rtc_source_set("neteq_simulator_factory") {
519 visibility = [ "*" ]
520 testonly = true
521 sources = [
522 "test/neteq_simulator_factory.cc",
523 "test/neteq_simulator_factory.h",
524 ]
525 deps = [
526 ":neteq_simulator_api",
527 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200528 "../rtc_base:checks",
529 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200530 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100531 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200532 ]
533 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100534 }
535
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200536 rtc_source_set("simulcast_test_fixture_api") {
537 visibility = [ "*" ]
538 testonly = true
539 sources = [
540 "test/simulcast_test_fixture.h",
541 ]
542 }
543
544 rtc_source_set("create_simulcast_test_fixture_api") {
545 visibility = [ "*" ]
546 testonly = true
547 sources = [
548 "test/create_simulcast_test_fixture.cc",
549 "test/create_simulcast_test_fixture.h",
550 ]
551 deps = [
552 ":simulcast_test_fixture_api",
553 "../modules/video_coding:simulcast_test_fixture_impl",
554 "../rtc_base:rtc_base_approved",
555 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200556 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200557 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200558 }
559
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200560 rtc_source_set("videocodec_test_fixture_api") {
561 visibility = [ "*" ]
562 testonly = true
563 sources = [
564 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200565 "test/videocodec_test_stats.cc",
566 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200567 ]
568 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200569 "..:webrtc_common",
570 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200571 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100572 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200573 "video_codecs:video_codecs_api",
574 ]
575 }
576
577 rtc_source_set("create_videocodec_test_fixture_api") {
578 visibility = [ "*" ]
579 testonly = true
580 sources = [
581 "test/create_videocodec_test_fixture.cc",
582 "test/create_videocodec_test_fixture.h",
583 ]
584 deps = [
585 ":videocodec_test_fixture_api",
586 "../modules/video_coding:video_codecs_test_framework",
587 "../modules/video_coding:videocodec_test_impl",
588 "../rtc_base:rtc_base_approved",
589 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200590 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200591 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200592 }
593
kjellander2f6af9c2017-03-02 22:26:23 -0800594 rtc_source_set("mock_audio_mixer") {
595 testonly = true
596 sources = [
597 "test/mock_audio_mixer.h",
598 ]
599
kjellander2f6af9c2017-03-02 22:26:23 -0800600 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700601 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100602 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800603 ]
604 }
605
Benjamin Wright78410ad2018-10-25 09:52:57 -0700606 rtc_source_set("mock_frame_encryptor") {
607 testonly = true
608 sources = [
609 "test/mock_frame_encryptor.cc",
610 "test/mock_frame_encryptor.h",
611 ]
612 deps = [
613 ":libjingle_peerconnection_api",
614 "../test:test_support",
615 ]
616 }
617
618 rtc_source_set("mock_frame_decryptor") {
619 testonly = true
620 sources = [
621 "test/mock_frame_decryptor.cc",
622 "test/mock_frame_decryptor.h",
623 ]
624 deps = [
625 ":libjingle_peerconnection_api",
626 "../test:test_support",
627 ]
628 }
629
630 rtc_source_set("fake_frame_encryptor") {
631 testonly = true
632 sources = [
633 "test/fake_frame_encryptor.cc",
634 "test/fake_frame_encryptor.h",
635 ]
636 deps = [
637 ":array_view",
638 ":libjingle_peerconnection_api",
639 "..:webrtc_common",
640 "../rtc_base:checks",
641 "../rtc_base:rtc_base_approved",
642 ]
643 }
644
645 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700646 testonly = true
647 sources = [
648 "test/fake_frame_decryptor.cc",
649 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700650 ]
651 deps = [
652 ":array_view",
653 ":libjingle_peerconnection_api",
654 "..:webrtc_common",
655 "../rtc_base:checks",
656 "../rtc_base:rtc_base_approved",
657 ]
658 }
659
Jiawei Ou651b92e2018-06-29 15:46:44 -0700660 rtc_source_set("mock_peerconnectioninterface") {
661 testonly = true
662 sources = [
663 "test/mock_peerconnectioninterface.h",
664 ]
665
666 deps = [
667 ":libjingle_peerconnection_api",
668 "../test:test_support",
669 ]
670 }
671
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100672 rtc_source_set("mock_rtp") {
673 testonly = true
674 sources = [
675 "test/mock_rtpreceiver.h",
676 "test/mock_rtpsender.h",
677 ]
678
679 deps = [
680 ":libjingle_peerconnection_api",
681 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100682 ]
683 }
684
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700685 rtc_source_set("mock_video_bitrate_allocator") {
686 testonly = true
687 sources = [
688 "test/mock_video_bitrate_allocator.h",
689 ]
690
691 deps = [
692 "../api/video:video_bitrate_allocator",
693 "../test:test_support",
694 ]
695 }
696
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800697 rtc_source_set("mock_video_bitrate_allocator_factory") {
698 testonly = true
699 sources = [
700 "test/mock_video_bitrate_allocator_factory.h",
701 ]
702
703 deps = [
704 "../api/video:video_bitrate_allocator_factory",
705 "../test:test_support",
706 ]
707 }
708
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700709 rtc_source_set("mock_video_codec_factory") {
710 testonly = true
711 sources = [
712 "test/mock_video_decoder_factory.h",
713 "test/mock_video_encoder_factory.h",
714 ]
715
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700716 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100717 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700718 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700719 ]
720 }
721
Erik Språngc84cd952018-10-15 11:55:13 +0200722 rtc_source_set("mock_video_decoder") {
723 visibility = [ "*" ]
724
725 testonly = true
726 sources = [
727 "test/mock_video_decoder.cc",
728 "test/mock_video_decoder.h",
729 ]
730
731 deps = [
732 "../api/video_codecs:video_codecs_api",
733 "../test:test_support",
734 ]
735 }
736
Erik Språng6af1c922018-10-12 10:01:30 +0200737 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200738 visibility = [ "*" ]
739
Erik Språng6af1c922018-10-12 10:01:30 +0200740 testonly = true
741 sources = [
742 "test/mock_video_encoder.cc",
743 "test/mock_video_encoder.h",
744 ]
745
746 deps = [
747 "../api/video_codecs:video_codecs_api",
748 "../test:test_support",
749 ]
750 }
751
Anton Sukhanov7940da02018-10-10 10:34:49 -0700752 rtc_source_set("fake_media_transport") {
753 testonly = true
754
755 sources = [
756 "test/fake_media_transport.h",
757 ]
758
759 deps = [
760 ":libjingle_peerconnection_api",
761 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700762 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100763 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700764 ]
765 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200766
767 rtc_source_set("loopback_media_transport") {
768 testonly = true
769
770 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100771 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200772 "test/loopback_media_transport.h",
773 ]
774
775 deps = [
776 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100777 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200778 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700779 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100780 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200781 ]
782 }
783
784 rtc_source_set("rtc_api_unittests") {
785 testonly = true
786
787 sources = [
788 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100789 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800790 "rtc_error_unittest.cc",
791 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200792 "test/loopback_media_transport_unittest.cc",
793 ]
794
Niels Möller2e47f7c2018-10-16 10:41:42 +0200795 deps = [
796 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100797 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200798 ":libjingle_peerconnection_api",
799 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200800 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100801 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200802 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200803 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100804 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200805 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200806 "video:video_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200807 ]
808 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100809
810 rtc_source_set("compile_all_headers") {
811 testonly = true
812
813 sources = [
814 "test/compile_all_headers.cc",
815 ]
816
817 deps = [
818 ":fake_frame_decryptor",
819 ":fake_frame_encryptor",
820 ":fake_media_transport",
821 ":loopback_media_transport",
822 ":mock_audio_mixer",
823 ":mock_frame_decryptor",
824 ":mock_frame_encryptor",
825 ":mock_peerconnectioninterface",
826 ":mock_rtp",
827 ":mock_video_bitrate_allocator",
828 ":mock_video_bitrate_allocator_factory",
829 ":mock_video_codec_factory",
830 ":mock_video_decoder",
831 ":mock_video_encoder",
832 ":rtc_api_unittests",
833 "units:units_unittests",
834 ]
835 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700836}