blob: aacc1e49e07c80ab06a4c1dfef700c80649c17c6 [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",
116 "set_remote_description_observer_interface.h",
117 "stats_types.cc",
118 "stats_types.h",
119 "turn_customizer.h",
120 "uma_metrics.h",
121 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700122 ]
kjellanderc76dc952016-06-03 03:09:32 -0700123 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100124 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100125 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100126 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100127 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100128 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700129 ":rtc_stats_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100130 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100131 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100132 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200133 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200134 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100135 "transport/media:audio_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800136 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200137 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200138 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800139 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800140 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200141 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100142
143 # Basically, don't add stuff here. You might break sensitive downstream
144 # targets like pnacl. API should not depend on anything outside of this
145 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700146 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100147 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100148 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100149 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100150 "../rtc_base:checks",
151 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700152 "../rtc_base:rtc_base",
153 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200154 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700155 ]
Niels Möller8366e172018-02-14 12:20:13 +0100156
kjellander8a116632017-04-21 05:17:08 -0700157 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100158 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700159 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
160 }
ossu7bb87ee2017-01-23 04:56:25 -0800161}
kjellanderc76dc952016-06-03 03:09:32 -0700162
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100163rtc_source_set("scoped_refptr") {
164 visibility = [ "*" ]
165 sources = [
166 "scoped_refptr.h",
167 ]
168}
169
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200170rtc_source_set("video_quality_test_fixture_api") {
171 visibility = [ "*" ]
172 testonly = true
173 sources = [
174 "test/video_quality_test_fixture.h",
175 ]
176 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200177 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200178 ":libjingle_peerconnection_api",
179 ":simulated_network_api",
180 "../call:fake_network",
181 "../call:rtp_interfaces",
182 "../test:test_common",
183 "../test:video_test_common",
184 "video_codecs:video_codecs_api",
185 ]
186 if (!build_with_chromium && is_clang) {
187 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
188 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
189 }
190}
191
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200192rtc_source_set("test_dependency_factory") {
193 visibility = [ "*" ]
194 testonly = true
195 sources = [
196 "test/test_dependency_factory.cc",
197 "test/test_dependency_factory.h",
198 ]
199 deps = [
200 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100201 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200202 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900203 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200204 ]
205 if (!build_with_chromium && is_clang) {
206 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
207 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
208 }
209}
210
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200211if (rtc_include_tests) {
212 rtc_source_set("create_video_quality_test_fixture_api") {
213 visibility = [ "*" ]
214 testonly = true
215 sources = [
216 "test/create_video_quality_test_fixture.cc",
217 "test/create_video_quality_test_fixture.h",
218 ]
219 deps = [
220 ":fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100221 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200222 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200223 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200224 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200225 ]
226 if (!build_with_chromium && is_clang) {
227 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
228 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
229 }
230 }
231}
232
Elad Alon80810732017-10-06 13:07:32 +0200233rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000234 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200235 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800236 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200237 ]
238}
239
deadbeefe814a0d2017-02-25 18:15:09 -0800240rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000241 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800242 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800243 "ortc/packet_transport_interface.h",
244 "ortc/rtp_transport_interface.h",
245 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800246 ]
247
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100248 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800249 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200250 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800251 ]
252}
253
hbos74e1a4f2016-09-15 23:33:01 -0700254rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000255 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700256 cflags = []
257 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800258 "stats/rtc_stats.h",
259 "stats/rtc_stats_collector_callback.h",
260 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700261 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700262 ]
263
264 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100265 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100266 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700267 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200268 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700269 ]
270}
271
Niels Möllera6fe2612018-01-19 11:28:54 +0100272rtc_source_set("audio_options_api") {
273 visibility = [ "*" ]
274 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200275 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100276 "audio_options.h",
277 ]
278
279 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100280 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200281 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200282 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100283 ]
284}
285
aleloia8eb7562016-11-28 07:02:13 -0800286rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000287 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800288 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100289 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800290 "call/transport.h",
291 ]
292}
nisseb2250e52016-12-02 04:01:14 -0800293
Sebastian Jansson6736df12018-11-21 19:18:39 +0100294rtc_source_set("bitrate_allocation") {
295 visibility = [ "*" ]
296 sources = [
297 "call/bitrate_allocation.h",
298 ]
299 deps = [
300 "units:data_rate",
301 "units:time_delta",
302 ]
303}
304
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200305rtc_source_set("simulated_network_api") {
306 visibility = [ "*" ]
307 sources = [
308 "test/simulated_network.h",
309 ]
310 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200311 "../rtc_base:criticalsection",
312 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200313 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200314 ]
315}
316
Ying Wang3b790f32018-01-19 17:58:57 +0100317rtc_source_set("fec_controller_api") {
318 visibility = [ "*" ]
319 sources = [
320 "fec_controller.h",
321 ]
322
323 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100324 "..:webrtc_common",
325 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100326 ]
327}
328
kwiberg529662a2017-09-04 05:43:17 -0700329rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000330 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700331 sources = [
332 "array_view.h",
333 ]
334 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100335 "../rtc_base:checks",
336 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700337 ]
338}
339
Niels Möller9155e492017-10-23 11:22:30 +0200340rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000341 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200342 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800343 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200344 ]
345 deps = [
346 "../rtc_base:rtc_base_approved",
347 ]
348}
349
Harald Alvestrand98462622019-01-30 14:57:03 +0100350rtc_source_set("ice_transport_factory") {
351 visibility = [ "*" ]
352 sources = [
353 "ice_transport_factory.cc",
354 "ice_transport_factory.h",
355 ]
356 deps = [
357 ":libjingle_peerconnection_api",
358 ":scoped_refptr",
359 "../p2p:rtc_p2p",
360 "../rtc_base:rtc_base",
361 "//third_party/abseil-cpp/absl/memory:memory",
362 ]
363}
364
Ivo Creusen55de08e2018-09-03 11:49:27 +0200365rtc_source_set("neteq_simulator_api") {
366 visibility = [ "*" ]
367 sources = [
368 "test/neteq_simulator.cc",
369 "test/neteq_simulator.h",
370 ]
371}
372
kjellanderfd5b4e92016-06-13 12:08:33 -0700373if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100374 if (rtc_enable_protobuf) {
375 rtc_source_set("audioproc_f_api") {
376 visibility = [ "*" ]
377 testonly = true
378 sources = [
379 "test/audioproc_float.cc",
380 "test/audioproc_float.h",
381 ]
382
383 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000384 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100385 "../modules/audio_processing:audio_processing",
386 "../modules/audio_processing:audioproc_f_impl",
387 ]
388 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200389
390 rtc_source_set("neteq_simulator_factory") {
391 visibility = [ "*" ]
392 testonly = true
393 sources = [
394 "test/neteq_simulator_factory.cc",
395 "test/neteq_simulator_factory.h",
396 ]
397 deps = [
398 ":neteq_simulator_api",
399 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200400 "../rtc_base:checks",
401 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200402 "//third_party/abseil-cpp/absl/memory",
403 ]
404 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100405 }
406
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200407 rtc_source_set("simulcast_test_fixture_api") {
408 visibility = [ "*" ]
409 testonly = true
410 sources = [
411 "test/simulcast_test_fixture.h",
412 ]
413 }
414
415 rtc_source_set("create_simulcast_test_fixture_api") {
416 visibility = [ "*" ]
417 testonly = true
418 sources = [
419 "test/create_simulcast_test_fixture.cc",
420 "test/create_simulcast_test_fixture.h",
421 ]
422 deps = [
423 ":simulcast_test_fixture_api",
424 "../modules/video_coding:simulcast_test_fixture_impl",
425 "../rtc_base:rtc_base_approved",
426 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200427 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200428 ]
429 if (!build_with_chromium && is_clang) {
430 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
431 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
432 }
433 }
434
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200435 rtc_source_set("videocodec_test_fixture_api") {
436 visibility = [ "*" ]
437 testonly = true
438 sources = [
439 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200440 "test/videocodec_test_stats.cc",
441 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200442 ]
443 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200444 "..:webrtc_common",
445 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200446 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200447 "video_codecs:video_codecs_api",
448 ]
449 }
450
451 rtc_source_set("create_videocodec_test_fixture_api") {
452 visibility = [ "*" ]
453 testonly = true
454 sources = [
455 "test/create_videocodec_test_fixture.cc",
456 "test/create_videocodec_test_fixture.h",
457 ]
458 deps = [
459 ":videocodec_test_fixture_api",
460 "../modules/video_coding:video_codecs_test_framework",
461 "../modules/video_coding:videocodec_test_impl",
462 "../rtc_base:rtc_base_approved",
463 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200464 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200465 ]
466 if (!build_with_chromium && is_clang) {
467 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
468 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
469 }
470 }
471
kjellander2f6af9c2017-03-02 22:26:23 -0800472 rtc_source_set("mock_audio_mixer") {
473 testonly = true
474 sources = [
475 "test/mock_audio_mixer.h",
476 ]
477
kjellander2f6af9c2017-03-02 22:26:23 -0800478 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700479 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100480 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800481 ]
482 }
483
Benjamin Wright78410ad2018-10-25 09:52:57 -0700484 rtc_source_set("mock_frame_encryptor") {
485 testonly = true
486 sources = [
487 "test/mock_frame_encryptor.cc",
488 "test/mock_frame_encryptor.h",
489 ]
490 deps = [
491 ":libjingle_peerconnection_api",
492 "../test:test_support",
493 ]
494 }
495
496 rtc_source_set("mock_frame_decryptor") {
497 testonly = true
498 sources = [
499 "test/mock_frame_decryptor.cc",
500 "test/mock_frame_decryptor.h",
501 ]
502 deps = [
503 ":libjingle_peerconnection_api",
504 "../test:test_support",
505 ]
506 }
507
508 rtc_source_set("fake_frame_encryptor") {
509 testonly = true
510 sources = [
511 "test/fake_frame_encryptor.cc",
512 "test/fake_frame_encryptor.h",
513 ]
514 deps = [
515 ":array_view",
516 ":libjingle_peerconnection_api",
517 "..:webrtc_common",
518 "../rtc_base:checks",
519 "../rtc_base:rtc_base_approved",
520 ]
521 }
522
523 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700524 testonly = true
525 sources = [
526 "test/fake_frame_decryptor.cc",
527 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700528 ]
529 deps = [
530 ":array_view",
531 ":libjingle_peerconnection_api",
532 "..:webrtc_common",
533 "../rtc_base:checks",
534 "../rtc_base:rtc_base_approved",
535 ]
536 }
537
Jiawei Ou651b92e2018-06-29 15:46:44 -0700538 rtc_source_set("mock_peerconnectioninterface") {
539 testonly = true
540 sources = [
541 "test/mock_peerconnectioninterface.h",
542 ]
543
544 deps = [
545 ":libjingle_peerconnection_api",
546 "../test:test_support",
547 ]
548 }
549
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100550 rtc_source_set("mock_rtp") {
551 testonly = true
552 sources = [
553 "test/mock_rtpreceiver.h",
554 "test/mock_rtpsender.h",
555 ]
556
557 deps = [
558 ":libjingle_peerconnection_api",
559 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100560 ]
561 }
562
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700563 rtc_source_set("mock_video_bitrate_allocator") {
564 testonly = true
565 sources = [
566 "test/mock_video_bitrate_allocator.h",
567 ]
568
569 deps = [
570 "../api/video:video_bitrate_allocator",
571 "../test:test_support",
572 ]
573 }
574
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800575 rtc_source_set("mock_video_bitrate_allocator_factory") {
576 testonly = true
577 sources = [
578 "test/mock_video_bitrate_allocator_factory.h",
579 ]
580
581 deps = [
582 "../api/video:video_bitrate_allocator_factory",
583 "../test:test_support",
584 ]
585 }
586
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700587 rtc_source_set("mock_video_codec_factory") {
588 testonly = true
589 sources = [
590 "test/mock_video_decoder_factory.h",
591 "test/mock_video_encoder_factory.h",
592 ]
593
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700594 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100595 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700596 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700597 ]
598 }
599
Erik Språngc84cd952018-10-15 11:55:13 +0200600 rtc_source_set("mock_video_decoder") {
601 visibility = [ "*" ]
602
603 testonly = true
604 sources = [
605 "test/mock_video_decoder.cc",
606 "test/mock_video_decoder.h",
607 ]
608
609 deps = [
610 "../api/video_codecs:video_codecs_api",
611 "../test:test_support",
612 ]
613 }
614
Erik Språng6af1c922018-10-12 10:01:30 +0200615 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200616 visibility = [ "*" ]
617
Erik Språng6af1c922018-10-12 10:01:30 +0200618 testonly = true
619 sources = [
620 "test/mock_video_encoder.cc",
621 "test/mock_video_encoder.h",
622 ]
623
624 deps = [
625 "../api/video_codecs:video_codecs_api",
626 "../test:test_support",
627 ]
628 }
629
Anton Sukhanov7940da02018-10-10 10:34:49 -0700630 rtc_source_set("fake_media_transport") {
631 testonly = true
632
633 sources = [
634 "test/fake_media_transport.h",
635 ]
636
637 deps = [
638 ":libjingle_peerconnection_api",
639 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100640 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700641 ]
642 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200643
644 rtc_source_set("loopback_media_transport") {
645 testonly = true
646
647 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100648 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200649 "test/loopback_media_transport.h",
650 ]
651
652 deps = [
653 ":libjingle_peerconnection_api",
654 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700655 "../rtc_base:rtc_base",
Niels Möllere0446cb2018-11-30 09:35:52 +0100656 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200657 ]
658 }
659
660 rtc_source_set("rtc_api_unittests") {
661 testonly = true
662
663 sources = [
664 "array_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800665 "rtc_error_unittest.cc",
666 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200667 "test/loopback_media_transport_unittest.cc",
668 ]
669
670 if (!build_with_chromium && is_clang) {
671 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
672 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
673 }
674
675 deps = [
676 ":array_view",
677 ":libjingle_peerconnection_api",
678 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200679 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100680 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200681 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200682 "../test:test_support",
683 "units:units_unittests",
684 ]
685 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700686}