blob: bc3d649e70e9ed33e92c0b4c390c5e097d42949c [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",
Anders Carlsson01092952018-12-11 15:44:54 +010065 "../rtc_base:deprecation",
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010066 "../rtc_base:ptr_util",
67 "../rtc_base:rtc_base",
68 "../rtc_base:rtc_base_approved",
69 "audio:audio_mixer_api",
70 "audio_codecs:audio_codecs_api",
71 "transport:network_control",
72 "video_codecs:video_codecs_api",
73 ]
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010074}
75
ossu7bb87ee2017-01-23 04:56:25 -080076rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000077 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070078 cflags = []
79 sources = [
Zach Steine20867f2018-08-02 13:20:15 -070080 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020081 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070082 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020083 "candidate.h",
Benjamin Wrighta54daf12018-10-11 15:33:17 -070084 "crypto/cryptooptions.cc",
85 "crypto/cryptooptions.h",
Benjamin Wrightea086912018-08-29 13:06:15 -070086 "crypto/framedecryptorinterface.h",
87 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010088 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020089 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070090 "datachannelinterface.h",
Harald Alvestrandad88c882018-11-28 16:47:46 +010091 "dtlstransportinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070092 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080093 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070094 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 11:09:32 +020095 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 03:09:32 -070096 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070097 "jsepsessiondescription.h",
Niels Möller3a742392018-10-08 11:13:58 +020098 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040099 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700100 "mediaconstraintsinterface.cc",
101 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -0800102 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +0100103 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700104 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700105 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -0800106 "mediatypes.cc",
107 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -0700108 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -0700109 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +0200110 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 12:20:13 +0100111 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700112 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700113 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700114 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -0800115 "rtcerror.cc",
116 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100117 "rtp_headers.cc",
118 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200119 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700120 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +0100121 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700122 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-29 17:02:10 -0700123 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700124 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +0200125 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 10:44:53 -0800126 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +0100127 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700128 "statstypes.cc",
129 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +0200130 "turncustomizer.h",
ossu7bb87ee2017-01-23 04:56:25 -0800131 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -0700132 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700133 ]
kjellanderc76dc952016-06-03 03:09:32 -0700134 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100135 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100136 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100137 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100138 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100139 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700140 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100141 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100142 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200143 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200144 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200145 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200146 "video:video_frame",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800147 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200148 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100149
150 # Basically, don't add stuff here. You might break sensitive downstream
151 # targets like pnacl. API should not depend on anything outside of this
152 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700153 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100154 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100155 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100156 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100157 "../rtc_base:checks",
158 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700159 "../rtc_base:rtc_base",
160 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200161 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700162 ]
Niels Möller8366e172018-02-14 12:20:13 +0100163
kjellander8a116632017-04-21 05:17:08 -0700164 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100165 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700166 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
167 }
ossu7bb87ee2017-01-23 04:56:25 -0800168}
kjellanderc76dc952016-06-03 03:09:32 -0700169
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100170rtc_source_set("scoped_refptr") {
171 visibility = [ "*" ]
172 sources = [
173 "scoped_refptr.h",
174 ]
175}
176
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200177rtc_source_set("video_quality_test_fixture_api") {
178 visibility = [ "*" ]
179 testonly = true
180 sources = [
181 "test/video_quality_test_fixture.h",
182 ]
183 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200184 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200185 ":libjingle_peerconnection_api",
186 ":simulated_network_api",
187 "../call:fake_network",
188 "../call:rtp_interfaces",
189 "../test:test_common",
190 "../test:video_test_common",
191 "video_codecs:video_codecs_api",
192 ]
193 if (!build_with_chromium && is_clang) {
194 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
195 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
196 }
197}
198
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200199rtc_source_set("test_dependency_factory") {
200 visibility = [ "*" ]
201 testonly = true
202 sources = [
203 "test/test_dependency_factory.cc",
204 "test/test_dependency_factory.h",
205 ]
206 deps = [
207 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100208 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200209 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900210 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200211 ]
212 if (!build_with_chromium && is_clang) {
213 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
214 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
215 }
216}
217
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200218if (rtc_include_tests) {
219 rtc_source_set("create_video_quality_test_fixture_api") {
220 visibility = [ "*" ]
221 testonly = true
222 sources = [
223 "test/create_video_quality_test_fixture.cc",
224 "test/create_video_quality_test_fixture.h",
225 ]
226 deps = [
227 ":fec_controller_api",
228 ":video_quality_test_fixture_api",
229 "../rtc_base:ptr_util",
230 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200231 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200232 ]
233 if (!build_with_chromium && is_clang) {
234 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
236 }
237 }
238}
239
Elad Alon80810732017-10-06 13:07:32 +0200240rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000241 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200242 sources = [
243 "rtceventlogoutput.h",
244 ]
245}
246
deadbeefe814a0d2017-02-25 18:15:09 -0800247rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000248 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800249 sources = [
deadbeefe814a0d2017-02-25 18:15:09 -0800250 "ortc/packettransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800251 "ortc/rtptransportinterface.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800252 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800253 ]
254
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100255 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800256 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200257 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800258 ]
259}
260
hbos74e1a4f2016-09-15 23:33:01 -0700261rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000262 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700263 cflags = []
264 sources = [
265 "stats/rtcstats.h",
266 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800267 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700268 "stats/rtcstatsreport.h",
269 ]
270
271 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100272 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700273 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200274 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700275 ]
276}
277
Niels Möllera6fe2612018-01-19 11:28:54 +0100278rtc_source_set("audio_options_api") {
279 visibility = [ "*" ]
280 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200281 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100282 "audio_options.h",
283 ]
284
285 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100286 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200287 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200288 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100289 ]
290}
291
aleloia8eb7562016-11-28 07:02:13 -0800292rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000293 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800294 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100295 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800296 "call/transport.h",
297 ]
298}
nisseb2250e52016-12-02 04:01:14 -0800299
Sebastian Jansson6736df12018-11-21 19:18:39 +0100300rtc_source_set("bitrate_allocation") {
301 visibility = [ "*" ]
302 sources = [
303 "call/bitrate_allocation.h",
304 ]
305 deps = [
306 "units:data_rate",
307 "units:time_delta",
308 ]
309}
310
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200311rtc_source_set("simulated_network_api") {
312 visibility = [ "*" ]
313 sources = [
314 "test/simulated_network.h",
315 ]
316 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200317 "../rtc_base:criticalsection",
318 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200319 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200320 ]
321}
322
Ying Wang3b790f32018-01-19 17:58:57 +0100323rtc_source_set("fec_controller_api") {
324 visibility = [ "*" ]
325 sources = [
326 "fec_controller.h",
327 ]
328
329 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100330 "..:webrtc_common",
331 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100332 ]
333}
334
kwiberg529662a2017-09-04 05:43:17 -0700335rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000336 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700337 sources = [
338 "array_view.h",
339 ]
340 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100341 "../rtc_base:checks",
342 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700343 ]
344}
345
Niels Möller9155e492017-10-23 11:22:30 +0200346rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000347 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200348 sources = [
349 "refcountedbase.h",
350 ]
351 deps = [
352 "../rtc_base:rtc_base_approved",
353 ]
354}
355
kjellander1993b1d2017-03-06 00:29:21 -0800356rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000357 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800358 testonly = true
359 sources = [
360 "test/fakeconstraints.h",
361 ]
362
kjellander1993b1d2017-03-06 00:29:21 -0800363 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100364 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700365 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800366 ]
367}
368
Ivo Creusen55de08e2018-09-03 11:49:27 +0200369rtc_source_set("neteq_simulator_api") {
370 visibility = [ "*" ]
371 sources = [
372 "test/neteq_simulator.cc",
373 "test/neteq_simulator.h",
374 ]
375}
376
kjellanderfd5b4e92016-06-13 12:08:33 -0700377if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100378 if (rtc_enable_protobuf) {
379 rtc_source_set("audioproc_f_api") {
380 visibility = [ "*" ]
381 testonly = true
382 sources = [
383 "test/audioproc_float.cc",
384 "test/audioproc_float.h",
385 ]
386
387 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000388 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100389 "../modules/audio_processing:audio_processing",
390 "../modules/audio_processing:audioproc_f_impl",
391 ]
392 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200393
394 rtc_source_set("neteq_simulator_factory") {
395 visibility = [ "*" ]
396 testonly = true
397 sources = [
398 "test/neteq_simulator_factory.cc",
399 "test/neteq_simulator_factory.h",
400 ]
401 deps = [
402 ":neteq_simulator_api",
403 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200404 "../rtc_base:checks",
405 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200406 "//third_party/abseil-cpp/absl/memory",
407 ]
408 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100409 }
410
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200411 rtc_source_set("simulcast_test_fixture_api") {
412 visibility = [ "*" ]
413 testonly = true
414 sources = [
415 "test/simulcast_test_fixture.h",
416 ]
417 }
418
419 rtc_source_set("create_simulcast_test_fixture_api") {
420 visibility = [ "*" ]
421 testonly = true
422 sources = [
423 "test/create_simulcast_test_fixture.cc",
424 "test/create_simulcast_test_fixture.h",
425 ]
426 deps = [
427 ":simulcast_test_fixture_api",
428 "../modules/video_coding:simulcast_test_fixture_impl",
429 "../rtc_base:rtc_base_approved",
430 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200431 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200432 ]
433 if (!build_with_chromium && is_clang) {
434 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
435 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
436 }
437 }
438
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200439 rtc_source_set("videocodec_test_fixture_api") {
440 visibility = [ "*" ]
441 testonly = true
442 sources = [
443 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200444 "test/videocodec_test_stats.cc",
445 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200446 ]
447 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200448 "..:webrtc_common",
449 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200450 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200451 "video_codecs:video_codecs_api",
452 ]
453 }
454
455 rtc_source_set("create_videocodec_test_fixture_api") {
456 visibility = [ "*" ]
457 testonly = true
458 sources = [
459 "test/create_videocodec_test_fixture.cc",
460 "test/create_videocodec_test_fixture.h",
461 ]
462 deps = [
463 ":videocodec_test_fixture_api",
464 "../modules/video_coding:video_codecs_test_framework",
465 "../modules/video_coding:videocodec_test_impl",
466 "../rtc_base:rtc_base_approved",
467 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200468 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200469 ]
470 if (!build_with_chromium && is_clang) {
471 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
472 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
473 }
474 }
475
kjellander2f6af9c2017-03-02 22:26:23 -0800476 rtc_source_set("mock_audio_mixer") {
477 testonly = true
478 sources = [
479 "test/mock_audio_mixer.h",
480 ]
481
kjellander2f6af9c2017-03-02 22:26:23 -0800482 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700483 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100484 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800485 ]
486 }
487
Benjamin Wright78410ad2018-10-25 09:52:57 -0700488 rtc_source_set("mock_frame_encryptor") {
489 testonly = true
490 sources = [
491 "test/mock_frame_encryptor.cc",
492 "test/mock_frame_encryptor.h",
493 ]
494 deps = [
495 ":libjingle_peerconnection_api",
496 "../test:test_support",
497 ]
498 }
499
500 rtc_source_set("mock_frame_decryptor") {
501 testonly = true
502 sources = [
503 "test/mock_frame_decryptor.cc",
504 "test/mock_frame_decryptor.h",
505 ]
506 deps = [
507 ":libjingle_peerconnection_api",
508 "../test:test_support",
509 ]
510 }
511
512 rtc_source_set("fake_frame_encryptor") {
513 testonly = true
514 sources = [
515 "test/fake_frame_encryptor.cc",
516 "test/fake_frame_encryptor.h",
517 ]
518 deps = [
519 ":array_view",
520 ":libjingle_peerconnection_api",
521 "..:webrtc_common",
522 "../rtc_base:checks",
523 "../rtc_base:rtc_base_approved",
524 ]
525 }
526
527 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700528 testonly = true
529 sources = [
530 "test/fake_frame_decryptor.cc",
531 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700532 ]
533 deps = [
534 ":array_view",
535 ":libjingle_peerconnection_api",
536 "..:webrtc_common",
537 "../rtc_base:checks",
538 "../rtc_base:rtc_base_approved",
539 ]
540 }
541
Jiawei Ou651b92e2018-06-29 15:46:44 -0700542 rtc_source_set("mock_peerconnectioninterface") {
543 testonly = true
544 sources = [
545 "test/mock_peerconnectioninterface.h",
546 ]
547
548 deps = [
549 ":libjingle_peerconnection_api",
550 "../test:test_support",
551 ]
552 }
553
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100554 rtc_source_set("mock_rtp") {
555 testonly = true
556 sources = [
557 "test/mock_rtpreceiver.h",
558 "test/mock_rtpsender.h",
559 ]
560
561 deps = [
562 ":libjingle_peerconnection_api",
563 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100564 ]
565 }
566
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700567 rtc_source_set("mock_video_bitrate_allocator") {
568 testonly = true
569 sources = [
570 "test/mock_video_bitrate_allocator.h",
571 ]
572
573 deps = [
574 "../api/video:video_bitrate_allocator",
575 "../test:test_support",
576 ]
577 }
578
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800579 rtc_source_set("mock_video_bitrate_allocator_factory") {
580 testonly = true
581 sources = [
582 "test/mock_video_bitrate_allocator_factory.h",
583 ]
584
585 deps = [
586 "../api/video:video_bitrate_allocator_factory",
587 "../test:test_support",
588 ]
589 }
590
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700591 rtc_source_set("mock_video_codec_factory") {
592 testonly = true
593 sources = [
594 "test/mock_video_decoder_factory.h",
595 "test/mock_video_encoder_factory.h",
596 ]
597
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700598 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100599 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700600 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700601 ]
602 }
603
Erik Språngc84cd952018-10-15 11:55:13 +0200604 rtc_source_set("mock_video_decoder") {
605 visibility = [ "*" ]
606
607 testonly = true
608 sources = [
609 "test/mock_video_decoder.cc",
610 "test/mock_video_decoder.h",
611 ]
612
613 deps = [
614 "../api/video_codecs:video_codecs_api",
615 "../test:test_support",
616 ]
617 }
618
Erik Språng6af1c922018-10-12 10:01:30 +0200619 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200620 visibility = [ "*" ]
621
Erik Språng6af1c922018-10-12 10:01:30 +0200622 testonly = true
623 sources = [
624 "test/mock_video_encoder.cc",
625 "test/mock_video_encoder.h",
626 ]
627
628 deps = [
629 "../api/video_codecs:video_codecs_api",
630 "../test:test_support",
631 ]
632 }
633
Anton Sukhanov7940da02018-10-10 10:34:49 -0700634 rtc_source_set("fake_media_transport") {
635 testonly = true
636
637 sources = [
638 "test/fake_media_transport.h",
639 ]
640
641 deps = [
642 ":libjingle_peerconnection_api",
643 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100644 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700645 ]
646 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200647
648 rtc_source_set("loopback_media_transport") {
649 testonly = true
650
651 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100652 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200653 "test/loopback_media_transport.h",
654 ]
655
656 deps = [
657 ":libjingle_peerconnection_api",
658 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700659 "../rtc_base:rtc_base",
Niels Möllere0446cb2018-11-30 09:35:52 +0100660 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200661 ]
662 }
663
664 rtc_source_set("rtc_api_unittests") {
665 testonly = true
666
667 sources = [
668 "array_view_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200669 "rtcerror_unittest.cc",
670 "rtpparameters_unittest.cc",
671 "test/loopback_media_transport_unittest.cc",
672 ]
673
674 if (!build_with_chromium && is_clang) {
675 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
676 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
677 }
678
679 deps = [
680 ":array_view",
681 ":libjingle_peerconnection_api",
682 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200683 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100684 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200685 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200686 "../test:test_support",
687 "units:units_unittests",
688 ]
689 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700690}