blob: d4ee2a533a3d477cc191278d9b0920715672051e [file] [log] [blame]
kjellanderc76dc952016-06-03 03:09:32 -07001# Copyright (c) 2016 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")
ossu7bb87ee2017-01-23 04:56:25 -080010if (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("pc") {
kjellander705ecc52016-09-15 00:53:26 -070016 public_deps = [
kjellanderc76dc952016-06-03 03:09:32 -070017 ":rtc_pc",
18 ]
19}
20
21config("rtc_pc_config") {
jbaucheaa9c1d2017-03-06 11:32:22 -080022 defines = []
deadbeef40610e22016-12-22 10:53:38 -080023 if (rtc_enable_sctp) {
24 defines += [ "HAVE_SCTP" ]
25 }
kjellanderc76dc952016-06-03 03:09:32 -070026}
27
zhihuang38ede132017-06-15 12:52:32 -070028rtc_static_library("rtc_pc_base") {
kjellanderc76dc952016-06-03 03:09:32 -070029 defines = []
30 sources = [
31 "audiomonitor.cc",
32 "audiomonitor.h",
33 "bundlefilter.cc",
34 "bundlefilter.h",
35 "channel.cc",
36 "channel.h",
37 "channelmanager.cc",
38 "channelmanager.h",
39 "currentspeakermonitor.cc",
40 "currentspeakermonitor.h",
Zhi Huangf2d7beb2017-11-20 14:35:11 -080041 "dtlssrtptransport.cc",
42 "dtlssrtptransport.h",
jbauchdfcab722017-03-06 00:14:10 -080043 "externalhmac.cc",
44 "externalhmac.h",
kjellanderc76dc952016-06-03 03:09:32 -070045 "mediamonitor.cc",
46 "mediamonitor.h",
47 "mediasession.cc",
48 "mediasession.h",
kjellanderc76dc952016-06-03 03:09:32 -070049 "rtcpmuxfilter.cc",
50 "rtcpmuxfilter.h",
zsteind48dbda2017-04-04 19:45:57 -070051 "rtptransport.cc",
52 "rtptransport.h",
zstein398c3fd2017-07-19 13:38:02 -070053 "rtptransportinternal.h",
Zhi Huangf2d7beb2017-11-20 14:35:11 -080054 "rtptransportinternaladapter.h",
kjellanderc76dc952016-06-03 03:09:32 -070055 "srtpfilter.cc",
56 "srtpfilter.h",
zstein4dde3df2017-07-07 14:26:25 -070057 "srtpsession.cc",
58 "srtpsession.h",
zstein398c3fd2017-07-19 13:38:02 -070059 "srtptransport.cc",
60 "srtptransport.h",
Zhi Huangb5261582017-09-29 10:51:43 -070061 "transportcontroller.cc",
62 "transportcontroller.h",
kjellanderc76dc952016-06-03 03:09:32 -070063 "voicechannel.h",
64 ]
65
66 deps = [
mbonadei7d9a55b2017-06-01 13:01:48 -070067 "..:webrtc_common",
kjellandera69d9732016-08-31 07:33:05 -070068 "../api:call_api",
mbonadei7d9a55b2017-06-01 13:01:48 -070069 "../api:libjingle_peerconnection_api",
kwiberg84f6a3f2017-09-05 08:43:13 -070070 "../api:optional",
mbonadei7d9a55b2017-06-01 13:01:48 -070071 "../api:ortc_api",
zhihuang38ede132017-06-15 12:52:32 -070072 "../media:rtc_data",
zhihuang130ca7e2017-06-21 01:02:59 -070073 "../media:rtc_h264_profile_id",
zhihuang38ede132017-06-15 12:52:32 -070074 "../media:rtc_media_base",
mbonadei7d9a55b2017-06-01 13:01:48 -070075 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -070076 "../rtc_base:rtc_base",
77 "../rtc_base:rtc_task_queue",
kjellanderc76dc952016-06-03 03:09:32 -070078 ]
79
kjellanderc76dc952016-06-03 03:09:32 -070080 if (rtc_build_libsrtp) {
81 deps += [ "//third_party/libsrtp" ]
82 }
83
ehmaldonadoe9cc6862016-09-05 06:10:18 -070084 public_configs = [ ":rtc_pc_config" ]
kjellanderc76dc952016-06-03 03:09:32 -070085
kjellandere40a7ee2016-10-16 23:56:12 -070086 if (!build_with_chromium && is_clang) {
kjellander142f8c52016-06-13 00:08:24 -070087 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070088 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderc76dc952016-06-03 03:09:32 -070089 }
90}
kjellander142f8c52016-06-13 00:08:24 -070091
zhihuang38ede132017-06-15 12:52:32 -070092rtc_source_set("rtc_pc") {
93 public_deps = [
94 ":rtc_pc_base",
95 ]
96
97 deps = [
98 "../media:rtc_audio_video",
99 ]
100}
101
ossu7bb87ee2017-01-23 04:56:25 -0800102config("libjingle_peerconnection_warnings_config") {
103 # GN orders flags on a target before flags from configs. The default config
104 # adds these flags so to cancel them out they need to come from a config and
105 # cannot be on the target directly.
106 if (!is_win && !is_clang) {
107 cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
108 }
109}
110
zhihuang38ede132017-06-15 12:52:32 -0700111rtc_static_library("peerconnection") {
ossu7bb87ee2017-01-23 04:56:25 -0800112 cflags = []
113 sources = [
114 "audiotrack.cc",
115 "audiotrack.h",
116 "datachannel.cc",
117 "datachannel.h",
118 "dtmfsender.cc",
119 "dtmfsender.h",
deadbeef1dcb1642017-03-29 21:08:16 -0700120 "iceserverparsing.cc",
121 "iceserverparsing.h",
ossu7bb87ee2017-01-23 04:56:25 -0800122 "jsepicecandidate.cc",
123 "jsepsessiondescription.cc",
124 "localaudiosource.cc",
125 "localaudiosource.h",
ossu7bb87ee2017-01-23 04:56:25 -0800126 "mediastream.cc",
127 "mediastream.h",
128 "mediastreamobserver.cc",
129 "mediastreamobserver.h",
130 "mediastreamtrack.h",
ossu7bb87ee2017-01-23 04:56:25 -0800131 "peerconnection.cc",
132 "peerconnection.h",
133 "peerconnectionfactory.cc",
134 "peerconnectionfactory.h",
135 "remoteaudiosource.cc",
136 "remoteaudiosource.h",
137 "rtcstatscollector.cc",
138 "rtcstatscollector.h",
139 "rtpreceiver.cc",
140 "rtpreceiver.h",
141 "rtpsender.cc",
142 "rtpsender.h",
Steve Anton6e634bf2017-11-13 10:44:53 -0800143 "rtptransceiver.cc",
144 "rtptransceiver.h",
ossu7bb87ee2017-01-23 04:56:25 -0800145 "sctputils.cc",
146 "sctputils.h",
Steve Anton97a9f762017-10-06 10:14:03 -0700147 "sdputils.cc",
148 "sdputils.h",
ossu7bb87ee2017-01-23 04:56:25 -0800149 "statscollector.cc",
150 "statscollector.h",
151 "streamcollection.h",
deadbeef804c1af2017-02-11 19:07:31 -0800152 "trackmediainfomap.cc",
153 "trackmediainfomap.h",
ossu7bb87ee2017-01-23 04:56:25 -0800154 "videocapturertracksource.cc",
155 "videocapturertracksource.h",
156 "videotrack.cc",
157 "videotrack.h",
158 "videotracksource.cc",
159 "videotracksource.h",
160 "webrtcsdp.cc",
161 "webrtcsdp.h",
ossu7bb87ee2017-01-23 04:56:25 -0800162 "webrtcsessiondescriptionfactory.cc",
163 "webrtcsessiondescriptionfactory.h",
164 ]
165
166 configs += [ ":libjingle_peerconnection_warnings_config" ]
167
168 if (!build_with_chromium && is_clang) {
169 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
170 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
171 }
172
173 deps = [
zhihuang38ede132017-06-15 12:52:32 -0700174 ":rtc_pc_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700175 "..:webrtc_common",
ossu7bb87ee2017-01-23 04:56:25 -0800176 "../api:call_api",
kwiberg84f6a3f2017-09-05 08:43:13 -0700177 "../api:optional",
ossu7bb87ee2017-01-23 04:56:25 -0800178 "../api:rtc_stats_api",
ilnikd60d06a2017-04-05 03:02:20 -0700179 "../api/video_codecs:video_codecs_api",
zhihuang38ede132017-06-15 12:52:32 -0700180 "../call:call_interfaces",
mbonadei7d9a55b2017-06-01 13:01:48 -0700181 "../logging:rtc_event_log_api",
zhihuang38ede132017-06-15 12:52:32 -0700182 "../media:rtc_data",
183 "../media:rtc_media_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700184 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700185 "../rtc_base:rtc_base",
186 "../rtc_base:rtc_base_approved",
ossu7bb87ee2017-01-23 04:56:25 -0800187 "../stats",
mbonadei7d9a55b2017-06-01 13:01:48 -0700188 "../system_wrappers:system_wrappers",
ossu7bb87ee2017-01-23 04:56:25 -0800189 ]
190
ossuda250062017-01-23 07:37:43 -0800191 public_deps = [
192 "../api:libjingle_peerconnection_api",
193 ]
zhihuang38ede132017-06-15 12:52:32 -0700194}
195
196# This target implements CreatePeerConnectionFactory methods that will create a
197# PeerConnection will full functionality (audio, video and data). Applications
198# that wish to reduce their binary size by ommitting functionality they don't
199# need should use CreateModularCreatePeerConnectionFactory instead, using the
200# "peerconnection" build target and other targets specific to their
201# requrements. See comment in peerconnectionfactoryinterface.h.
zhihuangab97e182017-06-22 01:28:59 -0700202rtc_static_library("create_pc_factory") {
zhihuang38ede132017-06-15 12:52:32 -0700203 sources = [
204 "createpeerconnectionfactory.cc",
205 ]
206
207 deps = [
208 "../api:audio_mixer_api",
209 "../api:libjingle_peerconnection_api",
Edward Lemur872cf382017-11-20 18:41:50 +0100210 "../api:peerconnection_and_implicit_call_api",
zhihuang38ede132017-06-15 12:52:32 -0700211 "../api/audio_codecs:audio_codecs_api",
Magnus Jedvert58b03162017-09-15 19:02:47 +0200212 "../api/video_codecs:video_codecs_api",
zhihuang38ede132017-06-15 12:52:32 -0700213 "../call",
214 "../call:call_interfaces",
215 "../logging:rtc_event_log_api",
216 "../media:rtc_audio_video",
Edward Lemur872cf382017-11-20 18:41:50 +0100217 "../media:rtc_media_base",
zhihuang38ede132017-06-15 12:52:32 -0700218 "../modules/audio_device:audio_device",
peaha9cc40b2017-06-29 08:32:09 -0700219 "../modules/audio_processing:audio_processing",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700220 "../rtc_base:rtc_base",
221 "../rtc_base:rtc_base_approved",
zhihuang38ede132017-06-15 12:52:32 -0700222 ]
223
224 configs += [ ":libjingle_peerconnection_warnings_config" ]
225
226 if (!build_with_chromium && is_clang) {
227 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
228 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
229 }
230}
231
232rtc_source_set("libjingle_peerconnection") {
233 public_deps = [
234 ":create_pc_factory",
235 ":peerconnection",
236 "../api:libjingle_peerconnection_api",
237 ]
ossu7bb87ee2017-01-23 04:56:25 -0800238}
239
kjellander142f8c52016-06-13 00:08:24 -0700240if (rtc_include_tests) {
241 config("rtc_pc_unittests_config") {
242 # GN orders flags on a target before flags from configs. The default config
243 # adds -Wall, and this flag have to be after -Wall -- so they need to
244 # come from a config and can't be on the target directly.
245 if (!is_win && !is_clang) {
246 cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
247 }
248 }
249
ehmaldonado38a21322016-09-02 04:10:34 -0700250 rtc_test("rtc_pc_unittests") {
kjellander142f8c52016-06-13 00:08:24 -0700251 testonly = true
252
253 sources = [
254 "bundlefilter_unittest.cc",
255 "channel_unittest.cc",
256 "channelmanager_unittest.cc",
257 "currentspeakermonitor_unittest.cc",
Zhi Huangf2d7beb2017-11-20 14:35:11 -0800258 "dtlssrtptransport_unittest.cc",
kjellander142f8c52016-06-13 00:08:24 -0700259 "mediasession_unittest.cc",
260 "rtcpmuxfilter_unittest.cc",
zstein56162b92017-04-24 16:54:35 -0700261 "rtptransport_unittest.cc",
zstein398c3fd2017-07-19 13:38:02 -0700262 "rtptransporttestutil.h",
kjellander142f8c52016-06-13 00:08:24 -0700263 "srtpfilter_unittest.cc",
zstein4dde3df2017-07-07 14:26:25 -0700264 "srtpsession_unittest.cc",
265 "srtptestutil.h",
zstein398c3fd2017-07-19 13:38:02 -0700266 "srtptransport_unittest.cc",
Zhi Huangb5261582017-09-29 10:51:43 -0700267 "transportcontroller_unittest.cc",
kjellander142f8c52016-06-13 00:08:24 -0700268 ]
269
270 include_dirs = [ "//third_party/libsrtp/srtp" ]
271
ehmaldonado7a2ce0b2016-09-05 01:35:44 -0700272 configs += [ ":rtc_pc_unittests_config" ]
kjellander142f8c52016-06-13 00:08:24 -0700273
kjellandere40a7ee2016-10-16 23:56:12 -0700274 if (!build_with_chromium && is_clang) {
kjellander142f8c52016-06-13 00:08:24 -0700275 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700276 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander142f8c52016-06-13 00:08:24 -0700277 }
278
279 if (is_win) {
280 libs = [ "strmiids.lib" ]
281 }
282
283 deps = [
ossu7bb87ee2017-01-23 04:56:25 -0800284 ":libjingle_peerconnection",
Zhi Huangb5261582017-09-29 10:51:43 -0700285 ":pc_test_utils",
kjellander142f8c52016-06-13 00:08:24 -0700286 ":rtc_pc",
kwiberg529662a2017-09-04 05:43:17 -0700287 "../api:array_view",
mbonadei7d9a55b2017-06-01 13:01:48 -0700288 "../logging:rtc_event_log_api",
289 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700290 "../media:rtc_media_tests_utils",
mbonadei7d9a55b2017-06-01 13:01:48 -0700291 "../p2p:p2p_test_utils",
292 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700293 "../rtc_base:rtc_base",
294 "../rtc_base:rtc_base_approved",
295 "../rtc_base:rtc_base_tests_main",
296 "../rtc_base:rtc_base_tests_utils",
kjellander142f8c52016-06-13 00:08:24 -0700297 "../system_wrappers:metrics_default",
zstein398c3fd2017-07-19 13:38:02 -0700298 "../test:test_support",
kjellander142f8c52016-06-13 00:08:24 -0700299 ]
300
301 if (rtc_build_libsrtp) {
302 deps += [ "//third_party/libsrtp" ]
303 }
304
305 if (is_android) {
306 deps += [ "//testing/android/native_test:native_test_support" ]
307 }
308 }
ossu7bb87ee2017-01-23 04:56:25 -0800309
deadbeefe814a0d2017-02-25 18:15:09 -0800310 rtc_source_set("pc_test_utils") {
311 testonly = true
312 sources = [
313 "test/fakeaudiocapturemodule.cc",
314 "test/fakeaudiocapturemodule.h",
315 "test/fakedatachannelprovider.h",
316 "test/fakeperiodicvideocapturer.h",
317 "test/fakertccertificategenerator.h",
Steve Antonda6c0952017-10-23 11:41:54 -0700318 "test/fakesctptransport.h",
Zhi Huangb5261582017-09-29 10:51:43 -0700319 "test/faketransportcontroller.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800320 "test/fakevideotrackrenderer.h",
321 "test/fakevideotracksource.h",
322 "test/mock_datachannel.h",
323 "test/mock_peerconnection.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800324 "test/mockpeerconnectionobservers.h",
325 "test/peerconnectiontestwrapper.cc",
326 "test/peerconnectiontestwrapper.h",
327 "test/rtcstatsobtainer.h",
328 "test/testsdpstrings.h",
329 ]
330
331 deps = [
332 ":libjingle_peerconnection",
Zhi Huangb5261582017-09-29 10:51:43 -0700333 ":rtc_pc_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700334 "..:webrtc_common",
335 "../api:libjingle_peerconnection_test_api",
Edward Lemur872cf382017-11-20 18:41:50 +0100336 "../api:peerconnection_and_implicit_call_api",
mbonadei7d9a55b2017-06-01 13:01:48 -0700337 "../api:rtc_stats_api",
zhihuang38ede132017-06-15 12:52:32 -0700338 "../call:call_interfaces",
339 "../logging:rtc_event_log_api",
mbonadei7d9a55b2017-06-01 13:01:48 -0700340 "../media:rtc_media",
Edward Lemur872cf382017-11-20 18:41:50 +0100341 "../media:rtc_media_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700342 "../media:rtc_media_tests_utils",
343 "../modules/audio_device:audio_device",
344 "../p2p:p2p_test_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700345 "../rtc_base:rtc_base",
346 "../rtc_base:rtc_base_approved",
347 "../rtc_base:rtc_base_tests_utils",
mbonadei7d9a55b2017-06-01 13:01:48 -0700348 "../test:test_support",
deadbeefe814a0d2017-02-25 18:15:09 -0800349 "//testing/gmock",
350 ]
351
352 if (!build_with_chromium && is_clang) {
353 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
354 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
355 }
356 }
357
ossu7bb87ee2017-01-23 04:56:25 -0800358 config("peerconnection_unittests_config") {
359 # The warnings below are enabled by default. Since GN orders compiler flags
360 # for a target before flags from configs, the only way to disable such
361 # warnings is by having them in a separate config, loaded from the target.
362 # TODO(kjellander): Make the code compile without disabling these flags.
363 # See https://bugs.webrtc.org/3307.
364 if (is_clang && is_win) {
365 cflags = [
366 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267
367 # for -Wno-sign-compare
368 "-Wno-sign-compare",
ossu7bb87ee2017-01-23 04:56:25 -0800369 ]
370 }
371
372 if (!is_win) {
373 cflags = [ "-Wno-sign-compare" ]
374 }
375 }
376
377 rtc_test("peerconnection_unittests") {
ossu7bb87ee2017-01-23 04:56:25 -0800378 testonly = true
379 sources = [
380 "datachannel_unittest.cc",
381 "dtmfsender_unittest.cc",
deadbeef1dcb1642017-03-29 21:08:16 -0700382 "iceserverparsing_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800383 "jsepsessiondescription_unittest.cc",
384 "localaudiosource_unittest.cc",
385 "mediaconstraintsinterface_unittest.cc",
386 "mediastream_unittest.cc",
Steve Anton6f25b092017-10-23 09:39:20 -0700387 "peerconnection_bundle_unittest.cc",
Steve Anton6b63cd52017-10-06 11:20:31 -0700388 "peerconnection_crypto_unittest.cc",
Steve Antonda6c0952017-10-23 11:41:54 -0700389 "peerconnection_datachannel_unittest.cc",
Steve Antonf1c6db12017-10-13 11:13:35 -0700390 "peerconnection_ice_unittest.cc",
deadbeef1dcb1642017-03-29 21:08:16 -0700391 "peerconnection_integrationtest.cc",
Steve Anton8d3444d2017-10-20 15:30:51 -0700392 "peerconnection_media_unittest.cc",
Henrik Boström933d8b02017-10-10 10:05:16 -0700393 "peerconnection_rtp_unittest.cc",
Steve Anton8d3444d2017-10-20 15:30:51 -0700394 "peerconnection_signaling_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800395 "peerconnectionendtoend_unittest.cc",
396 "peerconnectionfactory_unittest.cc",
397 "peerconnectioninterface_unittest.cc",
Steve Anton94286cb2017-09-26 16:20:19 -0700398 "peerconnectionwrapper.cc",
399 "peerconnectionwrapper.h",
ossu7bb87ee2017-01-23 04:56:25 -0800400 "proxy_unittest.cc",
401 "rtcstats_integrationtest.cc",
402 "rtcstatscollector_unittest.cc",
403 "rtpsenderreceiver_unittest.cc",
404 "sctputils_unittest.cc",
405 "statscollector_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800406 "test/fakeaudiocapturemodule_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800407 "test/testsdpstrings.h",
deadbeef804c1af2017-02-11 19:07:31 -0800408 "trackmediainfomap_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800409 "videocapturertracksource_unittest.cc",
410 "videotrack_unittest.cc",
411 "webrtcsdp_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800412 ]
413
414 if (rtc_enable_sctp) {
415 defines = [ "HAVE_SCTP" ]
416 }
417
418 configs += [ ":peerconnection_unittests_config" ]
419
420 if (!build_with_chromium && is_clang) {
421 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
422 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
423 }
424
425 # TODO(jschuh): Bug 1348: fix this warning.
426 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
427
428 if (is_win) {
429 cflags = [
430 "/wd4245", # conversion from int to size_t, signed/unsigned mismatch.
431 "/wd4389", # signed/unsigned mismatch.
432 ]
433 }
434
ossu7bb87ee2017-01-23 04:56:25 -0800435 deps = []
436 if (is_android) {
Patrik Höglund563934e2017-09-15 09:04:28 +0200437 deps += [ ":android_black_magic" ]
ossu7bb87ee2017-01-23 04:56:25 -0800438 }
439
440 deps += [
441 ":libjingle_peerconnection",
deadbeefe814a0d2017-02-25 18:15:09 -0800442 ":pc_test_utils",
ossu7bb87ee2017-01-23 04:56:25 -0800443 "..:webrtc_common",
444 "../api:fakemetricsobserver",
Patrik Höglund563934e2017-09-15 09:04:28 +0200445 "../api:libjingle_peerconnection_test_api",
446 "../api:rtc_stats_api",
Karl Wibergc5bb00b2017-10-10 23:17:17 +0200447 "../api/audio_codecs:audio_codecs_api",
Patrik Höglund563934e2017-09-15 09:04:28 +0200448 "../api/audio_codecs:builtin_audio_decoder_factory",
449 "../api/audio_codecs:builtin_audio_encoder_factory",
Karl Wibergc5bb00b2017-10-10 23:17:17 +0200450 "../api/audio_codecs/L16:audio_decoder_L16",
451 "../api/audio_codecs/L16:audio_encoder_L16",
Steve Anton8d3444d2017-10-20 15:30:51 -0700452 "../call:call_interfaces",
Elad Alon99c3fe52017-10-13 16:29:40 +0200453 "../logging:rtc_event_log_api",
Steve Anton8d3444d2017-10-20 15:30:51 -0700454 "../logging:rtc_event_log_impl",
Patrik Höglund563934e2017-09-15 09:04:28 +0200455 "../media:rtc_audio_video",
456 "../media:rtc_data", # TODO(phoglund): AFAIK only used for one sctp constant.
457 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700458 "../media:rtc_media_tests_utils",
Patrik Höglund563934e2017-09-15 09:04:28 +0200459 "../modules/audio_processing:audio_processing",
460 "../modules/utility:utility",
461 "../p2p:p2p_test_utils",
462 "../p2p:rtc_p2p",
ossu7bb87ee2017-01-23 04:56:25 -0800463 "../pc:rtc_pc",
Henrik Boström933d8b02017-10-10 10:05:16 -0700464 "../rtc_base:rtc_base",
Patrik Höglund563934e2017-09-15 09:04:28 +0200465 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700466 "../rtc_base:rtc_base_tests_main",
467 "../rtc_base:rtc_base_tests_utils",
ossu7bb87ee2017-01-23 04:56:25 -0800468 "../system_wrappers:metrics_default",
kwiberg2b3aa142017-06-14 03:31:17 -0700469 "../test:audio_codec_mocks",
Patrik Höglund563934e2017-09-15 09:04:28 +0200470 "../test:test_support",
ossu7bb87ee2017-01-23 04:56:25 -0800471 ]
472
473 if (is_android) {
Patrik Höglund563934e2017-09-15 09:04:28 +0200474 deps += [
475 "//testing/android/native_test:native_test_support",
476
477 # We need to depend on this one directly, or classloads will fail for
478 # the voice engine BuildInfo, for instance.
479 "../sdk/android:libjingle_peerconnection_java",
480 ]
ossu7bb87ee2017-01-23 04:56:25 -0800481
482 shard_timeout = 900
483 }
484 }
Patrik Höglund563934e2017-09-15 09:04:28 +0200485
486 if (is_android) {
487 rtc_source_set("android_black_magic") {
488 # The android code uses hacky includes to chromium-base and the ssl code;
489 # having this in a separate target enables us to keep the peerconnection
490 # unit tests clean.
491 check_includes = false
492 testonly = true
493 sources = [
494 "test/androidtestinitializer.cc",
495 "test/androidtestinitializer.h",
496 ]
497 deps = [
498 "../sdk/android:libjingle_peerconnection_jni",
499 "//testing/android/native_test:native_test_support",
500 ]
501 }
502 }
kjellander142f8c52016-06-13 00:08:24 -0700503}