blob: fa182fa811dd8b15af32a8f36120933b07547d81 [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",
kjellanderc76dc952016-06-03 03:09:32 -070058 "voicechannel.h",
59 ]
60
61 deps = [
mbonadei7d9a55b2017-06-01 13:01:48 -070062 "..:webrtc_common",
kjellandera69d9732016-08-31 07:33:05 -070063 "../api:call_api",
mbonadei7d9a55b2017-06-01 13:01:48 -070064 "../api:libjingle_peerconnection_api",
kwiberg84f6a3f2017-09-05 08:43:13 -070065 "../api:optional",
mbonadei7d9a55b2017-06-01 13:01:48 -070066 "../api:ortc_api",
zhihuang38ede132017-06-15 12:52:32 -070067 "../media:rtc_data",
zhihuang130ca7e2017-06-21 01:02:59 -070068 "../media:rtc_h264_profile_id",
zhihuang38ede132017-06-15 12:52:32 -070069 "../media:rtc_media_base",
mbonadei7d9a55b2017-06-01 13:01:48 -070070 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -070071 "../rtc_base:rtc_base",
72 "../rtc_base:rtc_task_queue",
kjellanderc76dc952016-06-03 03:09:32 -070073 ]
74
kjellanderc76dc952016-06-03 03:09:32 -070075 if (rtc_build_libsrtp) {
76 deps += [ "//third_party/libsrtp" ]
77 }
78
ehmaldonadoe9cc6862016-09-05 06:10:18 -070079 public_configs = [ ":rtc_pc_config" ]
kjellanderc76dc952016-06-03 03:09:32 -070080
kjellandere40a7ee2016-10-16 23:56:12 -070081 if (!build_with_chromium && is_clang) {
kjellander142f8c52016-06-13 00:08:24 -070082 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070083 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderc76dc952016-06-03 03:09:32 -070084 }
85}
kjellander142f8c52016-06-13 00:08:24 -070086
zhihuang38ede132017-06-15 12:52:32 -070087rtc_source_set("rtc_pc") {
88 public_deps = [
89 ":rtc_pc_base",
90 ]
91
92 deps = [
93 "../media:rtc_audio_video",
94 ]
95}
96
ossu7bb87ee2017-01-23 04:56:25 -080097config("libjingle_peerconnection_warnings_config") {
98 # GN orders flags on a target before flags from configs. The default config
99 # adds these flags so to cancel them out they need to come from a config and
100 # cannot be on the target directly.
101 if (!is_win && !is_clang) {
102 cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
103 }
104}
105
zhihuang38ede132017-06-15 12:52:32 -0700106rtc_static_library("peerconnection") {
ossu7bb87ee2017-01-23 04:56:25 -0800107 cflags = []
108 sources = [
109 "audiotrack.cc",
110 "audiotrack.h",
111 "datachannel.cc",
112 "datachannel.h",
113 "dtmfsender.cc",
114 "dtmfsender.h",
deadbeef1dcb1642017-03-29 21:08:16 -0700115 "iceserverparsing.cc",
116 "iceserverparsing.h",
ossu7bb87ee2017-01-23 04:56:25 -0800117 "jsepicecandidate.cc",
118 "jsepsessiondescription.cc",
119 "localaudiosource.cc",
120 "localaudiosource.h",
ossu7bb87ee2017-01-23 04:56:25 -0800121 "mediastream.cc",
122 "mediastream.h",
123 "mediastreamobserver.cc",
124 "mediastreamobserver.h",
125 "mediastreamtrack.h",
ossu7bb87ee2017-01-23 04:56:25 -0800126 "peerconnection.cc",
127 "peerconnection.h",
128 "peerconnectionfactory.cc",
129 "peerconnectionfactory.h",
130 "remoteaudiosource.cc",
131 "remoteaudiosource.h",
132 "rtcstatscollector.cc",
133 "rtcstatscollector.h",
134 "rtpreceiver.cc",
135 "rtpreceiver.h",
136 "rtpsender.cc",
137 "rtpsender.h",
138 "sctputils.cc",
139 "sctputils.h",
140 "statscollector.cc",
141 "statscollector.h",
142 "streamcollection.h",
deadbeef804c1af2017-02-11 19:07:31 -0800143 "trackmediainfomap.cc",
144 "trackmediainfomap.h",
ossu7bb87ee2017-01-23 04:56:25 -0800145 "videocapturertracksource.cc",
146 "videocapturertracksource.h",
147 "videotrack.cc",
148 "videotrack.h",
149 "videotracksource.cc",
150 "videotracksource.h",
151 "webrtcsdp.cc",
152 "webrtcsdp.h",
153 "webrtcsession.cc",
154 "webrtcsession.h",
155 "webrtcsessiondescriptionfactory.cc",
156 "webrtcsessiondescriptionfactory.h",
157 ]
158
159 configs += [ ":libjingle_peerconnection_warnings_config" ]
160
161 if (!build_with_chromium && is_clang) {
162 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
163 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
164 }
165
166 deps = [
zhihuang38ede132017-06-15 12:52:32 -0700167 ":rtc_pc_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700168 "..:webrtc_common",
ossu7bb87ee2017-01-23 04:56:25 -0800169 "../api:call_api",
kwiberg84f6a3f2017-09-05 08:43:13 -0700170 "../api:optional",
ossu7bb87ee2017-01-23 04:56:25 -0800171 "../api:rtc_stats_api",
ilnikd60d06a2017-04-05 03:02:20 -0700172 "../api/video_codecs:video_codecs_api",
zhihuang38ede132017-06-15 12:52:32 -0700173 "../call:call_interfaces",
mbonadei7d9a55b2017-06-01 13:01:48 -0700174 "../logging:rtc_event_log_api",
zhihuang38ede132017-06-15 12:52:32 -0700175 "../media:rtc_data",
176 "../media:rtc_media_base",
mbonadei7d9a55b2017-06-01 13:01:48 -0700177 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700178 "../rtc_base:rtc_base",
179 "../rtc_base:rtc_base_approved",
ossu7bb87ee2017-01-23 04:56:25 -0800180 "../stats",
mbonadei7d9a55b2017-06-01 13:01:48 -0700181 "../system_wrappers:system_wrappers",
ossu7bb87ee2017-01-23 04:56:25 -0800182 ]
183
ossuda250062017-01-23 07:37:43 -0800184 public_deps = [
185 "../api:libjingle_peerconnection_api",
186 ]
zhihuang38ede132017-06-15 12:52:32 -0700187}
188
189# This target implements CreatePeerConnectionFactory methods that will create a
190# PeerConnection will full functionality (audio, video and data). Applications
191# that wish to reduce their binary size by ommitting functionality they don't
192# need should use CreateModularCreatePeerConnectionFactory instead, using the
193# "peerconnection" build target and other targets specific to their
194# requrements. See comment in peerconnectionfactoryinterface.h.
zhihuangab97e182017-06-22 01:28:59 -0700195rtc_static_library("create_pc_factory") {
zhihuang38ede132017-06-15 12:52:32 -0700196 sources = [
197 "createpeerconnectionfactory.cc",
198 ]
199
200 deps = [
201 "../api:audio_mixer_api",
202 "../api:libjingle_peerconnection_api",
203 "../api/audio_codecs:audio_codecs_api",
204 "../api/audio_codecs:builtin_audio_decoder_factory",
205 "../api/audio_codecs:builtin_audio_encoder_factory",
Magnus Jedvert58b03162017-09-15 19:02:47 +0200206 "../api/video_codecs:video_codecs_api",
zhihuang38ede132017-06-15 12:52:32 -0700207 "../call",
208 "../call:call_interfaces",
209 "../logging:rtc_event_log_api",
210 "../media:rtc_audio_video",
211 "../modules/audio_device:audio_device",
peaha9cc40b2017-06-29 08:32:09 -0700212 "../modules/audio_processing:audio_processing",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700213 "../rtc_base:rtc_base",
214 "../rtc_base:rtc_base_approved",
zhihuang38ede132017-06-15 12:52:32 -0700215 ]
216
217 configs += [ ":libjingle_peerconnection_warnings_config" ]
218
219 if (!build_with_chromium && is_clang) {
220 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
221 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
222 }
223}
224
225rtc_source_set("libjingle_peerconnection") {
226 public_deps = [
227 ":create_pc_factory",
228 ":peerconnection",
229 "../api:libjingle_peerconnection_api",
230 ]
ossuda250062017-01-23 07:37:43 -0800231
ossu7bb87ee2017-01-23 04:56:25 -0800232 if (rtc_use_quic) {
233 sources += [
234 "quicdatachannel.cc",
235 "quicdatachannel.h",
236 "quicdatatransport.cc",
237 "quicdatatransport.h",
238 ]
239 deps += [ "//third_party/libquic" ]
240 public_deps = [
241 "//third_party/libquic",
242 ]
243 }
244}
245
kjellander142f8c52016-06-13 00:08:24 -0700246if (rtc_include_tests) {
247 config("rtc_pc_unittests_config") {
248 # GN orders flags on a target before flags from configs. The default config
249 # adds -Wall, and this flag have to be after -Wall -- so they need to
250 # come from a config and can't be on the target directly.
251 if (!is_win && !is_clang) {
252 cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
253 }
254 }
255
ehmaldonado38a21322016-09-02 04:10:34 -0700256 rtc_test("rtc_pc_unittests") {
kjellander142f8c52016-06-13 00:08:24 -0700257 testonly = true
258
259 sources = [
260 "bundlefilter_unittest.cc",
261 "channel_unittest.cc",
262 "channelmanager_unittest.cc",
263 "currentspeakermonitor_unittest.cc",
264 "mediasession_unittest.cc",
265 "rtcpmuxfilter_unittest.cc",
zstein56162b92017-04-24 16:54:35 -0700266 "rtptransport_unittest.cc",
zstein398c3fd2017-07-19 13:38:02 -0700267 "rtptransporttestutil.h",
kjellander142f8c52016-06-13 00:08:24 -0700268 "srtpfilter_unittest.cc",
zstein4dde3df2017-07-07 14:26:25 -0700269 "srtpsession_unittest.cc",
270 "srtptestutil.h",
zstein398c3fd2017-07-19 13:38:02 -0700271 "srtptransport_unittest.cc",
kjellander142f8c52016-06-13 00:08:24 -0700272 ]
273
274 include_dirs = [ "//third_party/libsrtp/srtp" ]
275
ehmaldonado7a2ce0b2016-09-05 01:35:44 -0700276 configs += [ ":rtc_pc_unittests_config" ]
kjellander142f8c52016-06-13 00:08:24 -0700277
kjellandere40a7ee2016-10-16 23:56:12 -0700278 if (!build_with_chromium && is_clang) {
kjellander142f8c52016-06-13 00:08:24 -0700279 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700280 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander142f8c52016-06-13 00:08:24 -0700281 }
282
283 if (is_win) {
284 libs = [ "strmiids.lib" ]
285 }
286
287 deps = [
ossu7bb87ee2017-01-23 04:56:25 -0800288 ":libjingle_peerconnection",
kjellander142f8c52016-06-13 00:08:24 -0700289 ":rtc_pc",
kwiberg529662a2017-09-04 05:43:17 -0700290 "../api:array_view",
mbonadei7d9a55b2017-06-01 13:01:48 -0700291 "../logging:rtc_event_log_api",
292 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700293 "../media:rtc_media_tests_utils",
mbonadei7d9a55b2017-06-01 13:01:48 -0700294 "../p2p:p2p_test_utils",
295 "../p2p:rtc_p2p",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700296 "../rtc_base:rtc_base",
297 "../rtc_base:rtc_base_approved",
298 "../rtc_base:rtc_base_tests_main",
299 "../rtc_base:rtc_base_tests_utils",
kjellander142f8c52016-06-13 00:08:24 -0700300 "../system_wrappers:metrics_default",
zstein398c3fd2017-07-19 13:38:02 -0700301 "../test:test_support",
kjellander142f8c52016-06-13 00:08:24 -0700302 ]
303
304 if (rtc_build_libsrtp) {
305 deps += [ "//third_party/libsrtp" ]
306 }
307
308 if (is_android) {
309 deps += [ "//testing/android/native_test:native_test_support" ]
310 }
311 }
ossu7bb87ee2017-01-23 04:56:25 -0800312
deadbeefe814a0d2017-02-25 18:15:09 -0800313 rtc_source_set("pc_test_utils") {
314 testonly = true
315 sources = [
316 "test/fakeaudiocapturemodule.cc",
317 "test/fakeaudiocapturemodule.h",
318 "test/fakedatachannelprovider.h",
319 "test/fakeperiodicvideocapturer.h",
320 "test/fakertccertificategenerator.h",
321 "test/fakevideotrackrenderer.h",
322 "test/fakevideotracksource.h",
323 "test/mock_datachannel.h",
324 "test/mock_peerconnection.h",
325 "test/mock_webrtcsession.h",
326 "test/mockpeerconnectionobservers.h",
327 "test/peerconnectiontestwrapper.cc",
328 "test/peerconnectiontestwrapper.h",
329 "test/rtcstatsobtainer.h",
330 "test/testsdpstrings.h",
331 ]
332
333 deps = [
334 ":libjingle_peerconnection",
mbonadei7d9a55b2017-06-01 13:01:48 -0700335 "..:webrtc_common",
336 "../api:libjingle_peerconnection_test_api",
337 "../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",
341 "../media:rtc_media_tests_utils",
342 "../modules/audio_device:audio_device",
343 "../p2p:p2p_test_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700344 "../rtc_base:rtc_base",
345 "../rtc_base:rtc_base_approved",
346 "../rtc_base:rtc_base_tests_utils",
mbonadei7d9a55b2017-06-01 13:01:48 -0700347 "../test:test_support",
deadbeefe814a0d2017-02-25 18:15:09 -0800348 "//testing/gmock",
349 ]
350
351 if (!build_with_chromium && is_clang) {
352 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
353 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
354 }
355 }
356
ossu7bb87ee2017-01-23 04:56:25 -0800357 config("peerconnection_unittests_config") {
358 # The warnings below are enabled by default. Since GN orders compiler flags
359 # for a target before flags from configs, the only way to disable such
360 # warnings is by having them in a separate config, loaded from the target.
361 # TODO(kjellander): Make the code compile without disabling these flags.
362 # See https://bugs.webrtc.org/3307.
363 if (is_clang && is_win) {
364 cflags = [
365 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267
366 # for -Wno-sign-compare
367 "-Wno-sign-compare",
ossu7bb87ee2017-01-23 04:56:25 -0800368 ]
369 }
370
371 if (!is_win) {
372 cflags = [ "-Wno-sign-compare" ]
373 }
374 }
375
376 rtc_test("peerconnection_unittests") {
ossu7bb87ee2017-01-23 04:56:25 -0800377 testonly = true
378 sources = [
379 "datachannel_unittest.cc",
380 "dtmfsender_unittest.cc",
deadbeef1dcb1642017-03-29 21:08:16 -0700381 "iceserverparsing_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800382 "jsepsessiondescription_unittest.cc",
383 "localaudiosource_unittest.cc",
384 "mediaconstraintsinterface_unittest.cc",
385 "mediastream_unittest.cc",
deadbeef1dcb1642017-03-29 21:08:16 -0700386 "peerconnection_integrationtest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800387 "peerconnectionendtoend_unittest.cc",
388 "peerconnectionfactory_unittest.cc",
389 "peerconnectioninterface_unittest.cc",
Steve Anton94286cb2017-09-26 16:20:19 -0700390 "peerconnectionwrapper.cc",
391 "peerconnectionwrapper.h",
ossu7bb87ee2017-01-23 04:56:25 -0800392 "proxy_unittest.cc",
393 "rtcstats_integrationtest.cc",
394 "rtcstatscollector_unittest.cc",
395 "rtpsenderreceiver_unittest.cc",
396 "sctputils_unittest.cc",
397 "statscollector_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800398 "test/fakeaudiocapturemodule_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800399 "test/testsdpstrings.h",
deadbeef804c1af2017-02-11 19:07:31 -0800400 "trackmediainfomap_unittest.cc",
ossu7bb87ee2017-01-23 04:56:25 -0800401 "videocapturertracksource_unittest.cc",
402 "videotrack_unittest.cc",
403 "webrtcsdp_unittest.cc",
404 "webrtcsession_unittest.cc",
405 ]
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
428 if (rtc_use_quic) {
429 public_deps = [
430 "//third_party/libquic",
431 ]
432 sources += [
433 "quicdatachannel_unittest.cc",
434 "quicdatatransport_unittest.cc",
435 ]
436 }
437
438 deps = []
439 if (is_android) {
Patrik Höglund563934e2017-09-15 09:04:28 +0200440 deps += [ ":android_black_magic" ]
ossu7bb87ee2017-01-23 04:56:25 -0800441 }
442
443 deps += [
444 ":libjingle_peerconnection",
deadbeefe814a0d2017-02-25 18:15:09 -0800445 ":pc_test_utils",
ossu7bb87ee2017-01-23 04:56:25 -0800446 "..:webrtc_common",
447 "../api:fakemetricsobserver",
Patrik Höglund563934e2017-09-15 09:04:28 +0200448 "../api:libjingle_peerconnection_test_api",
449 "../api:rtc_stats_api",
450 "../api/audio_codecs:builtin_audio_decoder_factory",
451 "../api/audio_codecs:builtin_audio_encoder_factory",
452 "../media:rtc_audio_video",
453 "../media:rtc_data", # TODO(phoglund): AFAIK only used for one sctp constant.
454 "../media:rtc_media_base",
mbonadei9087d492017-04-25 00:35:35 -0700455 "../media:rtc_media_tests_utils",
Patrik Höglund563934e2017-09-15 09:04:28 +0200456 "../modules/audio_processing:audio_processing",
457 "../modules/utility:utility",
458 "../p2p:p2p_test_utils",
459 "../p2p:rtc_p2p",
ossu7bb87ee2017-01-23 04:56:25 -0800460 "../pc:rtc_pc",
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}