blob: fb22de639a0b947dd0a17f44d12d514ec81a8afd [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",
Patrik Höglund3e113432017-12-15 14:40:10 +0100161 "../rtc_base:stringutils",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200162 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700163 ]
Niels Möller8366e172018-02-14 12:20:13 +0100164
kjellander8a116632017-04-21 05:17:08 -0700165 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100166 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700167 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
168 }
ossu7bb87ee2017-01-23 04:56:25 -0800169}
kjellanderc76dc952016-06-03 03:09:32 -0700170
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100171rtc_source_set("scoped_refptr") {
172 visibility = [ "*" ]
173 sources = [
174 "scoped_refptr.h",
175 ]
176}
177
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200178rtc_source_set("video_quality_test_fixture_api") {
179 visibility = [ "*" ]
180 testonly = true
181 sources = [
182 "test/video_quality_test_fixture.h",
183 ]
184 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200185 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200186 ":libjingle_peerconnection_api",
187 ":simulated_network_api",
188 "../call:fake_network",
189 "../call:rtp_interfaces",
190 "../test:test_common",
191 "../test:video_test_common",
192 "video_codecs:video_codecs_api",
193 ]
194 if (!build_with_chromium && is_clang) {
195 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
196 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
197 }
198}
199
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200200rtc_source_set("test_dependency_factory") {
201 visibility = [ "*" ]
202 testonly = true
203 sources = [
204 "test/test_dependency_factory.cc",
205 "test/test_dependency_factory.h",
206 ]
207 deps = [
208 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100209 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200210 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900211 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200212 ]
213 if (!build_with_chromium && is_clang) {
214 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
215 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
216 }
217}
218
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200219if (rtc_include_tests) {
220 rtc_source_set("create_video_quality_test_fixture_api") {
221 visibility = [ "*" ]
222 testonly = true
223 sources = [
224 "test/create_video_quality_test_fixture.cc",
225 "test/create_video_quality_test_fixture.h",
226 ]
227 deps = [
228 ":fec_controller_api",
229 ":video_quality_test_fixture_api",
230 "../rtc_base:ptr_util",
231 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200232 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200233 ]
234 if (!build_with_chromium && is_clang) {
235 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
236 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
237 }
238 }
239}
240
Elad Alon80810732017-10-06 13:07:32 +0200241rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000242 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200243 sources = [
244 "rtceventlogoutput.h",
245 ]
246}
247
deadbeefe814a0d2017-02-25 18:15:09 -0800248rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000249 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800250 sources = [
deadbeefe814a0d2017-02-25 18:15:09 -0800251 "ortc/packettransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800252 "ortc/rtptransportinterface.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800253 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800254 ]
255
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100256 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800257 ":libjingle_peerconnection_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200258 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800259 ]
260}
261
hbos74e1a4f2016-09-15 23:33:01 -0700262rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000263 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700264 cflags = []
265 sources = [
266 "stats/rtcstats.h",
267 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800268 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700269 "stats/rtcstatsreport.h",
270 ]
271
272 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100273 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700274 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200275 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700276 ]
277}
278
Niels Möllera6fe2612018-01-19 11:28:54 +0100279rtc_source_set("audio_options_api") {
280 visibility = [ "*" ]
281 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200282 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100283 "audio_options.h",
284 ]
285
286 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100287 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200288 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200289 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100290 ]
291}
292
aleloia8eb7562016-11-28 07:02:13 -0800293rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000294 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800295 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100296 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800297 "call/transport.h",
298 ]
299}
nisseb2250e52016-12-02 04:01:14 -0800300
Sebastian Jansson6736df12018-11-21 19:18:39 +0100301rtc_source_set("bitrate_allocation") {
302 visibility = [ "*" ]
303 sources = [
304 "call/bitrate_allocation.h",
305 ]
306 deps = [
307 "units:data_rate",
308 "units:time_delta",
309 ]
310}
311
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200312rtc_source_set("simulated_network_api") {
313 visibility = [ "*" ]
314 sources = [
315 "test/simulated_network.h",
316 ]
317 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200318 "../rtc_base:criticalsection",
319 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200320 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200321 ]
322}
323
Ying Wang3b790f32018-01-19 17:58:57 +0100324rtc_source_set("fec_controller_api") {
325 visibility = [ "*" ]
326 sources = [
327 "fec_controller.h",
328 ]
329
330 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100331 "..:webrtc_common",
332 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100333 ]
334}
335
kwiberg529662a2017-09-04 05:43:17 -0700336rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000337 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700338 sources = [
339 "array_view.h",
340 ]
341 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100342 "../rtc_base:checks",
343 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700344 ]
345}
346
Niels Möller9155e492017-10-23 11:22:30 +0200347rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000348 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200349 sources = [
350 "refcountedbase.h",
351 ]
352 deps = [
353 "../rtc_base:rtc_base_approved",
354 ]
355}
356
kjellander1993b1d2017-03-06 00:29:21 -0800357rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000358 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800359 testonly = true
360 sources = [
361 "test/fakeconstraints.h",
362 ]
363
kjellander1993b1d2017-03-06 00:29:21 -0800364 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100365 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700366 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800367 ]
368}
369
Ivo Creusen55de08e2018-09-03 11:49:27 +0200370rtc_source_set("neteq_simulator_api") {
371 visibility = [ "*" ]
372 sources = [
373 "test/neteq_simulator.cc",
374 "test/neteq_simulator.h",
375 ]
376}
377
kjellanderfd5b4e92016-06-13 12:08:33 -0700378if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100379 if (rtc_enable_protobuf) {
380 rtc_source_set("audioproc_f_api") {
381 visibility = [ "*" ]
382 testonly = true
383 sources = [
384 "test/audioproc_float.cc",
385 "test/audioproc_float.h",
386 ]
387
388 deps = [
Alessio Bazzicab768e882018-11-07 14:29:54 +0000389 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100390 "../modules/audio_processing:audio_processing",
391 "../modules/audio_processing:audioproc_f_impl",
392 ]
393 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200394
395 rtc_source_set("neteq_simulator_factory") {
396 visibility = [ "*" ]
397 testonly = true
398 sources = [
399 "test/neteq_simulator_factory.cc",
400 "test/neteq_simulator_factory.h",
401 ]
402 deps = [
403 ":neteq_simulator_api",
404 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200405 "../rtc_base:checks",
406 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200407 "//third_party/abseil-cpp/absl/memory",
408 ]
409 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100410 }
411
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200412 rtc_source_set("simulcast_test_fixture_api") {
413 visibility = [ "*" ]
414 testonly = true
415 sources = [
416 "test/simulcast_test_fixture.h",
417 ]
418 }
419
420 rtc_source_set("create_simulcast_test_fixture_api") {
421 visibility = [ "*" ]
422 testonly = true
423 sources = [
424 "test/create_simulcast_test_fixture.cc",
425 "test/create_simulcast_test_fixture.h",
426 ]
427 deps = [
428 ":simulcast_test_fixture_api",
429 "../modules/video_coding:simulcast_test_fixture_impl",
430 "../rtc_base:rtc_base_approved",
431 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200432 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200433 ]
434 if (!build_with_chromium && is_clang) {
435 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
436 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
437 }
438 }
439
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200440 rtc_source_set("videocodec_test_fixture_api") {
441 visibility = [ "*" ]
442 testonly = true
443 sources = [
444 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200445 "test/videocodec_test_stats.cc",
446 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200447 ]
448 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200449 "..:webrtc_common",
450 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200451 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200452 "video_codecs:video_codecs_api",
453 ]
454 }
455
456 rtc_source_set("create_videocodec_test_fixture_api") {
457 visibility = [ "*" ]
458 testonly = true
459 sources = [
460 "test/create_videocodec_test_fixture.cc",
461 "test/create_videocodec_test_fixture.h",
462 ]
463 deps = [
464 ":videocodec_test_fixture_api",
465 "../modules/video_coding:video_codecs_test_framework",
466 "../modules/video_coding:videocodec_test_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",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +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
kjellander2f6af9c2017-03-02 22:26:23 -0800477 rtc_source_set("mock_audio_mixer") {
478 testonly = true
479 sources = [
480 "test/mock_audio_mixer.h",
481 ]
482
kjellander2f6af9c2017-03-02 22:26:23 -0800483 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700484 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100485 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800486 ]
487 }
488
Benjamin Wright78410ad2018-10-25 09:52:57 -0700489 rtc_source_set("mock_frame_encryptor") {
490 testonly = true
491 sources = [
492 "test/mock_frame_encryptor.cc",
493 "test/mock_frame_encryptor.h",
494 ]
495 deps = [
496 ":libjingle_peerconnection_api",
497 "../test:test_support",
498 ]
499 }
500
501 rtc_source_set("mock_frame_decryptor") {
502 testonly = true
503 sources = [
504 "test/mock_frame_decryptor.cc",
505 "test/mock_frame_decryptor.h",
506 ]
507 deps = [
508 ":libjingle_peerconnection_api",
509 "../test:test_support",
510 ]
511 }
512
513 rtc_source_set("fake_frame_encryptor") {
514 testonly = true
515 sources = [
516 "test/fake_frame_encryptor.cc",
517 "test/fake_frame_encryptor.h",
518 ]
519 deps = [
520 ":array_view",
521 ":libjingle_peerconnection_api",
522 "..:webrtc_common",
523 "../rtc_base:checks",
524 "../rtc_base:rtc_base_approved",
525 ]
526 }
527
528 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700529 testonly = true
530 sources = [
531 "test/fake_frame_decryptor.cc",
532 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700533 ]
534 deps = [
535 ":array_view",
536 ":libjingle_peerconnection_api",
537 "..:webrtc_common",
538 "../rtc_base:checks",
539 "../rtc_base:rtc_base_approved",
540 ]
541 }
542
Jiawei Ou651b92e2018-06-29 15:46:44 -0700543 rtc_source_set("mock_peerconnectioninterface") {
544 testonly = true
545 sources = [
546 "test/mock_peerconnectioninterface.h",
547 ]
548
549 deps = [
550 ":libjingle_peerconnection_api",
551 "../test:test_support",
552 ]
553 }
554
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100555 rtc_source_set("mock_rtp") {
556 testonly = true
557 sources = [
558 "test/mock_rtpreceiver.h",
559 "test/mock_rtpsender.h",
560 ]
561
562 deps = [
563 ":libjingle_peerconnection_api",
564 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100565 ]
566 }
567
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700568 rtc_source_set("mock_video_bitrate_allocator") {
569 testonly = true
570 sources = [
571 "test/mock_video_bitrate_allocator.h",
572 ]
573
574 deps = [
575 "../api/video:video_bitrate_allocator",
576 "../test:test_support",
577 ]
578 }
579
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800580 rtc_source_set("mock_video_bitrate_allocator_factory") {
581 testonly = true
582 sources = [
583 "test/mock_video_bitrate_allocator_factory.h",
584 ]
585
586 deps = [
587 "../api/video:video_bitrate_allocator_factory",
588 "../test:test_support",
589 ]
590 }
591
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700592 rtc_source_set("mock_video_codec_factory") {
593 testonly = true
594 sources = [
595 "test/mock_video_decoder_factory.h",
596 "test/mock_video_encoder_factory.h",
597 ]
598
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700599 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100600 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700601 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700602 ]
603 }
604
Erik Språngc84cd952018-10-15 11:55:13 +0200605 rtc_source_set("mock_video_decoder") {
606 visibility = [ "*" ]
607
608 testonly = true
609 sources = [
610 "test/mock_video_decoder.cc",
611 "test/mock_video_decoder.h",
612 ]
613
614 deps = [
615 "../api/video_codecs:video_codecs_api",
616 "../test:test_support",
617 ]
618 }
619
Erik Språng6af1c922018-10-12 10:01:30 +0200620 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200621 visibility = [ "*" ]
622
Erik Språng6af1c922018-10-12 10:01:30 +0200623 testonly = true
624 sources = [
625 "test/mock_video_encoder.cc",
626 "test/mock_video_encoder.h",
627 ]
628
629 deps = [
630 "../api/video_codecs:video_codecs_api",
631 "../test:test_support",
632 ]
633 }
634
Anton Sukhanov7940da02018-10-10 10:34:49 -0700635 rtc_source_set("fake_media_transport") {
636 testonly = true
637
638 sources = [
639 "test/fake_media_transport.h",
640 ]
641
642 deps = [
643 ":libjingle_peerconnection_api",
644 "../rtc_base:checks",
Yves Gerey3e707812018-11-28 16:47:49 +0100645 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700646 ]
647 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200648
649 rtc_source_set("loopback_media_transport") {
650 testonly = true
651
652 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100653 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200654 "test/loopback_media_transport.h",
655 ]
656
657 deps = [
658 ":libjingle_peerconnection_api",
659 "../rtc_base:checks",
Bjorn Mellem273d0292018-11-01 16:42:44 -0700660 "../rtc_base:rtc_base",
Niels Möllere0446cb2018-11-30 09:35:52 +0100661 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200662 ]
663 }
664
665 rtc_source_set("rtc_api_unittests") {
666 testonly = true
667
668 sources = [
669 "array_view_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200670 "rtcerror_unittest.cc",
671 "rtpparameters_unittest.cc",
672 "test/loopback_media_transport_unittest.cc",
673 ]
674
675 if (!build_with_chromium && is_clang) {
676 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
677 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
678 }
679
680 deps = [
681 ":array_view",
682 ":libjingle_peerconnection_api",
683 ":loopback_media_transport",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200684 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100685 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200686 "../rtc_base:rtc_base_approved",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200687 "../test:test_support",
688 "units:units_unittests",
689 ]
690 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700691}