blob: fd5df66fdf40174ac848566076ccedca81c85f19 [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
ossu7bb87ee2017-01-23 04:56:25 -080066rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000067 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070068 cflags = []
69 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080070 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020071 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070072 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020073 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -080074 "crypto/crypto_options.cc",
75 "crypto/crypto_options.h",
76 "crypto/frame_decryptor_interface.h",
77 "crypto/frame_encryptor_interface.h",
78 "crypto_params.h",
79 "data_channel_interface.cc",
80 "data_channel_interface.h",
81 "dtls_transport_interface.h",
82 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +010083 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -080084 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070085 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -080086 "jsep_ice_candidate.cc",
87 "jsep_ice_candidate.h",
88 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -080089 "media_stream_interface.cc",
90 "media_stream_interface.h",
91 "media_stream_proxy.h",
92 "media_stream_track_proxy.h",
Niels Möller3a742392018-10-08 11:13:58 +020093 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040094 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -080095 "media_types.cc",
96 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -070097 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -080098 "peer_connection_factory_proxy.h",
99 "peer_connection_interface.cc",
100 "peer_connection_interface.h",
101 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700102 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700103 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800104 "rtc_error.cc",
105 "rtc_error.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100106 "rtp_headers.cc",
107 "rtp_headers.h",
Steve Anton10542f22019-01-11 09:11:00 -0800108 "rtp_parameters.cc",
109 "rtp_parameters.h",
110 "rtp_receiver_interface.cc",
111 "rtp_receiver_interface.h",
112 "rtp_sender_interface.cc",
113 "rtp_sender_interface.h",
114 "rtp_transceiver_interface.cc",
115 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100116 "sctp_transport_interface.cc",
117 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800118 "set_remote_description_observer_interface.h",
119 "stats_types.cc",
120 "stats_types.h",
121 "turn_customizer.h",
122 "uma_metrics.h",
123 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700124 ]
kjellanderc76dc952016-06-03 03:09:32 -0700125 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100126 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100127 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100128 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100129 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100130 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700131 ":rtc_stats_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100132 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100133 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100134 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200135 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200136 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100137 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100138 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800139 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200140 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200141 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800142 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800143 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200144 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100145
146 # Basically, don't add stuff here. You might break sensitive downstream
147 # targets like pnacl. API should not depend on anything outside of this
148 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700149 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100150 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100151 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100152 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100153 "../rtc_base:checks",
154 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700155 "../rtc_base:rtc_base",
156 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200157 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700158 ]
Niels Möller8366e172018-02-14 12:20:13 +0100159
kjellander8a116632017-04-21 05:17:08 -0700160 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100161 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700162 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
163 }
ossu7bb87ee2017-01-23 04:56:25 -0800164}
kjellanderc76dc952016-06-03 03:09:32 -0700165
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100166rtc_source_set("scoped_refptr") {
167 visibility = [ "*" ]
168 sources = [
169 "scoped_refptr.h",
170 ]
171}
172
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200173rtc_source_set("video_quality_test_fixture_api") {
174 visibility = [ "*" ]
175 testonly = true
176 sources = [
177 "test/video_quality_test_fixture.h",
178 ]
179 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200180 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200181 ":libjingle_peerconnection_api",
182 ":simulated_network_api",
183 "../call:fake_network",
184 "../call:rtp_interfaces",
185 "../test:test_common",
186 "../test:video_test_common",
187 "video_codecs:video_codecs_api",
188 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200189}
190
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200191rtc_source_set("test_dependency_factory") {
192 visibility = [ "*" ]
193 testonly = true
194 sources = [
195 "test/test_dependency_factory.cc",
196 "test/test_dependency_factory.h",
197 ]
198 deps = [
199 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100200 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200201 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900202 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200203 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200204}
205
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200206if (rtc_include_tests) {
207 rtc_source_set("create_video_quality_test_fixture_api") {
208 visibility = [ "*" ]
209 testonly = true
210 sources = [
211 "test/create_video_quality_test_fixture.cc",
212 "test/create_video_quality_test_fixture.h",
213 ]
214 deps = [
215 ":fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100216 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200217 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200218 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200219 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200220 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200221 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100222
223 rtc_source_set("create_network_emulation_manager_api") {
224 visibility = [ "*" ]
225 testonly = true
226 sources = [
227 "test/create_network_emulation_manager.cc",
228 "test/create_network_emulation_manager.h",
229 ]
230 deps = [
231 ":network_emulation_manager_api",
232 "../test/scenario/network:emulated_network",
233 "//third_party/abseil-cpp/absl/memory:memory",
234 ]
235 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200236}
237
Elad Alon80810732017-10-06 13:07:32 +0200238rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000239 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200240 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800241 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200242 ]
243}
244
deadbeefe814a0d2017-02-25 18:15:09 -0800245rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000246 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800247 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800248 "ortc/packet_transport_interface.h",
249 "ortc/rtp_transport_interface.h",
250 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800251 ]
252
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100253 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800254 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200255 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800256 ]
257}
258
hbos74e1a4f2016-09-15 23:33:01 -0700259rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000260 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700261 cflags = []
262 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800263 "stats/rtc_stats.h",
264 "stats/rtc_stats_collector_callback.h",
265 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700266 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700267 ]
268
269 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100270 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100271 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700272 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200273 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700274 ]
275}
276
Niels Möllera6fe2612018-01-19 11:28:54 +0100277rtc_source_set("audio_options_api") {
278 visibility = [ "*" ]
279 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200280 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100281 "audio_options.h",
282 ]
283
284 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100285 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200286 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200287 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100288 ]
289}
290
aleloia8eb7562016-11-28 07:02:13 -0800291rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000292 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800293 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100294 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800295 "call/transport.h",
296 ]
297}
nisseb2250e52016-12-02 04:01:14 -0800298
Sebastian Jansson6736df12018-11-21 19:18:39 +0100299rtc_source_set("bitrate_allocation") {
300 visibility = [ "*" ]
301 sources = [
302 "call/bitrate_allocation.h",
303 ]
304 deps = [
305 "units:data_rate",
306 "units:time_delta",
307 ]
308}
309
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200310rtc_source_set("simulated_network_api") {
311 visibility = [ "*" ]
312 sources = [
313 "test/simulated_network.h",
314 ]
315 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200316 "../rtc_base:criticalsection",
317 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200318 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200319 ]
320}
321
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100322rtc_source_set("network_emulation_manager_api") {
323 visibility = [ "*" ]
324 sources = [
325 "test/network_emulation_manager.h",
326 ]
327 deps = [
328 ":simulated_network_api",
329 "../rtc_base:rtc_base",
330 ]
331}
332
Ying Wang3b790f32018-01-19 17:58:57 +0100333rtc_source_set("fec_controller_api") {
334 visibility = [ "*" ]
335 sources = [
336 "fec_controller.h",
337 ]
338
339 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100340 "..:webrtc_common",
341 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100342 ]
343}
344
kwiberg529662a2017-09-04 05:43:17 -0700345rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000346 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700347 sources = [
348 "array_view.h",
349 ]
350 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100351 "../rtc_base:checks",
352 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700353 ]
354}
355
Niels Möller9155e492017-10-23 11:22:30 +0200356rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000357 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200358 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800359 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200360 ]
361 deps = [
362 "../rtc_base:rtc_base_approved",
363 ]
364}
365
Harald Alvestrand98462622019-01-30 14:57:03 +0100366rtc_source_set("ice_transport_factory") {
367 visibility = [ "*" ]
368 sources = [
369 "ice_transport_factory.cc",
370 "ice_transport_factory.h",
371 ]
372 deps = [
373 ":libjingle_peerconnection_api",
374 ":scoped_refptr",
375 "../p2p:rtc_p2p",
376 "../rtc_base:rtc_base",
377 "//third_party/abseil-cpp/absl/memory:memory",
378 ]
379}
380
Ivo Creusen55de08e2018-09-03 11:49:27 +0200381rtc_source_set("neteq_simulator_api") {
382 visibility = [ "*" ]
383 sources = [
384 "test/neteq_simulator.cc",
385 "test/neteq_simulator.h",
386 ]
387}
388
kjellanderfd5b4e92016-06-13 12:08:33 -0700389if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100390 if (rtc_enable_protobuf) {
391 rtc_source_set("audioproc_f_api") {
392 visibility = [ "*" ]
393 testonly = true
394 sources = [
395 "test/audioproc_float.cc",
396 "test/audioproc_float.h",
397 ]
398
399 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000400 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100401 "../modules/audio_processing:audio_processing",
402 "../modules/audio_processing:audioproc_f_impl",
403 ]
404 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200405
406 rtc_source_set("neteq_simulator_factory") {
407 visibility = [ "*" ]
408 testonly = true
409 sources = [
410 "test/neteq_simulator_factory.cc",
411 "test/neteq_simulator_factory.h",
412 ]
413 deps = [
414 ":neteq_simulator_api",
415 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200416 "../rtc_base:checks",
417 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200418 "//third_party/abseil-cpp/absl/memory",
419 ]
420 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100421 }
422
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200423 rtc_source_set("simulcast_test_fixture_api") {
424 visibility = [ "*" ]
425 testonly = true
426 sources = [
427 "test/simulcast_test_fixture.h",
428 ]
429 }
430
431 rtc_source_set("create_simulcast_test_fixture_api") {
432 visibility = [ "*" ]
433 testonly = true
434 sources = [
435 "test/create_simulcast_test_fixture.cc",
436 "test/create_simulcast_test_fixture.h",
437 ]
438 deps = [
439 ":simulcast_test_fixture_api",
440 "../modules/video_coding:simulcast_test_fixture_impl",
441 "../rtc_base:rtc_base_approved",
442 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200443 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200444 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200445 }
446
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200447 rtc_source_set("videocodec_test_fixture_api") {
448 visibility = [ "*" ]
449 testonly = true
450 sources = [
451 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200452 "test/videocodec_test_stats.cc",
453 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200454 ]
455 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200456 "..:webrtc_common",
457 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200458 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200459 "video_codecs:video_codecs_api",
460 ]
461 }
462
463 rtc_source_set("create_videocodec_test_fixture_api") {
464 visibility = [ "*" ]
465 testonly = true
466 sources = [
467 "test/create_videocodec_test_fixture.cc",
468 "test/create_videocodec_test_fixture.h",
469 ]
470 deps = [
471 ":videocodec_test_fixture_api",
472 "../modules/video_coding:video_codecs_test_framework",
473 "../modules/video_coding:videocodec_test_impl",
474 "../rtc_base:rtc_base_approved",
475 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200476 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200477 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200478 }
479
kjellander2f6af9c2017-03-02 22:26:23 -0800480 rtc_source_set("mock_audio_mixer") {
481 testonly = true
482 sources = [
483 "test/mock_audio_mixer.h",
484 ]
485
kjellander2f6af9c2017-03-02 22:26:23 -0800486 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700487 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100488 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800489 ]
490 }
491
Benjamin Wright78410ad2018-10-25 09:52:57 -0700492 rtc_source_set("mock_frame_encryptor") {
493 testonly = true
494 sources = [
495 "test/mock_frame_encryptor.cc",
496 "test/mock_frame_encryptor.h",
497 ]
498 deps = [
499 ":libjingle_peerconnection_api",
500 "../test:test_support",
501 ]
502 }
503
504 rtc_source_set("mock_frame_decryptor") {
505 testonly = true
506 sources = [
507 "test/mock_frame_decryptor.cc",
508 "test/mock_frame_decryptor.h",
509 ]
510 deps = [
511 ":libjingle_peerconnection_api",
512 "../test:test_support",
513 ]
514 }
515
516 rtc_source_set("fake_frame_encryptor") {
517 testonly = true
518 sources = [
519 "test/fake_frame_encryptor.cc",
520 "test/fake_frame_encryptor.h",
521 ]
522 deps = [
523 ":array_view",
524 ":libjingle_peerconnection_api",
525 "..:webrtc_common",
526 "../rtc_base:checks",
527 "../rtc_base:rtc_base_approved",
528 ]
529 }
530
531 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700532 testonly = true
533 sources = [
534 "test/fake_frame_decryptor.cc",
535 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700536 ]
537 deps = [
538 ":array_view",
539 ":libjingle_peerconnection_api",
540 "..:webrtc_common",
541 "../rtc_base:checks",
542 "../rtc_base:rtc_base_approved",
543 ]
544 }
545
Jiawei Ou651b92e2018-06-29 15:46:44 -0700546 rtc_source_set("mock_peerconnectioninterface") {
547 testonly = true
548 sources = [
549 "test/mock_peerconnectioninterface.h",
550 ]
551
552 deps = [
553 ":libjingle_peerconnection_api",
554 "../test:test_support",
555 ]
556 }
557
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100558 rtc_source_set("mock_rtp") {
559 testonly = true
560 sources = [
561 "test/mock_rtpreceiver.h",
562 "test/mock_rtpsender.h",
563 ]
564
565 deps = [
566 ":libjingle_peerconnection_api",
567 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100568 ]
569 }
570
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700571 rtc_source_set("mock_video_bitrate_allocator") {
572 testonly = true
573 sources = [
574 "test/mock_video_bitrate_allocator.h",
575 ]
576
577 deps = [
578 "../api/video:video_bitrate_allocator",
579 "../test:test_support",
580 ]
581 }
582
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800583 rtc_source_set("mock_video_bitrate_allocator_factory") {
584 testonly = true
585 sources = [
586 "test/mock_video_bitrate_allocator_factory.h",
587 ]
588
589 deps = [
590 "../api/video:video_bitrate_allocator_factory",
591 "../test:test_support",
592 ]
593 }
594
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700595 rtc_source_set("mock_video_codec_factory") {
596 testonly = true
597 sources = [
598 "test/mock_video_decoder_factory.h",
599 "test/mock_video_encoder_factory.h",
600 ]
601
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700602 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100603 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700604 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700605 ]
606 }
607
Erik Språngc84cd952018-10-15 11:55:13 +0200608 rtc_source_set("mock_video_decoder") {
609 visibility = [ "*" ]
610
611 testonly = true
612 sources = [
613 "test/mock_video_decoder.cc",
614 "test/mock_video_decoder.h",
615 ]
616
617 deps = [
618 "../api/video_codecs:video_codecs_api",
619 "../test:test_support",
620 ]
621 }
622
Erik Språng6af1c922018-10-12 10:01:30 +0200623 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200624 visibility = [ "*" ]
625
Erik Språng6af1c922018-10-12 10:01:30 +0200626 testonly = true
627 sources = [
628 "test/mock_video_encoder.cc",
629 "test/mock_video_encoder.h",
630 ]
631
632 deps = [
633 "../api/video_codecs:video_codecs_api",
634 "../test:test_support",
635 ]
636 }
637
Anton Sukhanov7940da02018-10-10 10:34:49 -0700638 rtc_source_set("fake_media_transport") {
639 testonly = true
640
641 sources = [
642 "test/fake_media_transport.h",
643 ]
644
645 deps = [
646 ":libjingle_peerconnection_api",
647 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100648 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700649 ]
650 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200651
652 rtc_source_set("loopback_media_transport") {
653 testonly = true
654
655 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100656 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200657 "test/loopback_media_transport.h",
658 ]
659
660 deps = [
661 ":libjingle_peerconnection_api",
662 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700663 "../rtc_base:rtc_base",
Niels Möllere0446cb2018-11-30 09:35:52 +0100664 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200665 ]
666 }
667
668 rtc_source_set("rtc_api_unittests") {
669 testonly = true
670
671 sources = [
672 "array_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800673 "rtc_error_unittest.cc",
674 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200675 "test/loopback_media_transport_unittest.cc",
676 ]
677
Niels Möller2e47f7c2018-10-16 10:41:42 +0200678 deps = [
679 ":array_view",
680 ":libjingle_peerconnection_api",
681 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200682 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100683 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200684 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200685 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100686 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200687 "units:units_unittests",
688 ]
689 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100690
691 rtc_source_set("compile_all_headers") {
692 testonly = true
693
694 sources = [
695 "test/compile_all_headers.cc",
696 ]
697
698 deps = [
699 ":fake_frame_decryptor",
700 ":fake_frame_encryptor",
701 ":fake_media_transport",
702 ":loopback_media_transport",
703 ":mock_audio_mixer",
704 ":mock_frame_decryptor",
705 ":mock_frame_encryptor",
706 ":mock_peerconnectioninterface",
707 ":mock_rtp",
708 ":mock_video_bitrate_allocator",
709 ":mock_video_bitrate_allocator_factory",
710 ":mock_video_codec_factory",
711 ":mock_video_decoder",
712 ":mock_video_encoder",
713 ":rtc_api_unittests",
714 "units:units_unittests",
715 ]
716 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700717}