blob: 4e2077a35294754b62b29ec4863d30313c76100a [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",
Steve Antonaec15aa2019-01-11 09:13:07 -080035 "call/callfactoryinterface.h",
Niels Möller8366e172018-02-14 12:20:13 +010036 ]
37}
38
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010039rtc_static_library("create_peerconnection_factory") {
Mirko Bonadeic3313a32018-11-19 14:30:17 +010040 visibility = [ "*" ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010041 sources = [
42 "create_peerconnection_factory.cc",
43 "create_peerconnection_factory.h",
44 ]
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010045 deps = [
46 ":callfactory_api",
47 ":fec_controller_api",
48 ":libjingle_peerconnection_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010049 ":scoped_refptr",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010050 "../logging:rtc_event_log_api",
51 "../logging:rtc_event_log_impl_base",
52 "../media:rtc_audio_video",
Yves Gerey3e707812018-11-28 16:47:49 +010053 "../media:rtc_media_base",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010054 "../modules/audio_device:audio_device_api",
55 "../modules/audio_processing:api",
56 "../pc:peerconnection",
Anders Carlsson01092952018-12-11 15:44:54 +010057 "../rtc_base:deprecation",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010058 "../rtc_base:rtc_base",
59 "../rtc_base:rtc_base_approved",
60 "audio:audio_mixer_api",
61 "audio_codecs:audio_codecs_api",
62 "transport:network_control",
63 "video_codecs:video_codecs_api",
64 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010065}
66
ossu7bb87ee2017-01-23 04:56:25 -080067rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000068 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070069 cflags = []
70 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080071 "async_resolver_factory.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080072 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020073 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070074 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020075 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -080076 "crypto/crypto_options.cc",
77 "crypto/crypto_options.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080078 "crypto/cryptooptions.h",
Steve Anton10542f22019-01-11 09:11:00 -080079 "crypto/frame_decryptor_interface.h",
80 "crypto/frame_encryptor_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080081 "crypto/framedecryptorinterface.h",
82 "crypto/frameencryptorinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -080083 "crypto_params.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080084 "cryptoparams.h",
Steve Anton10542f22019-01-11 09:11:00 -080085 "data_channel_interface.cc",
86 "data_channel_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080087 "datachannelinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -080088 "dtls_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080089 "dtlstransportinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -080090 "dtmf_sender_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080091 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080092 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070093 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -080094 "jsep_ice_candidate.cc",
95 "jsep_ice_candidate.h",
96 "jsep_session_description.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080097 "jsepicecandidate.h",
98 "jsepsessiondescription.h",
Steve Anton10542f22019-01-11 09:11:00 -080099 "media_constraints_interface.cc",
100 "media_constraints_interface.h",
101 "media_stream_interface.cc",
102 "media_stream_interface.h",
103 "media_stream_proxy.h",
104 "media_stream_track_proxy.h",
Niels Möller3a742392018-10-08 11:13:58 +0200105 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400106 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800107 "media_types.cc",
108 "media_types.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800109 "mediaconstraintsinterface.h",
110 "mediastreaminterface.h",
111 "mediastreamproxy.h",
112 "mediastreamtrackproxy.h",
113 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -0700114 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800115 "peer_connection_factory_proxy.h",
116 "peer_connection_interface.cc",
117 "peer_connection_interface.h",
118 "peer_connection_proxy.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800119 "peerconnectionfactoryproxy.h",
120 "peerconnectioninterface.h",
121 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700122 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700123 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800124 "rtc_error.cc",
125 "rtc_error.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800126 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100127 "rtp_headers.cc",
128 "rtp_headers.h",
Steve Anton10542f22019-01-11 09:11:00 -0800129 "rtp_parameters.cc",
130 "rtp_parameters.h",
131 "rtp_receiver_interface.cc",
132 "rtp_receiver_interface.h",
133 "rtp_sender_interface.cc",
134 "rtp_sender_interface.h",
135 "rtp_transceiver_interface.cc",
136 "rtp_transceiver_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800137 "rtpparameters.h",
138 "rtpreceiverinterface.h",
139 "rtpsenderinterface.h",
140 "rtptransceiverinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800141 "set_remote_description_observer_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800142 "setremotedescriptionobserverinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800143 "stats_types.cc",
144 "stats_types.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800145 "statstypes.h",
Steve Anton10542f22019-01-11 09:11:00 -0800146 "turn_customizer.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800147 "turncustomizer.h",
Steve Anton10542f22019-01-11 09:11:00 -0800148 "uma_metrics.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800149 "umametrics.h",
Steve Anton10542f22019-01-11 09:11:00 -0800150 "video_track_source_proxy.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800151 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700152 ]
kjellanderc76dc952016-06-03 03:09:32 -0700153 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100154 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100155 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100156 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100157 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100158 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700159 ":rtc_stats_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100160 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100161 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100162 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200163 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200164 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200165 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200166 "video:video_frame",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800167 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200168 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100169
170 # Basically, don't add stuff here. You might break sensitive downstream
171 # targets like pnacl. API should not depend on anything outside of this
172 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700173 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100174 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100175 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100176 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100177 "../rtc_base:checks",
178 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700179 "../rtc_base:rtc_base",
180 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200181 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700182 ]
Niels Möller8366e172018-02-14 12:20:13 +0100183
kjellander8a116632017-04-21 05:17:08 -0700184 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100185 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700186 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
187 }
ossu7bb87ee2017-01-23 04:56:25 -0800188}
kjellanderc76dc952016-06-03 03:09:32 -0700189
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100190rtc_source_set("scoped_refptr") {
191 visibility = [ "*" ]
192 sources = [
193 "scoped_refptr.h",
194 ]
195}
196
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200197rtc_source_set("video_quality_test_fixture_api") {
198 visibility = [ "*" ]
199 testonly = true
200 sources = [
201 "test/video_quality_test_fixture.h",
202 ]
203 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200204 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200205 ":libjingle_peerconnection_api",
206 ":simulated_network_api",
207 "../call:fake_network",
208 "../call:rtp_interfaces",
209 "../test:test_common",
210 "../test:video_test_common",
211 "video_codecs:video_codecs_api",
212 ]
213 if (!build_with_chromium && is_clang) {
214 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
215 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
216 }
217}
218
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200219rtc_source_set("test_dependency_factory") {
220 visibility = [ "*" ]
221 testonly = true
222 sources = [
223 "test/test_dependency_factory.cc",
224 "test/test_dependency_factory.h",
225 ]
226 deps = [
227 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100228 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200229 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900230 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200231 ]
232 if (!build_with_chromium && is_clang) {
233 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
234 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
235 }
236}
237
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200238if (rtc_include_tests) {
239 rtc_source_set("create_video_quality_test_fixture_api") {
240 visibility = [ "*" ]
241 testonly = true
242 sources = [
243 "test/create_video_quality_test_fixture.cc",
244 "test/create_video_quality_test_fixture.h",
245 ]
246 deps = [
247 ":fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100248 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200249 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200250 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200251 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200252 ]
253 if (!build_with_chromium && is_clang) {
254 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
255 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
256 }
257 }
258}
259
Elad Alon80810732017-10-06 13:07:32 +0200260rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000261 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200262 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800263 "rtc_event_log_output.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800264 "rtceventlogoutput.h",
Elad Alon80810732017-10-06 13:07:32 +0200265 ]
266}
267
deadbeefe814a0d2017-02-25 18:15:09 -0800268rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000269 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800270 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800271 "ortc/packet_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800272 "ortc/packettransportinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800273 "ortc/rtp_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800274 "ortc/rtptransportinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800275 "ortc/srtp_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800276 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800277 ]
278
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100279 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800280 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200281 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800282 ]
283}
284
hbos74e1a4f2016-09-15 23:33:01 -0700285rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000286 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700287 cflags = []
288 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800289 "stats/rtc_stats.h",
290 "stats/rtc_stats_collector_callback.h",
291 "stats/rtc_stats_report.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800292 "stats/rtcstats.h",
hbos74e1a4f2016-09-15 23:33:01 -0700293 "stats/rtcstats_objects.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800294 "stats/rtcstatscollectorcallback.h",
295 "stats/rtcstatsreport.h",
hbos74e1a4f2016-09-15 23:33:01 -0700296 ]
297
298 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100299 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100300 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700301 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200302 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700303 ]
304}
305
Niels Möllera6fe2612018-01-19 11:28:54 +0100306rtc_source_set("audio_options_api") {
307 visibility = [ "*" ]
308 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200309 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100310 "audio_options.h",
311 ]
312
313 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100314 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200315 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200316 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100317 ]
318}
319
aleloia8eb7562016-11-28 07:02:13 -0800320rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000321 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800322 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100323 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800324 "call/transport.h",
325 ]
326}
nisseb2250e52016-12-02 04:01:14 -0800327
Sebastian Jansson6736df12018-11-21 19:18:39 +0100328rtc_source_set("bitrate_allocation") {
329 visibility = [ "*" ]
330 sources = [
331 "call/bitrate_allocation.h",
332 ]
333 deps = [
334 "units:data_rate",
335 "units:time_delta",
336 ]
337}
338
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200339rtc_source_set("simulated_network_api") {
340 visibility = [ "*" ]
341 sources = [
342 "test/simulated_network.h",
343 ]
344 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200345 "../rtc_base:criticalsection",
346 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200347 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200348 ]
349}
350
Ying Wang3b790f32018-01-19 17:58:57 +0100351rtc_source_set("fec_controller_api") {
352 visibility = [ "*" ]
353 sources = [
354 "fec_controller.h",
355 ]
356
357 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100358 "..:webrtc_common",
359 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100360 ]
361}
362
kwiberg529662a2017-09-04 05:43:17 -0700363rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000364 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700365 sources = [
366 "array_view.h",
367 ]
368 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100369 "../rtc_base:checks",
370 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700371 ]
372}
373
Niels Möller9155e492017-10-23 11:22:30 +0200374rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000375 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200376 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800377 "ref_counted_base.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800378 "refcountedbase.h",
Niels Möller9155e492017-10-23 11:22:30 +0200379 ]
380 deps = [
381 "../rtc_base:rtc_base_approved",
382 ]
383}
384
kjellander1993b1d2017-03-06 00:29:21 -0800385rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000386 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800387 testonly = true
388 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800389 "test/fake_constraints.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800390 "test/fakeconstraints.h",
kjellander1993b1d2017-03-06 00:29:21 -0800391 ]
392
kjellander1993b1d2017-03-06 00:29:21 -0800393 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100394 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700395 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800396 ]
397}
398
Ivo Creusen55de08e2018-09-03 11:49:27 +0200399rtc_source_set("neteq_simulator_api") {
400 visibility = [ "*" ]
401 sources = [
402 "test/neteq_simulator.cc",
403 "test/neteq_simulator.h",
404 ]
405}
406
kjellanderfd5b4e92016-06-13 12:08:33 -0700407if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100408 if (rtc_enable_protobuf) {
409 rtc_source_set("audioproc_f_api") {
410 visibility = [ "*" ]
411 testonly = true
412 sources = [
413 "test/audioproc_float.cc",
414 "test/audioproc_float.h",
415 ]
416
417 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000418 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100419 "../modules/audio_processing:audio_processing",
420 "../modules/audio_processing:audioproc_f_impl",
421 ]
422 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200423
424 rtc_source_set("neteq_simulator_factory") {
425 visibility = [ "*" ]
426 testonly = true
427 sources = [
428 "test/neteq_simulator_factory.cc",
429 "test/neteq_simulator_factory.h",
430 ]
431 deps = [
432 ":neteq_simulator_api",
433 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200434 "../rtc_base:checks",
435 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200436 "//third_party/abseil-cpp/absl/memory",
437 ]
438 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100439 }
440
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200441 rtc_source_set("simulcast_test_fixture_api") {
442 visibility = [ "*" ]
443 testonly = true
444 sources = [
445 "test/simulcast_test_fixture.h",
446 ]
447 }
448
449 rtc_source_set("create_simulcast_test_fixture_api") {
450 visibility = [ "*" ]
451 testonly = true
452 sources = [
453 "test/create_simulcast_test_fixture.cc",
454 "test/create_simulcast_test_fixture.h",
455 ]
456 deps = [
457 ":simulcast_test_fixture_api",
458 "../modules/video_coding:simulcast_test_fixture_impl",
459 "../rtc_base:rtc_base_approved",
460 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200461 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200462 ]
463 if (!build_with_chromium && is_clang) {
464 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
465 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
466 }
467 }
468
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200469 rtc_source_set("videocodec_test_fixture_api") {
470 visibility = [ "*" ]
471 testonly = true
472 sources = [
473 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200474 "test/videocodec_test_stats.cc",
475 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200476 ]
477 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200478 "..:webrtc_common",
479 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200480 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200481 "video_codecs:video_codecs_api",
482 ]
483 }
484
485 rtc_source_set("create_videocodec_test_fixture_api") {
486 visibility = [ "*" ]
487 testonly = true
488 sources = [
489 "test/create_videocodec_test_fixture.cc",
490 "test/create_videocodec_test_fixture.h",
491 ]
492 deps = [
493 ":videocodec_test_fixture_api",
494 "../modules/video_coding:video_codecs_test_framework",
495 "../modules/video_coding:videocodec_test_impl",
496 "../rtc_base:rtc_base_approved",
497 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200498 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200499 ]
500 if (!build_with_chromium && is_clang) {
501 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
502 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
503 }
504 }
505
kjellander2f6af9c2017-03-02 22:26:23 -0800506 rtc_source_set("mock_audio_mixer") {
507 testonly = true
508 sources = [
509 "test/mock_audio_mixer.h",
510 ]
511
kjellander2f6af9c2017-03-02 22:26:23 -0800512 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700513 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100514 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800515 ]
516 }
517
Benjamin Wright78410ad2018-10-25 09:52:57 -0700518 rtc_source_set("mock_frame_encryptor") {
519 testonly = true
520 sources = [
521 "test/mock_frame_encryptor.cc",
522 "test/mock_frame_encryptor.h",
523 ]
524 deps = [
525 ":libjingle_peerconnection_api",
526 "../test:test_support",
527 ]
528 }
529
530 rtc_source_set("mock_frame_decryptor") {
531 testonly = true
532 sources = [
533 "test/mock_frame_decryptor.cc",
534 "test/mock_frame_decryptor.h",
535 ]
536 deps = [
537 ":libjingle_peerconnection_api",
538 "../test:test_support",
539 ]
540 }
541
542 rtc_source_set("fake_frame_encryptor") {
543 testonly = true
544 sources = [
545 "test/fake_frame_encryptor.cc",
546 "test/fake_frame_encryptor.h",
547 ]
548 deps = [
549 ":array_view",
550 ":libjingle_peerconnection_api",
551 "..:webrtc_common",
552 "../rtc_base:checks",
553 "../rtc_base:rtc_base_approved",
554 ]
555 }
556
557 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700558 testonly = true
559 sources = [
560 "test/fake_frame_decryptor.cc",
561 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700562 ]
563 deps = [
564 ":array_view",
565 ":libjingle_peerconnection_api",
566 "..:webrtc_common",
567 "../rtc_base:checks",
568 "../rtc_base:rtc_base_approved",
569 ]
570 }
571
Jiawei Ou651b92e2018-06-29 15:46:44 -0700572 rtc_source_set("mock_peerconnectioninterface") {
573 testonly = true
574 sources = [
575 "test/mock_peerconnectioninterface.h",
576 ]
577
578 deps = [
579 ":libjingle_peerconnection_api",
580 "../test:test_support",
581 ]
582 }
583
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100584 rtc_source_set("mock_rtp") {
585 testonly = true
586 sources = [
587 "test/mock_rtpreceiver.h",
588 "test/mock_rtpsender.h",
589 ]
590
591 deps = [
592 ":libjingle_peerconnection_api",
593 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100594 ]
595 }
596
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700597 rtc_source_set("mock_video_bitrate_allocator") {
598 testonly = true
599 sources = [
600 "test/mock_video_bitrate_allocator.h",
601 ]
602
603 deps = [
604 "../api/video:video_bitrate_allocator",
605 "../test:test_support",
606 ]
607 }
608
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800609 rtc_source_set("mock_video_bitrate_allocator_factory") {
610 testonly = true
611 sources = [
612 "test/mock_video_bitrate_allocator_factory.h",
613 ]
614
615 deps = [
616 "../api/video:video_bitrate_allocator_factory",
617 "../test:test_support",
618 ]
619 }
620
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700621 rtc_source_set("mock_video_codec_factory") {
622 testonly = true
623 sources = [
624 "test/mock_video_decoder_factory.h",
625 "test/mock_video_encoder_factory.h",
626 ]
627
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700628 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100629 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700630 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700631 ]
632 }
633
Erik Språngc84cd952018-10-15 11:55:13 +0200634 rtc_source_set("mock_video_decoder") {
635 visibility = [ "*" ]
636
637 testonly = true
638 sources = [
639 "test/mock_video_decoder.cc",
640 "test/mock_video_decoder.h",
641 ]
642
643 deps = [
644 "../api/video_codecs:video_codecs_api",
645 "../test:test_support",
646 ]
647 }
648
Erik Språng6af1c922018-10-12 10:01:30 +0200649 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200650 visibility = [ "*" ]
651
Erik Språng6af1c922018-10-12 10:01:30 +0200652 testonly = true
653 sources = [
654 "test/mock_video_encoder.cc",
655 "test/mock_video_encoder.h",
656 ]
657
658 deps = [
659 "../api/video_codecs:video_codecs_api",
660 "../test:test_support",
661 ]
662 }
663
Anton Sukhanov7940da02018-10-10 10:34:49 -0700664 rtc_source_set("fake_media_transport") {
665 testonly = true
666
667 sources = [
668 "test/fake_media_transport.h",
669 ]
670
671 deps = [
672 ":libjingle_peerconnection_api",
673 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100674 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700675 ]
676 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200677
678 rtc_source_set("loopback_media_transport") {
679 testonly = true
680
681 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100682 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200683 "test/loopback_media_transport.h",
684 ]
685
686 deps = [
687 ":libjingle_peerconnection_api",
688 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700689 "../rtc_base:rtc_base",
Niels Möllere0446cb2018-11-30 09:35:52 +0100690 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200691 ]
692 }
693
694 rtc_source_set("rtc_api_unittests") {
695 testonly = true
696
697 sources = [
698 "array_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800699 "rtc_error_unittest.cc",
700 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200701 "test/loopback_media_transport_unittest.cc",
702 ]
703
704 if (!build_with_chromium && is_clang) {
705 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
706 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
707 }
708
709 deps = [
710 ":array_view",
711 ":libjingle_peerconnection_api",
712 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200713 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100714 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200715 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200716 "../test:test_support",
717 "units:units_unittests",
718 ]
719 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700720}