blob: f3038db221437ae84eab3fa3a435214ee7ff60b6 [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 = [
43 "call/callfactoryinterface.h",
44 ]
45}
46
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010047rtc_static_library("create_peerconnection_factory") {
Mirko Bonadeic3313a32018-11-19 14:30:17 +010048 visibility = [ "*" ]
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010049 allow_poison = [ "software_video_codecs" ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010050 sources = [
51 "create_peerconnection_factory.cc",
52 "create_peerconnection_factory.h",
53 ]
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010054 deps = [
55 ":callfactory_api",
56 ":fec_controller_api",
57 ":libjingle_peerconnection_api",
58 "../logging:rtc_event_log_api",
59 "../logging:rtc_event_log_impl_base",
60 "../media:rtc_audio_video",
Yves Gerey3e707812018-11-28 16:47:49 +010061 "../media:rtc_media_base",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010062 "../modules/audio_device:audio_device_api",
63 "../modules/audio_processing:api",
64 "../pc:peerconnection",
65 "../rtc_base:ptr_util",
66 "../rtc_base:rtc_base",
67 "../rtc_base:rtc_base_approved",
68 "audio:audio_mixer_api",
69 "audio_codecs:audio_codecs_api",
70 "transport:network_control",
71 "video_codecs:video_codecs_api",
72 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010073}
74
ossu7bb87ee2017-01-23 04:56:25 -080075rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000076 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070077 cflags = []
78 sources = [
Zach Steine20867f2018-08-02 13:20:15 -070079 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020080 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070081 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020082 "candidate.h",
Benjamin Wrighta54daf12018-10-11 15:33:17 -070083 "crypto/cryptooptions.cc",
84 "crypto/cryptooptions.h",
Benjamin Wrightea086912018-08-29 13:06:15 -070085 "crypto/framedecryptorinterface.h",
86 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010087 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020088 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070089 "datachannelinterface.h",
Harald Alvestrandad88c882018-11-28 16:47:46 +010090 "dtlstransportinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070091 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080092 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070093 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 11:09:32 +020094 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 03:09:32 -070095 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070096 "jsepsessiondescription.h",
Niels Möller3a742392018-10-08 11:13:58 +020097 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040098 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -070099 "mediaconstraintsinterface.cc",
100 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -0800101 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +0100102 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700103 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700104 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -0800105 "mediatypes.cc",
106 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -0700107 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -0700108 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +0200109 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 12:20:13 +0100110 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700111 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700112 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700113 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -0800114 "rtcerror.cc",
115 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100116 "rtp_headers.cc",
117 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200118 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700119 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +0100120 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700121 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-29 17:02:10 -0700122 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700123 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +0200124 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 10:44:53 -0800125 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +0100126 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700127 "statstypes.cc",
128 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +0200129 "turncustomizer.h",
ossu7bb87ee2017-01-23 04:56:25 -0800130 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -0700131 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700132 ]
kjellanderc76dc952016-06-03 03:09:32 -0700133 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100134 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100135 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100136 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100137 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100138 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700139 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100140 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100141 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200142 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200143 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200144 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200145 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200146 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100147
148 # Basically, don't add stuff here. You might break sensitive downstream
149 # targets like pnacl. API should not depend on anything outside of this
150 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700151 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100152 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100153 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100154 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100155 "../rtc_base:checks",
156 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700157 "../rtc_base:rtc_base",
158 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100159 "../rtc_base:stringutils",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200160 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700161 ]
Niels Möller8366e172018-02-14 12:20:13 +0100162
kjellander8a116632017-04-21 05:17:08 -0700163 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100164 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700165 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
166 }
ossu7bb87ee2017-01-23 04:56:25 -0800167}
kjellanderc76dc952016-06-03 03:09:32 -0700168
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100169rtc_source_set("scoped_refptr") {
170 visibility = [ "*" ]
171 sources = [
172 "scoped_refptr.h",
173 ]
174}
175
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200176rtc_source_set("video_quality_test_fixture_api") {
177 visibility = [ "*" ]
178 testonly = true
179 sources = [
180 "test/video_quality_test_fixture.h",
181 ]
182 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200183 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200184 ":libjingle_peerconnection_api",
185 ":simulated_network_api",
186 "../call:fake_network",
187 "../call:rtp_interfaces",
188 "../test:test_common",
189 "../test:video_test_common",
190 "video_codecs:video_codecs_api",
191 ]
192 if (!build_with_chromium && is_clang) {
193 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
194 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
195 }
196}
197
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200198rtc_source_set("test_dependency_factory") {
199 visibility = [ "*" ]
200 testonly = true
201 sources = [
202 "test/test_dependency_factory.cc",
203 "test/test_dependency_factory.h",
204 ]
205 deps = [
206 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100207 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200208 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900209 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200210 ]
211 if (!build_with_chromium && is_clang) {
212 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
213 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
214 }
215}
216
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200217if (rtc_include_tests) {
218 rtc_source_set("create_video_quality_test_fixture_api") {
219 visibility = [ "*" ]
220 testonly = true
221 sources = [
222 "test/create_video_quality_test_fixture.cc",
223 "test/create_video_quality_test_fixture.h",
224 ]
225 deps = [
226 ":fec_controller_api",
227 ":video_quality_test_fixture_api",
228 "../rtc_base:ptr_util",
229 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200230 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +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}
238
Elad Alon80810732017-10-06 13:07:32 +0200239rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000240 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200241 sources = [
242 "rtceventlogoutput.h",
243 ]
244}
245
deadbeefe814a0d2017-02-25 18:15:09 -0800246rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000247 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800248 sources = [
deadbeefe814a0d2017-02-25 18:15:09 -0800249 "ortc/packettransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800250 "ortc/rtptransportinterface.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800251 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800252 ]
253
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100254 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800255 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200256 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800257 ]
258}
259
hbos74e1a4f2016-09-15 23:33:01 -0700260rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000261 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700262 cflags = []
263 sources = [
264 "stats/rtcstats.h",
265 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800266 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700267 "stats/rtcstatsreport.h",
268 ]
269
270 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100271 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700272 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200273 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700274 ]
275}
276
Niels Möllera6fe2612018-01-19 11:28:54 +0100277rtc_source_set("audio_options_api") {
278 visibility = [ "*" ]
279 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200280 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100281 "audio_options.h",
282 ]
283
284 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100285 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200286 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200287 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100288 ]
289}
290
aleloia8eb7562016-11-28 07:02:13 -0800291rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000292 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800293 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100294 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800295 "call/transport.h",
296 ]
297}
nisseb2250e52016-12-02 04:01:14 -0800298
Sebastian Jansson6736df12018-11-21 19:18:39 +0100299rtc_source_set("bitrate_allocation") {
300 visibility = [ "*" ]
301 sources = [
302 "call/bitrate_allocation.h",
303 ]
304 deps = [
305 "units:data_rate",
306 "units:time_delta",
307 ]
308}
309
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200310rtc_source_set("simulated_network_api") {
311 visibility = [ "*" ]
312 sources = [
313 "test/simulated_network.h",
314 ]
315 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200316 "../rtc_base:criticalsection",
317 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200318 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200319 ]
320}
321
Ying Wang3b790f32018-01-19 17:58:57 +0100322rtc_source_set("fec_controller_api") {
323 visibility = [ "*" ]
324 sources = [
325 "fec_controller.h",
326 ]
327
328 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100329 "..:webrtc_common",
330 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100331 ]
332}
333
kwiberg529662a2017-09-04 05:43:17 -0700334rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000335 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700336 sources = [
337 "array_view.h",
338 ]
339 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100340 "../rtc_base:checks",
341 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700342 ]
343}
344
Niels Möller9155e492017-10-23 11:22:30 +0200345rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000346 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200347 sources = [
348 "refcountedbase.h",
349 ]
350 deps = [
351 "../rtc_base:rtc_base_approved",
352 ]
353}
354
kjellander1993b1d2017-03-06 00:29:21 -0800355rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000356 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800357 testonly = true
358 sources = [
359 "test/fakeconstraints.h",
360 ]
361
kjellander1993b1d2017-03-06 00:29:21 -0800362 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100363 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700364 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800365 ]
366}
367
Ivo Creusen55de08e2018-09-03 11:49:27 +0200368rtc_source_set("neteq_simulator_api") {
369 visibility = [ "*" ]
370 sources = [
371 "test/neteq_simulator.cc",
372 "test/neteq_simulator.h",
373 ]
374}
375
kjellanderfd5b4e92016-06-13 12:08:33 -0700376if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100377 if (rtc_enable_protobuf) {
378 rtc_source_set("audioproc_f_api") {
379 visibility = [ "*" ]
380 testonly = true
381 sources = [
382 "test/audioproc_float.cc",
383 "test/audioproc_float.h",
384 ]
385
386 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000387 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100388 "../modules/audio_processing:audio_processing",
389 "../modules/audio_processing:audioproc_f_impl",
390 ]
391 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200392
393 rtc_source_set("neteq_simulator_factory") {
394 visibility = [ "*" ]
395 testonly = true
396 sources = [
397 "test/neteq_simulator_factory.cc",
398 "test/neteq_simulator_factory.h",
399 ]
400 deps = [
401 ":neteq_simulator_api",
402 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200403 "../rtc_base:checks",
404 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200405 "//third_party/abseil-cpp/absl/memory",
406 ]
407 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100408 }
409
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200410 rtc_source_set("simulcast_test_fixture_api") {
411 visibility = [ "*" ]
412 testonly = true
413 sources = [
414 "test/simulcast_test_fixture.h",
415 ]
416 }
417
418 rtc_source_set("create_simulcast_test_fixture_api") {
419 visibility = [ "*" ]
420 testonly = true
421 sources = [
422 "test/create_simulcast_test_fixture.cc",
423 "test/create_simulcast_test_fixture.h",
424 ]
425 deps = [
426 ":simulcast_test_fixture_api",
427 "../modules/video_coding:simulcast_test_fixture_impl",
428 "../rtc_base:rtc_base_approved",
429 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200430 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200431 ]
432 if (!build_with_chromium && is_clang) {
433 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
434 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
435 }
436 }
437
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200438 rtc_source_set("videocodec_test_fixture_api") {
439 visibility = [ "*" ]
440 testonly = true
441 sources = [
442 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200443 "test/videocodec_test_stats.cc",
444 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200445 ]
446 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200447 "..:webrtc_common",
448 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200449 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200450 "video_codecs:video_codecs_api",
451 ]
452 }
453
454 rtc_source_set("create_videocodec_test_fixture_api") {
455 visibility = [ "*" ]
456 testonly = true
457 sources = [
458 "test/create_videocodec_test_fixture.cc",
459 "test/create_videocodec_test_fixture.h",
460 ]
461 deps = [
462 ":videocodec_test_fixture_api",
463 "../modules/video_coding:video_codecs_test_framework",
464 "../modules/video_coding:videocodec_test_impl",
465 "../rtc_base:rtc_base_approved",
466 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200467 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200468 ]
469 if (!build_with_chromium && is_clang) {
470 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
471 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
472 }
473 }
474
kjellander2f6af9c2017-03-02 22:26:23 -0800475 rtc_source_set("mock_audio_mixer") {
476 testonly = true
477 sources = [
478 "test/mock_audio_mixer.h",
479 ]
480
kjellander2f6af9c2017-03-02 22:26:23 -0800481 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700482 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100483 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800484 ]
485 }
486
Benjamin Wright78410ad2018-10-25 09:52:57 -0700487 rtc_source_set("mock_frame_encryptor") {
488 testonly = true
489 sources = [
490 "test/mock_frame_encryptor.cc",
491 "test/mock_frame_encryptor.h",
492 ]
493 deps = [
494 ":libjingle_peerconnection_api",
495 "../test:test_support",
496 ]
497 }
498
499 rtc_source_set("mock_frame_decryptor") {
500 testonly = true
501 sources = [
502 "test/mock_frame_decryptor.cc",
503 "test/mock_frame_decryptor.h",
504 ]
505 deps = [
506 ":libjingle_peerconnection_api",
507 "../test:test_support",
508 ]
509 }
510
511 rtc_source_set("fake_frame_encryptor") {
512 testonly = true
513 sources = [
514 "test/fake_frame_encryptor.cc",
515 "test/fake_frame_encryptor.h",
516 ]
517 deps = [
518 ":array_view",
519 ":libjingle_peerconnection_api",
520 "..:webrtc_common",
521 "../rtc_base:checks",
522 "../rtc_base:rtc_base_approved",
523 ]
524 }
525
526 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700527 testonly = true
528 sources = [
529 "test/fake_frame_decryptor.cc",
530 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700531 ]
532 deps = [
533 ":array_view",
534 ":libjingle_peerconnection_api",
535 "..:webrtc_common",
536 "../rtc_base:checks",
537 "../rtc_base:rtc_base_approved",
538 ]
539 }
540
Jiawei Ou651b92e2018-06-29 15:46:44 -0700541 rtc_source_set("mock_peerconnectioninterface") {
542 testonly = true
543 sources = [
544 "test/mock_peerconnectioninterface.h",
545 ]
546
547 deps = [
548 ":libjingle_peerconnection_api",
549 "../test:test_support",
550 ]
551 }
552
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100553 rtc_source_set("mock_rtp") {
554 testonly = true
555 sources = [
556 "test/mock_rtpreceiver.h",
557 "test/mock_rtpsender.h",
558 ]
559
560 deps = [
561 ":libjingle_peerconnection_api",
562 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100563 ]
564 }
565
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700566 rtc_source_set("mock_video_bitrate_allocator") {
567 testonly = true
568 sources = [
569 "test/mock_video_bitrate_allocator.h",
570 ]
571
572 deps = [
573 "../api/video:video_bitrate_allocator",
574 "../test:test_support",
575 ]
576 }
577
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800578 rtc_source_set("mock_video_bitrate_allocator_factory") {
579 testonly = true
580 sources = [
581 "test/mock_video_bitrate_allocator_factory.h",
582 ]
583
584 deps = [
585 "../api/video:video_bitrate_allocator_factory",
586 "../test:test_support",
587 ]
588 }
589
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700590 rtc_source_set("mock_video_codec_factory") {
591 testonly = true
592 sources = [
593 "test/mock_video_decoder_factory.h",
594 "test/mock_video_encoder_factory.h",
595 ]
596
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700597 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100598 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700599 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700600 ]
601 }
602
Erik Språngc84cd952018-10-15 11:55:13 +0200603 rtc_source_set("mock_video_decoder") {
604 visibility = [ "*" ]
605
606 testonly = true
607 sources = [
608 "test/mock_video_decoder.cc",
609 "test/mock_video_decoder.h",
610 ]
611
612 deps = [
613 "../api/video_codecs:video_codecs_api",
614 "../test:test_support",
615 ]
616 }
617
Erik Språng6af1c922018-10-12 10:01:30 +0200618 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200619 visibility = [ "*" ]
620
Erik Språng6af1c922018-10-12 10:01:30 +0200621 testonly = true
622 sources = [
623 "test/mock_video_encoder.cc",
624 "test/mock_video_encoder.h",
625 ]
626
627 deps = [
628 "../api/video_codecs:video_codecs_api",
629 "../test:test_support",
630 ]
631 }
632
Anton Sukhanov7940da02018-10-10 10:34:49 -0700633 rtc_source_set("fake_media_transport") {
634 testonly = true
635
636 sources = [
637 "test/fake_media_transport.h",
638 ]
639
640 deps = [
641 ":libjingle_peerconnection_api",
642 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100643 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700644 ]
645 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200646
647 rtc_source_set("loopback_media_transport") {
648 testonly = true
649
650 sources = [
651 "test/loopback_media_transport.h",
652 ]
653
654 deps = [
655 ":libjingle_peerconnection_api",
656 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700657 "../rtc_base:rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200658 ]
659 }
660
661 rtc_source_set("rtc_api_unittests") {
662 testonly = true
663
664 sources = [
665 "array_view_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200666 "rtcerror_unittest.cc",
667 "rtpparameters_unittest.cc",
668 "test/loopback_media_transport_unittest.cc",
669 ]
670
671 if (!build_with_chromium && is_clang) {
672 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
673 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
674 }
675
676 deps = [
677 ":array_view",
678 ":libjingle_peerconnection_api",
679 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200680 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100681 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200682 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200683 "../test:test_support",
684 "units:units_unittests",
685 ]
686 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700687}