blob: 116c1acec1652f7002757f32a1138d1b0f63a2df [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",
208 "../api/audio_codecs:builtin_audio_decoder_factory",
209 "../api/audio_codecs:builtin_audio_encoder_factory",
Magnus Jedvert58b03162017-09-15 19:02:47 +0200210 "../api/video_codecs:video_codecs_api",
zhihuang38ede132017-06-15 12:52:32 -0700211 "../call",
212 "../call:call_interfaces",
213 "../logging:rtc_event_log_api",
214 "../media:rtc_audio_video",
215 "../modules/audio_device:audio_device",
peaha9cc40b2017-06-29 08:32:09 -0700216 "../modules/audio_processing:audio_processing",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700217 "../rtc_base:rtc_base",
218 "../rtc_base:rtc_base_approved",
zhihuang38ede132017-06-15 12:52:32 -0700219 ]
220
221 configs += [ ":libjingle_peerconnection_warnings_config" ]
222
223 if (!build_with_chromium && is_clang) {
224 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
225 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
226 }
227}
228
229rtc_source_set("libjingle_peerconnection") {
230 public_deps = [
231 ":create_pc_factory",
232 ":peerconnection",
233 "../api:libjingle_peerconnection_api",
234 ]
ossu7bb87ee2017-01-23 04:56:25 -0800235}
236
kjellander142f8c52016-06-13 00:08:24 -0700237if (rtc_include_tests) {
238 config("rtc_pc_unittests_config") {
239 # GN orders flags on a target before flags from configs. The default config
240 # adds -Wall, and this flag have to be after -Wall -- so they need to
241 # come from a config and can't be on the target directly.
242 if (!is_win && !is_clang) {
243 cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
244 }
245 }
246
ehmaldonado38a21322016-09-02 04:10:34 -0700247 rtc_test("rtc_pc_unittests") {
kjellander142f8c52016-06-13 00:08:24 -0700248 testonly = true
249
250 sources = [
251 "bundlefilter_unittest.cc",
252 "channel_unittest.cc",
253 "channelmanager_unittest.cc",
254 "currentspeakermonitor_unittest.cc",
255 "mediasession_unittest.cc",
256 "rtcpmuxfilter_unittest.cc",
zstein56162b92017-04-24 16:54:35 -0700257 "rtptransport_unittest.cc",
zstein398c3fd2017-07-19 13:38:02 -0700258 "rtptransporttestutil.h",
kjellander142f8c52016-06-13 00:08:24 -0700259 "srtpfilter_unittest.cc",
zstein4dde3df2017-07-07 14:26:25 -0700260 "srtpsession_unittest.cc",
261 "srtptestutil.h",
zstein398c3fd2017-07-19 13:38:02 -0700262 "srtptransport_unittest.cc",
Zhi Huangb5261582017-09-29 10:51:43 -0700263 "transportcontroller_unittest.cc",
kjellander142f8c52016-06-13 00:08:24 -0700264 ]
265
266 include_dirs = [ "//third_party/libsrtp/srtp" ]
267
ehmaldonado7a2ce0b2016-09-05 01:35:44 -0700268 configs += [ ":rtc_pc_unittests_config" ]
kjellander142f8c52016-06-13 00:08:24 -0700269
kjellandere40a7ee2016-10-16 23:56:12 -0700270 if (!build_with_chromium && is_clang) {
kjellander142f8c52016-06-13 00:08:24 -0700271 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700272 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander142f8c52016-06-13 00:08:24 -0700273 }
274
275 if (is_win) {
276 libs = [ "strmiids.lib" ]
277 }
278
279 deps = [
ossu7bb87ee2017-01-23 04:56:25 -0800280 ":libjingle_peerconnection",
Zhi Huangb5261582017-09-29 10:51:43 -0700281 ":pc_test_utils",
kjellander142f8c52016-06-13 00:08:24 -0700282 ":rtc_pc",
kwiberg529662a2017-09-04 05:43:17 -0700283 "../api:array_view",
mbonadei7d9a55b2017-06-01 13:01:48 -0700284 "../logging:rtc_event_log_api",
285 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700286 "../media:rtc_media_tests_utils",
mbonadei7d9a55b2017-06-01 13:01:48 -0700287 "../p2p:p2p_test_utils",
288 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700289 "../rtc_base:rtc_base",
290 "../rtc_base:rtc_base_approved",
291 "../rtc_base:rtc_base_tests_main",
292 "../rtc_base:rtc_base_tests_utils",
kjellander142f8c52016-06-13 00:08:24 -0700293 "../system_wrappers:metrics_default",
zstein398c3fd2017-07-19 13:38:02 -0700294 "../test:test_support",
kjellander142f8c52016-06-13 00:08:24 -0700295 ]
296
297 if (rtc_build_libsrtp) {
298 deps += [ "//third_party/libsrtp" ]
299 }
300
301 if (is_android) {
302 deps += [ "//testing/android/native_test:native_test_support" ]
303 }
304 }
ossu7bb87ee2017-01-23 04:56:25 -0800305
deadbeefe814a0d2017-02-25 18:15:09 -0800306 rtc_source_set("pc_test_utils") {
307 testonly = true
308 sources = [
309 "test/fakeaudiocapturemodule.cc",
310 "test/fakeaudiocapturemodule.h",
311 "test/fakedatachannelprovider.h",
312 "test/fakeperiodicvideocapturer.h",
313 "test/fakertccertificategenerator.h",
Steve Antonda6c0952017-10-23 11:41:54 -0700314 "test/fakesctptransport.h",
Zhi Huangb5261582017-09-29 10:51:43 -0700315 "test/faketransportcontroller.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800316 "test/fakevideotrackrenderer.h",
317 "test/fakevideotracksource.h",
318 "test/mock_datachannel.h",
319 "test/mock_peerconnection.h",
320 "test/mock_webrtcsession.h",
321 "test/mockpeerconnectionobservers.h",
322 "test/peerconnectiontestwrapper.cc",
323 "test/peerconnectiontestwrapper.h",
324 "test/rtcstatsobtainer.h",
325 "test/testsdpstrings.h",
326 ]
327
328 deps = [
329 ":libjingle_peerconnection",
Zhi Huangb5261582017-09-29 10:51:43 -0700330 ":rtc_pc_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700331 "..:webrtc_common",
332 "../api:libjingle_peerconnection_test_api",
333 "../api:rtc_stats_api",
zhihuang38ede132017-06-15 12:52:32 -0700334 "../call:call_interfaces",
335 "../logging:rtc_event_log_api",
mbonadei7d9a55b2017-06-01 13:01:48 -0700336 "../media:rtc_media",
337 "../media:rtc_media_tests_utils",
338 "../modules/audio_device:audio_device",
339 "../p2p:p2p_test_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700340 "../rtc_base:rtc_base",
341 "../rtc_base:rtc_base_approved",
342 "../rtc_base:rtc_base_tests_utils",
mbonadei7d9a55b2017-06-01 13:01:48 -0700343 "../test:test_support",
deadbeefe814a0d2017-02-25 18:15:09 -0800344 "//testing/gmock",
345 ]
346
347 if (!build_with_chromium && is_clang) {
348 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
349 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
350 }
351 }
352
ossu7bb87ee2017-01-23 04:56:25 -0800353 config("peerconnection_unittests_config") {
354 # The warnings below are enabled by default. Since GN orders compiler flags
355 # for a target before flags from configs, the only way to disable such
356 # warnings is by having them in a separate config, loaded from the target.
357 # TODO(kjellander): Make the code compile without disabling these flags.
358 # See https://bugs.webrtc.org/3307.
359 if (is_clang && is_win) {
360 cflags = [
361 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267
362 # for -Wno-sign-compare
363 "-Wno-sign-compare",
ossu7bb87ee2017-01-23 04:56:25 -0800364 ]
365 }
366
367 if (!is_win) {
368 cflags = [ "-Wno-sign-compare" ]
369 }
370 }
371
372 rtc_test("peerconnection_unittests") {
ossu7bb87ee2017-01-23 04:56:25 -0800373 testonly = true
374 sources = [
375 "datachannel_unittest.cc",
376 "dtmfsender_unittest.cc",
deadbeef1dcb1642017-03-29 21:08:16 -0700377 "iceserverparsing_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800378 "jsepsessiondescription_unittest.cc",
379 "localaudiosource_unittest.cc",
380 "mediaconstraintsinterface_unittest.cc",
381 "mediastream_unittest.cc",
Steve Anton6f25b092017-10-23 09:39:20 -0700382 "peerconnection_bundle_unittest.cc",
Steve Anton6b63cd52017-10-06 11:20:31 -0700383 "peerconnection_crypto_unittest.cc",
Steve Antonda6c0952017-10-23 11:41:54 -0700384 "peerconnection_datachannel_unittest.cc",
Steve Antonf1c6db12017-10-13 11:13:35 -0700385 "peerconnection_ice_unittest.cc",
deadbeef1dcb1642017-03-29 21:08:16 -0700386 "peerconnection_integrationtest.cc",
Steve Anton8d3444d2017-10-20 15:30:51 -0700387 "peerconnection_media_unittest.cc",
Henrik Boström933d8b02017-10-10 10:05:16 -0700388 "peerconnection_rtp_unittest.cc",
Steve Anton8d3444d2017-10-20 15:30:51 -0700389 "peerconnection_signaling_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800390 "peerconnectionendtoend_unittest.cc",
391 "peerconnectionfactory_unittest.cc",
392 "peerconnectioninterface_unittest.cc",
Steve Anton94286cb2017-09-26 16:20:19 -0700393 "peerconnectionwrapper.cc",
394 "peerconnectionwrapper.h",
ossu7bb87ee2017-01-23 04:56:25 -0800395 "proxy_unittest.cc",
396 "rtcstats_integrationtest.cc",
397 "rtcstatscollector_unittest.cc",
398 "rtpsenderreceiver_unittest.cc",
399 "sctputils_unittest.cc",
400 "statscollector_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800401 "test/fakeaudiocapturemodule_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800402 "test/testsdpstrings.h",
deadbeef804c1af2017-02-11 19:07:31 -0800403 "trackmediainfomap_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800404 "videocapturertracksource_unittest.cc",
405 "videotrack_unittest.cc",
406 "webrtcsdp_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800407 ]
408
409 if (rtc_enable_sctp) {
410 defines = [ "HAVE_SCTP" ]
411 }
412
413 configs += [ ":peerconnection_unittests_config" ]
414
415 if (!build_with_chromium && is_clang) {
416 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
417 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
418 }
419
420 # TODO(jschuh): Bug 1348: fix this warning.
421 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
422
423 if (is_win) {
424 cflags = [
425 "/wd4245", # conversion from int to size_t, signed/unsigned mismatch.
426 "/wd4389", # signed/unsigned mismatch.
427 ]
428 }
429
ossu7bb87ee2017-01-23 04:56:25 -0800430 deps = []
431 if (is_android) {
Patrik Höglund563934e2017-09-15 09:04:28 +0200432 deps += [ ":android_black_magic" ]
ossu7bb87ee2017-01-23 04:56:25 -0800433 }
434
435 deps += [
436 ":libjingle_peerconnection",
deadbeefe814a0d2017-02-25 18:15:09 -0800437 ":pc_test_utils",
ossu7bb87ee2017-01-23 04:56:25 -0800438 "..:webrtc_common",
439 "../api:fakemetricsobserver",
Patrik Höglund563934e2017-09-15 09:04:28 +0200440 "../api:libjingle_peerconnection_test_api",
441 "../api:rtc_stats_api",
Karl Wibergc5bb00b2017-10-10 23:17:17 +0200442 "../api/audio_codecs:audio_codecs_api",
Patrik Höglund563934e2017-09-15 09:04:28 +0200443 "../api/audio_codecs:builtin_audio_decoder_factory",
444 "../api/audio_codecs:builtin_audio_encoder_factory",
Karl Wibergc5bb00b2017-10-10 23:17:17 +0200445 "../api/audio_codecs/L16:audio_decoder_L16",
446 "../api/audio_codecs/L16:audio_encoder_L16",
Steve Anton8d3444d2017-10-20 15:30:51 -0700447 "../call:call_interfaces",
Elad Alon99c3fe52017-10-13 16:29:40 +0200448 "../logging:rtc_event_log_api",
Steve Anton8d3444d2017-10-20 15:30:51 -0700449 "../logging:rtc_event_log_impl",
Patrik Höglund563934e2017-09-15 09:04:28 +0200450 "../media:rtc_audio_video",
451 "../media:rtc_data", # TODO(phoglund): AFAIK only used for one sctp constant.
452 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700453 "../media:rtc_media_tests_utils",
Patrik Höglund563934e2017-09-15 09:04:28 +0200454 "../modules/audio_processing:audio_processing",
455 "../modules/utility:utility",
456 "../p2p:p2p_test_utils",
457 "../p2p:rtc_p2p",
ossu7bb87ee2017-01-23 04:56:25 -0800458 "../pc:rtc_pc",
Henrik Boström933d8b02017-10-10 10:05:16 -0700459 "../rtc_base:rtc_base",
Patrik Höglund563934e2017-09-15 09:04:28 +0200460 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700461 "../rtc_base:rtc_base_tests_main",
462 "../rtc_base:rtc_base_tests_utils",
ossu7bb87ee2017-01-23 04:56:25 -0800463 "../system_wrappers:metrics_default",
kwiberg2b3aa142017-06-14 03:31:17 -0700464 "../test:audio_codec_mocks",
Patrik Höglund563934e2017-09-15 09:04:28 +0200465 "../test:test_support",
ossu7bb87ee2017-01-23 04:56:25 -0800466 ]
467
468 if (is_android) {
Patrik Höglund563934e2017-09-15 09:04:28 +0200469 deps += [
470 "//testing/android/native_test:native_test_support",
471
472 # We need to depend on this one directly, or classloads will fail for
473 # the voice engine BuildInfo, for instance.
474 "../sdk/android:libjingle_peerconnection_java",
475 ]
ossu7bb87ee2017-01-23 04:56:25 -0800476
477 shard_timeout = 900
478 }
479 }
Patrik Höglund563934e2017-09-15 09:04:28 +0200480
481 if (is_android) {
482 rtc_source_set("android_black_magic") {
483 # The android code uses hacky includes to chromium-base and the ssl code;
484 # having this in a separate target enables us to keep the peerconnection
485 # unit tests clean.
486 check_includes = false
487 testonly = true
488 sources = [
489 "test/androidtestinitializer.cc",
490 "test/androidtestinitializer.h",
491 ]
492 deps = [
493 "../sdk/android:libjingle_peerconnection_jni",
494 "//testing/android/native_test:native_test_support",
495 ]
496 }
497 }
kjellander142f8c52016-06-13 00:08:24 -0700498}