blob: 22f6b2ea4143f2e66b7e3d69786ae60be46124cf [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",
61 "../modules/audio_device:audio_device_api",
62 "../modules/audio_processing:api",
63 "../pc:peerconnection",
64 "../rtc_base:ptr_util",
65 "../rtc_base:rtc_base",
66 "../rtc_base:rtc_base_approved",
67 "audio:audio_mixer_api",
68 "audio_codecs:audio_codecs_api",
69 "transport:network_control",
70 "video_codecs:video_codecs_api",
71 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010072}
73
ossu7bb87ee2017-01-23 04:56:25 -080074rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000075 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070076 cflags = []
77 sources = [
Zach Steine20867f2018-08-02 13:20:15 -070078 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020079 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070080 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020081 "candidate.h",
Benjamin Wrighta54daf12018-10-11 15:33:17 -070082 "crypto/cryptooptions.cc",
83 "crypto/cryptooptions.h",
Benjamin Wrightea086912018-08-29 13:06:15 -070084 "crypto/framedecryptorinterface.h",
85 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010086 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020087 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070088 "datachannelinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070089 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080090 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070091 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 11:09:32 +020092 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 03:09:32 -070093 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070094 "jsepsessiondescription.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",
kjellanderc76dc952016-06-03 03:09:32 -070097 "mediaconstraintsinterface.cc",
98 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -080099 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +0100100 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700101 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700102 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -0800103 "mediatypes.cc",
104 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -0700105 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -0700106 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +0200107 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 12:20:13 +0100108 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700109 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700110 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700111 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -0800112 "rtcerror.cc",
113 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100114 "rtp_headers.cc",
115 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200116 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700117 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +0100118 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700119 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-29 17:02:10 -0700120 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700121 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +0200122 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 10:44:53 -0800123 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +0100124 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700125 "statstypes.cc",
126 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +0200127 "turncustomizer.h",
ossu7bb87ee2017-01-23 04:56:25 -0800128 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -0700129 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700130 ]
kjellanderc76dc952016-06-03 03:09:32 -0700131 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100132 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100133 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100134 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100135 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100136 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700137 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100138 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100139 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200140 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200141 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200142 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200143 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200144 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100145
146 # Basically, don't add stuff here. You might break sensitive downstream
147 # targets like pnacl. API should not depend on anything outside of this
148 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700149 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100150 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100151 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100152 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100153 "../rtc_base:checks",
154 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700155 "../rtc_base:rtc_base",
156 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100157 "../rtc_base:stringutils",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200158 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700159 ]
Niels Möller8366e172018-02-14 12:20:13 +0100160
kjellander8a116632017-04-21 05:17:08 -0700161 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100162 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700163 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
164 }
ossu7bb87ee2017-01-23 04:56:25 -0800165}
kjellanderc76dc952016-06-03 03:09:32 -0700166
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100167rtc_source_set("scoped_refptr") {
168 visibility = [ "*" ]
169 sources = [
170 "scoped_refptr.h",
171 ]
172}
173
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200174rtc_source_set("video_quality_test_fixture_api") {
175 visibility = [ "*" ]
176 testonly = true
177 sources = [
178 "test/video_quality_test_fixture.h",
179 ]
180 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200181 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200182 ":libjingle_peerconnection_api",
183 ":simulated_network_api",
184 "../call:fake_network",
185 "../call:rtp_interfaces",
186 "../test:test_common",
187 "../test:video_test_common",
188 "video_codecs:video_codecs_api",
189 ]
190 if (!build_with_chromium && is_clang) {
191 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
192 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
193 }
194}
195
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200196rtc_source_set("test_dependency_factory") {
197 visibility = [ "*" ]
198 testonly = true
199 sources = [
200 "test/test_dependency_factory.cc",
201 "test/test_dependency_factory.h",
202 ]
203 deps = [
204 ":video_quality_test_fixture_api",
205 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900206 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200207 ]
208 if (!build_with_chromium && is_clang) {
209 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
210 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
211 }
212}
213
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200214if (rtc_include_tests) {
215 rtc_source_set("create_video_quality_test_fixture_api") {
216 visibility = [ "*" ]
217 testonly = true
218 sources = [
219 "test/create_video_quality_test_fixture.cc",
220 "test/create_video_quality_test_fixture.h",
221 ]
222 deps = [
223 ":fec_controller_api",
224 ":video_quality_test_fixture_api",
225 "../rtc_base:ptr_util",
226 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200227 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200228 ]
229 if (!build_with_chromium && is_clang) {
230 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
231 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
232 }
233 }
234}
235
Elad Alon80810732017-10-06 13:07:32 +0200236rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000237 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200238 sources = [
239 "rtceventlogoutput.h",
240 ]
241}
242
deadbeefe814a0d2017-02-25 18:15:09 -0800243rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000244 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800245 sources = [
deadbeefe814a0d2017-02-25 18:15:09 -0800246 "ortc/packettransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800247 "ortc/rtptransportinterface.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800248 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800249 ]
250
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100251 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800252 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200253 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800254 ]
255}
256
hbos74e1a4f2016-09-15 23:33:01 -0700257rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000258 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700259 cflags = []
260 sources = [
261 "stats/rtcstats.h",
262 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800263 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700264 "stats/rtcstatsreport.h",
265 ]
266
267 deps = [
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 = [
Danil Chapovalov21652332018-08-31 10:29:07 +0200282 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200283 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100284 ]
285}
286
aleloia8eb7562016-11-28 07:02:13 -0800287rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000288 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800289 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100290 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800291 "call/transport.h",
292 ]
293}
nisseb2250e52016-12-02 04:01:14 -0800294
Sebastian Jansson6736df12018-11-21 19:18:39 +0100295rtc_source_set("bitrate_allocation") {
296 visibility = [ "*" ]
297 sources = [
298 "call/bitrate_allocation.h",
299 ]
300 deps = [
301 "units:data_rate",
302 "units:time_delta",
303 ]
304}
305
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200306rtc_source_set("simulated_network_api") {
307 visibility = [ "*" ]
308 sources = [
309 "test/simulated_network.h",
310 ]
311 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200312 "../rtc_base:criticalsection",
313 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200314 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200315 ]
316}
317
Ying Wang3b790f32018-01-19 17:58:57 +0100318rtc_source_set("fec_controller_api") {
319 visibility = [ "*" ]
320 sources = [
321 "fec_controller.h",
322 ]
323
324 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100325 "..:webrtc_common",
326 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100327 ]
328}
329
kwiberg529662a2017-09-04 05:43:17 -0700330rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000331 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700332 sources = [
333 "array_view.h",
334 ]
335 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100336 "../rtc_base:checks",
337 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700338 ]
339}
340
Niels Möller9155e492017-10-23 11:22:30 +0200341rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000342 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200343 sources = [
344 "refcountedbase.h",
345 ]
346 deps = [
347 "../rtc_base:rtc_base_approved",
348 ]
349}
350
kjellander1993b1d2017-03-06 00:29:21 -0800351rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000352 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800353 testonly = true
354 sources = [
355 "test/fakeconstraints.h",
356 ]
357
kjellander1993b1d2017-03-06 00:29:21 -0800358 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100359 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700360 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800361 ]
362}
363
Ivo Creusen55de08e2018-09-03 11:49:27 +0200364rtc_source_set("neteq_simulator_api") {
365 visibility = [ "*" ]
366 sources = [
367 "test/neteq_simulator.cc",
368 "test/neteq_simulator.h",
369 ]
370}
371
kjellanderfd5b4e92016-06-13 12:08:33 -0700372if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100373 if (rtc_enable_protobuf) {
374 rtc_source_set("audioproc_f_api") {
375 visibility = [ "*" ]
376 testonly = true
377 sources = [
378 "test/audioproc_float.cc",
379 "test/audioproc_float.h",
380 ]
381
382 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000383 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100384 "../modules/audio_processing:audio_processing",
385 "../modules/audio_processing:audioproc_f_impl",
386 ]
387 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200388
389 rtc_source_set("neteq_simulator_factory") {
390 visibility = [ "*" ]
391 testonly = true
392 sources = [
393 "test/neteq_simulator_factory.cc",
394 "test/neteq_simulator_factory.h",
395 ]
396 deps = [
397 ":neteq_simulator_api",
398 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200399 "../rtc_base:checks",
400 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200401 "//third_party/abseil-cpp/absl/memory",
402 ]
403 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100404 }
405
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200406 rtc_source_set("simulcast_test_fixture_api") {
407 visibility = [ "*" ]
408 testonly = true
409 sources = [
410 "test/simulcast_test_fixture.h",
411 ]
412 }
413
414 rtc_source_set("create_simulcast_test_fixture_api") {
415 visibility = [ "*" ]
416 testonly = true
417 sources = [
418 "test/create_simulcast_test_fixture.cc",
419 "test/create_simulcast_test_fixture.h",
420 ]
421 deps = [
422 ":simulcast_test_fixture_api",
423 "../modules/video_coding:simulcast_test_fixture_impl",
424 "../rtc_base:rtc_base_approved",
425 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200426 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200427 ]
428 if (!build_with_chromium && is_clang) {
429 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
430 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
431 }
432 }
433
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200434 rtc_source_set("videocodec_test_fixture_api") {
435 visibility = [ "*" ]
436 testonly = true
437 sources = [
438 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200439 "test/videocodec_test_stats.cc",
440 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200441 ]
442 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200443 "..:webrtc_common",
444 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200445 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200446 "video_codecs:video_codecs_api",
447 ]
448 }
449
450 rtc_source_set("create_videocodec_test_fixture_api") {
451 visibility = [ "*" ]
452 testonly = true
453 sources = [
454 "test/create_videocodec_test_fixture.cc",
455 "test/create_videocodec_test_fixture.h",
456 ]
457 deps = [
458 ":videocodec_test_fixture_api",
459 "../modules/video_coding:video_codecs_test_framework",
460 "../modules/video_coding:videocodec_test_impl",
461 "../rtc_base:rtc_base_approved",
462 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200463 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200464 ]
465 if (!build_with_chromium && is_clang) {
466 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
467 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
468 }
469 }
470
kjellander2f6af9c2017-03-02 22:26:23 -0800471 rtc_source_set("mock_audio_mixer") {
472 testonly = true
473 sources = [
474 "test/mock_audio_mixer.h",
475 ]
476
kjellander2f6af9c2017-03-02 22:26:23 -0800477 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700478 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100479 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800480 ]
481 }
482
Benjamin Wright78410ad2018-10-25 09:52:57 -0700483 rtc_source_set("mock_frame_encryptor") {
484 testonly = true
485 sources = [
486 "test/mock_frame_encryptor.cc",
487 "test/mock_frame_encryptor.h",
488 ]
489 deps = [
490 ":libjingle_peerconnection_api",
491 "../test:test_support",
492 ]
493 }
494
495 rtc_source_set("mock_frame_decryptor") {
496 testonly = true
497 sources = [
498 "test/mock_frame_decryptor.cc",
499 "test/mock_frame_decryptor.h",
500 ]
501 deps = [
502 ":libjingle_peerconnection_api",
503 "../test:test_support",
504 ]
505 }
506
507 rtc_source_set("fake_frame_encryptor") {
508 testonly = true
509 sources = [
510 "test/fake_frame_encryptor.cc",
511 "test/fake_frame_encryptor.h",
512 ]
513 deps = [
514 ":array_view",
515 ":libjingle_peerconnection_api",
516 "..:webrtc_common",
517 "../rtc_base:checks",
518 "../rtc_base:rtc_base_approved",
519 ]
520 }
521
522 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700523 testonly = true
524 sources = [
525 "test/fake_frame_decryptor.cc",
526 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700527 ]
528 deps = [
529 ":array_view",
530 ":libjingle_peerconnection_api",
531 "..:webrtc_common",
532 "../rtc_base:checks",
533 "../rtc_base:rtc_base_approved",
534 ]
535 }
536
Jiawei Ou651b92e2018-06-29 15:46:44 -0700537 rtc_source_set("mock_peerconnectioninterface") {
538 testonly = true
539 sources = [
540 "test/mock_peerconnectioninterface.h",
541 ]
542
543 deps = [
544 ":libjingle_peerconnection_api",
545 "../test:test_support",
546 ]
547 }
548
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100549 rtc_source_set("mock_rtp") {
550 testonly = true
551 sources = [
552 "test/mock_rtpreceiver.h",
553 "test/mock_rtpsender.h",
554 ]
555
556 deps = [
557 ":libjingle_peerconnection_api",
558 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100559 ]
560 }
561
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700562 rtc_source_set("mock_video_bitrate_allocator") {
563 testonly = true
564 sources = [
565 "test/mock_video_bitrate_allocator.h",
566 ]
567
568 deps = [
569 "../api/video:video_bitrate_allocator",
570 "../test:test_support",
571 ]
572 }
573
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800574 rtc_source_set("mock_video_bitrate_allocator_factory") {
575 testonly = true
576 sources = [
577 "test/mock_video_bitrate_allocator_factory.h",
578 ]
579
580 deps = [
581 "../api/video:video_bitrate_allocator_factory",
582 "../test:test_support",
583 ]
584 }
585
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700586 rtc_source_set("mock_video_codec_factory") {
587 testonly = true
588 sources = [
589 "test/mock_video_decoder_factory.h",
590 "test/mock_video_encoder_factory.h",
591 ]
592
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700593 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100594 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700595 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700596 ]
597 }
598
Erik Språngc84cd952018-10-15 11:55:13 +0200599 rtc_source_set("mock_video_decoder") {
600 visibility = [ "*" ]
601
602 testonly = true
603 sources = [
604 "test/mock_video_decoder.cc",
605 "test/mock_video_decoder.h",
606 ]
607
608 deps = [
609 "../api/video_codecs:video_codecs_api",
610 "../test:test_support",
611 ]
612 }
613
Erik Språng6af1c922018-10-12 10:01:30 +0200614 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200615 visibility = [ "*" ]
616
Erik Språng6af1c922018-10-12 10:01:30 +0200617 testonly = true
618 sources = [
619 "test/mock_video_encoder.cc",
620 "test/mock_video_encoder.h",
621 ]
622
623 deps = [
624 "../api/video_codecs:video_codecs_api",
625 "../test:test_support",
626 ]
627 }
628
Anton Sukhanov7940da02018-10-10 10:34:49 -0700629 rtc_source_set("fake_media_transport") {
630 testonly = true
631
632 sources = [
633 "test/fake_media_transport.h",
634 ]
635
636 deps = [
637 ":libjingle_peerconnection_api",
638 "../rtc_base:checks",
Yves Gerey21cddff2018-10-30 21:12:42 +0100639 "//third_party/abseil-cpp/absl/memory:memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700640 ]
641 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200642
643 rtc_source_set("loopback_media_transport") {
644 testonly = true
645
646 sources = [
647 "test/loopback_media_transport.h",
648 ]
649
650 deps = [
651 ":libjingle_peerconnection_api",
652 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700653 "../rtc_base:rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200654 ]
655 }
656
657 rtc_source_set("rtc_api_unittests") {
658 testonly = true
659
660 sources = [
661 "array_view_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200662 "rtcerror_unittest.cc",
663 "rtpparameters_unittest.cc",
664 "test/loopback_media_transport_unittest.cc",
665 ]
666
667 if (!build_with_chromium && is_clang) {
668 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
669 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
670 }
671
672 deps = [
673 ":array_view",
674 ":libjingle_peerconnection_api",
675 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200676 "../rtc_base:checks",
677 "../rtc_base:rtc_base_approved",
678 "../rtc_base:rtc_base_tests_utils",
679 "../test:test_support",
680 "units:units_unittests",
681 ]
682 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700683}