blob: ef8e3318c3b7f61e457149c5f55962f569836296 [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 ]
29
kjellandera69d9732016-08-31 07:33:05 -070030 deps = [
31 # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done.
aleloia8eb7562016-11-28 07:02:13 -080032 ":transport_api",
kjellandera69d9732016-08-31 07:33:05 -070033 "..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -070034 "../rtc_base:rtc_base_approved",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010035 "audio:audio_mixer_api",
kwiberg087bd342017-02-10 08:15:44 -080036 "audio_codecs:audio_codecs_api",
kjellandera69d9732016-08-31 07:33:05 -070037 ]
38}
39
Niels Möller8366e172018-02-14 12:20:13 +010040rtc_source_set("callfactory_api") {
41 visibility = [ "*" ]
42 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080043 "call/call_factory_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080044 "call/callfactoryinterface.h",
Niels Möller8366e172018-02-14 12:20:13 +010045 ]
46}
47
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010048rtc_static_library("create_peerconnection_factory") {
Mirko Bonadeic3313a32018-11-19 14:30:17 +010049 visibility = [ "*" ]
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010050 allow_poison = [ "software_video_codecs" ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010051 sources = [
52 "create_peerconnection_factory.cc",
53 "create_peerconnection_factory.h",
54 ]
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010055 deps = [
56 ":callfactory_api",
57 ":fec_controller_api",
58 ":libjingle_peerconnection_api",
59 "../logging:rtc_event_log_api",
60 "../logging:rtc_event_log_impl_base",
61 "../media:rtc_audio_video",
Yves Gerey3e707812018-11-28 16:47:49 +010062 "../media:rtc_media_base",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010063 "../modules/audio_device:audio_device_api",
64 "../modules/audio_processing:api",
65 "../pc:peerconnection",
Anders Carlsson01092952018-12-11 15:44:54 +010066 "../rtc_base:deprecation",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010067 "../rtc_base:ptr_util",
68 "../rtc_base:rtc_base",
69 "../rtc_base:rtc_base_approved",
70 "audio:audio_mixer_api",
71 "audio_codecs:audio_codecs_api",
72 "transport:network_control",
73 "video_codecs:video_codecs_api",
74 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010075}
76
ossu7bb87ee2017-01-23 04:56:25 -080077rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000078 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070079 cflags = []
80 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080081 "async_resolver_factory.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080082 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020083 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070084 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020085 "candidate.h",
Steve Anton10542f22019-01-11 09:11:00 -080086 "crypto/crypto_options.cc",
87 "crypto/crypto_options.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080088 "crypto/cryptooptions.h",
Steve Anton10542f22019-01-11 09:11:00 -080089 "crypto/frame_decryptor_interface.h",
90 "crypto/frame_encryptor_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080091 "crypto/framedecryptorinterface.h",
92 "crypto/frameencryptorinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -080093 "crypto_params.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080094 "cryptoparams.h",
Steve Anton10542f22019-01-11 09:11:00 -080095 "data_channel_interface.cc",
96 "data_channel_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080097 "datachannelinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -080098 "dtls_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -080099 "dtlstransportinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800100 "dtmf_sender_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800101 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800102 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700103 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800104 "jsep_ice_candidate.cc",
105 "jsep_ice_candidate.h",
106 "jsep_session_description.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800107 "jsepicecandidate.h",
108 "jsepsessiondescription.h",
Steve Anton10542f22019-01-11 09:11:00 -0800109 "media_constraints_interface.cc",
110 "media_constraints_interface.h",
111 "media_stream_interface.cc",
112 "media_stream_interface.h",
113 "media_stream_proxy.h",
114 "media_stream_track_proxy.h",
Niels Möller3a742392018-10-08 11:13:58 +0200115 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400116 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800117 "media_types.cc",
118 "media_types.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800119 "mediaconstraintsinterface.h",
120 "mediastreaminterface.h",
121 "mediastreamproxy.h",
122 "mediastreamtrackproxy.h",
123 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -0700124 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800125 "peer_connection_factory_proxy.h",
126 "peer_connection_interface.cc",
127 "peer_connection_interface.h",
128 "peer_connection_proxy.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800129 "peerconnectionfactoryproxy.h",
130 "peerconnectioninterface.h",
131 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700132 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700133 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800134 "rtc_error.cc",
135 "rtc_error.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800136 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100137 "rtp_headers.cc",
138 "rtp_headers.h",
Steve Anton10542f22019-01-11 09:11:00 -0800139 "rtp_parameters.cc",
140 "rtp_parameters.h",
141 "rtp_receiver_interface.cc",
142 "rtp_receiver_interface.h",
143 "rtp_sender_interface.cc",
144 "rtp_sender_interface.h",
145 "rtp_transceiver_interface.cc",
146 "rtp_transceiver_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800147 "rtpparameters.h",
148 "rtpreceiverinterface.h",
149 "rtpsenderinterface.h",
150 "rtptransceiverinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800151 "set_remote_description_observer_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800152 "setremotedescriptionobserverinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800153 "stats_types.cc",
154 "stats_types.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800155 "statstypes.h",
Steve Anton10542f22019-01-11 09:11:00 -0800156 "turn_customizer.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800157 "turncustomizer.h",
Steve Anton10542f22019-01-11 09:11:00 -0800158 "uma_metrics.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800159 "umametrics.h",
Steve Anton10542f22019-01-11 09:11:00 -0800160 "video_track_source_proxy.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800161 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700162 ]
kjellanderc76dc952016-06-03 03:09:32 -0700163 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100164 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100165 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100166 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100167 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100168 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700169 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100170 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100171 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200172 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200173 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200174 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200175 "video:video_frame",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800176 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200177 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100178
179 # Basically, don't add stuff here. You might break sensitive downstream
180 # targets like pnacl. API should not depend on anything outside of this
181 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700182 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100183 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100184 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100185 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100186 "../rtc_base:checks",
187 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700188 "../rtc_base:rtc_base",
189 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200190 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700191 ]
Niels Möller8366e172018-02-14 12:20:13 +0100192
kjellander8a116632017-04-21 05:17:08 -0700193 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100194 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700195 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
196 }
ossu7bb87ee2017-01-23 04:56:25 -0800197}
kjellanderc76dc952016-06-03 03:09:32 -0700198
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100199rtc_source_set("scoped_refptr") {
200 visibility = [ "*" ]
201 sources = [
202 "scoped_refptr.h",
203 ]
204}
205
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200206rtc_source_set("video_quality_test_fixture_api") {
207 visibility = [ "*" ]
208 testonly = true
209 sources = [
210 "test/video_quality_test_fixture.h",
211 ]
212 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200213 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200214 ":libjingle_peerconnection_api",
215 ":simulated_network_api",
216 "../call:fake_network",
217 "../call:rtp_interfaces",
218 "../test:test_common",
219 "../test:video_test_common",
220 "video_codecs:video_codecs_api",
221 ]
222 if (!build_with_chromium && is_clang) {
223 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
224 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
225 }
226}
227
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200228rtc_source_set("test_dependency_factory") {
229 visibility = [ "*" ]
230 testonly = true
231 sources = [
232 "test/test_dependency_factory.cc",
233 "test/test_dependency_factory.h",
234 ]
235 deps = [
236 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100237 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200238 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900239 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200240 ]
241 if (!build_with_chromium && is_clang) {
242 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
243 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
244 }
245}
246
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200247if (rtc_include_tests) {
248 rtc_source_set("create_video_quality_test_fixture_api") {
249 visibility = [ "*" ]
250 testonly = true
251 sources = [
252 "test/create_video_quality_test_fixture.cc",
253 "test/create_video_quality_test_fixture.h",
254 ]
255 deps = [
256 ":fec_controller_api",
257 ":video_quality_test_fixture_api",
258 "../rtc_base:ptr_util",
259 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200260 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200261 ]
262 if (!build_with_chromium && is_clang) {
263 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
264 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
265 }
266 }
267}
268
Elad Alon80810732017-10-06 13:07:32 +0200269rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000270 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200271 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800272 "rtc_event_log_output.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800273 "rtceventlogoutput.h",
Elad Alon80810732017-10-06 13:07:32 +0200274 ]
275}
276
deadbeefe814a0d2017-02-25 18:15:09 -0800277rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000278 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800279 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800280 "ortc/packet_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800281 "ortc/packettransportinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800282 "ortc/rtp_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800283 "ortc/rtptransportinterface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800284 "ortc/srtp_transport_interface.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800285 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800286 ]
287
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100288 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800289 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200290 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800291 ]
292}
293
hbos74e1a4f2016-09-15 23:33:01 -0700294rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000295 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700296 cflags = []
297 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800298 "stats/rtc_stats.h",
299 "stats/rtc_stats_collector_callback.h",
300 "stats/rtc_stats_report.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800301 "stats/rtcstats.h",
hbos74e1a4f2016-09-15 23:33:01 -0700302 "stats/rtcstats_objects.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800303 "stats/rtcstatscollectorcallback.h",
304 "stats/rtcstatsreport.h",
hbos74e1a4f2016-09-15 23:33:01 -0700305 ]
306
307 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100308 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700309 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200310 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700311 ]
312}
313
Niels Möllera6fe2612018-01-19 11:28:54 +0100314rtc_source_set("audio_options_api") {
315 visibility = [ "*" ]
316 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200317 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100318 "audio_options.h",
319 ]
320
321 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100322 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200323 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200324 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100325 ]
326}
327
aleloia8eb7562016-11-28 07:02:13 -0800328rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000329 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800330 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100331 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800332 "call/transport.h",
333 ]
334}
nisseb2250e52016-12-02 04:01:14 -0800335
Sebastian Jansson6736df12018-11-21 19:18:39 +0100336rtc_source_set("bitrate_allocation") {
337 visibility = [ "*" ]
338 sources = [
339 "call/bitrate_allocation.h",
340 ]
341 deps = [
342 "units:data_rate",
343 "units:time_delta",
344 ]
345}
346
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200347rtc_source_set("simulated_network_api") {
348 visibility = [ "*" ]
349 sources = [
350 "test/simulated_network.h",
351 ]
352 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200353 "../rtc_base:criticalsection",
354 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200355 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200356 ]
357}
358
Ying Wang3b790f32018-01-19 17:58:57 +0100359rtc_source_set("fec_controller_api") {
360 visibility = [ "*" ]
361 sources = [
362 "fec_controller.h",
363 ]
364
365 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100366 "..:webrtc_common",
367 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100368 ]
369}
370
kwiberg529662a2017-09-04 05:43:17 -0700371rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000372 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700373 sources = [
374 "array_view.h",
375 ]
376 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100377 "../rtc_base:checks",
378 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700379 ]
380}
381
Niels Möller9155e492017-10-23 11:22:30 +0200382rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000383 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200384 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800385 "ref_counted_base.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800386 "refcountedbase.h",
Niels Möller9155e492017-10-23 11:22:30 +0200387 ]
388 deps = [
389 "../rtc_base:rtc_base_approved",
390 ]
391}
392
kjellander1993b1d2017-03-06 00:29:21 -0800393rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000394 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800395 testonly = true
396 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800397 "test/fake_constraints.h",
Steve Antonaec15aa2019-01-11 09:13:07 -0800398 "test/fakeconstraints.h",
kjellander1993b1d2017-03-06 00:29:21 -0800399 ]
400
kjellander1993b1d2017-03-06 00:29:21 -0800401 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100402 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700403 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800404 ]
405}
406
Ivo Creusen55de08e2018-09-03 11:49:27 +0200407rtc_source_set("neteq_simulator_api") {
408 visibility = [ "*" ]
409 sources = [
410 "test/neteq_simulator.cc",
411 "test/neteq_simulator.h",
412 ]
413}
414
kjellanderfd5b4e92016-06-13 12:08:33 -0700415if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100416 if (rtc_enable_protobuf) {
417 rtc_source_set("audioproc_f_api") {
418 visibility = [ "*" ]
419 testonly = true
420 sources = [
421 "test/audioproc_float.cc",
422 "test/audioproc_float.h",
423 ]
424
425 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000426 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100427 "../modules/audio_processing:audio_processing",
428 "../modules/audio_processing:audioproc_f_impl",
429 ]
430 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200431
432 rtc_source_set("neteq_simulator_factory") {
433 visibility = [ "*" ]
434 testonly = true
435 sources = [
436 "test/neteq_simulator_factory.cc",
437 "test/neteq_simulator_factory.h",
438 ]
439 deps = [
440 ":neteq_simulator_api",
441 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200442 "../rtc_base:checks",
443 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200444 "//third_party/abseil-cpp/absl/memory",
445 ]
446 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100447 }
448
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200449 rtc_source_set("simulcast_test_fixture_api") {
450 visibility = [ "*" ]
451 testonly = true
452 sources = [
453 "test/simulcast_test_fixture.h",
454 ]
455 }
456
457 rtc_source_set("create_simulcast_test_fixture_api") {
458 visibility = [ "*" ]
459 testonly = true
460 sources = [
461 "test/create_simulcast_test_fixture.cc",
462 "test/create_simulcast_test_fixture.h",
463 ]
464 deps = [
465 ":simulcast_test_fixture_api",
466 "../modules/video_coding:simulcast_test_fixture_impl",
467 "../rtc_base:rtc_base_approved",
468 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200469 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200470 ]
471 if (!build_with_chromium && is_clang) {
472 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
473 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
474 }
475 }
476
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200477 rtc_source_set("videocodec_test_fixture_api") {
478 visibility = [ "*" ]
479 testonly = true
480 sources = [
481 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200482 "test/videocodec_test_stats.cc",
483 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200484 ]
485 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200486 "..:webrtc_common",
487 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200488 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200489 "video_codecs:video_codecs_api",
490 ]
491 }
492
493 rtc_source_set("create_videocodec_test_fixture_api") {
494 visibility = [ "*" ]
495 testonly = true
496 sources = [
497 "test/create_videocodec_test_fixture.cc",
498 "test/create_videocodec_test_fixture.h",
499 ]
500 deps = [
501 ":videocodec_test_fixture_api",
502 "../modules/video_coding:video_codecs_test_framework",
503 "../modules/video_coding:videocodec_test_impl",
504 "../rtc_base:rtc_base_approved",
505 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200506 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200507 ]
508 if (!build_with_chromium && is_clang) {
509 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
510 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
511 }
512 }
513
kjellander2f6af9c2017-03-02 22:26:23 -0800514 rtc_source_set("mock_audio_mixer") {
515 testonly = true
516 sources = [
517 "test/mock_audio_mixer.h",
518 ]
519
kjellander2f6af9c2017-03-02 22:26:23 -0800520 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700521 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100522 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800523 ]
524 }
525
Benjamin Wright78410ad2018-10-25 09:52:57 -0700526 rtc_source_set("mock_frame_encryptor") {
527 testonly = true
528 sources = [
529 "test/mock_frame_encryptor.cc",
530 "test/mock_frame_encryptor.h",
531 ]
532 deps = [
533 ":libjingle_peerconnection_api",
534 "../test:test_support",
535 ]
536 }
537
538 rtc_source_set("mock_frame_decryptor") {
539 testonly = true
540 sources = [
541 "test/mock_frame_decryptor.cc",
542 "test/mock_frame_decryptor.h",
543 ]
544 deps = [
545 ":libjingle_peerconnection_api",
546 "../test:test_support",
547 ]
548 }
549
550 rtc_source_set("fake_frame_encryptor") {
551 testonly = true
552 sources = [
553 "test/fake_frame_encryptor.cc",
554 "test/fake_frame_encryptor.h",
555 ]
556 deps = [
557 ":array_view",
558 ":libjingle_peerconnection_api",
559 "..:webrtc_common",
560 "../rtc_base:checks",
561 "../rtc_base:rtc_base_approved",
562 ]
563 }
564
565 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700566 testonly = true
567 sources = [
568 "test/fake_frame_decryptor.cc",
569 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700570 ]
571 deps = [
572 ":array_view",
573 ":libjingle_peerconnection_api",
574 "..:webrtc_common",
575 "../rtc_base:checks",
576 "../rtc_base:rtc_base_approved",
577 ]
578 }
579
Jiawei Ou651b92e2018-06-29 15:46:44 -0700580 rtc_source_set("mock_peerconnectioninterface") {
581 testonly = true
582 sources = [
583 "test/mock_peerconnectioninterface.h",
584 ]
585
586 deps = [
587 ":libjingle_peerconnection_api",
588 "../test:test_support",
589 ]
590 }
591
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100592 rtc_source_set("mock_rtp") {
593 testonly = true
594 sources = [
595 "test/mock_rtpreceiver.h",
596 "test/mock_rtpsender.h",
597 ]
598
599 deps = [
600 ":libjingle_peerconnection_api",
601 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100602 ]
603 }
604
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700605 rtc_source_set("mock_video_bitrate_allocator") {
606 testonly = true
607 sources = [
608 "test/mock_video_bitrate_allocator.h",
609 ]
610
611 deps = [
612 "../api/video:video_bitrate_allocator",
613 "../test:test_support",
614 ]
615 }
616
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800617 rtc_source_set("mock_video_bitrate_allocator_factory") {
618 testonly = true
619 sources = [
620 "test/mock_video_bitrate_allocator_factory.h",
621 ]
622
623 deps = [
624 "../api/video:video_bitrate_allocator_factory",
625 "../test:test_support",
626 ]
627 }
628
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700629 rtc_source_set("mock_video_codec_factory") {
630 testonly = true
631 sources = [
632 "test/mock_video_decoder_factory.h",
633 "test/mock_video_encoder_factory.h",
634 ]
635
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700636 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100637 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700638 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700639 ]
640 }
641
Erik Språngc84cd952018-10-15 11:55:13 +0200642 rtc_source_set("mock_video_decoder") {
643 visibility = [ "*" ]
644
645 testonly = true
646 sources = [
647 "test/mock_video_decoder.cc",
648 "test/mock_video_decoder.h",
649 ]
650
651 deps = [
652 "../api/video_codecs:video_codecs_api",
653 "../test:test_support",
654 ]
655 }
656
Erik Språng6af1c922018-10-12 10:01:30 +0200657 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200658 visibility = [ "*" ]
659
Erik Språng6af1c922018-10-12 10:01:30 +0200660 testonly = true
661 sources = [
662 "test/mock_video_encoder.cc",
663 "test/mock_video_encoder.h",
664 ]
665
666 deps = [
667 "../api/video_codecs:video_codecs_api",
668 "../test:test_support",
669 ]
670 }
671
Anton Sukhanov7940da02018-10-10 10:34:49 -0700672 rtc_source_set("fake_media_transport") {
673 testonly = true
674
675 sources = [
676 "test/fake_media_transport.h",
677 ]
678
679 deps = [
680 ":libjingle_peerconnection_api",
681 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100682 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700683 ]
684 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200685
686 rtc_source_set("loopback_media_transport") {
687 testonly = true
688
689 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100690 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200691 "test/loopback_media_transport.h",
692 ]
693
694 deps = [
695 ":libjingle_peerconnection_api",
696 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700697 "../rtc_base:rtc_base",
Niels Möllere0446cb2018-11-30 09:35:52 +0100698 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200699 ]
700 }
701
702 rtc_source_set("rtc_api_unittests") {
703 testonly = true
704
705 sources = [
706 "array_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800707 "rtc_error_unittest.cc",
708 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200709 "test/loopback_media_transport_unittest.cc",
710 ]
711
712 if (!build_with_chromium && is_clang) {
713 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
714 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
715 }
716
717 deps = [
718 ":array_view",
719 ":libjingle_peerconnection_api",
720 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200721 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100722 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200723 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200724 "../test:test_support",
725 "units:units_unittests",
726 ]
727 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700728}