blob: 450e6e0d35b552260bdcfe2363fb39e1a3ae0fe6 [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",
jbauchdfcab722017-03-06 00:14:10 -080041 "externalhmac.cc",
42 "externalhmac.h",
kjellanderc76dc952016-06-03 03:09:32 -070043 "mediamonitor.cc",
44 "mediamonitor.h",
45 "mediasession.cc",
46 "mediasession.h",
kjellanderc76dc952016-06-03 03:09:32 -070047 "rtcpmuxfilter.cc",
48 "rtcpmuxfilter.h",
zsteind48dbda2017-04-04 19:45:57 -070049 "rtptransport.cc",
50 "rtptransport.h",
zstein398c3fd2017-07-19 13:38:02 -070051 "rtptransportinternal.h",
kjellanderc76dc952016-06-03 03:09:32 -070052 "srtpfilter.cc",
53 "srtpfilter.h",
zstein4dde3df2017-07-07 14:26:25 -070054 "srtpsession.cc",
55 "srtpsession.h",
zstein398c3fd2017-07-19 13:38:02 -070056 "srtptransport.cc",
57 "srtptransport.h",
Zhi Huangb5261582017-09-29 10:51:43 -070058 "transportcontroller.cc",
59 "transportcontroller.h",
kjellanderc76dc952016-06-03 03:09:32 -070060 "voicechannel.h",
61 ]
62
63 deps = [
mbonadei7d9a55b2017-06-01 13:01:48 -070064 "..:webrtc_common",
kjellandera69d9732016-08-31 07:33:05 -070065 "../api:call_api",
mbonadei7d9a55b2017-06-01 13:01:48 -070066 "../api:libjingle_peerconnection_api",
kwiberg84f6a3f2017-09-05 08:43:13 -070067 "../api:optional",
mbonadei7d9a55b2017-06-01 13:01:48 -070068 "../api:ortc_api",
zhihuang38ede132017-06-15 12:52:32 -070069 "../media:rtc_data",
zhihuang130ca7e2017-06-21 01:02:59 -070070 "../media:rtc_h264_profile_id",
zhihuang38ede132017-06-15 12:52:32 -070071 "../media:rtc_media_base",
mbonadei7d9a55b2017-06-01 13:01:48 -070072 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -070073 "../rtc_base:rtc_base",
74 "../rtc_base:rtc_task_queue",
kjellanderc76dc952016-06-03 03:09:32 -070075 ]
76
kjellanderc76dc952016-06-03 03:09:32 -070077 if (rtc_build_libsrtp) {
78 deps += [ "//third_party/libsrtp" ]
79 }
80
ehmaldonadoe9cc6862016-09-05 06:10:18 -070081 public_configs = [ ":rtc_pc_config" ]
kjellanderc76dc952016-06-03 03:09:32 -070082
kjellandere40a7ee2016-10-16 23:56:12 -070083 if (!build_with_chromium && is_clang) {
kjellander142f8c52016-06-13 00:08:24 -070084 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070085 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderc76dc952016-06-03 03:09:32 -070086 }
87}
kjellander142f8c52016-06-13 00:08:24 -070088
zhihuang38ede132017-06-15 12:52:32 -070089rtc_source_set("rtc_pc") {
90 public_deps = [
91 ":rtc_pc_base",
92 ]
93
94 deps = [
95 "../media:rtc_audio_video",
96 ]
97}
98
ossu7bb87ee2017-01-23 04:56:25 -080099config("libjingle_peerconnection_warnings_config") {
100 # GN orders flags on a target before flags from configs. The default config
101 # adds these flags so to cancel them out they need to come from a config and
102 # cannot be on the target directly.
103 if (!is_win && !is_clang) {
104 cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
105 }
106}
107
zhihuang38ede132017-06-15 12:52:32 -0700108rtc_static_library("peerconnection") {
ossu7bb87ee2017-01-23 04:56:25 -0800109 cflags = []
110 sources = [
111 "audiotrack.cc",
112 "audiotrack.h",
113 "datachannel.cc",
114 "datachannel.h",
115 "dtmfsender.cc",
116 "dtmfsender.h",
deadbeef1dcb1642017-03-29 21:08:16 -0700117 "iceserverparsing.cc",
118 "iceserverparsing.h",
ossu7bb87ee2017-01-23 04:56:25 -0800119 "jsepicecandidate.cc",
120 "jsepsessiondescription.cc",
121 "localaudiosource.cc",
122 "localaudiosource.h",
ossu7bb87ee2017-01-23 04:56:25 -0800123 "mediastream.cc",
124 "mediastream.h",
125 "mediastreamobserver.cc",
126 "mediastreamobserver.h",
127 "mediastreamtrack.h",
ossu7bb87ee2017-01-23 04:56:25 -0800128 "peerconnection.cc",
129 "peerconnection.h",
130 "peerconnectionfactory.cc",
131 "peerconnectionfactory.h",
132 "remoteaudiosource.cc",
133 "remoteaudiosource.h",
134 "rtcstatscollector.cc",
135 "rtcstatscollector.h",
136 "rtpreceiver.cc",
137 "rtpreceiver.h",
138 "rtpsender.cc",
139 "rtpsender.h",
140 "sctputils.cc",
141 "sctputils.h",
Steve Anton97a9f762017-10-06 10:14:03 -0700142 "sdputils.cc",
143 "sdputils.h",
ossu7bb87ee2017-01-23 04:56:25 -0800144 "statscollector.cc",
145 "statscollector.h",
146 "streamcollection.h",
deadbeef804c1af2017-02-11 19:07:31 -0800147 "trackmediainfomap.cc",
148 "trackmediainfomap.h",
ossu7bb87ee2017-01-23 04:56:25 -0800149 "videocapturertracksource.cc",
150 "videocapturertracksource.h",
151 "videotrack.cc",
152 "videotrack.h",
153 "videotracksource.cc",
154 "videotracksource.h",
155 "webrtcsdp.cc",
156 "webrtcsdp.h",
157 "webrtcsession.cc",
158 "webrtcsession.h",
159 "webrtcsessiondescriptionfactory.cc",
160 "webrtcsessiondescriptionfactory.h",
161 ]
162
163 configs += [ ":libjingle_peerconnection_warnings_config" ]
164
165 if (!build_with_chromium && is_clang) {
166 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
167 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
168 }
169
170 deps = [
zhihuang38ede132017-06-15 12:52:32 -0700171 ":rtc_pc_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700172 "..:webrtc_common",
ossu7bb87ee2017-01-23 04:56:25 -0800173 "../api:call_api",
kwiberg84f6a3f2017-09-05 08:43:13 -0700174 "../api:optional",
ossu7bb87ee2017-01-23 04:56:25 -0800175 "../api:rtc_stats_api",
ilnikd60d06a2017-04-05 03:02:20 -0700176 "../api/video_codecs:video_codecs_api",
zhihuang38ede132017-06-15 12:52:32 -0700177 "../call:call_interfaces",
mbonadei7d9a55b2017-06-01 13:01:48 -0700178 "../logging:rtc_event_log_api",
zhihuang38ede132017-06-15 12:52:32 -0700179 "../media:rtc_data",
180 "../media:rtc_media_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700181 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700182 "../rtc_base:rtc_base",
183 "../rtc_base:rtc_base_approved",
ossu7bb87ee2017-01-23 04:56:25 -0800184 "../stats",
mbonadei7d9a55b2017-06-01 13:01:48 -0700185 "../system_wrappers:system_wrappers",
ossu7bb87ee2017-01-23 04:56:25 -0800186 ]
187
ossuda250062017-01-23 07:37:43 -0800188 public_deps = [
189 "../api:libjingle_peerconnection_api",
190 ]
zhihuang38ede132017-06-15 12:52:32 -0700191}
192
193# This target implements CreatePeerConnectionFactory methods that will create a
194# PeerConnection will full functionality (audio, video and data). Applications
195# that wish to reduce their binary size by ommitting functionality they don't
196# need should use CreateModularCreatePeerConnectionFactory instead, using the
197# "peerconnection" build target and other targets specific to their
198# requrements. See comment in peerconnectionfactoryinterface.h.
zhihuangab97e182017-06-22 01:28:59 -0700199rtc_static_library("create_pc_factory") {
zhihuang38ede132017-06-15 12:52:32 -0700200 sources = [
201 "createpeerconnectionfactory.cc",
202 ]
203
204 deps = [
205 "../api:audio_mixer_api",
206 "../api:libjingle_peerconnection_api",
207 "../api/audio_codecs:audio_codecs_api",
Magnus Jedvert58b03162017-09-15 19:02:47 +0200208 "../api/video_codecs:video_codecs_api",
zhihuang38ede132017-06-15 12:52:32 -0700209 "../call",
210 "../call:call_interfaces",
211 "../logging:rtc_event_log_api",
212 "../media:rtc_audio_video",
213 "../modules/audio_device:audio_device",
peaha9cc40b2017-06-29 08:32:09 -0700214 "../modules/audio_processing:audio_processing",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700215 "../rtc_base:rtc_base",
216 "../rtc_base:rtc_base_approved",
zhihuang38ede132017-06-15 12:52:32 -0700217 ]
218
219 configs += [ ":libjingle_peerconnection_warnings_config" ]
220
221 if (!build_with_chromium && is_clang) {
222 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
223 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
224 }
225}
226
227rtc_source_set("libjingle_peerconnection") {
228 public_deps = [
229 ":create_pc_factory",
230 ":peerconnection",
231 "../api:libjingle_peerconnection_api",
232 ]
ossu7bb87ee2017-01-23 04:56:25 -0800233}
234
kjellander142f8c52016-06-13 00:08:24 -0700235if (rtc_include_tests) {
236 config("rtc_pc_unittests_config") {
237 # GN orders flags on a target before flags from configs. The default config
238 # adds -Wall, and this flag have to be after -Wall -- so they need to
239 # come from a config and can't be on the target directly.
240 if (!is_win && !is_clang) {
241 cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
242 }
243 }
244
ehmaldonado38a21322016-09-02 04:10:34 -0700245 rtc_test("rtc_pc_unittests") {
kjellander142f8c52016-06-13 00:08:24 -0700246 testonly = true
247
248 sources = [
249 "bundlefilter_unittest.cc",
250 "channel_unittest.cc",
251 "channelmanager_unittest.cc",
252 "currentspeakermonitor_unittest.cc",
253 "mediasession_unittest.cc",
254 "rtcpmuxfilter_unittest.cc",
zstein56162b92017-04-24 16:54:35 -0700255 "rtptransport_unittest.cc",
zstein398c3fd2017-07-19 13:38:02 -0700256 "rtptransporttestutil.h",
kjellander142f8c52016-06-13 00:08:24 -0700257 "srtpfilter_unittest.cc",
zstein4dde3df2017-07-07 14:26:25 -0700258 "srtpsession_unittest.cc",
259 "srtptestutil.h",
zstein398c3fd2017-07-19 13:38:02 -0700260 "srtptransport_unittest.cc",
Zhi Huangb5261582017-09-29 10:51:43 -0700261 "transportcontroller_unittest.cc",
kjellander142f8c52016-06-13 00:08:24 -0700262 ]
263
264 include_dirs = [ "//third_party/libsrtp/srtp" ]
265
ehmaldonado7a2ce0b2016-09-05 01:35:44 -0700266 configs += [ ":rtc_pc_unittests_config" ]
kjellander142f8c52016-06-13 00:08:24 -0700267
kjellandere40a7ee2016-10-16 23:56:12 -0700268 if (!build_with_chromium && is_clang) {
kjellander142f8c52016-06-13 00:08:24 -0700269 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700270 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander142f8c52016-06-13 00:08:24 -0700271 }
272
273 if (is_win) {
274 libs = [ "strmiids.lib" ]
275 }
276
277 deps = [
ossu7bb87ee2017-01-23 04:56:25 -0800278 ":libjingle_peerconnection",
Zhi Huangb5261582017-09-29 10:51:43 -0700279 ":pc_test_utils",
kjellander142f8c52016-06-13 00:08:24 -0700280 ":rtc_pc",
kwiberg529662a2017-09-04 05:43:17 -0700281 "../api:array_view",
mbonadei7d9a55b2017-06-01 13:01:48 -0700282 "../logging:rtc_event_log_api",
283 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700284 "../media:rtc_media_tests_utils",
mbonadei7d9a55b2017-06-01 13:01:48 -0700285 "../p2p:p2p_test_utils",
286 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700287 "../rtc_base:rtc_base",
288 "../rtc_base:rtc_base_approved",
289 "../rtc_base:rtc_base_tests_main",
290 "../rtc_base:rtc_base_tests_utils",
kjellander142f8c52016-06-13 00:08:24 -0700291 "../system_wrappers:metrics_default",
zstein398c3fd2017-07-19 13:38:02 -0700292 "../test:test_support",
kjellander142f8c52016-06-13 00:08:24 -0700293 ]
294
295 if (rtc_build_libsrtp) {
296 deps += [ "//third_party/libsrtp" ]
297 }
298
299 if (is_android) {
300 deps += [ "//testing/android/native_test:native_test_support" ]
301 }
302 }
ossu7bb87ee2017-01-23 04:56:25 -0800303
deadbeefe814a0d2017-02-25 18:15:09 -0800304 rtc_source_set("pc_test_utils") {
305 testonly = true
306 sources = [
307 "test/fakeaudiocapturemodule.cc",
308 "test/fakeaudiocapturemodule.h",
309 "test/fakedatachannelprovider.h",
310 "test/fakeperiodicvideocapturer.h",
311 "test/fakertccertificategenerator.h",
Steve Antonda6c0952017-10-23 11:41:54 -0700312 "test/fakesctptransport.h",
Zhi Huangb5261582017-09-29 10:51:43 -0700313 "test/faketransportcontroller.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800314 "test/fakevideotrackrenderer.h",
315 "test/fakevideotracksource.h",
316 "test/mock_datachannel.h",
317 "test/mock_peerconnection.h",
318 "test/mock_webrtcsession.h",
319 "test/mockpeerconnectionobservers.h",
320 "test/peerconnectiontestwrapper.cc",
321 "test/peerconnectiontestwrapper.h",
322 "test/rtcstatsobtainer.h",
323 "test/testsdpstrings.h",
324 ]
325
326 deps = [
327 ":libjingle_peerconnection",
Zhi Huangb5261582017-09-29 10:51:43 -0700328 ":rtc_pc_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700329 "..:webrtc_common",
330 "../api:libjingle_peerconnection_test_api",
331 "../api:rtc_stats_api",
zhihuang38ede132017-06-15 12:52:32 -0700332 "../call:call_interfaces",
333 "../logging:rtc_event_log_api",
mbonadei7d9a55b2017-06-01 13:01:48 -0700334 "../media:rtc_media",
335 "../media:rtc_media_tests_utils",
336 "../modules/audio_device:audio_device",
337 "../p2p:p2p_test_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700338 "../rtc_base:rtc_base",
339 "../rtc_base:rtc_base_approved",
340 "../rtc_base:rtc_base_tests_utils",
mbonadei7d9a55b2017-06-01 13:01:48 -0700341 "../test:test_support",
deadbeefe814a0d2017-02-25 18:15:09 -0800342 "//testing/gmock",
343 ]
344
345 if (!build_with_chromium && is_clang) {
346 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
347 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
348 }
349 }
350
ossu7bb87ee2017-01-23 04:56:25 -0800351 config("peerconnection_unittests_config") {
352 # The warnings below are enabled by default. Since GN orders compiler flags
353 # for a target before flags from configs, the only way to disable such
354 # warnings is by having them in a separate config, loaded from the target.
355 # TODO(kjellander): Make the code compile without disabling these flags.
356 # See https://bugs.webrtc.org/3307.
357 if (is_clang && is_win) {
358 cflags = [
359 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267
360 # for -Wno-sign-compare
361 "-Wno-sign-compare",
ossu7bb87ee2017-01-23 04:56:25 -0800362 ]
363 }
364
365 if (!is_win) {
366 cflags = [ "-Wno-sign-compare" ]
367 }
368 }
369
370 rtc_test("peerconnection_unittests") {
ossu7bb87ee2017-01-23 04:56:25 -0800371 testonly = true
372 sources = [
373 "datachannel_unittest.cc",
374 "dtmfsender_unittest.cc",
deadbeef1dcb1642017-03-29 21:08:16 -0700375 "iceserverparsing_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800376 "jsepsessiondescription_unittest.cc",
377 "localaudiosource_unittest.cc",
378 "mediaconstraintsinterface_unittest.cc",
379 "mediastream_unittest.cc",
Steve Anton6f25b092017-10-23 09:39:20 -0700380 "peerconnection_bundle_unittest.cc",
Steve Anton6b63cd52017-10-06 11:20:31 -0700381 "peerconnection_crypto_unittest.cc",
Steve Antonda6c0952017-10-23 11:41:54 -0700382 "peerconnection_datachannel_unittest.cc",
Steve Antonf1c6db12017-10-13 11:13:35 -0700383 "peerconnection_ice_unittest.cc",
deadbeef1dcb1642017-03-29 21:08:16 -0700384 "peerconnection_integrationtest.cc",
Steve Anton8d3444d2017-10-20 15:30:51 -0700385 "peerconnection_media_unittest.cc",
Henrik Boström933d8b02017-10-10 10:05:16 -0700386 "peerconnection_rtp_unittest.cc",
Steve Anton8d3444d2017-10-20 15:30:51 -0700387 "peerconnection_signaling_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800388 "peerconnectionendtoend_unittest.cc",
389 "peerconnectionfactory_unittest.cc",
390 "peerconnectioninterface_unittest.cc",
Steve Anton94286cb2017-09-26 16:20:19 -0700391 "peerconnectionwrapper.cc",
392 "peerconnectionwrapper.h",
ossu7bb87ee2017-01-23 04:56:25 -0800393 "proxy_unittest.cc",
394 "rtcstats_integrationtest.cc",
395 "rtcstatscollector_unittest.cc",
396 "rtpsenderreceiver_unittest.cc",
397 "sctputils_unittest.cc",
398 "statscollector_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800399 "test/fakeaudiocapturemodule_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800400 "test/testsdpstrings.h",
deadbeef804c1af2017-02-11 19:07:31 -0800401 "trackmediainfomap_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800402 "videocapturertracksource_unittest.cc",
403 "videotrack_unittest.cc",
404 "webrtcsdp_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800405 ]
406
407 if (rtc_enable_sctp) {
408 defines = [ "HAVE_SCTP" ]
409 }
410
411 configs += [ ":peerconnection_unittests_config" ]
412
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 # TODO(jschuh): Bug 1348: fix this warning.
419 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
420
421 if (is_win) {
422 cflags = [
423 "/wd4245", # conversion from int to size_t, signed/unsigned mismatch.
424 "/wd4389", # signed/unsigned mismatch.
425 ]
426 }
427
ossu7bb87ee2017-01-23 04:56:25 -0800428 deps = []
429 if (is_android) {
Patrik Höglund563934e2017-09-15 09:04:28 +0200430 deps += [ ":android_black_magic" ]
ossu7bb87ee2017-01-23 04:56:25 -0800431 }
432
433 deps += [
434 ":libjingle_peerconnection",
deadbeefe814a0d2017-02-25 18:15:09 -0800435 ":pc_test_utils",
ossu7bb87ee2017-01-23 04:56:25 -0800436 "..:webrtc_common",
437 "../api:fakemetricsobserver",
Patrik Höglund563934e2017-09-15 09:04:28 +0200438 "../api:libjingle_peerconnection_test_api",
439 "../api:rtc_stats_api",
Karl Wibergc5bb00b2017-10-10 23:17:17 +0200440 "../api/audio_codecs:audio_codecs_api",
Patrik Höglund563934e2017-09-15 09:04:28 +0200441 "../api/audio_codecs:builtin_audio_decoder_factory",
442 "../api/audio_codecs:builtin_audio_encoder_factory",
Karl Wibergc5bb00b2017-10-10 23:17:17 +0200443 "../api/audio_codecs/L16:audio_decoder_L16",
444 "../api/audio_codecs/L16:audio_encoder_L16",
Steve Anton8d3444d2017-10-20 15:30:51 -0700445 "../call:call_interfaces",
Elad Alon99c3fe52017-10-13 16:29:40 +0200446 "../logging:rtc_event_log_api",
Steve Anton8d3444d2017-10-20 15:30:51 -0700447 "../logging:rtc_event_log_impl",
Patrik Höglund563934e2017-09-15 09:04:28 +0200448 "../media:rtc_audio_video",
449 "../media:rtc_data", # TODO(phoglund): AFAIK only used for one sctp constant.
450 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700451 "../media:rtc_media_tests_utils",
Patrik Höglund563934e2017-09-15 09:04:28 +0200452 "../modules/audio_processing:audio_processing",
453 "../modules/utility:utility",
454 "../p2p:p2p_test_utils",
455 "../p2p:rtc_p2p",
ossu7bb87ee2017-01-23 04:56:25 -0800456 "../pc:rtc_pc",
Henrik Boström933d8b02017-10-10 10:05:16 -0700457 "../rtc_base:rtc_base",
Patrik Höglund563934e2017-09-15 09:04:28 +0200458 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700459 "../rtc_base:rtc_base_tests_main",
460 "../rtc_base:rtc_base_tests_utils",
ossu7bb87ee2017-01-23 04:56:25 -0800461 "../system_wrappers:metrics_default",
kwiberg2b3aa142017-06-14 03:31:17 -0700462 "../test:audio_codec_mocks",
Patrik Höglund563934e2017-09-15 09:04:28 +0200463 "../test:test_support",
ossu7bb87ee2017-01-23 04:56:25 -0800464 ]
465
466 if (is_android) {
Patrik Höglund563934e2017-09-15 09:04:28 +0200467 deps += [
468 "//testing/android/native_test:native_test_support",
469
470 # We need to depend on this one directly, or classloads will fail for
471 # the voice engine BuildInfo, for instance.
472 "../sdk/android:libjingle_peerconnection_java",
473 ]
ossu7bb87ee2017-01-23 04:56:25 -0800474
475 shard_timeout = 900
476 }
477 }
Patrik Höglund563934e2017-09-15 09:04:28 +0200478
479 if (is_android) {
480 rtc_source_set("android_black_magic") {
481 # The android code uses hacky includes to chromium-base and the ssl code;
482 # having this in a separate target enables us to keep the peerconnection
483 # unit tests clean.
484 check_includes = false
485 testonly = true
486 sources = [
487 "test/androidtestinitializer.cc",
488 "test/androidtestinitializer.h",
489 ]
490 deps = [
491 "../sdk/android:libjingle_peerconnection_jni",
492 "//testing/android/native_test:native_test_support",
493 ]
494 }
495 }
kjellander142f8c52016-06-13 00:08:24 -0700496}