blob: 4357947997971f56627b8af4a0ba99fb02b48246 [file] [log] [blame]
hjonaa32c3e2015-12-14 03:58:111# 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 14:58:229import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 12:55:0010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 10:09:3214
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:5316 visibility = [ "*" ]
Dan Minor9c686132018-01-15 15:20:0017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 10:09:3222}
23
ehmaldonado38a21322016-09-02 11:10:3424rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:5325 visibility = [ "*" ]
kjellandera69d9732016-08-31 14:33:0526 sources = [
kjellandera69d9732016-08-31 14:33:0527 "call/audio_sink.h",
kjellandera69d9732016-08-31 14:33:0528 ]
29
kjellandera69d9732016-08-31 14:33:0530 deps = [
31 # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done.
aleloia8eb7562016-11-28 15:02:1332 ":transport_api",
kjellandera69d9732016-08-31 14:33:0533 "..:webrtc_common",
ehmaldonadof6a861a2017-07-19 17:40:4734 "../rtc_base:rtc_base_approved",
Gustaf Ullberg2ae140a2018-02-16 12:43:4935 "audio:audio_mixer_api",
kwiberg087bd342017-02-10 16:15:4436 "audio_codecs:audio_codecs_api",
kjellandera69d9732016-08-31 14:33:0537 ]
38}
39
Niels Möller8366e172018-02-14 11:20:1340rtc_source_set("callfactory_api") {
41 visibility = [ "*" ]
42 sources = [
43 "call/callfactoryinterface.h",
44 ]
45}
46
ossu7bb87ee2017-01-23 12:56:2547rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:5348 visibility = [ "*" ]
kjellanderc76dc952016-06-03 10:09:3249 cflags = []
50 sources = [
Patrik Höglundb6b29e02018-06-21 14:58:0151 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 18:27:1752 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 12:53:3353 "candidate.h",
Patrik Höglund7aee3d52017-11-15 12:15:1754 "cryptoparams.h",
kjellanderc76dc952016-06-03 10:09:3255 "datachannelinterface.h",
kjellanderc76dc952016-06-03 10:09:3256 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 20:50:2657 "jsep.cc",
kjellanderc76dc952016-06-03 10:09:3258 "jsep.h",
kjellanderc76dc952016-06-03 10:09:3259 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 10:09:3260 "jsepsessiondescription.h",
kjellanderc76dc952016-06-03 10:09:3261 "mediaconstraintsinterface.cc",
62 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 12:56:2563 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 09:38:2164 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 10:09:3265 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 10:09:3266 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 12:56:2567 "mediatypes.cc",
68 "mediatypes.h",
kjellanderc76dc952016-06-03 10:09:3269 "notifier.h",
kjellanderc76dc952016-06-03 10:09:3270 "peerconnectionfactoryproxy.h",
Niels Möller8366e172018-02-14 11:20:1371 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 10:09:3272 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 23:27:3473 "proxy.cc",
kjellanderc76dc952016-06-03 10:09:3274 "proxy.h",
deadbeef6038e972017-02-17 07:31:3375 "rtcerror.cc",
76 "rtcerror.h",
Patrik Höglund3e113432017-12-15 13:40:1077 "rtp_headers.cc",
78 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 13:29:2879 "rtpparameters.cc",
kjellanderc76dc952016-06-03 10:09:3280 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 08:38:3181 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 10:09:3282 "rtpreceiverinterface.h",
kjellanderc76dc952016-06-03 10:09:3283 "rtpsenderinterface.h",
Steve Anton6e634bf2017-11-13 18:44:5384 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 16:48:3285 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 10:09:3286 "statstypes.cc",
87 "statstypes.h",
Jonas Orelandbdcee282017-10-10 12:01:4088 "turncustomizer.h",
Steve Antonf2737d22017-10-31 23:27:3489 "umametrics.cc",
ossu7bb87ee2017-01-23 12:56:2590 "umametrics.h",
kjellanderc76dc952016-06-03 10:09:3291 "videosourceproxy.h",
kjellanderc76dc952016-06-03 10:09:3292 ]
93
kjellandere40a7ee2016-10-17 06:56:1294 if (!build_with_chromium && is_clang) {
kjellanderfd5b4e92016-06-13 19:08:3395 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 11:10:3496 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderc76dc952016-06-03 10:09:3297 }
98
kjellanderc76dc952016-06-03 10:09:3299 deps = [
Patrik Höglund3e113432017-12-15 13:40:10100 ":array_view",
Niels Möllera6fe2612018-01-19 10:28:54101 ":audio_options_api",
Niels Möller8366e172018-02-14 11:20:13102 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 11:50:27103 ":fec_controller_api",
Niels Möller8366e172018-02-14 11:20:13104 ":libjingle_logging_api",
hbos74e1a4f2016-09-16 06:33:01105 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 12:43:49106 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 09:19:58107 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 12:01:37108 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 16:05:10109 "transport:network_control",
Niels Möllerc6ce9c52018-05-11 09:15:30110 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 11:32:56111 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 09:19:58112
113 # Basically, don't add stuff here. You might break sensitive downstream
114 # targets like pnacl. API should not depend on anything outside of this
115 # file, really. All these should arguably go away in time.
Patrik Höglund3e113432017-12-15 13:40:10116 "..:typedefs",
kjellander8a116632017-04-21 12:17:08117 "..:webrtc_common",
Niels Möller8366e172018-02-14 11:20:13118 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 09:37:42119 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 13:32:41120 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 13:40:10121 "../rtc_base:checks",
122 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 17:40:47123 "../rtc_base:rtc_base",
124 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 13:40:10125 "../rtc_base:stringutils",
kjellanderc76dc952016-06-03 10:09:32126 ]
Niels Möller8366e172018-02-14 11:20:13127
kjellander8a116632017-04-21 12:17:08128 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 10:45:31129 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 12:17:08130 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
131 }
ossu7bb87ee2017-01-23 12:56:25132}
kjellanderc76dc952016-06-03 10:09:32133
Patrik Höglundb6b29e02018-06-21 14:58:01134rtc_source_set("video_quality_test_fixture_api") {
135 visibility = [ "*" ]
136 testonly = true
137 sources = [
138 "test/video_quality_test_fixture.h",
139 ]
140 deps = [
141 ":libjingle_peerconnection_api",
142 ":simulated_network_api",
143 "../call:fake_network",
144 "../call:rtp_interfaces",
145 "../test:test_common",
146 "../test:video_test_common",
147 "video_codecs:video_codecs_api",
148 ]
149 if (!build_with_chromium && is_clang) {
150 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
151 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
152 }
153}
154
155if (rtc_include_tests) {
156 rtc_source_set("create_video_quality_test_fixture_api") {
157 visibility = [ "*" ]
158 testonly = true
159 sources = [
160 "test/create_video_quality_test_fixture.cc",
161 "test/create_video_quality_test_fixture.h",
162 ]
163 deps = [
164 ":fec_controller_api",
165 ":video_quality_test_fixture_api",
166 "../rtc_base:ptr_util",
167 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 09:40:33168 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 14:58:01169 ]
170 if (!build_with_chromium && is_clang) {
171 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
172 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
173 }
174 }
175}
176
Elad Alon80810732017-10-06 11:07:32177rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53178 visibility = [ "*" ]
Elad Alon80810732017-10-06 11:07:32179 sources = [
180 "rtceventlogoutput.h",
181 ]
182}
183
deadbeefe814a0d2017-02-26 02:15:09184rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53185 visibility = [ "*" ]
deadbeefe814a0d2017-02-26 02:15:09186 sources = [
zhihuang55adc0e2017-03-11 02:33:45187 "ortc/mediadescription.cc",
188 "ortc/mediadescription.h",
deadbeefe814a0d2017-02-26 02:15:09189 "ortc/ortcfactoryinterface.h",
190 "ortc/ortcrtpreceiverinterface.h",
191 "ortc/ortcrtpsenderinterface.h",
192 "ortc/packettransportinterface.h",
193 "ortc/rtptransportcontrollerinterface.h",
194 "ortc/rtptransportinterface.h",
zhihuang55adc0e2017-03-11 02:33:45195 "ortc/sessiondescription.cc",
196 "ortc/sessiondescription.h",
zhihuangd3501ad2017-03-03 22:39:06197 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-26 02:15:09198 "ortc/udptransportinterface.h",
199 ]
200
201 # For mediastreaminterface.h, etc.
202 # TODO(deadbeef): Create a separate target for the common things ORTC and
203 # PeerConnection code shares, so that ortc_api can depend on that instead of
204 # libjingle_peerconnection_api.
Patrik Höglund7aee3d52017-11-15 12:15:17205 deps = [
deadbeefe814a0d2017-02-26 02:15:09206 ":libjingle_peerconnection_api",
Patrik Höglund7aee3d52017-11-15 12:15:17207 "..:webrtc_common",
208 "../rtc_base:rtc_base",
Danil Chapovalov0bc58cf2018-06-21 11:32:56209 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-26 02:15:09210 ]
zhihuang55adc0e2017-03-11 02:33:45211 if (!build_with_chromium && is_clang) {
212 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
213 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
214 }
deadbeefe814a0d2017-02-26 02:15:09215}
216
hbos74e1a4f2016-09-16 06:33:01217rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53218 visibility = [ "*" ]
hbos74e1a4f2016-09-16 06:33:01219 cflags = []
220 sources = [
221 "stats/rtcstats.h",
222 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 12:56:25223 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-16 06:33:01224 "stats/rtcstatsreport.h",
225 ]
226
227 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:42228 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47229 "../rtc_base:rtc_base_approved",
hbos74e1a4f2016-09-16 06:33:01230 ]
231}
232
Niels Möllera6fe2612018-01-19 10:28:54233rtc_source_set("audio_options_api") {
234 visibility = [ "*" ]
235 sources = [
Paulina Hensman11b34f42018-04-09 12:24:52236 "audio_options.cc",
Niels Möllera6fe2612018-01-19 10:28:54237 "audio_options.h",
238 ]
239
240 deps = [
Niels Möllera6fe2612018-01-19 10:28:54241 "../rtc_base:rtc_base_approved",
Danil Chapovalov0bc58cf2018-06-21 11:32:56242 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 10:28:54243 ]
244}
245
aleloia8eb7562016-11-28 15:02:13246rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53247 visibility = [ "*" ]
aleloia8eb7562016-11-28 15:02:13248 sources = [
Dino Radaković1807d572018-02-22 13:18:06249 "call/transport.cc",
aleloia8eb7562016-11-28 15:02:13250 "call/transport.h",
251 ]
252}
nisseb2250e52016-12-02 12:01:14253
Patrik Höglundb6b29e02018-06-21 14:58:01254rtc_source_set("simulated_network_api") {
255 visibility = [ "*" ]
256 sources = [
257 "test/simulated_network.h",
258 ]
259 deps = [
260 ":optional",
261 "../rtc_base:criticalsection",
262 "../rtc_base:rtc_base",
263 ]
264}
265
Ying Wang3b790f32018-01-19 16:58:57266rtc_source_set("fec_controller_api") {
267 visibility = [ "*" ]
268 sources = [
269 "fec_controller.h",
270 ]
271
272 deps = [
Ying Wang0dd1b0a2018-02-20 11:50:27273 "..:webrtc_common",
274 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 16:58:57275 ]
276}
277
kwiberg529662a2017-09-04 12:43:17278rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53279 visibility = [ "*" ]
kwiberg529662a2017-09-04 12:43:17280 sources = [
281 "array_view.h",
282 ]
283 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:42284 "../rtc_base:checks",
285 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 12:43:17286 ]
287}
288
Danil Chapovalov9dce71b2018-06-11 07:48:31289# TODO(bugs.webrtc.org/9078): Deprecated, replaced by absl/types:optional.
290# Delete after webrtc and downstreams users are updated.
kwiberg84f6a3f2017-09-05 15:43:13291rtc_source_set("optional") {
Per Kjellandera7f2d842018-01-10 15:54:53292 visibility = [ "*" ]
kwiberg84f6a3f2017-09-05 15:43:13293 sources = [
kwiberg84f6a3f2017-09-05 15:43:13294 "optional.h",
295 ]
296 deps = [
Danil Chapovalov9dce71b2018-06-11 07:48:31297 "//third_party/abseil-cpp/absl/types:optional",
kwiberg84f6a3f2017-09-05 15:43:13298 ]
299}
300
Niels Möller9155e492017-10-23 09:22:30301rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53302 visibility = [ "*" ]
Niels Möller9155e492017-10-23 09:22:30303 sources = [
304 "refcountedbase.h",
305 ]
306 deps = [
307 "../rtc_base:rtc_base_approved",
308 ]
309}
310
kjellander1993b1d2017-03-06 08:29:21311rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53312 visibility = [ "*" ]
kjellander1993b1d2017-03-06 08:29:21313 testonly = true
314 sources = [
315 "test/fakeconstraints.h",
316 ]
317
kjellander1993b1d2017-03-06 08:29:21318 deps = [
Mirko Bonadei34814c72018-01-11 09:13:56319 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 17:40:47320 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 08:29:21321 ]
322}
323
kjellanderfd5b4e92016-06-13 19:08:33324if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 11:22:52325 if (rtc_enable_protobuf) {
326 rtc_source_set("audioproc_f_api") {
327 visibility = [ "*" ]
328 testonly = true
329 sources = [
330 "test/audioproc_float.cc",
331 "test/audioproc_float.h",
332 ]
333
334 deps = [
335 "../modules/audio_processing:audio_processing",
336 "../modules/audio_processing:audioproc_f_impl",
337 ]
338 }
339 }
340
Rasmus Brandt0cedc052018-05-31 10:53:00341 rtc_source_set("simulcast_test_fixture_api") {
342 visibility = [ "*" ]
343 testonly = true
344 sources = [
345 "test/simulcast_test_fixture.h",
346 ]
347 }
348
349 rtc_source_set("create_simulcast_test_fixture_api") {
350 visibility = [ "*" ]
351 testonly = true
352 sources = [
353 "test/create_simulcast_test_fixture.cc",
354 "test/create_simulcast_test_fixture.h",
355 ]
356 deps = [
357 ":simulcast_test_fixture_api",
358 "../modules/video_coding:simulcast_test_fixture_impl",
359 "../rtc_base:rtc_base_approved",
360 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 09:40:33361 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 10:53:00362 ]
363 if (!build_with_chromium && is_clang) {
364 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
365 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
366 }
367 }
368
Kári Tristan Helgason9d96e922018-05-04 09:56:55369 rtc_source_set("videocodec_test_fixture_api") {
370 visibility = [ "*" ]
371 testonly = true
372 sources = [
373 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 11:34:14374 "test/videocodec_test_stats.cc",
375 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 09:56:55376 ]
377 deps = [
Kári Tristan Helgason169005d2018-05-22 11:34:14378 "..:webrtc_common",
379 "../modules/video_coding:video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 09:56:55380 "video_codecs:video_codecs_api",
381 ]
382 }
383
384 rtc_source_set("create_videocodec_test_fixture_api") {
385 visibility = [ "*" ]
386 testonly = true
387 sources = [
388 "test/create_videocodec_test_fixture.cc",
389 "test/create_videocodec_test_fixture.h",
390 ]
391 deps = [
392 ":videocodec_test_fixture_api",
393 "../modules/video_coding:video_codecs_test_framework",
394 "../modules/video_coding:videocodec_test_impl",
395 "../rtc_base:rtc_base_approved",
396 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 09:40:33397 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 09:56:55398 ]
399 if (!build_with_chromium && is_clang) {
400 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
401 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
402 }
403 }
404
kjellander2f6af9c2017-03-03 06:26:23405 rtc_source_set("mock_audio_mixer") {
406 testonly = true
407 sources = [
408 "test/mock_audio_mixer.h",
409 ]
410
kjellander2f6af9c2017-03-03 06:26:23411 deps = [
jianjun.zhuc0247402017-07-11 13:20:45412 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 12:43:49413 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-03 06:26:23414 ]
415 }
416
Jiawei Ou651b92e2018-06-29 22:46:44417 rtc_source_set("mock_peerconnectioninterface") {
418 testonly = true
419 sources = [
420 "test/mock_peerconnectioninterface.h",
421 ]
422
423 deps = [
424 ":libjingle_peerconnection_api",
425 "../test:test_support",
426 ]
427 }
428
Patrik Höglund4b9e6ba2017-12-19 09:32:11429 rtc_source_set("mock_rtp") {
430 testonly = true
431 sources = [
432 "test/mock_rtpreceiver.h",
433 "test/mock_rtpsender.h",
434 ]
435
436 deps = [
437 ":libjingle_peerconnection_api",
438 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 09:32:11439 ]
440 }
441
Emircan Uysalerdbcac7f2017-10-31 06:10:12442 rtc_source_set("mock_video_codec_factory") {
443 testonly = true
444 sources = [
445 "test/mock_video_decoder_factory.h",
446 "test/mock_video_encoder_factory.h",
447 ]
448
Emircan Uysalerdbcac7f2017-10-31 06:10:12449 deps = [
Mirko Bonadei34814c72018-01-11 09:13:56450 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-31 06:10:12451 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-31 06:10:12452 ]
453 }
454
kjellander2f6af9c2017-03-03 06:26:23455 rtc_source_set("fakemetricsobserver") {
456 testonly = true
457 sources = [
458 "fakemetricsobserver.cc",
459 "fakemetricsobserver.h",
460 ]
461 deps = [
Edward Lemur872cf382017-11-20 17:41:50462 "../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 15:05:42463 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47464 "../rtc_base:rtc_base_approved",
kjellander2f6af9c2017-03-03 06:26:23465 ]
466 if (!build_with_chromium && is_clang) {
467 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
468 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
469 }
Dan Minor9c686132018-01-15 15:20:00470 if (!build_with_mozilla) {
471 deps += [ ":libjingle_peerconnection_api" ]
472 }
kjellander2f6af9c2017-03-03 06:26:23473 }
474
deadbeefb5388d72017-02-24 09:17:43475 rtc_source_set("rtc_api_unittests") {
deadbeef6038e972017-02-17 07:31:33476 testonly = true
kjellandere0629c02017-04-25 11:04:50477
deadbeef6038e972017-02-17 07:31:33478 sources = [
kwiberg529662a2017-09-04 12:43:17479 "array_view_unittest.cc",
Danil Chapovalov9dce71b2018-06-11 07:48:31480
481 # TODO(bugs.webrtc.org/8821): Remove optional_unittests when webrtc starts
482 # running absl unittest on each commit.
kwiberg84f6a3f2017-09-05 15:43:13483 "optional_unittest.cc",
zhihuang55adc0e2017-03-11 02:33:45484 "ortc/mediadescription_unittest.cc",
485 "ortc/sessiondescription_unittest.cc",
deadbeef6038e972017-02-17 07:31:33486 "rtcerror_unittest.cc",
Stefan Holmer1acbd682017-09-01 13:29:28487 "rtpparameters_unittest.cc",
deadbeef6038e972017-02-17 07:31:33488 ]
489
490 if (!build_with_chromium && is_clang) {
491 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
492 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
493 }
494
495 deps = [
kwiberg529662a2017-09-04 12:43:17496 ":array_view",
deadbeef6038e972017-02-17 07:31:33497 ":libjingle_peerconnection_api",
Henrik Boström31638672017-11-23 16:48:32498 ":libjingle_peerconnection_test_api",
kwiberg84f6a3f2017-09-05 15:43:13499 ":optional",
zhihuang55adc0e2017-03-11 02:33:45500 ":ortc_api",
Patrik Höglunda8005cf2017-12-13 15:05:42501 "../rtc_base:checks",
kwiberg529662a2017-09-04 12:43:17502 "../rtc_base:rtc_base_approved",
503 "../rtc_base:rtc_base_tests_utils",
jianjun.zhuc0247402017-07-11 13:20:45504 "../test:test_support",
Sebastian Jansson6fae6ec2018-05-08 08:43:18505 "units:units_unittests",
deadbeef6038e972017-02-17 07:31:33506 ]
deadbeef6038e972017-02-17 07:31:33507 }
kjellanderfd5b4e92016-06-13 19:08:33508}