blob: c1a7275a9cb8b1c973cf035e6291976655db0d26 [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",
Anders Carlsson01092952018-12-11 15:44:54 +010056 "../rtc_base:deprecation",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010057 "../rtc_base:rtc_base",
58 "../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 = [ "*" ]
68}
69
ossu7bb87ee2017-01-23 04:56:25 -080070rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000071 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070072 cflags = []
73 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080074 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020075 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070076 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020077 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -080078 "crypto/crypto_options.cc",
79 "crypto/crypto_options.h",
80 "crypto/frame_decryptor_interface.h",
81 "crypto/frame_encryptor_interface.h",
82 "crypto_params.h",
83 "data_channel_interface.cc",
84 "data_channel_interface.h",
85 "dtls_transport_interface.h",
86 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +010087 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -080088 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070089 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -080090 "jsep_ice_candidate.cc",
91 "jsep_ice_candidate.h",
92 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -080093 "media_stream_interface.cc",
94 "media_stream_interface.h",
95 "media_stream_proxy.h",
96 "media_stream_track_proxy.h",
Niels Möller3a742392018-10-08 11:13:58 +020097 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040098 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -080099 "media_types.cc",
100 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -0700101 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800102 "peer_connection_factory_proxy.h",
103 "peer_connection_interface.cc",
104 "peer_connection_interface.h",
105 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700106 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700107 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800108 "rtc_error.cc",
109 "rtc_error.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100110 "rtp_headers.cc",
111 "rtp_headers.h",
Steve Anton10542f22019-01-11 09:11:00 -0800112 "rtp_parameters.cc",
113 "rtp_parameters.h",
114 "rtp_receiver_interface.cc",
115 "rtp_receiver_interface.h",
116 "rtp_sender_interface.cc",
117 "rtp_sender_interface.h",
118 "rtp_transceiver_interface.cc",
119 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100120 "sctp_transport_interface.cc",
121 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800122 "set_remote_description_observer_interface.h",
123 "stats_types.cc",
124 "stats_types.h",
125 "turn_customizer.h",
126 "uma_metrics.h",
127 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700128 ]
kjellanderc76dc952016-06-03 03:09:32 -0700129 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100130 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100131 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100132 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100133 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100134 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700135 ":rtc_stats_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100136 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100137 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100138 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200139 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200140 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100141 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100142 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800143 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200144 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200145 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800146 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800147 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200148 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100149
150 # Basically, don't add stuff here. You might break sensitive downstream
151 # targets like pnacl. API should not depend on anything outside of this
152 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700153 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100154 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100155 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100156 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100157 "../rtc_base:checks",
158 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700159 "../rtc_base:rtc_base",
160 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200161 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700162 ]
Niels Möller8366e172018-02-14 12:20:13 +0100163
kjellander8a116632017-04-21 05:17:08 -0700164 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100165 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700166 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
167 }
ossu7bb87ee2017-01-23 04:56:25 -0800168}
kjellanderc76dc952016-06-03 03:09:32 -0700169
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100170rtc_source_set("scoped_refptr") {
171 visibility = [ "*" ]
172 sources = [
173 "scoped_refptr.h",
174 ]
175}
176
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200177rtc_source_set("video_quality_test_fixture_api") {
178 visibility = [ "*" ]
179 testonly = true
180 sources = [
181 "test/video_quality_test_fixture.h",
182 ]
183 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200184 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200185 ":libjingle_peerconnection_api",
186 ":simulated_network_api",
187 "../call:fake_network",
188 "../call:rtp_interfaces",
189 "../test:test_common",
190 "../test:video_test_common",
191 "video_codecs:video_codecs_api",
192 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200193}
194
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200195rtc_source_set("test_dependency_factory") {
196 visibility = [ "*" ]
197 testonly = true
198 sources = [
199 "test/test_dependency_factory.cc",
200 "test/test_dependency_factory.h",
201 ]
202 deps = [
203 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100204 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200205 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900206 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200207 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200208}
209
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200210if (rtc_include_tests) {
211 rtc_source_set("create_video_quality_test_fixture_api") {
212 visibility = [ "*" ]
213 testonly = true
214 sources = [
215 "test/create_video_quality_test_fixture.cc",
216 "test/create_video_quality_test_fixture.h",
217 ]
218 deps = [
219 ":fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100220 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200221 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200222 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200223 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200224 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200225 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100226
227 rtc_source_set("create_network_emulation_manager_api") {
228 visibility = [ "*" ]
229 testonly = true
230 sources = [
231 "test/create_network_emulation_manager.cc",
232 "test/create_network_emulation_manager.h",
233 ]
234 deps = [
235 ":network_emulation_manager_api",
236 "../test/scenario/network:emulated_network",
237 "//third_party/abseil-cpp/absl/memory:memory",
238 ]
239 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200240}
241
Elad Alon80810732017-10-06 13:07:32 +0200242rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000243 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200244 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800245 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200246 ]
247}
248
deadbeefe814a0d2017-02-25 18:15:09 -0800249rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000250 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800251 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800252 "ortc/packet_transport_interface.h",
253 "ortc/rtp_transport_interface.h",
254 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800255 ]
256
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100257 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800258 ":libjingle_peerconnection_api",
Niels Möllerb8389522019-03-19 14:27:03 +0100259 ":rtp_headers",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200260 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800261 ]
262}
263
hbos74e1a4f2016-09-15 23:33:01 -0700264rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000265 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700266 cflags = []
267 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800268 "stats/rtc_stats.h",
269 "stats/rtc_stats_collector_callback.h",
270 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700271 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700272 ]
273
274 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100275 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100276 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700277 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200278 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700279 ]
280}
281
Niels Möllera6fe2612018-01-19 11:28:54 +0100282rtc_source_set("audio_options_api") {
283 visibility = [ "*" ]
284 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200285 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100286 "audio_options.h",
287 ]
288
289 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100290 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200291 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200292 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100293 ]
294}
295
aleloia8eb7562016-11-28 07:02:13 -0800296rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000297 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800298 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100299 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800300 "call/transport.h",
301 ]
302}
nisseb2250e52016-12-02 04:01:14 -0800303
Sebastian Jansson6736df12018-11-21 19:18:39 +0100304rtc_source_set("bitrate_allocation") {
305 visibility = [ "*" ]
306 sources = [
307 "call/bitrate_allocation.h",
308 ]
309 deps = [
310 "units:data_rate",
311 "units:time_delta",
312 ]
313}
314
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200315rtc_source_set("simulated_network_api") {
316 visibility = [ "*" ]
317 sources = [
318 "test/simulated_network.h",
319 ]
320 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200321 "../rtc_base:criticalsection",
322 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200323 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200324 ]
325}
326
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100327rtc_source_set("network_emulation_manager_api") {
328 visibility = [ "*" ]
329 sources = [
330 "test/network_emulation_manager.h",
331 ]
332 deps = [
333 ":simulated_network_api",
334 "../rtc_base:rtc_base",
335 ]
336}
337
Ying Wang3b790f32018-01-19 17:58:57 +0100338rtc_source_set("fec_controller_api") {
339 visibility = [ "*" ]
340 sources = [
341 "fec_controller.h",
342 ]
343
344 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100345 "..:webrtc_common",
346 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100347 ]
348}
349
kwiberg529662a2017-09-04 05:43:17 -0700350rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000351 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700352 sources = [
353 "array_view.h",
354 ]
355 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100356 "../rtc_base:checks",
357 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700358 ]
359}
360
Niels Möller9155e492017-10-23 11:22:30 +0200361rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000362 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200363 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800364 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200365 ]
366 deps = [
367 "../rtc_base:rtc_base_approved",
368 ]
369}
370
Harald Alvestrand98462622019-01-30 14:57:03 +0100371rtc_source_set("ice_transport_factory") {
372 visibility = [ "*" ]
373 sources = [
374 "ice_transport_factory.cc",
375 "ice_transport_factory.h",
376 ]
377 deps = [
378 ":libjingle_peerconnection_api",
379 ":scoped_refptr",
380 "../p2p:rtc_p2p",
381 "../rtc_base:rtc_base",
382 "//third_party/abseil-cpp/absl/memory:memory",
383 ]
384}
385
Ivo Creusen55de08e2018-09-03 11:49:27 +0200386rtc_source_set("neteq_simulator_api") {
387 visibility = [ "*" ]
388 sources = [
389 "test/neteq_simulator.cc",
390 "test/neteq_simulator.h",
391 ]
392}
393
kjellanderfd5b4e92016-06-13 12:08:33 -0700394if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100395 if (rtc_enable_protobuf) {
396 rtc_source_set("audioproc_f_api") {
397 visibility = [ "*" ]
398 testonly = true
399 sources = [
400 "test/audioproc_float.cc",
401 "test/audioproc_float.h",
402 ]
403
404 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000405 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100406 "../modules/audio_processing:audio_processing",
407 "../modules/audio_processing:audioproc_f_impl",
408 ]
409 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200410
411 rtc_source_set("neteq_simulator_factory") {
412 visibility = [ "*" ]
413 testonly = true
414 sources = [
415 "test/neteq_simulator_factory.cc",
416 "test/neteq_simulator_factory.h",
417 ]
418 deps = [
419 ":neteq_simulator_api",
420 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200421 "../rtc_base:checks",
422 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200423 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100424 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200425 ]
426 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100427 }
428
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200429 rtc_source_set("simulcast_test_fixture_api") {
430 visibility = [ "*" ]
431 testonly = true
432 sources = [
433 "test/simulcast_test_fixture.h",
434 ]
435 }
436
437 rtc_source_set("create_simulcast_test_fixture_api") {
438 visibility = [ "*" ]
439 testonly = true
440 sources = [
441 "test/create_simulcast_test_fixture.cc",
442 "test/create_simulcast_test_fixture.h",
443 ]
444 deps = [
445 ":simulcast_test_fixture_api",
446 "../modules/video_coding:simulcast_test_fixture_impl",
447 "../rtc_base:rtc_base_approved",
448 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200449 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200450 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200451 }
452
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200453 rtc_source_set("videocodec_test_fixture_api") {
454 visibility = [ "*" ]
455 testonly = true
456 sources = [
457 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200458 "test/videocodec_test_stats.cc",
459 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200460 ]
461 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200462 "..:webrtc_common",
463 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200464 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200465 "video_codecs:video_codecs_api",
466 ]
467 }
468
469 rtc_source_set("create_videocodec_test_fixture_api") {
470 visibility = [ "*" ]
471 testonly = true
472 sources = [
473 "test/create_videocodec_test_fixture.cc",
474 "test/create_videocodec_test_fixture.h",
475 ]
476 deps = [
477 ":videocodec_test_fixture_api",
478 "../modules/video_coding:video_codecs_test_framework",
479 "../modules/video_coding:videocodec_test_impl",
480 "../rtc_base:rtc_base_approved",
481 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200482 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200483 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200484 }
485
kjellander2f6af9c2017-03-02 22:26:23 -0800486 rtc_source_set("mock_audio_mixer") {
487 testonly = true
488 sources = [
489 "test/mock_audio_mixer.h",
490 ]
491
kjellander2f6af9c2017-03-02 22:26:23 -0800492 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700493 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100494 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800495 ]
496 }
497
Benjamin Wright78410ad2018-10-25 09:52:57 -0700498 rtc_source_set("mock_frame_encryptor") {
499 testonly = true
500 sources = [
501 "test/mock_frame_encryptor.cc",
502 "test/mock_frame_encryptor.h",
503 ]
504 deps = [
505 ":libjingle_peerconnection_api",
506 "../test:test_support",
507 ]
508 }
509
510 rtc_source_set("mock_frame_decryptor") {
511 testonly = true
512 sources = [
513 "test/mock_frame_decryptor.cc",
514 "test/mock_frame_decryptor.h",
515 ]
516 deps = [
517 ":libjingle_peerconnection_api",
518 "../test:test_support",
519 ]
520 }
521
522 rtc_source_set("fake_frame_encryptor") {
523 testonly = true
524 sources = [
525 "test/fake_frame_encryptor.cc",
526 "test/fake_frame_encryptor.h",
527 ]
528 deps = [
529 ":array_view",
530 ":libjingle_peerconnection_api",
531 "..:webrtc_common",
532 "../rtc_base:checks",
533 "../rtc_base:rtc_base_approved",
534 ]
535 }
536
537 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700538 testonly = true
539 sources = [
540 "test/fake_frame_decryptor.cc",
541 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700542 ]
543 deps = [
544 ":array_view",
545 ":libjingle_peerconnection_api",
546 "..:webrtc_common",
547 "../rtc_base:checks",
548 "../rtc_base:rtc_base_approved",
549 ]
550 }
551
Jiawei Ou651b92e2018-06-29 15:46:44 -0700552 rtc_source_set("mock_peerconnectioninterface") {
553 testonly = true
554 sources = [
555 "test/mock_peerconnectioninterface.h",
556 ]
557
558 deps = [
559 ":libjingle_peerconnection_api",
560 "../test:test_support",
561 ]
562 }
563
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100564 rtc_source_set("mock_rtp") {
565 testonly = true
566 sources = [
567 "test/mock_rtpreceiver.h",
568 "test/mock_rtpsender.h",
569 ]
570
571 deps = [
572 ":libjingle_peerconnection_api",
573 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100574 ]
575 }
576
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700577 rtc_source_set("mock_video_bitrate_allocator") {
578 testonly = true
579 sources = [
580 "test/mock_video_bitrate_allocator.h",
581 ]
582
583 deps = [
584 "../api/video:video_bitrate_allocator",
585 "../test:test_support",
586 ]
587 }
588
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800589 rtc_source_set("mock_video_bitrate_allocator_factory") {
590 testonly = true
591 sources = [
592 "test/mock_video_bitrate_allocator_factory.h",
593 ]
594
595 deps = [
596 "../api/video:video_bitrate_allocator_factory",
597 "../test:test_support",
598 ]
599 }
600
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700601 rtc_source_set("mock_video_codec_factory") {
602 testonly = true
603 sources = [
604 "test/mock_video_decoder_factory.h",
605 "test/mock_video_encoder_factory.h",
606 ]
607
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700608 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100609 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700610 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700611 ]
612 }
613
Erik Språngc84cd952018-10-15 11:55:13 +0200614 rtc_source_set("mock_video_decoder") {
615 visibility = [ "*" ]
616
617 testonly = true
618 sources = [
619 "test/mock_video_decoder.cc",
620 "test/mock_video_decoder.h",
621 ]
622
623 deps = [
624 "../api/video_codecs:video_codecs_api",
625 "../test:test_support",
626 ]
627 }
628
Erik Språng6af1c922018-10-12 10:01:30 +0200629 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200630 visibility = [ "*" ]
631
Erik Språng6af1c922018-10-12 10:01:30 +0200632 testonly = true
633 sources = [
634 "test/mock_video_encoder.cc",
635 "test/mock_video_encoder.h",
636 ]
637
638 deps = [
639 "../api/video_codecs:video_codecs_api",
640 "../test:test_support",
641 ]
642 }
643
Anton Sukhanov7940da02018-10-10 10:34:49 -0700644 rtc_source_set("fake_media_transport") {
645 testonly = true
646
647 sources = [
648 "test/fake_media_transport.h",
649 ]
650
651 deps = [
652 ":libjingle_peerconnection_api",
653 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100654 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700655 ]
656 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200657
658 rtc_source_set("loopback_media_transport") {
659 testonly = true
660
661 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100662 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200663 "test/loopback_media_transport.h",
664 ]
665
666 deps = [
667 ":libjingle_peerconnection_api",
668 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700669 "../rtc_base:rtc_base",
Niels Möllere0446cb2018-11-30 09:35:52 +0100670 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200671 ]
672 }
673
674 rtc_source_set("rtc_api_unittests") {
675 testonly = true
676
677 sources = [
678 "array_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800679 "rtc_error_unittest.cc",
680 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200681 "test/loopback_media_transport_unittest.cc",
682 ]
683
Niels Möller2e47f7c2018-10-16 10:41:42 +0200684 deps = [
685 ":array_view",
686 ":libjingle_peerconnection_api",
687 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200688 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100689 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200690 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200691 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100692 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200693 "units:units_unittests",
694 ]
695 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100696
697 rtc_source_set("compile_all_headers") {
698 testonly = true
699
700 sources = [
701 "test/compile_all_headers.cc",
702 ]
703
704 deps = [
705 ":fake_frame_decryptor",
706 ":fake_frame_encryptor",
707 ":fake_media_transport",
708 ":loopback_media_transport",
709 ":mock_audio_mixer",
710 ":mock_frame_decryptor",
711 ":mock_frame_encryptor",
712 ":mock_peerconnectioninterface",
713 ":mock_rtp",
714 ":mock_video_bitrate_allocator",
715 ":mock_video_bitrate_allocator_factory",
716 ":mock_video_codec_factory",
717 ":mock_video_decoder",
718 ":mock_video_encoder",
719 ":rtc_api_unittests",
720 "units:units_unittests",
721 ]
722 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700723}