blob: 6c9fd0e947326d26e0dd74f0c0bc692183c8073d [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 }, {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000503 'conditions': [
504 ['use_legacy_ssl_defaults!=1', {
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 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000518 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000519 }],
520 ['OS == "android"', {
521 'defines': [
522 'HAVE_OPENSSL_SSL_H'
523 ],
524 'direct_dependent_settings': {
525 'defines': [
526 'HAVE_OPENSSL_SSL_H'
527 ],
528 },
529 'link_settings': {
530 'libraries': [
531 '-llog',
532 '-lGLESv2',
533 ],
534 },
535 }, {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000536 'conditions': [
537 ['use_legacy_ssl_defaults!=1', {
538 'defines': [
539 'HAVE_NSS_SSL_H',
540 'SSL_USE_NSS_RNG',
541 ],
542 'direct_dependent_settings': {
543 'defines': [
544 'HAVE_NSS_SSL_H',
545 'SSL_USE_NSS_RNG',
546 ],
547 },
548 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000549 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000550 'sources!': [
551 'ifaddrs-android.cc',
552 'ifaddrs-android.h',
553 ],
554 }],
555 ['OS=="ios"', {
556 'all_dependent_settings': {
557 'xcode_settings': {
558 'OTHER_LDFLAGS': [
559 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000560 '-framework Security',
561 '-framework SystemConfiguration',
562 '-framework UIKit',
563 ],
564 },
565 },
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000566 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000567 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000568 'dependencies': [
569 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
570 ]
571 }, {
572 'include_dirs': [
573 '<(ssl_root)',
574 ],
575 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000576 ],
577 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000578 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000579 'link_settings': {
580 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000581 '-ldl',
582 '-lrt',
583 '-lXext',
584 '-lX11',
585 '-lXcomposite',
586 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000587 ],
588 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000589 }, {
590 'sources!': [
591 'x11windowpicker.cc',
592 'x11windowpicker.h',
593 ],
594 }],
595 ['OS=="linux"', {
596 'link_settings': {
597 'libraries': [
598 '-lcrypto',
599 '-ldl',
600 '-lrt',
601 ],
602 },
henrike@webrtc.org4ddcc402014-06-25 20:14:13 +0000603 'conditions': [
604 ['build_ssl==1', {
605 'link_settings': {
606 'libraries': [
607 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
608 ],
609 },
610 'cflags': [
611 '<!@(<(pkg-config) --cflags nss)',
612 ],
613 'ldflags': [
614 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
615 ],
616 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000617 ],
618 }, {
619 'sources!': [
620 'dbus.cc',
621 'dbus.h',
622 'libdbusglibsymboltable.cc',
623 'libdbusglibsymboltable.h',
624 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000625 ],
626 }],
627 ['OS=="mac"', {
628 'link_settings': {
629 'libraries': [
630 '$(SDKROOT)/usr/lib/libcrypto.dylib',
631 '$(SDKROOT)/usr/lib/libssl.dylib',
632 ],
633 },
634 'all_dependent_settings': {
635 'link_settings': {
636 'xcode_settings': {
637 'OTHER_LDFLAGS': [
638 '-framework Cocoa',
639 '-framework Foundation',
640 '-framework IOKit',
641 '-framework Security',
642 '-framework SystemConfiguration',
643 ],
644 },
645 },
646 },
647 'conditions': [
648 ['target_arch=="ia32"', {
649 'all_dependent_settings': {
650 'link_settings': {
651 'xcode_settings': {
652 'OTHER_LDFLAGS': [
653 '-framework Carbon',
654 ],
655 },
656 },
657 },
658 }],
659 ],
660 }, {
661 'sources!': [
662 'macasyncsocket.cc',
663 'macasyncsocket.h',
664 'maccocoasocketserver.h',
665 'maccocoasocketserver.mm',
666 'macconversion.cc',
667 'macconversion.h',
668 'macsocketserver.cc',
669 'macsocketserver.h',
670 'macutils.cc',
671 'macutils.h',
672 'macwindowpicker.cc',
673 'macwindowpicker.h',
674 ],
675 }],
676 ['OS=="win"', {
677 'link_settings': {
678 'libraries': [
679 '-lcrypt32.lib',
680 '-liphlpapi.lib',
681 '-lsecur32.lib',
682 ],
683 },
684 # Suppress warnings about WIN32_LEAN_AND_MEAN.
685 'msvs_disabled_warnings': [4005, 4703],
686 'defines': [
687 '_CRT_NONSTDC_NO_DEPRECATE',
688 ],
689 }, {
690 'sources/': [
691 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
692 ],
693 'sources!': [
694 'schanneladapter.cc',
695 'schanneladapter.h',
696 'winping.cc',
697 'winping.h',
698 'winfirewall.cc',
699 'winfirewall.h',
700 ],
701 }],
702 ['os_posix==0', {
703 'sources!': [
704 'latebindingsymboltable.cc',
705 'latebindingsymboltable.h',
706 'posix.cc',
707 'posix.h',
708 'unixfilesystem.cc',
709 'unixfilesystem.h',
710 ],
711 }, {
712 'configurations': {
713 'Debug_Base': {
714 'defines': [
715 # Chromium's build/common.gypi defines this for all posix
716 # _except_ for ios & mac. We want it there as well, e.g.
717 # because ASSERT and friends trigger off of it.
718 '_DEBUG',
719 ],
720 },
721 }
722 }],
723 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
724 'defines': [
725 'CARBON_DEPRECATED=YES',
726 ],
727 }],
728 ['OS!="ios" and OS!="mac"', {
729 'sources!': [
730 'scoped_autorelease_pool.mm',
731 ],
732 }],
henrike@webrtc.org5f2c81c2014-07-07 17:42:45 +0000733 ['OS=="ios"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000734 'sources!': [
735 'openssl.h',
736 'openssladapter.cc',
737 'openssladapter.h',
738 'openssldigest.cc',
739 'openssldigest.h',
740 'opensslidentity.cc',
741 'opensslidentity.h',
742 'opensslstreamadapter.cc',
743 'opensslstreamadapter.h',
744 ],
745 }],
746 ['OS!="linux" and OS!="android"', {
747 'sources!': [
748 'linux.cc',
749 'linux.h',
750 ],
751 }],
752 ['OS == "mac" or OS == "ios" or OS == "win"', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000753 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000754 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000755 'dependencies': [
756 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
757 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
758 '<(DEPTH)/third_party/nss/nss.gyp:nss',
759 ],
760 }, {
761 'include_dirs': [
762 '<(ssl_root)',
763 ],
764 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000765 ],
766 }],
767 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000768 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000769 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000770 'dependencies': [
771 '<(DEPTH)/build/linux/system.gyp:ssl',
772 ],
773 }, {
774 'include_dirs': [
775 '<(ssl_root)',
776 ],
777 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000778 ],
779 }],
780 ],
781 },
782 ],
783}