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