blob: 1b405757da03dbf93b887c1b60f8fc808559a68c [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",
210 "../api/audio_codecs:audio_codecs_api",
Magnus Jedvert58b03162017-09-15 19:02:47 +0200211 "../api/video_codecs:video_codecs_api",
zhihuang38ede132017-06-15 12:52:32 -0700212 "../call",
213 "../call:call_interfaces",
214 "../logging:rtc_event_log_api",
215 "../media:rtc_audio_video",
216 "../modules/audio_device:audio_device",
peaha9cc40b2017-06-29 08:32:09 -0700217 "../modules/audio_processing:audio_processing",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700218 "../rtc_base:rtc_base",
219 "../rtc_base:rtc_base_approved",
zhihuang38ede132017-06-15 12:52:32 -0700220 ]
221
222 configs += [ ":libjingle_peerconnection_warnings_config" ]
223
224 if (!build_with_chromium && is_clang) {
225 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
226 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
227 }
228}
229
230rtc_source_set("libjingle_peerconnection") {
231 public_deps = [
232 ":create_pc_factory",
233 ":peerconnection",
234 "../api:libjingle_peerconnection_api",
235 ]
ossu7bb87ee2017-01-23 04:56:25 -0800236}
237
kjellander142f8c52016-06-13 00:08:24 -0700238if (rtc_include_tests) {
239 config("rtc_pc_unittests_config") {
240 # GN orders flags on a target before flags from configs. The default config
241 # adds -Wall, and this flag have to be after -Wall -- so they need to
242 # come from a config and can't be on the target directly.
243 if (!is_win && !is_clang) {
244 cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
245 }
246 }
247
ehmaldonado38a21322016-09-02 04:10:34 -0700248 rtc_test("rtc_pc_unittests") {
kjellander142f8c52016-06-13 00:08:24 -0700249 testonly = true
250
251 sources = [
252 "bundlefilter_unittest.cc",
253 "channel_unittest.cc",
254 "channelmanager_unittest.cc",
255 "currentspeakermonitor_unittest.cc",
Zhi Huangf2d7beb2017-11-20 14:35:11 -0800256 "dtlssrtptransport_unittest.cc",
kjellander142f8c52016-06-13 00:08:24 -0700257 "mediasession_unittest.cc",
258 "rtcpmuxfilter_unittest.cc",
zstein56162b92017-04-24 16:54:35 -0700259 "rtptransport_unittest.cc",
zstein398c3fd2017-07-19 13:38:02 -0700260 "rtptransporttestutil.h",
kjellander142f8c52016-06-13 00:08:24 -0700261 "srtpfilter_unittest.cc",
zstein4dde3df2017-07-07 14:26:25 -0700262 "srtpsession_unittest.cc",
263 "srtptestutil.h",
zstein398c3fd2017-07-19 13:38:02 -0700264 "srtptransport_unittest.cc",
Zhi Huangb5261582017-09-29 10:51:43 -0700265 "transportcontroller_unittest.cc",
kjellander142f8c52016-06-13 00:08:24 -0700266 ]
267
268 include_dirs = [ "//third_party/libsrtp/srtp" ]
269
ehmaldonado7a2ce0b2016-09-05 01:35:44 -0700270 configs += [ ":rtc_pc_unittests_config" ]
kjellander142f8c52016-06-13 00:08:24 -0700271
kjellandere40a7ee2016-10-16 23:56:12 -0700272 if (!build_with_chromium && is_clang) {
kjellander142f8c52016-06-13 00:08:24 -0700273 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700274 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander142f8c52016-06-13 00:08:24 -0700275 }
276
277 if (is_win) {
278 libs = [ "strmiids.lib" ]
279 }
280
281 deps = [
ossu7bb87ee2017-01-23 04:56:25 -0800282 ":libjingle_peerconnection",
Zhi Huangb5261582017-09-29 10:51:43 -0700283 ":pc_test_utils",
kjellander142f8c52016-06-13 00:08:24 -0700284 ":rtc_pc",
kwiberg529662a2017-09-04 05:43:17 -0700285 "../api:array_view",
mbonadei7d9a55b2017-06-01 13:01:48 -0700286 "../logging:rtc_event_log_api",
287 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700288 "../media:rtc_media_tests_utils",
mbonadei7d9a55b2017-06-01 13:01:48 -0700289 "../p2p:p2p_test_utils",
290 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700291 "../rtc_base:rtc_base",
292 "../rtc_base:rtc_base_approved",
293 "../rtc_base:rtc_base_tests_main",
294 "../rtc_base:rtc_base_tests_utils",
kjellander142f8c52016-06-13 00:08:24 -0700295 "../system_wrappers:metrics_default",
zstein398c3fd2017-07-19 13:38:02 -0700296 "../test:test_support",
kjellander142f8c52016-06-13 00:08:24 -0700297 ]
298
299 if (rtc_build_libsrtp) {
300 deps += [ "//third_party/libsrtp" ]
301 }
302
303 if (is_android) {
304 deps += [ "//testing/android/native_test:native_test_support" ]
305 }
306 }
ossu7bb87ee2017-01-23 04:56:25 -0800307
deadbeefe814a0d2017-02-25 18:15:09 -0800308 rtc_source_set("pc_test_utils") {
309 testonly = true
310 sources = [
311 "test/fakeaudiocapturemodule.cc",
312 "test/fakeaudiocapturemodule.h",
313 "test/fakedatachannelprovider.h",
314 "test/fakeperiodicvideocapturer.h",
315 "test/fakertccertificategenerator.h",
Steve Antonda6c0952017-10-23 11:41:54 -0700316 "test/fakesctptransport.h",
Zhi Huangb5261582017-09-29 10:51:43 -0700317 "test/faketransportcontroller.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800318 "test/fakevideotrackrenderer.h",
319 "test/fakevideotracksource.h",
320 "test/mock_datachannel.h",
321 "test/mock_peerconnection.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800322 "test/mockpeerconnectionobservers.h",
323 "test/peerconnectiontestwrapper.cc",
324 "test/peerconnectiontestwrapper.h",
325 "test/rtcstatsobtainer.h",
326 "test/testsdpstrings.h",
327 ]
328
329 deps = [
330 ":libjingle_peerconnection",
Zhi Huangb5261582017-09-29 10:51:43 -0700331 ":rtc_pc_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700332 "..:webrtc_common",
333 "../api:libjingle_peerconnection_test_api",
334 "../api:rtc_stats_api",
zhihuang38ede132017-06-15 12:52:32 -0700335 "../call:call_interfaces",
336 "../logging:rtc_event_log_api",
mbonadei7d9a55b2017-06-01 13:01:48 -0700337 "../media:rtc_media",
338 "../media:rtc_media_tests_utils",
339 "../modules/audio_device:audio_device",
340 "../p2p:p2p_test_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700341 "../rtc_base:rtc_base",
342 "../rtc_base:rtc_base_approved",
343 "../rtc_base:rtc_base_tests_utils",
mbonadei7d9a55b2017-06-01 13:01:48 -0700344 "../test:test_support",
deadbeefe814a0d2017-02-25 18:15:09 -0800345 "//testing/gmock",
346 ]
347
348 if (!build_with_chromium && is_clang) {
349 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
350 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
351 }
352 }
353
ossu7bb87ee2017-01-23 04:56:25 -0800354 config("peerconnection_unittests_config") {
355 # The warnings below are enabled by default. Since GN orders compiler flags
356 # for a target before flags from configs, the only way to disable such
357 # warnings is by having them in a separate config, loaded from the target.
358 # TODO(kjellander): Make the code compile without disabling these flags.
359 # See https://bugs.webrtc.org/3307.
360 if (is_clang && is_win) {
361 cflags = [
362 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267
363 # for -Wno-sign-compare
364 "-Wno-sign-compare",
ossu7bb87ee2017-01-23 04:56:25 -0800365 ]
366 }
367
368 if (!is_win) {
369 cflags = [ "-Wno-sign-compare" ]
370 }
371 }
372
373 rtc_test("peerconnection_unittests") {
ossu7bb87ee2017-01-23 04:56:25 -0800374 testonly = true
375 sources = [
376 "datachannel_unittest.cc",
377 "dtmfsender_unittest.cc",
deadbeef1dcb1642017-03-29 21:08:16 -0700378 "iceserverparsing_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800379 "jsepsessiondescription_unittest.cc",
380 "localaudiosource_unittest.cc",
381 "mediaconstraintsinterface_unittest.cc",
382 "mediastream_unittest.cc",
Steve Anton6f25b092017-10-23 09:39:20 -0700383 "peerconnection_bundle_unittest.cc",
Steve Anton6b63cd52017-10-06 11:20:31 -0700384 "peerconnection_crypto_unittest.cc",
Steve Antonda6c0952017-10-23 11:41:54 -0700385 "peerconnection_datachannel_unittest.cc",
Steve Antonf1c6db12017-10-13 11:13:35 -0700386 "peerconnection_ice_unittest.cc",
deadbeef1dcb1642017-03-29 21:08:16 -0700387 "peerconnection_integrationtest.cc",
Steve Anton8d3444d2017-10-20 15:30:51 -0700388 "peerconnection_media_unittest.cc",
Henrik Boström933d8b02017-10-10 10:05:16 -0700389 "peerconnection_rtp_unittest.cc",
Steve Anton8d3444d2017-10-20 15:30:51 -0700390 "peerconnection_signaling_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800391 "peerconnectionendtoend_unittest.cc",
392 "peerconnectionfactory_unittest.cc",
393 "peerconnectioninterface_unittest.cc",
Steve Anton94286cb2017-09-26 16:20:19 -0700394 "peerconnectionwrapper.cc",
395 "peerconnectionwrapper.h",
ossu7bb87ee2017-01-23 04:56:25 -0800396 "proxy_unittest.cc",
397 "rtcstats_integrationtest.cc",
398 "rtcstatscollector_unittest.cc",
399 "rtpsenderreceiver_unittest.cc",
400 "sctputils_unittest.cc",
401 "statscollector_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800402 "test/fakeaudiocapturemodule_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800403 "test/testsdpstrings.h",
deadbeef804c1af2017-02-11 19:07:31 -0800404 "trackmediainfomap_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800405 "videocapturertracksource_unittest.cc",
406 "videotrack_unittest.cc",
407 "webrtcsdp_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800408 ]
409
410 if (rtc_enable_sctp) {
411 defines = [ "HAVE_SCTP" ]
412 }
413
414 configs += [ ":peerconnection_unittests_config" ]
415
416 if (!build_with_chromium && is_clang) {
417 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
418 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
419 }
420
421 # TODO(jschuh): Bug 1348: fix this warning.
422 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
423
424 if (is_win) {
425 cflags = [
426 "/wd4245", # conversion from int to size_t, signed/unsigned mismatch.
427 "/wd4389", # signed/unsigned mismatch.
428 ]
429 }
430
ossu7bb87ee2017-01-23 04:56:25 -0800431 deps = []
432 if (is_android) {
Patrik Höglund563934e2017-09-15 09:04:28 +0200433 deps += [ ":android_black_magic" ]
ossu7bb87ee2017-01-23 04:56:25 -0800434 }
435
436 deps += [
437 ":libjingle_peerconnection",
deadbeefe814a0d2017-02-25 18:15:09 -0800438 ":pc_test_utils",
ossu7bb87ee2017-01-23 04:56:25 -0800439 "..:webrtc_common",
440 "../api:fakemetricsobserver",
Patrik Höglund563934e2017-09-15 09:04:28 +0200441 "../api:libjingle_peerconnection_test_api",
442 "../api:rtc_stats_api",
Karl Wibergc5bb00b2017-10-10 23:17:17 +0200443 "../api/audio_codecs:audio_codecs_api",
Patrik Höglund563934e2017-09-15 09:04:28 +0200444 "../api/audio_codecs:builtin_audio_decoder_factory",
445 "../api/audio_codecs:builtin_audio_encoder_factory",
Karl Wibergc5bb00b2017-10-10 23:17:17 +0200446 "../api/audio_codecs/L16:audio_decoder_L16",
447 "../api/audio_codecs/L16:audio_encoder_L16",
Steve Anton8d3444d2017-10-20 15:30:51 -0700448 "../call:call_interfaces",
Elad Alon99c3fe52017-10-13 16:29:40 +0200449 "../logging:rtc_event_log_api",
Steve Anton8d3444d2017-10-20 15:30:51 -0700450 "../logging:rtc_event_log_impl",
Patrik Höglund563934e2017-09-15 09:04:28 +0200451 "../media:rtc_audio_video",
452 "../media:rtc_data", # TODO(phoglund): AFAIK only used for one sctp constant.
453 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700454 "../media:rtc_media_tests_utils",
Patrik Höglund563934e2017-09-15 09:04:28 +0200455 "../modules/audio_processing:audio_processing",
456 "../modules/utility:utility",
457 "../p2p:p2p_test_utils",
458 "../p2p:rtc_p2p",
ossu7bb87ee2017-01-23 04:56:25 -0800459 "../pc:rtc_pc",
Henrik Boström933d8b02017-10-10 10:05:16 -0700460 "../rtc_base:rtc_base",
Patrik Höglund563934e2017-09-15 09:04:28 +0200461 "../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700462 "../rtc_base:rtc_base_tests_main",
463 "../rtc_base:rtc_base_tests_utils",
ossu7bb87ee2017-01-23 04:56:25 -0800464 "../system_wrappers:metrics_default",
kwiberg2b3aa142017-06-14 03:31:17 -0700465 "../test:audio_codec_mocks",
Patrik Höglund563934e2017-09-15 09:04:28 +0200466 "../test:test_support",
ossu7bb87ee2017-01-23 04:56:25 -0800467 ]
468
469 if (is_android) {
Patrik Höglund563934e2017-09-15 09:04:28 +0200470 deps += [
471 "//testing/android/native_test:native_test_support",
472
473 # We need to depend on this one directly, or classloads will fail for
474 # the voice engine BuildInfo, for instance.
475 "../sdk/android:libjingle_peerconnection_java",
476 ]
ossu7bb87ee2017-01-23 04:56:25 -0800477
478 shard_timeout = 900
479 }
480 }
Patrik Höglund563934e2017-09-15 09:04:28 +0200481
482 if (is_android) {
483 rtc_source_set("android_black_magic") {
484 # The android code uses hacky includes to chromium-base and the ssl code;
485 # having this in a separate target enables us to keep the peerconnection
486 # unit tests clean.
487 check_includes = false
488 testonly = true
489 sources = [
490 "test/androidtestinitializer.cc",
491 "test/androidtestinitializer.h",
492 ]
493 deps = [
494 "../sdk/android:libjingle_peerconnection_jni",
495 "//testing/android/native_test:native_test_support",
496 ]
497 }
498 }
kjellander142f8c52016-06-13 00:08:24 -0700499}