blob: a3e659c049677e79197714e935ac5879b23ef267 [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",
89 "media_constraints_interface.cc",
90 "media_constraints_interface.h",
91 "media_stream_interface.cc",
92 "media_stream_interface.h",
93 "media_stream_proxy.h",
94 "media_stream_track_proxy.h",
Niels Möller3a742392018-10-08 11:13:58 +020095 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040096 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -080097 "media_types.cc",
98 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -070099 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800100 "peer_connection_factory_proxy.h",
101 "peer_connection_interface.cc",
102 "peer_connection_interface.h",
103 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700104 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700105 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800106 "rtc_error.cc",
107 "rtc_error.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100108 "rtp_headers.cc",
109 "rtp_headers.h",
Steve Anton10542f22019-01-11 09:11:00 -0800110 "rtp_parameters.cc",
111 "rtp_parameters.h",
112 "rtp_receiver_interface.cc",
113 "rtp_receiver_interface.h",
114 "rtp_sender_interface.cc",
115 "rtp_sender_interface.h",
116 "rtp_transceiver_interface.cc",
117 "rtp_transceiver_interface.h",
118 "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",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800138 "units:data_rate",
Niels Möller3a742392018-10-08 11:13:58 +0200139 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200140 "video:video_frame",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800141 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800142 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200143 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100144
145 # Basically, don't add stuff here. You might break sensitive downstream
146 # targets like pnacl. API should not depend on anything outside of this
147 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700148 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100149 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100150 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100151 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100152 "../rtc_base:checks",
153 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700154 "../rtc_base:rtc_base",
155 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200156 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700157 ]
Niels Möller8366e172018-02-14 12:20:13 +0100158
kjellander8a116632017-04-21 05:17:08 -0700159 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100160 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700161 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
162 }
ossu7bb87ee2017-01-23 04:56:25 -0800163}
kjellanderc76dc952016-06-03 03:09:32 -0700164
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100165rtc_source_set("scoped_refptr") {
166 visibility = [ "*" ]
167 sources = [
168 "scoped_refptr.h",
169 ]
170}
171
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200172rtc_source_set("video_quality_test_fixture_api") {
173 visibility = [ "*" ]
174 testonly = true
175 sources = [
176 "test/video_quality_test_fixture.h",
177 ]
178 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200179 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200180 ":libjingle_peerconnection_api",
181 ":simulated_network_api",
182 "../call:fake_network",
183 "../call:rtp_interfaces",
184 "../test:test_common",
185 "../test:video_test_common",
186 "video_codecs:video_codecs_api",
187 ]
188 if (!build_with_chromium && is_clang) {
189 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
190 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
191 }
192}
193
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200194rtc_source_set("test_dependency_factory") {
195 visibility = [ "*" ]
196 testonly = true
197 sources = [
198 "test/test_dependency_factory.cc",
199 "test/test_dependency_factory.h",
200 ]
201 deps = [
202 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100203 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200204 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900205 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200206 ]
207 if (!build_with_chromium && is_clang) {
208 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
209 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
210 }
211}
212
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200213if (rtc_include_tests) {
214 rtc_source_set("create_video_quality_test_fixture_api") {
215 visibility = [ "*" ]
216 testonly = true
217 sources = [
218 "test/create_video_quality_test_fixture.cc",
219 "test/create_video_quality_test_fixture.h",
220 ]
221 deps = [
222 ":fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100223 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200224 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200225 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200226 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200227 ]
228 if (!build_with_chromium && is_clang) {
229 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
230 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
231 }
232 }
233}
234
Elad Alon80810732017-10-06 13:07:32 +0200235rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000236 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200237 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800238 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200239 ]
240}
241
deadbeefe814a0d2017-02-25 18:15:09 -0800242rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000243 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800244 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800245 "ortc/packet_transport_interface.h",
246 "ortc/rtp_transport_interface.h",
247 "ortc/srtp_transport_interface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800248 ]
249
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100250 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800251 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200252 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800253 ]
254}
255
hbos74e1a4f2016-09-15 23:33:01 -0700256rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000257 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700258 cflags = []
259 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800260 "stats/rtc_stats.h",
261 "stats/rtc_stats_collector_callback.h",
262 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700263 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700264 ]
265
266 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100267 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100268 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700269 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200270 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700271 ]
272}
273
Niels Möllera6fe2612018-01-19 11:28:54 +0100274rtc_source_set("audio_options_api") {
275 visibility = [ "*" ]
276 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200277 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100278 "audio_options.h",
279 ]
280
281 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100282 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200283 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200284 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100285 ]
286}
287
aleloia8eb7562016-11-28 07:02:13 -0800288rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000289 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800290 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100291 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800292 "call/transport.h",
293 ]
294}
nisseb2250e52016-12-02 04:01:14 -0800295
Sebastian Jansson6736df12018-11-21 19:18:39 +0100296rtc_source_set("bitrate_allocation") {
297 visibility = [ "*" ]
298 sources = [
299 "call/bitrate_allocation.h",
300 ]
301 deps = [
302 "units:data_rate",
303 "units:time_delta",
304 ]
305}
306
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200307rtc_source_set("simulated_network_api") {
308 visibility = [ "*" ]
309 sources = [
310 "test/simulated_network.h",
311 ]
312 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200313 "../rtc_base:criticalsection",
314 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200315 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200316 ]
317}
318
Ying Wang3b790f32018-01-19 17:58:57 +0100319rtc_source_set("fec_controller_api") {
320 visibility = [ "*" ]
321 sources = [
322 "fec_controller.h",
323 ]
324
325 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100326 "..:webrtc_common",
327 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100328 ]
329}
330
kwiberg529662a2017-09-04 05:43:17 -0700331rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000332 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700333 sources = [
334 "array_view.h",
335 ]
336 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100337 "../rtc_base:checks",
338 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700339 ]
340}
341
Niels Möller9155e492017-10-23 11:22:30 +0200342rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000343 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200344 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800345 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200346 ]
347 deps = [
348 "../rtc_base:rtc_base_approved",
349 ]
350}
351
Harald Alvestrand98462622019-01-30 14:57:03 +0100352rtc_source_set("ice_transport_factory") {
353 visibility = [ "*" ]
354 sources = [
355 "ice_transport_factory.cc",
356 "ice_transport_factory.h",
357 ]
358 deps = [
359 ":libjingle_peerconnection_api",
360 ":scoped_refptr",
361 "../p2p:rtc_p2p",
362 "../rtc_base:rtc_base",
363 "//third_party/abseil-cpp/absl/memory:memory",
364 ]
365}
366
kjellander1993b1d2017-03-06 00:29:21 -0800367rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000368 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800369 testonly = true
370 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800371 "test/fake_constraints.h",
kjellander1993b1d2017-03-06 00:29:21 -0800372 ]
373
kjellander1993b1d2017-03-06 00:29:21 -0800374 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100375 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700376 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800377 ]
378}
379
Ivo Creusen55de08e2018-09-03 11:49:27 +0200380rtc_source_set("neteq_simulator_api") {
381 visibility = [ "*" ]
382 sources = [
383 "test/neteq_simulator.cc",
384 "test/neteq_simulator.h",
385 ]
386}
387
kjellanderfd5b4e92016-06-13 12:08:33 -0700388if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100389 if (rtc_enable_protobuf) {
390 rtc_source_set("audioproc_f_api") {
391 visibility = [ "*" ]
392 testonly = true
393 sources = [
394 "test/audioproc_float.cc",
395 "test/audioproc_float.h",
396 ]
397
398 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000399 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100400 "../modules/audio_processing:audio_processing",
401 "../modules/audio_processing:audioproc_f_impl",
402 ]
403 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200404
405 rtc_source_set("neteq_simulator_factory") {
406 visibility = [ "*" ]
407 testonly = true
408 sources = [
409 "test/neteq_simulator_factory.cc",
410 "test/neteq_simulator_factory.h",
411 ]
412 deps = [
413 ":neteq_simulator_api",
414 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200415 "../rtc_base:checks",
416 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200417 "//third_party/abseil-cpp/absl/memory",
418 ]
419 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100420 }
421
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200422 rtc_source_set("simulcast_test_fixture_api") {
423 visibility = [ "*" ]
424 testonly = true
425 sources = [
426 "test/simulcast_test_fixture.h",
427 ]
428 }
429
430 rtc_source_set("create_simulcast_test_fixture_api") {
431 visibility = [ "*" ]
432 testonly = true
433 sources = [
434 "test/create_simulcast_test_fixture.cc",
435 "test/create_simulcast_test_fixture.h",
436 ]
437 deps = [
438 ":simulcast_test_fixture_api",
439 "../modules/video_coding:simulcast_test_fixture_impl",
440 "../rtc_base:rtc_base_approved",
441 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200442 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200443 ]
444 if (!build_with_chromium && is_clang) {
445 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
446 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
447 }
448 }
449
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200450 rtc_source_set("videocodec_test_fixture_api") {
451 visibility = [ "*" ]
452 testonly = true
453 sources = [
454 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200455 "test/videocodec_test_stats.cc",
456 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200457 ]
458 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200459 "..:webrtc_common",
460 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200461 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200462 "video_codecs:video_codecs_api",
463 ]
464 }
465
466 rtc_source_set("create_videocodec_test_fixture_api") {
467 visibility = [ "*" ]
468 testonly = true
469 sources = [
470 "test/create_videocodec_test_fixture.cc",
471 "test/create_videocodec_test_fixture.h",
472 ]
473 deps = [
474 ":videocodec_test_fixture_api",
475 "../modules/video_coding:video_codecs_test_framework",
476 "../modules/video_coding:videocodec_test_impl",
477 "../rtc_base:rtc_base_approved",
478 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200479 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200480 ]
481 if (!build_with_chromium && is_clang) {
482 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
483 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
484 }
485 }
486
kjellander2f6af9c2017-03-02 22:26:23 -0800487 rtc_source_set("mock_audio_mixer") {
488 testonly = true
489 sources = [
490 "test/mock_audio_mixer.h",
491 ]
492
kjellander2f6af9c2017-03-02 22:26:23 -0800493 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700494 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100495 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800496 ]
497 }
498
Benjamin Wright78410ad2018-10-25 09:52:57 -0700499 rtc_source_set("mock_frame_encryptor") {
500 testonly = true
501 sources = [
502 "test/mock_frame_encryptor.cc",
503 "test/mock_frame_encryptor.h",
504 ]
505 deps = [
506 ":libjingle_peerconnection_api",
507 "../test:test_support",
508 ]
509 }
510
511 rtc_source_set("mock_frame_decryptor") {
512 testonly = true
513 sources = [
514 "test/mock_frame_decryptor.cc",
515 "test/mock_frame_decryptor.h",
516 ]
517 deps = [
518 ":libjingle_peerconnection_api",
519 "../test:test_support",
520 ]
521 }
522
523 rtc_source_set("fake_frame_encryptor") {
524 testonly = true
525 sources = [
526 "test/fake_frame_encryptor.cc",
527 "test/fake_frame_encryptor.h",
528 ]
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
538 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700539 testonly = true
540 sources = [
541 "test/fake_frame_decryptor.cc",
542 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700543 ]
544 deps = [
545 ":array_view",
546 ":libjingle_peerconnection_api",
547 "..:webrtc_common",
548 "../rtc_base:checks",
549 "../rtc_base:rtc_base_approved",
550 ]
551 }
552
Jiawei Ou651b92e2018-06-29 15:46:44 -0700553 rtc_source_set("mock_peerconnectioninterface") {
554 testonly = true
555 sources = [
556 "test/mock_peerconnectioninterface.h",
557 ]
558
559 deps = [
560 ":libjingle_peerconnection_api",
561 "../test:test_support",
562 ]
563 }
564
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100565 rtc_source_set("mock_rtp") {
566 testonly = true
567 sources = [
568 "test/mock_rtpreceiver.h",
569 "test/mock_rtpsender.h",
570 ]
571
572 deps = [
573 ":libjingle_peerconnection_api",
574 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100575 ]
576 }
577
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700578 rtc_source_set("mock_video_bitrate_allocator") {
579 testonly = true
580 sources = [
581 "test/mock_video_bitrate_allocator.h",
582 ]
583
584 deps = [
585 "../api/video:video_bitrate_allocator",
586 "../test:test_support",
587 ]
588 }
589
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800590 rtc_source_set("mock_video_bitrate_allocator_factory") {
591 testonly = true
592 sources = [
593 "test/mock_video_bitrate_allocator_factory.h",
594 ]
595
596 deps = [
597 "../api/video:video_bitrate_allocator_factory",
598 "../test:test_support",
599 ]
600 }
601
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700602 rtc_source_set("mock_video_codec_factory") {
603 testonly = true
604 sources = [
605 "test/mock_video_decoder_factory.h",
606 "test/mock_video_encoder_factory.h",
607 ]
608
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700609 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100610 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700611 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700612 ]
613 }
614
Erik Språngc84cd952018-10-15 11:55:13 +0200615 rtc_source_set("mock_video_decoder") {
616 visibility = [ "*" ]
617
618 testonly = true
619 sources = [
620 "test/mock_video_decoder.cc",
621 "test/mock_video_decoder.h",
622 ]
623
624 deps = [
625 "../api/video_codecs:video_codecs_api",
626 "../test:test_support",
627 ]
628 }
629
Erik Språng6af1c922018-10-12 10:01:30 +0200630 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200631 visibility = [ "*" ]
632
Erik Språng6af1c922018-10-12 10:01:30 +0200633 testonly = true
634 sources = [
635 "test/mock_video_encoder.cc",
636 "test/mock_video_encoder.h",
637 ]
638
639 deps = [
640 "../api/video_codecs:video_codecs_api",
641 "../test:test_support",
642 ]
643 }
644
Anton Sukhanov7940da02018-10-10 10:34:49 -0700645 rtc_source_set("fake_media_transport") {
646 testonly = true
647
648 sources = [
649 "test/fake_media_transport.h",
650 ]
651
652 deps = [
653 ":libjingle_peerconnection_api",
654 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100655 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700656 ]
657 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200658
659 rtc_source_set("loopback_media_transport") {
660 testonly = true
661
662 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100663 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200664 "test/loopback_media_transport.h",
665 ]
666
667 deps = [
668 ":libjingle_peerconnection_api",
669 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700670 "../rtc_base:rtc_base",
Niels Möllere0446cb2018-11-30 09:35:52 +0100671 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200672 ]
673 }
674
675 rtc_source_set("rtc_api_unittests") {
676 testonly = true
677
678 sources = [
679 "array_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800680 "rtc_error_unittest.cc",
681 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200682 "test/loopback_media_transport_unittest.cc",
683 ]
684
685 if (!build_with_chromium && is_clang) {
686 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
687 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
688 }
689
690 deps = [
691 ":array_view",
692 ":libjingle_peerconnection_api",
693 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200694 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100695 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200696 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200697 "../test:test_support",
698 "units:units_unittests",
699 ]
700 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700701}