blob: ec03df34537255bd1eeebcebb6465fd868cbbb28 [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",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200147 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200148 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100149 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100150 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800151 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200152 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200153 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800154 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800155 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200156 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100157
158 # Basically, don't add stuff here. You might break sensitive downstream
159 # targets like pnacl. API should not depend on anything outside of this
160 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700161 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100162 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100163 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100164 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100165 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100166 "../rtc_base:checks",
167 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700168 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200169 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700170 ]
Niels Möller8366e172018-02-14 12:20:13 +0100171
kjellander8a116632017-04-21 05:17:08 -0700172 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100173 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700174 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
175 }
ossu7bb87ee2017-01-23 04:56:25 -0800176}
kjellanderc76dc952016-06-03 03:09:32 -0700177
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100178rtc_source_set("scoped_refptr") {
179 visibility = [ "*" ]
180 sources = [
181 "scoped_refptr.h",
182 ]
183}
184
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200185rtc_source_set("video_quality_test_fixture_api") {
186 visibility = [ "*" ]
187 testonly = true
188 sources = [
189 "test/video_quality_test_fixture.h",
190 ]
191 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200192 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200193 ":libjingle_peerconnection_api",
194 ":simulated_network_api",
195 "../call:fake_network",
196 "../call:rtp_interfaces",
197 "../test:test_common",
198 "../test:video_test_common",
199 "video_codecs:video_codecs_api",
200 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200201}
202
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200203rtc_source_set("test_dependency_factory") {
204 visibility = [ "*" ]
205 testonly = true
206 sources = [
207 "test/test_dependency_factory.cc",
208 "test/test_dependency_factory.h",
209 ]
210 deps = [
211 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100212 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200213 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900214 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200215 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200216}
217
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200218if (rtc_include_tests) {
219 rtc_source_set("create_video_quality_test_fixture_api") {
220 visibility = [ "*" ]
221 testonly = true
222 sources = [
223 "test/create_video_quality_test_fixture.cc",
224 "test/create_video_quality_test_fixture.h",
225 ]
226 deps = [
227 ":fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100228 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200229 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200230 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200231 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200232 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200233 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100234
235 rtc_source_set("create_network_emulation_manager_api") {
236 visibility = [ "*" ]
237 testonly = true
238 sources = [
239 "test/create_network_emulation_manager.cc",
240 "test/create_network_emulation_manager.h",
241 ]
242 deps = [
243 ":network_emulation_manager_api",
244 "../test/scenario/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100245 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100246 ]
247 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200248}
249
Elad Alon80810732017-10-06 13:07:32 +0200250rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000251 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200252 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800253 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200254 ]
255}
256
deadbeefe814a0d2017-02-25 18:15:09 -0800257rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000258 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800259 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800260 "ortc/packet_transport_interface.h",
261 "ortc/rtp_transport_interface.h",
262 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800263 ]
264
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100265 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800266 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100267 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200268 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800269 ]
270}
271
hbos74e1a4f2016-09-15 23:33:01 -0700272rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000273 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700274 cflags = []
275 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800276 "stats/rtc_stats.h",
277 "stats/rtc_stats_collector_callback.h",
278 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700279 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700280 ]
281
282 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100283 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100284 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700285 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200286 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700287 ]
288}
289
Niels Möllera6fe2612018-01-19 11:28:54 +0100290rtc_source_set("audio_options_api") {
291 visibility = [ "*" ]
292 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200293 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100294 "audio_options.h",
295 ]
296
297 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100298 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200299 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200300 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100301 ]
302}
303
aleloia8eb7562016-11-28 07:02:13 -0800304rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000305 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800306 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100307 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800308 "call/transport.h",
309 ]
310}
nisseb2250e52016-12-02 04:01:14 -0800311
Sebastian Jansson6736df12018-11-21 19:18:39 +0100312rtc_source_set("bitrate_allocation") {
313 visibility = [ "*" ]
314 sources = [
315 "call/bitrate_allocation.h",
316 ]
317 deps = [
318 "units:data_rate",
319 "units:time_delta",
320 ]
321}
322
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200323rtc_source_set("simulated_network_api") {
324 visibility = [ "*" ]
325 sources = [
326 "test/simulated_network.h",
327 ]
328 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100329 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200330 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200331 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200332 ]
333}
334
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100335rtc_source_set("network_emulation_manager_api") {
336 visibility = [ "*" ]
337 sources = [
338 "test/network_emulation_manager.h",
339 ]
340 deps = [
341 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100342 "../rtc_base",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100343 ]
344}
345
Ying Wang3b790f32018-01-19 17:58:57 +0100346rtc_source_set("fec_controller_api") {
347 visibility = [ "*" ]
348 sources = [
349 "fec_controller.h",
350 ]
351
352 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100353 "..:webrtc_common",
354 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100355 ]
356}
357
kwiberg529662a2017-09-04 05:43:17 -0700358rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000359 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700360 sources = [
361 "array_view.h",
362 ]
363 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100364 "../rtc_base:checks",
365 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700366 ]
367}
368
Niels Möller9155e492017-10-23 11:22:30 +0200369rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000370 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200371 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800372 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200373 ]
374 deps = [
375 "../rtc_base:rtc_base_approved",
376 ]
377}
378
Harald Alvestrand98462622019-01-30 14:57:03 +0100379rtc_source_set("ice_transport_factory") {
380 visibility = [ "*" ]
381 sources = [
382 "ice_transport_factory.cc",
383 "ice_transport_factory.h",
384 ]
385 deps = [
386 ":libjingle_peerconnection_api",
387 ":scoped_refptr",
388 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100389 "../rtc_base",
Artem Titov533a9fe2019-03-21 12:18:05 +0100390 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100391 ]
392}
393
Ivo Creusen55de08e2018-09-03 11:49:27 +0200394rtc_source_set("neteq_simulator_api") {
395 visibility = [ "*" ]
396 sources = [
397 "test/neteq_simulator.cc",
398 "test/neteq_simulator.h",
399 ]
400}
401
kjellanderfd5b4e92016-06-13 12:08:33 -0700402if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100403 if (rtc_enable_protobuf) {
404 rtc_source_set("audioproc_f_api") {
405 visibility = [ "*" ]
406 testonly = true
407 sources = [
408 "test/audioproc_float.cc",
409 "test/audioproc_float.h",
410 ]
411
412 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100413 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000414 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100415 "../modules/audio_processing:audioproc_f_impl",
416 ]
417 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200418
419 rtc_source_set("neteq_simulator_factory") {
420 visibility = [ "*" ]
421 testonly = true
422 sources = [
423 "test/neteq_simulator_factory.cc",
424 "test/neteq_simulator_factory.h",
425 ]
426 deps = [
427 ":neteq_simulator_api",
428 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200429 "../rtc_base:checks",
430 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200431 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100432 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200433 ]
434 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100435 }
436
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200437 rtc_source_set("simulcast_test_fixture_api") {
438 visibility = [ "*" ]
439 testonly = true
440 sources = [
441 "test/simulcast_test_fixture.h",
442 ]
443 }
444
445 rtc_source_set("create_simulcast_test_fixture_api") {
446 visibility = [ "*" ]
447 testonly = true
448 sources = [
449 "test/create_simulcast_test_fixture.cc",
450 "test/create_simulcast_test_fixture.h",
451 ]
452 deps = [
453 ":simulcast_test_fixture_api",
454 "../modules/video_coding:simulcast_test_fixture_impl",
455 "../rtc_base:rtc_base_approved",
456 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200457 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200458 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200459 }
460
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200461 rtc_source_set("videocodec_test_fixture_api") {
462 visibility = [ "*" ]
463 testonly = true
464 sources = [
465 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200466 "test/videocodec_test_stats.cc",
467 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200468 ]
469 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200470 "..:webrtc_common",
471 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200472 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200473 "video_codecs:video_codecs_api",
474 ]
475 }
476
477 rtc_source_set("create_videocodec_test_fixture_api") {
478 visibility = [ "*" ]
479 testonly = true
480 sources = [
481 "test/create_videocodec_test_fixture.cc",
482 "test/create_videocodec_test_fixture.h",
483 ]
484 deps = [
485 ":videocodec_test_fixture_api",
486 "../modules/video_coding:video_codecs_test_framework",
487 "../modules/video_coding:videocodec_test_impl",
488 "../rtc_base:rtc_base_approved",
489 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200490 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200491 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200492 }
493
kjellander2f6af9c2017-03-02 22:26:23 -0800494 rtc_source_set("mock_audio_mixer") {
495 testonly = true
496 sources = [
497 "test/mock_audio_mixer.h",
498 ]
499
kjellander2f6af9c2017-03-02 22:26:23 -0800500 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700501 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100502 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800503 ]
504 }
505
Benjamin Wright78410ad2018-10-25 09:52:57 -0700506 rtc_source_set("mock_frame_encryptor") {
507 testonly = true
508 sources = [
509 "test/mock_frame_encryptor.cc",
510 "test/mock_frame_encryptor.h",
511 ]
512 deps = [
513 ":libjingle_peerconnection_api",
514 "../test:test_support",
515 ]
516 }
517
518 rtc_source_set("mock_frame_decryptor") {
519 testonly = true
520 sources = [
521 "test/mock_frame_decryptor.cc",
522 "test/mock_frame_decryptor.h",
523 ]
524 deps = [
525 ":libjingle_peerconnection_api",
526 "../test:test_support",
527 ]
528 }
529
530 rtc_source_set("fake_frame_encryptor") {
531 testonly = true
532 sources = [
533 "test/fake_frame_encryptor.cc",
534 "test/fake_frame_encryptor.h",
535 ]
536 deps = [
537 ":array_view",
538 ":libjingle_peerconnection_api",
539 "..:webrtc_common",
540 "../rtc_base:checks",
541 "../rtc_base:rtc_base_approved",
542 ]
543 }
544
545 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700546 testonly = true
547 sources = [
548 "test/fake_frame_decryptor.cc",
549 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700550 ]
551 deps = [
552 ":array_view",
553 ":libjingle_peerconnection_api",
554 "..:webrtc_common",
555 "../rtc_base:checks",
556 "../rtc_base:rtc_base_approved",
557 ]
558 }
559
Jiawei Ou651b92e2018-06-29 15:46:44 -0700560 rtc_source_set("mock_peerconnectioninterface") {
561 testonly = true
562 sources = [
563 "test/mock_peerconnectioninterface.h",
564 ]
565
566 deps = [
567 ":libjingle_peerconnection_api",
568 "../test:test_support",
569 ]
570 }
571
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100572 rtc_source_set("mock_rtp") {
573 testonly = true
574 sources = [
575 "test/mock_rtpreceiver.h",
576 "test/mock_rtpsender.h",
577 ]
578
579 deps = [
580 ":libjingle_peerconnection_api",
581 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100582 ]
583 }
584
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700585 rtc_source_set("mock_video_bitrate_allocator") {
586 testonly = true
587 sources = [
588 "test/mock_video_bitrate_allocator.h",
589 ]
590
591 deps = [
592 "../api/video:video_bitrate_allocator",
593 "../test:test_support",
594 ]
595 }
596
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800597 rtc_source_set("mock_video_bitrate_allocator_factory") {
598 testonly = true
599 sources = [
600 "test/mock_video_bitrate_allocator_factory.h",
601 ]
602
603 deps = [
604 "../api/video:video_bitrate_allocator_factory",
605 "../test:test_support",
606 ]
607 }
608
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700609 rtc_source_set("mock_video_codec_factory") {
610 testonly = true
611 sources = [
612 "test/mock_video_decoder_factory.h",
613 "test/mock_video_encoder_factory.h",
614 ]
615
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700616 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100617 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700618 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700619 ]
620 }
621
Erik Språngc84cd952018-10-15 11:55:13 +0200622 rtc_source_set("mock_video_decoder") {
623 visibility = [ "*" ]
624
625 testonly = true
626 sources = [
627 "test/mock_video_decoder.cc",
628 "test/mock_video_decoder.h",
629 ]
630
631 deps = [
632 "../api/video_codecs:video_codecs_api",
633 "../test:test_support",
634 ]
635 }
636
Erik Språng6af1c922018-10-12 10:01:30 +0200637 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200638 visibility = [ "*" ]
639
Erik Språng6af1c922018-10-12 10:01:30 +0200640 testonly = true
641 sources = [
642 "test/mock_video_encoder.cc",
643 "test/mock_video_encoder.h",
644 ]
645
646 deps = [
647 "../api/video_codecs:video_codecs_api",
648 "../test:test_support",
649 ]
650 }
651
Anton Sukhanov7940da02018-10-10 10:34:49 -0700652 rtc_source_set("fake_media_transport") {
653 testonly = true
654
655 sources = [
656 "test/fake_media_transport.h",
657 ]
658
659 deps = [
660 ":libjingle_peerconnection_api",
661 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100662 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700663 ]
664 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200665
666 rtc_source_set("loopback_media_transport") {
667 testonly = true
668
669 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100670 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200671 "test/loopback_media_transport.h",
672 ]
673
674 deps = [
675 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100676 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200677 "../rtc_base:checks",
Niels Möllere0446cb2018-11-30 09:35:52 +0100678 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200679 ]
680 }
681
682 rtc_source_set("rtc_api_unittests") {
683 testonly = true
684
685 sources = [
686 "array_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800687 "rtc_error_unittest.cc",
688 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200689 "test/loopback_media_transport_unittest.cc",
690 ]
691
Niels Möller2e47f7c2018-10-16 10:41:42 +0200692 deps = [
693 ":array_view",
694 ":libjingle_peerconnection_api",
695 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200696 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100697 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200698 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200699 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100700 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200701 "units:units_unittests",
702 ]
703 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100704
705 rtc_source_set("compile_all_headers") {
706 testonly = true
707
708 sources = [
709 "test/compile_all_headers.cc",
710 ]
711
712 deps = [
713 ":fake_frame_decryptor",
714 ":fake_frame_encryptor",
715 ":fake_media_transport",
716 ":loopback_media_transport",
717 ":mock_audio_mixer",
718 ":mock_frame_decryptor",
719 ":mock_frame_encryptor",
720 ":mock_peerconnectioninterface",
721 ":mock_rtp",
722 ":mock_video_bitrate_allocator",
723 ":mock_video_bitrate_allocator_factory",
724 ":mock_video_codec_factory",
725 ":mock_video_decoder",
726 ":mock_video_encoder",
727 ":rtc_api_unittests",
728 "units:units_unittests",
729 ]
730 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700731}