blob: 6a0c359ffefd38bafc2231e2817b7d7daf5a669b [file] [log] [blame]
henrike@webrtc.orgf0488722014-05-13 18:00:26 +00001# Copyright (c) 2014 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
9{
10 'includes': [ '../build/common.gypi', ],
11 'conditions': [
12 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
13 'conditions': [
14 ['sysroot!=""', {
15 'variables': {
16 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
17 },
18 }, {
19 'variables': {
20 'pkg-config': 'pkg-config'
21 },
22 }],
23 ],
24 }],
25 ],
26 'targets': [
27 {
28 'target_name': 'webrtc_base',
29 'type': 'static_library',
30 'defines': [
31 'FEATURE_ENABLE_SSL',
32 'GTEST_RELATIVE_PATH',
33 'LOGGING=1',
34 'USE_WEBRTC_DEV_BRANCH',
35 ],
36 'sources': [
37 'asyncfile.cc',
38 'asyncfile.h',
39 'asynchttprequest.cc',
40 'asynchttprequest.h',
41 'asyncinvoker.cc',
42 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000043 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000044 'asyncpacketsocket.h',
45 'asyncresolverinterface.h',
46 'asyncsocket.cc',
47 'asyncsocket.h',
48 'asynctcpsocket.cc',
49 'asynctcpsocket.h',
50 'asyncudpsocket.cc',
51 'asyncudpsocket.h',
52 'atomicops.h',
53 'autodetectproxy.cc',
54 'autodetectproxy.h',
55 'bandwidthsmoother.cc',
56 'bandwidthsmoother.h',
57 'base64.cc',
58 'base64.h',
59 'basicdefs.h',
60 'basictypes.h',
61 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000062 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000063 'buffer.h',
64 'bytebuffer.cc',
65 'bytebuffer.h',
66 'byteorder.h',
67 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000068 'callback.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000069 'checks.cc',
70 'checks.h',
71 'common.cc',
72 'common.h',
73 'constructormagic.h',
74 'cpumonitor.cc',
75 'cpumonitor.h',
76 'crc32.cc',
77 'crc32.h',
78 'criticalsection.h',
79 'cryptstring.h',
80 'dbus.cc',
81 'dbus.h',
82 'diskcache.cc',
83 'diskcache.h',
84 'diskcache_win32.cc',
85 'diskcache_win32.h',
86 'event.cc',
87 'event.h',
minyue@webrtc.org74aaf292014-07-16 21:28:26 +000088 'exp_filter.cc',
89 'exp_filter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000090 'filelock.cc',
91 'filelock.h',
92 'fileutils.cc',
93 'fileutils.h',
94 'fileutils_mock.h',
95 'firewallsocketserver.cc',
96 'firewallsocketserver.h',
97 'flags.cc',
98 'flags.h',
99 'gunit_prod.h',
100 'helpers.cc',
101 'helpers.h',
102 'httpbase.cc',
103 'httpbase.h',
104 'httpclient.cc',
105 'httpclient.h',
106 'httpcommon-inl.h',
107 'httpcommon.cc',
108 'httpcommon.h',
109 'httprequest.cc',
110 'httprequest.h',
111 'httpserver.cc',
112 'httpserver.h',
113 'ifaddrs-android.cc',
114 'ifaddrs-android.h',
115 'iosfilesystem.mm',
116 'ipaddress.cc',
117 'ipaddress.h',
118 'json.cc',
119 'json.h',
120 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000121 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000122 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000123 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000124 'libdbusglibsymboltable.cc',
125 'libdbusglibsymboltable.h',
126 'linux.cc',
127 'linux.h',
128 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000129 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000130 'linuxwindowpicker.cc',
131 'linuxwindowpicker.h',
132 'linked_ptr.h',
133 'logging.cc',
134 'logging.h',
135 'macasyncsocket.cc',
136 'macasyncsocket.h',
137 'maccocoasocketserver.h',
138 'maccocoasocketserver.mm',
139 'maccocoathreadhelper.h',
140 'maccocoathreadhelper.mm',
141 'macconversion.cc',
142 'macconversion.h',
143 'macsocketserver.cc',
144 'macsocketserver.h',
145 'macutils.cc',
146 'macutils.h',
147 'macwindowpicker.cc',
148 'macwindowpicker.h',
149 'mathutils.h',
150 'md5.cc',
151 'md5.h',
152 'md5digest.h',
153 'messagedigest.cc',
154 'messagedigest.h',
155 'messagehandler.cc',
156 'messagehandler.h',
157 'messagequeue.cc',
158 'messagequeue.h',
159 'multipart.cc',
160 'multipart.h',
161 'natserver.cc',
162 'natserver.h',
163 'natsocketfactory.cc',
164 'natsocketfactory.h',
165 'nattypes.cc',
166 'nattypes.h',
167 'nethelpers.cc',
168 'nethelpers.h',
169 'network.cc',
170 'network.h',
171 'nssidentity.cc',
172 'nssidentity.h',
173 'nssstreamadapter.cc',
174 'nssstreamadapter.h',
175 'nullsocketserver.h',
176 'openssl.h',
177 'openssladapter.cc',
178 'openssladapter.h',
179 'openssldigest.cc',
180 'openssldigest.h',
181 'opensslidentity.cc',
182 'opensslidentity.h',
183 'opensslstreamadapter.cc',
184 'opensslstreamadapter.h',
185 'optionsfile.cc',
186 'optionsfile.h',
187 'pathutils.cc',
188 'pathutils.h',
189 'physicalsocketserver.cc',
190 'physicalsocketserver.h',
191 'posix.cc',
192 'posix.h',
193 'profiler.cc',
194 'profiler.h',
195 'proxydetect.cc',
196 'proxydetect.h',
197 'proxyinfo.cc',
198 'proxyinfo.h',
199 'proxyserver.cc',
200 'proxyserver.h',
201 'ratelimiter.cc',
202 'ratelimiter.h',
203 'ratetracker.cc',
204 'ratetracker.h',
205 'refcount.h',
206 'referencecountedsingletonfactory.h',
207 'rollingaccumulator.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000208 'safe_conversions.h',
209 'safe_conversions_impl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000210 'schanneladapter.cc',
211 'schanneladapter.h',
212 'scoped_autorelease_pool.h',
213 'scoped_autorelease_pool.mm',
214 'scoped_ptr.h',
215 'scoped_ref_ptr.h',
216 'scopedptrcollection.h',
217 'sec_buffer.h',
218 'sha1.cc',
219 'sha1.h',
220 'sha1digest.h',
221 'sharedexclusivelock.cc',
222 'sharedexclusivelock.h',
223 'signalthread.cc',
224 'signalthread.h',
225 'sigslot.h',
226 'sigslotrepeater.h',
227 'socket.h',
228 'socketadapters.cc',
229 'socketadapters.h',
230 'socketaddress.cc',
231 'socketaddress.h',
232 'socketaddresspair.cc',
233 'socketaddresspair.h',
234 'socketfactory.h',
235 'socketpool.cc',
236 'socketpool.h',
237 'socketserver.h',
238 'socketstream.cc',
239 'socketstream.h',
240 'ssladapter.cc',
241 'ssladapter.h',
242 'sslconfig.h',
243 'sslfingerprint.cc',
244 'sslfingerprint.h',
245 'sslidentity.cc',
246 'sslidentity.h',
247 'sslroots.h',
248 'sslsocketfactory.cc',
249 'sslsocketfactory.h',
250 'sslstreamadapter.cc',
251 'sslstreamadapter.h',
252 'sslstreamadapterhelper.cc',
253 'sslstreamadapterhelper.h',
254 'stream.cc',
255 'stream.h',
256 'stringdigest.h',
257 'stringencode.cc',
258 'stringencode.h',
259 'stringutils.cc',
260 'stringutils.h',
261 'systeminfo.cc',
262 'systeminfo.h',
263 'task.cc',
264 'task.h',
265 'taskparent.cc',
266 'taskparent.h',
267 'taskrunner.cc',
268 'taskrunner.h',
269 'testclient.cc',
270 'testclient.h',
271 'thread.cc',
272 'thread.h',
henrik.lundin@webrtc.org1e3c5c22014-06-16 11:34:44 +0000273 'thread_checker.h',
274 'thread_checker_impl.cc',
275 'thread_checker_impl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000276 'timeutils.cc',
277 'timeutils.h',
278 'timing.cc',
279 'timing.h',
280 'transformadapter.cc',
281 'transformadapter.h',
282 'unixfilesystem.cc',
283 'unixfilesystem.h',
284 'urlencode.cc',
285 'urlencode.h',
286 'versionparsing.cc',
287 'versionparsing.h',
288 'virtualsocketserver.cc',
289 'virtualsocketserver.h',
290 'win32.cc',
291 'win32.h',
292 'win32filesystem.cc',
293 'win32filesystem.h',
294 'win32regkey.cc',
295 'win32regkey.h',
296 'win32securityerrors.cc',
297 'win32socketinit.cc',
298 'win32socketinit.h',
299 'win32socketserver.cc',
300 'win32socketserver.h',
301 'win32window.cc',
302 'win32window.h',
303 'win32windowpicker.cc',
304 'win32windowpicker.h',
305 'window.h',
306 'windowpicker.h',
307 'windowpickerfactory.h',
308 'winfirewall.cc',
309 'winfirewall.h',
310 'winping.cc',
311 'winping.h',
312 'worker.cc',
313 'worker.h',
314 '../overrides/webrtc/base/basictypes.h',
315 '../overrides/webrtc/base/constructormagic.h',
316 '../overrides/webrtc/base/logging.cc',
317 '../overrides/webrtc/base/logging.h',
318 '../overrides/webrtc/base/win32socketinit.cc',
319 ],
320 # TODO(henrike): issue 3307, make webrtc_base build without disabling
321 # these flags.
322 'cflags!': [
323 '-Wextra',
324 '-Wall',
325 ],
326 'cflags_cc!': [
327 '-Wnon-virtual-dtor',
328 ],
329 'direct_dependent_settings': {
330 'cflags_cc!': [
331 '-Wnon-virtual-dtor',
332 ],
333 'defines': [
334 'FEATURE_ENABLE_SSL',
335 'GTEST_RELATIVE_PATH',
336 ],
337 },
338 'include_dirs': [
339 '../../third_party/jsoncpp/overrides/include',
340 '../../third_party/jsoncpp/source/include',
341 ],
342 'conditions': [
343 ['build_with_chromium==1', {
344 'include_dirs': [
345 '../overrides',
346 '../../openssl/openssl/include',
347 ],
348 'sources!': [
349 'asyncinvoker.cc',
350 'asyncinvoker.h',
351 'asyncinvoker-inl.h',
352 'asyncresolverinterface.h',
353 'atomicops.h',
354 'bandwidthsmoother.cc',
355 'bandwidthsmoother.h',
356 'basictypes.h',
357 'bind.h',
358 'bind.h.pump',
359 'buffer.h',
360 'callback.h',
361 'callback.h.pump',
362 'constructormagic.h',
363 'dbus.cc',
364 'dbus.h',
365 'diskcache_win32.cc',
366 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000367 'filelock.cc',
368 'filelock.h',
369 'fileutils_mock.h',
370 'genericslot.h',
371 'genericslot.h.pump',
372 'httpserver.cc',
373 'httpserver.h',
374 'json.cc',
375 'json.h',
376 'latebindingsymboltable.cc',
377 'latebindingsymboltable.cc.def',
378 'latebindingsymboltable.h',
379 'latebindingsymboltable.h.def',
380 'libdbusglibsymboltable.cc',
381 'libdbusglibsymboltable.h',
382 'linuxfdwalk.c',
383 'linuxfdwalk.h',
384 'linuxwindowpicker.cc',
385 'linuxwindowpicker.h',
386 'logging.cc',
387 'logging.h',
388 'macasyncsocket.cc',
389 'macasyncsocket.h',
390 'maccocoasocketserver.h',
391 'maccocoasocketserver.mm',
392 'macsocketserver.cc',
393 'macsocketserver.h',
394 'macwindowpicker.cc',
395 'macwindowpicker.h',
396 'mathutils.h',
397 'multipart.cc',
398 'multipart.h',
399 'natserver.cc',
400 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000401 'natsocketfactory.cc',
402 'natsocketfactory.h',
403 'nattypes.cc',
404 'nattypes.h',
405 'openssl.h',
406 'optionsfile.cc',
407 'optionsfile.h',
408 'posix.cc',
409 'posix.h',
410 'profiler.cc',
411 'profiler.h',
412 'proxyserver.cc',
413 'proxyserver.h',
414 'refcount.h',
415 'referencecountedsingletonfactory.h',
416 'rollingaccumulator.h',
417 'safe_conversions.h',
418 'safe_conversions_impl.h',
419 'scopedptrcollection.h',
420 'scoped_ref_ptr.h',
421 'sec_buffer.h',
422 'sharedexclusivelock.cc',
423 'sharedexclusivelock.h',
424 'sslconfig.h',
425 'sslroots.h',
426 'stringdigest.h',
427 'testbase64.h',
428 'testclient.cc',
429 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000430 'transformadapter.cc',
431 'transformadapter.h',
432 'versionparsing.cc',
433 'versionparsing.h',
434 'virtualsocketserver.cc',
435 'virtualsocketserver.h',
436 'win32regkey.cc',
437 'win32regkey.h',
438 'win32socketinit.cc',
439 'win32socketinit.h',
440 'win32socketserver.cc',
441 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000442 'window.h',
443 'windowpickerfactory.h',
444 'windowpicker.h',
445 ],
446 'defines': [
447 'NO_MAIN_THREAD_WRAPPING',
448 'SSL_USE_NSS',
449 ],
450 'direct_dependent_settings': {
451 'defines': [
452 'NO_MAIN_THREAD_WRAPPING',
453 'SSL_USE_NSS',
454 ],
455 },
456 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000457 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000458 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000459 'dependencies': [
460 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
461 ],
462 }, {
463 'include_dirs': [
464 '<(json_root)',
465 ],
466 'defines': [
467 # When defined changes the include path for json.h to where it
468 # is expected to be when building json outside of the standalone
469 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000470 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000471 ],
472 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000473 ],
474 'sources!': [
475 '../overrides/webrtc/base/basictypes.h',
476 '../overrides/webrtc/base/constructormagic.h',
477 '../overrides/webrtc/base/win32socketinit.cc',
478 '../overrides/webrtc/base/logging.cc',
479 '../overrides/webrtc/base/logging.h',
480 ],
481 }],
482 ['use_openssl==1', {
483 'defines': [
484 'SSL_USE_OPENSSL',
485 'HAVE_OPENSSL_SSL_H',
486 ],
487 'direct_dependent_settings': {
488 'defines': [
489 'SSL_USE_OPENSSL',
490 'HAVE_OPENSSL_SSL_H',
491 ],
492 },
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000493 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000494 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000495 'dependencies': [
496 '<(DEPTH)/third_party/openssl/openssl.gyp:openssl',
497 ],
498 }, {
499 'include_dirs': [
500 '<(ssl_root)',
501 ],
502 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000503 ],
504 }, {
505 'defines': [
506 'SSL_USE_NSS',
507 'HAVE_NSS_SSL_H',
508 'SSL_USE_NSS_RNG',
509 ],
510 'direct_dependent_settings': {
511 'defines': [
512 'SSL_USE_NSS',
513 'HAVE_NSS_SSL_H',
514 'SSL_USE_NSS_RNG',
515 ],
516 },
517 }],
518 ['OS == "android"', {
519 'defines': [
520 'HAVE_OPENSSL_SSL_H'
521 ],
522 'direct_dependent_settings': {
523 'defines': [
524 'HAVE_OPENSSL_SSL_H'
525 ],
526 },
527 'link_settings': {
528 'libraries': [
529 '-llog',
530 '-lGLESv2',
531 ],
532 },
533 }, {
534 'defines': [
535 'HAVE_NSS_SSL_H'
536 'SSL_USE_NSS_RNG',
537 ],
538 'direct_dependent_settings': {
539 'defines': [
540 'HAVE_NSS_SSL_H'
541 'SSL_USE_NSS_RNG',
542 ],
543 },
544 'sources!': [
545 'ifaddrs-android.cc',
546 'ifaddrs-android.h',
547 ],
548 }],
549 ['OS=="ios"', {
550 'all_dependent_settings': {
551 'xcode_settings': {
552 'OTHER_LDFLAGS': [
553 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000554 '-framework Security',
555 '-framework SystemConfiguration',
556 '-framework UIKit',
557 ],
558 },
559 },
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000560 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000561 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000562 'dependencies': [
563 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
564 ]
565 }, {
566 'include_dirs': [
567 '<(ssl_root)',
568 ],
569 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000570 ],
571 }],
572 ['OS=="linux"', {
573 'link_settings': {
574 'libraries': [
575 '-lcrypto',
576 '-ldl',
577 '-lrt',
578 '-lXext',
579 '-lX11',
580 '-lXcomposite',
581 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000582 ],
583 },
henrike@webrtc.org4ddcc402014-06-25 20:14:13 +0000584 'conditions': [
585 ['build_ssl==1', {
586 'link_settings': {
587 'libraries': [
588 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
589 ],
590 },
591 'cflags': [
592 '<!@(<(pkg-config) --cflags nss)',
593 ],
594 'ldflags': [
595 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
596 ],
597 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000598 ],
599 }, {
600 'sources!': [
601 'dbus.cc',
602 'dbus.h',
603 'libdbusglibsymboltable.cc',
604 'libdbusglibsymboltable.h',
605 'linuxfdwalk.c',
606 'linuxwindowpicker.cc',
607 'linuxwindowpicker.h',
608 ],
609 }],
610 ['OS=="mac"', {
611 'link_settings': {
612 'libraries': [
613 '$(SDKROOT)/usr/lib/libcrypto.dylib',
614 '$(SDKROOT)/usr/lib/libssl.dylib',
615 ],
616 },
617 'all_dependent_settings': {
618 'link_settings': {
619 'xcode_settings': {
620 'OTHER_LDFLAGS': [
621 '-framework Cocoa',
622 '-framework Foundation',
623 '-framework IOKit',
624 '-framework Security',
625 '-framework SystemConfiguration',
626 ],
627 },
628 },
629 },
630 'conditions': [
631 ['target_arch=="ia32"', {
632 'all_dependent_settings': {
633 'link_settings': {
634 'xcode_settings': {
635 'OTHER_LDFLAGS': [
636 '-framework Carbon',
637 ],
638 },
639 },
640 },
641 }],
642 ],
643 }, {
644 'sources!': [
645 'macasyncsocket.cc',
646 'macasyncsocket.h',
647 'maccocoasocketserver.h',
648 'maccocoasocketserver.mm',
649 'macconversion.cc',
650 'macconversion.h',
651 'macsocketserver.cc',
652 'macsocketserver.h',
653 'macutils.cc',
654 'macutils.h',
655 'macwindowpicker.cc',
656 'macwindowpicker.h',
657 ],
658 }],
659 ['OS=="win"', {
660 'link_settings': {
661 'libraries': [
662 '-lcrypt32.lib',
663 '-liphlpapi.lib',
664 '-lsecur32.lib',
665 ],
666 },
667 # Suppress warnings about WIN32_LEAN_AND_MEAN.
668 'msvs_disabled_warnings': [4005, 4703],
669 'defines': [
670 '_CRT_NONSTDC_NO_DEPRECATE',
671 ],
672 }, {
673 'sources/': [
674 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
675 ],
676 'sources!': [
677 'schanneladapter.cc',
678 'schanneladapter.h',
679 'winping.cc',
680 'winping.h',
681 'winfirewall.cc',
682 'winfirewall.h',
683 ],
684 }],
685 ['os_posix==0', {
686 'sources!': [
687 'latebindingsymboltable.cc',
688 'latebindingsymboltable.h',
689 'posix.cc',
690 'posix.h',
691 'unixfilesystem.cc',
692 'unixfilesystem.h',
693 ],
694 }, {
695 'configurations': {
696 'Debug_Base': {
697 'defines': [
698 # Chromium's build/common.gypi defines this for all posix
699 # _except_ for ios & mac. We want it there as well, e.g.
700 # because ASSERT and friends trigger off of it.
701 '_DEBUG',
702 ],
703 },
704 }
705 }],
706 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
707 'defines': [
708 'CARBON_DEPRECATED=YES',
709 ],
710 }],
711 ['OS!="ios" and OS!="mac"', {
712 'sources!': [
713 'scoped_autorelease_pool.mm',
714 ],
715 }],
henrike@webrtc.org5f2c81c2014-07-07 17:42:45 +0000716 ['OS=="ios"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000717 'sources!': [
718 'openssl.h',
719 'openssladapter.cc',
720 'openssladapter.h',
721 'openssldigest.cc',
722 'openssldigest.h',
723 'opensslidentity.cc',
724 'opensslidentity.h',
725 'opensslstreamadapter.cc',
726 'opensslstreamadapter.h',
727 ],
728 }],
729 ['OS!="linux" and OS!="android"', {
730 'sources!': [
731 'linux.cc',
732 'linux.h',
733 ],
734 }],
735 ['OS == "mac" or OS == "ios" or OS == "win"', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000736 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000737 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000738 'dependencies': [
739 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
740 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
741 '<(DEPTH)/third_party/nss/nss.gyp:nss',
742 ],
743 }, {
744 'include_dirs': [
745 '<(ssl_root)',
746 ],
747 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000748 ],
749 }],
750 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000751 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000752 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000753 'dependencies': [
754 '<(DEPTH)/build/linux/system.gyp:ssl',
755 ],
756 }, {
757 'include_dirs': [
758 '<(ssl_root)',
759 ],
760 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000761 ],
762 }],
763 ],
764 },
765 ],
766}