blob: 6ec5f23fd441e1d0c7711450de4785c669d30906 [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 = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +020051 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070052 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020053 "candidate.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010054 "cryptoparams.h",
kjellanderc76dc952016-06-03 03:09:32 -070055 "datachannelinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070056 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080057 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070058 "jsep.h",
kjellanderc76dc952016-06-03 03:09:32 -070059 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070060 "jsepsessiondescription.h",
kjellanderc76dc952016-06-03 03:09:32 -070061 "mediaconstraintsinterface.cc",
62 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -080063 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +010064 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070065 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -070066 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -080067 "mediatypes.cc",
68 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -070069 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -070070 "peerconnectionfactoryproxy.h",
Niels Möller8366e172018-02-14 12:20:13 +010071 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070072 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -070073 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -070074 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -080075 "rtcerror.cc",
76 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +010077 "rtp_headers.cc",
78 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020079 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -070080 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010081 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070082 "rtpreceiverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070083 "rtpsenderinterface.h",
Steve Anton6e634bf2017-11-13 10:44:53 -080084 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +010085 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070086 "statstypes.cc",
87 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +020088 "turncustomizer.h",
Steve Antonf2737d22017-10-31 16:27:34 -070089 "umametrics.cc",
ossu7bb87ee2017-01-23 04:56:25 -080090 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -070091 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -070092 ]
93
kjellandere40a7ee2016-10-16 23:56:12 -070094 if (!build_with_chromium && is_clang) {
kjellanderfd5b4e92016-06-13 12:08:33 -070095 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070096 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderc76dc952016-06-03 03:09:32 -070097 }
98
kjellanderc76dc952016-06-03 03:09:32 -070099 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100100 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100101 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100102 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100103 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100104 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700105 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100106 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100107 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200108 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200109 "transport:network_control",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200110 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200111 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100112
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 14:40:10 +0100116 "..:typedefs",
kjellander8a116632017-04-21 05:17:08 -0700117 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100118 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100119 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100120 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100121 "../rtc_base:checks",
122 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700123 "../rtc_base:rtc_base",
124 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100125 "../rtc_base:stringutils",
kjellanderc76dc952016-06-03 03:09:32 -0700126 ]
Niels Möller8366e172018-02-14 12:20:13 +0100127
kjellander8a116632017-04-21 05:17:08 -0700128 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100129 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700130 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
131 }
ossu7bb87ee2017-01-23 04:56:25 -0800132}
kjellanderc76dc952016-06-03 03:09:32 -0700133
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200134rtc_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",
168 ]
169 if (!build_with_chromium && is_clang) {
170 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
171 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
172 }
173 }
174}
175
Elad Alon80810732017-10-06 13:07:32 +0200176rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000177 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200178 sources = [
179 "rtceventlogoutput.h",
180 ]
181}
182
deadbeefe814a0d2017-02-25 18:15:09 -0800183rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000184 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800185 sources = [
zhihuang55adc0e2017-03-10 18:33:45 -0800186 "ortc/mediadescription.cc",
187 "ortc/mediadescription.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800188 "ortc/ortcfactoryinterface.h",
189 "ortc/ortcrtpreceiverinterface.h",
190 "ortc/ortcrtpsenderinterface.h",
191 "ortc/packettransportinterface.h",
192 "ortc/rtptransportcontrollerinterface.h",
193 "ortc/rtptransportinterface.h",
zhihuang55adc0e2017-03-10 18:33:45 -0800194 "ortc/sessiondescription.cc",
195 "ortc/sessiondescription.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800196 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800197 "ortc/udptransportinterface.h",
198 ]
199
200 # For mediastreaminterface.h, etc.
201 # TODO(deadbeef): Create a separate target for the common things ORTC and
202 # PeerConnection code shares, so that ortc_api can depend on that instead of
203 # libjingle_peerconnection_api.
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100204 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800205 ":libjingle_peerconnection_api",
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100206 "..:webrtc_common",
207 "../rtc_base:rtc_base",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200208 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800209 ]
zhihuang55adc0e2017-03-10 18:33:45 -0800210 if (!build_with_chromium && is_clang) {
211 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
212 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
213 }
deadbeefe814a0d2017-02-25 18:15:09 -0800214}
215
hbos74e1a4f2016-09-15 23:33:01 -0700216rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000217 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700218 cflags = []
219 sources = [
220 "stats/rtcstats.h",
221 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800222 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700223 "stats/rtcstatsreport.h",
224 ]
225
226 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100227 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700228 "../rtc_base:rtc_base_approved",
hbos74e1a4f2016-09-15 23:33:01 -0700229 ]
230}
231
Niels Möllera6fe2612018-01-19 11:28:54 +0100232rtc_source_set("audio_options_api") {
233 visibility = [ "*" ]
234 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200235 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100236 "audio_options.h",
237 ]
238
239 deps = [
Niels Möllera6fe2612018-01-19 11:28:54 +0100240 "../rtc_base:rtc_base_approved",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200241 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100242 ]
243}
244
aleloia8eb7562016-11-28 07:02:13 -0800245rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000246 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800247 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100248 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800249 "call/transport.h",
250 ]
251}
nisseb2250e52016-12-02 04:01:14 -0800252
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200253rtc_source_set("simulated_network_api") {
254 visibility = [ "*" ]
255 sources = [
256 "test/simulated_network.h",
257 ]
258 deps = [
259 ":optional",
260 "../rtc_base:criticalsection",
261 "../rtc_base:rtc_base",
262 ]
263}
264
Ying Wang3b790f32018-01-19 17:58:57 +0100265rtc_source_set("fec_controller_api") {
266 visibility = [ "*" ]
267 sources = [
268 "fec_controller.h",
269 ]
270
271 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100272 "..:webrtc_common",
273 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100274 ]
275}
276
kwiberg529662a2017-09-04 05:43:17 -0700277rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000278 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700279 sources = [
280 "array_view.h",
281 ]
282 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100283 "../rtc_base:checks",
284 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700285 ]
286}
287
Danil Chapovalov9dce71b2018-06-11 07:48:31 +0000288# TODO(bugs.webrtc.org/9078): Deprecated, replaced by absl/types:optional.
289# Delete after webrtc and downstreams users are updated.
kwiberg84f6a3f2017-09-05 08:43:13 -0700290rtc_source_set("optional") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000291 visibility = [ "*" ]
kwiberg84f6a3f2017-09-05 08:43:13 -0700292 sources = [
kwiberg84f6a3f2017-09-05 08:43:13 -0700293 "optional.h",
294 ]
295 deps = [
Danil Chapovalov9dce71b2018-06-11 07:48:31 +0000296 "//third_party/abseil-cpp/absl/types:optional",
kwiberg84f6a3f2017-09-05 08:43:13 -0700297 ]
298}
299
Niels Möller9155e492017-10-23 11:22:30 +0200300rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000301 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200302 sources = [
303 "refcountedbase.h",
304 ]
305 deps = [
306 "../rtc_base:rtc_base_approved",
307 ]
308}
309
kjellander1993b1d2017-03-06 00:29:21 -0800310rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000311 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800312 testonly = true
313 sources = [
314 "test/fakeconstraints.h",
315 ]
316
kjellander1993b1d2017-03-06 00:29:21 -0800317 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100318 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700319 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800320 ]
321}
322
kjellanderfd5b4e92016-06-13 12:08:33 -0700323if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100324 if (rtc_enable_protobuf) {
325 rtc_source_set("audioproc_f_api") {
326 visibility = [ "*" ]
327 testonly = true
328 sources = [
329 "test/audioproc_float.cc",
330 "test/audioproc_float.h",
331 ]
332
333 deps = [
334 "../modules/audio_processing:audio_processing",
335 "../modules/audio_processing:audioproc_f_impl",
336 ]
337 }
338 }
339
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200340 rtc_source_set("simulcast_test_fixture_api") {
341 visibility = [ "*" ]
342 testonly = true
343 sources = [
344 "test/simulcast_test_fixture.h",
345 ]
346 }
347
348 rtc_source_set("create_simulcast_test_fixture_api") {
349 visibility = [ "*" ]
350 testonly = true
351 sources = [
352 "test/create_simulcast_test_fixture.cc",
353 "test/create_simulcast_test_fixture.h",
354 ]
355 deps = [
356 ":simulcast_test_fixture_api",
357 "../modules/video_coding:simulcast_test_fixture_impl",
358 "../rtc_base:rtc_base_approved",
359 "video_codecs:video_codecs_api",
360 ]
361 if (!build_with_chromium && is_clang) {
362 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
363 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
364 }
365 }
366
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200367 rtc_source_set("videocodec_test_fixture_api") {
368 visibility = [ "*" ]
369 testonly = true
370 sources = [
371 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200372 "test/videocodec_test_stats.cc",
373 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200374 ]
375 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200376 "..:webrtc_common",
377 "../modules/video_coding:video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200378 "video_codecs:video_codecs_api",
379 ]
380 }
381
382 rtc_source_set("create_videocodec_test_fixture_api") {
383 visibility = [ "*" ]
384 testonly = true
385 sources = [
386 "test/create_videocodec_test_fixture.cc",
387 "test/create_videocodec_test_fixture.h",
388 ]
389 deps = [
390 ":videocodec_test_fixture_api",
391 "../modules/video_coding:video_codecs_test_framework",
392 "../modules/video_coding:videocodec_test_impl",
393 "../rtc_base:rtc_base_approved",
394 "video_codecs:video_codecs_api",
395 ]
396 if (!build_with_chromium && is_clang) {
397 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
398 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
399 }
400 }
401
kjellander2f6af9c2017-03-02 22:26:23 -0800402 rtc_source_set("mock_audio_mixer") {
403 testonly = true
404 sources = [
405 "test/mock_audio_mixer.h",
406 ]
407
kjellander2f6af9c2017-03-02 22:26:23 -0800408 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700409 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100410 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800411 ]
412 }
413
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100414 rtc_source_set("mock_rtp") {
415 testonly = true
416 sources = [
417 "test/mock_rtpreceiver.h",
418 "test/mock_rtpsender.h",
419 ]
420
421 deps = [
422 ":libjingle_peerconnection_api",
423 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100424 ]
425 }
426
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700427 rtc_source_set("mock_video_codec_factory") {
428 testonly = true
429 sources = [
430 "test/mock_video_decoder_factory.h",
431 "test/mock_video_encoder_factory.h",
432 ]
433
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700434 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100435 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700436 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700437 ]
438 }
439
kjellander2f6af9c2017-03-02 22:26:23 -0800440 rtc_source_set("fakemetricsobserver") {
441 testonly = true
442 sources = [
443 "fakemetricsobserver.cc",
444 "fakemetricsobserver.h",
445 ]
446 deps = [
Edward Lemur872cf382017-11-20 18:41:50 +0100447 "../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100448 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700449 "../rtc_base:rtc_base_approved",
kjellander2f6af9c2017-03-02 22:26:23 -0800450 ]
451 if (!build_with_chromium && is_clang) {
452 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
453 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
454 }
Dan Minor9c686132018-01-15 10:20:00 -0500455 if (!build_with_mozilla) {
456 deps += [ ":libjingle_peerconnection_api" ]
457 }
kjellander2f6af9c2017-03-02 22:26:23 -0800458 }
459
deadbeefb5388d72017-02-24 01:17:43 -0800460 rtc_source_set("rtc_api_unittests") {
deadbeef6038e972017-02-16 23:31:33 -0800461 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700462
deadbeef6038e972017-02-16 23:31:33 -0800463 sources = [
kwiberg529662a2017-09-04 05:43:17 -0700464 "array_view_unittest.cc",
Danil Chapovalov9dce71b2018-06-11 07:48:31 +0000465
466 # TODO(bugs.webrtc.org/8821): Remove optional_unittests when webrtc starts
467 # running absl unittest on each commit.
kwiberg84f6a3f2017-09-05 08:43:13 -0700468 "optional_unittest.cc",
zhihuang55adc0e2017-03-10 18:33:45 -0800469 "ortc/mediadescription_unittest.cc",
470 "ortc/sessiondescription_unittest.cc",
deadbeef6038e972017-02-16 23:31:33 -0800471 "rtcerror_unittest.cc",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200472 "rtpparameters_unittest.cc",
deadbeef6038e972017-02-16 23:31:33 -0800473 ]
474
475 if (!build_with_chromium && is_clang) {
476 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
477 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
478 }
479
480 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700481 ":array_view",
deadbeef6038e972017-02-16 23:31:33 -0800482 ":libjingle_peerconnection_api",
Henrik Boström31638672017-11-23 17:48:32 +0100483 ":libjingle_peerconnection_test_api",
kwiberg84f6a3f2017-09-05 08:43:13 -0700484 ":optional",
zhihuang55adc0e2017-03-10 18:33:45 -0800485 ":ortc_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100486 "../rtc_base:checks",
kwiberg529662a2017-09-04 05:43:17 -0700487 "../rtc_base:rtc_base_approved",
488 "../rtc_base:rtc_base_tests_utils",
jianjun.zhuc0247402017-07-11 06:20:45 -0700489 "../test:test_support",
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +0200490 "units:units_unittests",
deadbeef6038e972017-02-16 23:31:33 -0800491 ]
deadbeef6038e972017-02-16 23:31:33 -0800492 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700493}