blob: a267894588a6ce4acd700567981bdc70e9639a19 [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
ossu7bb87ee2017-01-23 04:56:25 -080047rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000048 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070049 cflags = []
50 sources = [
Zach Steine20867f2018-08-02 13:20:15 -070051 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020052 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070053 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020054 "candidate.h",
Benjamin Wrightea086912018-08-29 13:06:15 -070055 "crypto/framedecryptorinterface.h",
56 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010057 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020058 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070059 "datachannelinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070060 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080061 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070062 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 11:09:32 +020063 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 03:09:32 -070064 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070065 "jsepsessiondescription.h",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040066 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -070067 "mediaconstraintsinterface.cc",
68 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -080069 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +010070 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070071 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -070072 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -080073 "mediatypes.cc",
74 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -070075 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -070076 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020077 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 12:20:13 +010078 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070079 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -070080 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -070081 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -080082 "rtcerror.cc",
83 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +010084 "rtp_headers.cc",
85 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020086 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -070087 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010088 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070089 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-29 17:02:10 -070090 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070091 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020092 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 10:44:53 -080093 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +010094 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070095 "statstypes.cc",
96 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +020097 "turncustomizer.h",
ossu7bb87ee2017-01-23 04:56:25 -080098 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -070099 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700100 ]
kjellanderc76dc952016-06-03 03:09:32 -0700101 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100102 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100103 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100104 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100105 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100106 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700107 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100108 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100109 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200110 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200111 "transport:network_control",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200112 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200113 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100114
115 # Basically, don't add stuff here. You might break sensitive downstream
116 # targets like pnacl. API should not depend on anything outside of this
117 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700118 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100119 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100120 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100121 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100122 "../rtc_base:checks",
123 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700124 "../rtc_base:rtc_base",
125 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100126 "../rtc_base:stringutils",
kjellanderc76dc952016-06-03 03:09:32 -0700127 ]
Niels Möller8366e172018-02-14 12:20:13 +0100128
kjellander8a116632017-04-21 05:17:08 -0700129 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100130 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700131 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
132 }
ossu7bb87ee2017-01-23 04:56:25 -0800133}
kjellanderc76dc952016-06-03 03:09:32 -0700134
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200135rtc_source_set("video_quality_test_fixture_api") {
136 visibility = [ "*" ]
137 testonly = true
138 sources = [
139 "test/video_quality_test_fixture.h",
140 ]
141 deps = [
142 ":libjingle_peerconnection_api",
143 ":simulated_network_api",
144 "../call:fake_network",
145 "../call:rtp_interfaces",
146 "../test:test_common",
147 "../test:video_test_common",
148 "video_codecs:video_codecs_api",
149 ]
150 if (!build_with_chromium && is_clang) {
151 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
152 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
153 }
154}
155
156if (rtc_include_tests) {
157 rtc_source_set("create_video_quality_test_fixture_api") {
158 visibility = [ "*" ]
159 testonly = true
160 sources = [
161 "test/create_video_quality_test_fixture.cc",
162 "test/create_video_quality_test_fixture.h",
163 ]
164 deps = [
165 ":fec_controller_api",
166 ":video_quality_test_fixture_api",
167 "../rtc_base:ptr_util",
168 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200169 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200170 ]
171 if (!build_with_chromium && is_clang) {
172 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
173 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
174 }
175 }
176}
177
Elad Alon80810732017-10-06 13:07:32 +0200178rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000179 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200180 sources = [
181 "rtceventlogoutput.h",
182 ]
183}
184
deadbeefe814a0d2017-02-25 18:15:09 -0800185rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000186 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800187 sources = [
zhihuang55adc0e2017-03-10 18:33:45 -0800188 "ortc/mediadescription.cc",
189 "ortc/mediadescription.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800190 "ortc/ortcfactoryinterface.h",
191 "ortc/ortcrtpreceiverinterface.h",
192 "ortc/ortcrtpsenderinterface.h",
193 "ortc/packettransportinterface.h",
194 "ortc/rtptransportcontrollerinterface.h",
195 "ortc/rtptransportinterface.h",
zhihuang55adc0e2017-03-10 18:33:45 -0800196 "ortc/sessiondescription.cc",
197 "ortc/sessiondescription.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800198 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800199 "ortc/udptransportinterface.h",
200 ]
201
202 # For mediastreaminterface.h, etc.
203 # TODO(deadbeef): Create a separate target for the common things ORTC and
204 # PeerConnection code shares, so that ortc_api can depend on that instead of
205 # libjingle_peerconnection_api.
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100206 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800207 ":libjingle_peerconnection_api",
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100208 "..:webrtc_common",
209 "../rtc_base:rtc_base",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200210 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800211 ]
zhihuang55adc0e2017-03-10 18:33:45 -0800212 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 }
deadbeefe814a0d2017-02-25 18:15:09 -0800216}
217
hbos74e1a4f2016-09-15 23:33:01 -0700218rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000219 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700220 cflags = []
221 sources = [
222 "stats/rtcstats.h",
223 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800224 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700225 "stats/rtcstatsreport.h",
226 ]
227
228 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100229 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700230 "../rtc_base:rtc_base_approved",
hbos74e1a4f2016-09-15 23:33:01 -0700231 ]
232}
233
Niels Möllera6fe2612018-01-19 11:28:54 +0100234rtc_source_set("audio_options_api") {
235 visibility = [ "*" ]
236 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200237 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100238 "audio_options.h",
239 ]
240
241 deps = [
Danil Chapovalov21652332018-08-31 10:29:07 +0200242 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200243 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100244 ]
245}
246
aleloia8eb7562016-11-28 07:02:13 -0800247rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000248 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800249 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100250 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800251 "call/transport.h",
252 ]
253}
nisseb2250e52016-12-02 04:01:14 -0800254
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200255rtc_source_set("simulated_network_api") {
256 visibility = [ "*" ]
257 sources = [
258 "test/simulated_network.h",
259 ]
260 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200261 "../rtc_base:criticalsection",
262 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200263 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200264 ]
265}
266
Ying Wang3b790f32018-01-19 17:58:57 +0100267rtc_source_set("fec_controller_api") {
268 visibility = [ "*" ]
269 sources = [
270 "fec_controller.h",
271 ]
272
273 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100274 "..:webrtc_common",
275 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100276 ]
277}
278
kwiberg529662a2017-09-04 05:43:17 -0700279rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000280 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700281 sources = [
282 "array_view.h",
283 ]
284 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100285 "../rtc_base:checks",
286 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700287 ]
288}
289
Niels Möller9155e492017-10-23 11:22:30 +0200290rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000291 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200292 sources = [
293 "refcountedbase.h",
294 ]
295 deps = [
296 "../rtc_base:rtc_base_approved",
297 ]
298}
299
kjellander1993b1d2017-03-06 00:29:21 -0800300rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000301 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800302 testonly = true
303 sources = [
304 "test/fakeconstraints.h",
305 ]
306
kjellander1993b1d2017-03-06 00:29:21 -0800307 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100308 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700309 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800310 ]
311}
312
Ivo Creusen55de08e2018-09-03 11:49:27 +0200313rtc_source_set("neteq_simulator_api") {
314 visibility = [ "*" ]
315 sources = [
316 "test/neteq_simulator.cc",
317 "test/neteq_simulator.h",
318 ]
319}
320
kjellanderfd5b4e92016-06-13 12:08:33 -0700321if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100322 if (rtc_enable_protobuf) {
323 rtc_source_set("audioproc_f_api") {
324 visibility = [ "*" ]
325 testonly = true
326 sources = [
327 "test/audioproc_float.cc",
328 "test/audioproc_float.h",
329 ]
330
331 deps = [
332 "../modules/audio_processing:audio_processing",
333 "../modules/audio_processing:audioproc_f_impl",
334 ]
335 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200336
337 rtc_source_set("neteq_simulator_factory") {
338 visibility = [ "*" ]
339 testonly = true
340 sources = [
341 "test/neteq_simulator_factory.cc",
342 "test/neteq_simulator_factory.h",
343 ]
344 deps = [
345 ":neteq_simulator_api",
346 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200347 "../rtc_base:checks",
348 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200349 "//third_party/abseil-cpp/absl/memory",
350 ]
351 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100352 }
353
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200354 rtc_source_set("simulcast_test_fixture_api") {
355 visibility = [ "*" ]
356 testonly = true
357 sources = [
358 "test/simulcast_test_fixture.h",
359 ]
360 }
361
362 rtc_source_set("create_simulcast_test_fixture_api") {
363 visibility = [ "*" ]
364 testonly = true
365 sources = [
366 "test/create_simulcast_test_fixture.cc",
367 "test/create_simulcast_test_fixture.h",
368 ]
369 deps = [
370 ":simulcast_test_fixture_api",
371 "../modules/video_coding:simulcast_test_fixture_impl",
372 "../rtc_base:rtc_base_approved",
373 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200374 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200375 ]
376 if (!build_with_chromium && is_clang) {
377 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
378 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
379 }
380 }
381
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200382 rtc_source_set("videocodec_test_fixture_api") {
383 visibility = [ "*" ]
384 testonly = true
385 sources = [
386 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200387 "test/videocodec_test_stats.cc",
388 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200389 ]
390 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200391 "..:webrtc_common",
392 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200393 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200394 "video_codecs:video_codecs_api",
395 ]
396 }
397
398 rtc_source_set("create_videocodec_test_fixture_api") {
399 visibility = [ "*" ]
400 testonly = true
401 sources = [
402 "test/create_videocodec_test_fixture.cc",
403 "test/create_videocodec_test_fixture.h",
404 ]
405 deps = [
406 ":videocodec_test_fixture_api",
407 "../modules/video_coding:video_codecs_test_framework",
408 "../modules/video_coding:videocodec_test_impl",
409 "../rtc_base:rtc_base_approved",
410 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200411 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200412 ]
413 if (!build_with_chromium && is_clang) {
414 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
415 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
416 }
417 }
418
kjellander2f6af9c2017-03-02 22:26:23 -0800419 rtc_source_set("mock_audio_mixer") {
420 testonly = true
421 sources = [
422 "test/mock_audio_mixer.h",
423 ]
424
kjellander2f6af9c2017-03-02 22:26:23 -0800425 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700426 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100427 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800428 ]
429 }
430
Jiawei Ou651b92e2018-06-29 15:46:44 -0700431 rtc_source_set("mock_peerconnectioninterface") {
432 testonly = true
433 sources = [
434 "test/mock_peerconnectioninterface.h",
435 ]
436
437 deps = [
438 ":libjingle_peerconnection_api",
439 "../test:test_support",
440 ]
441 }
442
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100443 rtc_source_set("mock_rtp") {
444 testonly = true
445 sources = [
446 "test/mock_rtpreceiver.h",
447 "test/mock_rtpsender.h",
448 ]
449
450 deps = [
451 ":libjingle_peerconnection_api",
452 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100453 ]
454 }
455
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700456 rtc_source_set("mock_video_bitrate_allocator") {
457 testonly = true
458 sources = [
459 "test/mock_video_bitrate_allocator.h",
460 ]
461
462 deps = [
463 "../api/video:video_bitrate_allocator",
464 "../test:test_support",
465 ]
466 }
467
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700468 rtc_source_set("mock_video_codec_factory") {
469 testonly = true
470 sources = [
471 "test/mock_video_decoder_factory.h",
472 "test/mock_video_encoder_factory.h",
473 ]
474
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700475 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100476 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700477 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700478 ]
479 }
480
deadbeefb5388d72017-02-24 01:17:43 -0800481 rtc_source_set("rtc_api_unittests") {
deadbeef6038e972017-02-16 23:31:33 -0800482 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700483
deadbeef6038e972017-02-16 23:31:33 -0800484 sources = [
kwiberg529662a2017-09-04 05:43:17 -0700485 "array_view_unittest.cc",
zhihuang55adc0e2017-03-10 18:33:45 -0800486 "ortc/mediadescription_unittest.cc",
487 "ortc/sessiondescription_unittest.cc",
deadbeef6038e972017-02-16 23:31:33 -0800488 "rtcerror_unittest.cc",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200489 "rtpparameters_unittest.cc",
deadbeef6038e972017-02-16 23:31:33 -0800490 ]
491
492 if (!build_with_chromium && is_clang) {
493 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
494 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
495 }
496
497 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700498 ":array_view",
deadbeef6038e972017-02-16 23:31:33 -0800499 ":libjingle_peerconnection_api",
zhihuang55adc0e2017-03-10 18:33:45 -0800500 ":ortc_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100501 "../rtc_base:checks",
kwiberg529662a2017-09-04 05:43:17 -0700502 "../rtc_base:rtc_base_approved",
503 "../rtc_base:rtc_base_tests_utils",
jianjun.zhuc0247402017-07-11 06:20:45 -0700504 "../test:test_support",
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +0200505 "units:units_unittests",
deadbeef6038e972017-02-16 23:31:33 -0800506 ]
deadbeef6038e972017-02-16 23:31:33 -0800507 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700508}