blob: 5075c1e4affd107dbdb0613c39a9cabf259ead27 [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': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000575 '-ldl',
576 '-lrt',
577 '-lXext',
578 '-lX11',
579 '-lXcomposite',
580 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000581 ],
582 },
henrike@webrtc.org4ddcc402014-06-25 20:14:13 +0000583 'conditions': [
584 ['build_ssl==1', {
585 'link_settings': {
586 'libraries': [
587 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
588 ],
589 },
590 'cflags': [
591 '<!@(<(pkg-config) --cflags nss)',
592 ],
593 'ldflags': [
594 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
595 ],
596 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000597 ],
598 }, {
599 'sources!': [
600 'dbus.cc',
601 'dbus.h',
602 'libdbusglibsymboltable.cc',
603 'libdbusglibsymboltable.h',
604 'linuxfdwalk.c',
605 'linuxwindowpicker.cc',
606 'linuxwindowpicker.h',
607 ],
608 }],
609 ['OS=="mac"', {
610 'link_settings': {
611 'libraries': [
612 '$(SDKROOT)/usr/lib/libcrypto.dylib',
613 '$(SDKROOT)/usr/lib/libssl.dylib',
614 ],
615 },
616 'all_dependent_settings': {
617 'link_settings': {
618 'xcode_settings': {
619 'OTHER_LDFLAGS': [
620 '-framework Cocoa',
621 '-framework Foundation',
622 '-framework IOKit',
623 '-framework Security',
624 '-framework SystemConfiguration',
625 ],
626 },
627 },
628 },
629 'conditions': [
630 ['target_arch=="ia32"', {
631 'all_dependent_settings': {
632 'link_settings': {
633 'xcode_settings': {
634 'OTHER_LDFLAGS': [
635 '-framework Carbon',
636 ],
637 },
638 },
639 },
640 }],
641 ],
642 }, {
643 'sources!': [
644 'macasyncsocket.cc',
645 'macasyncsocket.h',
646 'maccocoasocketserver.h',
647 'maccocoasocketserver.mm',
648 'macconversion.cc',
649 'macconversion.h',
650 'macsocketserver.cc',
651 'macsocketserver.h',
652 'macutils.cc',
653 'macutils.h',
654 'macwindowpicker.cc',
655 'macwindowpicker.h',
656 ],
657 }],
658 ['OS=="win"', {
659 'link_settings': {
660 'libraries': [
661 '-lcrypt32.lib',
662 '-liphlpapi.lib',
663 '-lsecur32.lib',
664 ],
665 },
666 # Suppress warnings about WIN32_LEAN_AND_MEAN.
667 'msvs_disabled_warnings': [4005, 4703],
668 'defines': [
669 '_CRT_NONSTDC_NO_DEPRECATE',
670 ],
671 }, {
672 'sources/': [
673 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
674 ],
675 'sources!': [
676 'schanneladapter.cc',
677 'schanneladapter.h',
678 'winping.cc',
679 'winping.h',
680 'winfirewall.cc',
681 'winfirewall.h',
682 ],
683 }],
684 ['os_posix==0', {
685 'sources!': [
686 'latebindingsymboltable.cc',
687 'latebindingsymboltable.h',
688 'posix.cc',
689 'posix.h',
690 'unixfilesystem.cc',
691 'unixfilesystem.h',
692 ],
693 }, {
694 'configurations': {
695 'Debug_Base': {
696 'defines': [
697 # Chromium's build/common.gypi defines this for all posix
698 # _except_ for ios & mac. We want it there as well, e.g.
699 # because ASSERT and friends trigger off of it.
700 '_DEBUG',
701 ],
702 },
703 }
704 }],
705 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
706 'defines': [
707 'CARBON_DEPRECATED=YES',
708 ],
709 }],
710 ['OS!="ios" and OS!="mac"', {
711 'sources!': [
712 'scoped_autorelease_pool.mm',
713 ],
714 }],
henrike@webrtc.org5f2c81c2014-07-07 17:42:45 +0000715 ['OS=="ios"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000716 'sources!': [
717 'openssl.h',
718 'openssladapter.cc',
719 'openssladapter.h',
720 'openssldigest.cc',
721 'openssldigest.h',
722 'opensslidentity.cc',
723 'opensslidentity.h',
724 'opensslstreamadapter.cc',
725 'opensslstreamadapter.h',
726 ],
727 }],
728 ['OS!="linux" and OS!="android"', {
729 'sources!': [
730 'linux.cc',
731 'linux.h',
732 ],
733 }],
734 ['OS == "mac" or OS == "ios" or OS == "win"', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000735 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000736 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000737 'dependencies': [
738 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
739 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
740 '<(DEPTH)/third_party/nss/nss.gyp:nss',
741 ],
742 }, {
743 'include_dirs': [
744 '<(ssl_root)',
745 ],
746 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000747 ],
748 }],
749 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000750 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000751 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000752 'dependencies': [
753 '<(DEPTH)/build/linux/system.gyp:ssl',
754 ],
755 }, {
756 'include_dirs': [
757 '<(ssl_root)',
758 ],
759 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000760 ],
761 }],
762 ],
763 },
764 ],
765}