blob: bfc6ef9d7765181901b2f9eb1a773d7ce13844fd [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 {
kjellander@webrtc.org665d8612014-09-11 09:22:13 +000028 # Temporary target until Chromium's
29 # src/third_party/libjingle/libjingle.gyp is updated to use rtc_base.
30 # TODO(kjellander): Remove when r7140 is rolled into Chromium's DEPS.
31 'target_name': 'webrtc_base',
32 'type': 'none',
33 'dependencies': [
34 'rtc_base',
35 ],
36 },
37 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000038 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000039 'type': 'static_library',
40 'defines': [
41 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000042 'LOGGING=1',
43 'USE_WEBRTC_DEV_BRANCH',
44 ],
45 'sources': [
46 'asyncfile.cc',
47 'asyncfile.h',
48 'asynchttprequest.cc',
49 'asynchttprequest.h',
50 'asyncinvoker.cc',
51 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000052 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000053 'asyncpacketsocket.h',
54 'asyncresolverinterface.h',
55 'asyncsocket.cc',
56 'asyncsocket.h',
57 'asynctcpsocket.cc',
58 'asynctcpsocket.h',
59 'asyncudpsocket.cc',
60 'asyncudpsocket.h',
61 'atomicops.h',
62 'autodetectproxy.cc',
63 'autodetectproxy.h',
64 'bandwidthsmoother.cc',
65 'bandwidthsmoother.h',
66 'base64.cc',
67 'base64.h',
68 'basicdefs.h',
69 'basictypes.h',
70 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000071 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000072 'buffer.h',
73 'bytebuffer.cc',
74 'bytebuffer.h',
75 'byteorder.h',
76 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000077 'callback.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000078 'checks.cc',
79 'checks.h',
80 'common.cc',
81 'common.h',
82 'constructormagic.h',
83 'cpumonitor.cc',
84 'cpumonitor.h',
85 'crc32.cc',
86 'crc32.h',
87 'criticalsection.h',
88 'cryptstring.h',
89 'dbus.cc',
90 'dbus.h',
91 'diskcache.cc',
92 'diskcache.h',
93 'diskcache_win32.cc',
94 'diskcache_win32.h',
95 'event.cc',
96 'event.h',
minyue@webrtc.org74aaf292014-07-16 21:28:26 +000097 'exp_filter.cc',
98 'exp_filter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000099 'filelock.cc',
100 'filelock.h',
101 'fileutils.cc',
102 'fileutils.h',
103 'fileutils_mock.h',
104 'firewallsocketserver.cc',
105 'firewallsocketserver.h',
106 'flags.cc',
107 'flags.h',
108 'gunit_prod.h',
109 'helpers.cc',
110 'helpers.h',
111 'httpbase.cc',
112 'httpbase.h',
113 'httpclient.cc',
114 'httpclient.h',
115 'httpcommon-inl.h',
116 'httpcommon.cc',
117 'httpcommon.h',
118 'httprequest.cc',
119 'httprequest.h',
120 'httpserver.cc',
121 'httpserver.h',
122 'ifaddrs-android.cc',
123 'ifaddrs-android.h',
124 'iosfilesystem.mm',
125 'ipaddress.cc',
126 'ipaddress.h',
127 'json.cc',
128 'json.h',
129 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000130 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000131 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000132 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000133 'libdbusglibsymboltable.cc',
134 'libdbusglibsymboltable.h',
135 'linux.cc',
136 'linux.h',
137 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000138 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000139 'linked_ptr.h',
140 'logging.cc',
141 'logging.h',
142 'macasyncsocket.cc',
143 'macasyncsocket.h',
144 'maccocoasocketserver.h',
145 'maccocoasocketserver.mm',
146 'maccocoathreadhelper.h',
147 'maccocoathreadhelper.mm',
148 'macconversion.cc',
149 'macconversion.h',
150 'macsocketserver.cc',
151 'macsocketserver.h',
152 'macutils.cc',
153 'macutils.h',
154 'macwindowpicker.cc',
155 'macwindowpicker.h',
156 'mathutils.h',
157 'md5.cc',
158 'md5.h',
159 'md5digest.h',
160 'messagedigest.cc',
161 'messagedigest.h',
162 'messagehandler.cc',
163 'messagehandler.h',
164 'messagequeue.cc',
165 'messagequeue.h',
166 'multipart.cc',
167 'multipart.h',
168 'natserver.cc',
169 'natserver.h',
170 'natsocketfactory.cc',
171 'natsocketfactory.h',
172 'nattypes.cc',
173 'nattypes.h',
174 'nethelpers.cc',
175 'nethelpers.h',
176 'network.cc',
177 'network.h',
178 'nssidentity.cc',
179 'nssidentity.h',
180 'nssstreamadapter.cc',
181 'nssstreamadapter.h',
182 'nullsocketserver.h',
183 'openssl.h',
184 'openssladapter.cc',
185 'openssladapter.h',
186 'openssldigest.cc',
187 'openssldigest.h',
188 'opensslidentity.cc',
189 'opensslidentity.h',
190 'opensslstreamadapter.cc',
191 'opensslstreamadapter.h',
192 'optionsfile.cc',
193 'optionsfile.h',
194 'pathutils.cc',
195 'pathutils.h',
196 'physicalsocketserver.cc',
197 'physicalsocketserver.h',
198 'posix.cc',
199 'posix.h',
200 'profiler.cc',
201 'profiler.h',
202 'proxydetect.cc',
203 'proxydetect.h',
204 'proxyinfo.cc',
205 'proxyinfo.h',
206 'proxyserver.cc',
207 'proxyserver.h',
208 'ratelimiter.cc',
209 'ratelimiter.h',
210 'ratetracker.cc',
211 'ratetracker.h',
212 'refcount.h',
213 'referencecountedsingletonfactory.h',
214 'rollingaccumulator.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000215 'safe_conversions.h',
216 'safe_conversions_impl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000217 'schanneladapter.cc',
218 'schanneladapter.h',
219 'scoped_autorelease_pool.h',
220 'scoped_autorelease_pool.mm',
221 'scoped_ptr.h',
222 'scoped_ref_ptr.h',
223 'scopedptrcollection.h',
224 'sec_buffer.h',
225 'sha1.cc',
226 'sha1.h',
227 'sha1digest.h',
228 'sharedexclusivelock.cc',
229 'sharedexclusivelock.h',
230 'signalthread.cc',
231 'signalthread.h',
232 'sigslot.h',
233 'sigslotrepeater.h',
234 'socket.h',
235 'socketadapters.cc',
236 'socketadapters.h',
237 'socketaddress.cc',
238 'socketaddress.h',
239 'socketaddresspair.cc',
240 'socketaddresspair.h',
241 'socketfactory.h',
242 'socketpool.cc',
243 'socketpool.h',
244 'socketserver.h',
245 'socketstream.cc',
246 'socketstream.h',
247 'ssladapter.cc',
248 'ssladapter.h',
249 'sslconfig.h',
250 'sslfingerprint.cc',
251 'sslfingerprint.h',
252 'sslidentity.cc',
253 'sslidentity.h',
254 'sslroots.h',
255 'sslsocketfactory.cc',
256 'sslsocketfactory.h',
257 'sslstreamadapter.cc',
258 'sslstreamadapter.h',
259 'sslstreamadapterhelper.cc',
260 'sslstreamadapterhelper.h',
261 'stream.cc',
262 'stream.h',
263 'stringdigest.h',
264 'stringencode.cc',
265 'stringencode.h',
266 'stringutils.cc',
267 'stringutils.h',
268 'systeminfo.cc',
269 'systeminfo.h',
270 'task.cc',
271 'task.h',
272 'taskparent.cc',
273 'taskparent.h',
274 'taskrunner.cc',
275 'taskrunner.h',
276 'testclient.cc',
277 'testclient.h',
278 'thread.cc',
279 'thread.h',
henrik.lundin@webrtc.org1e3c5c22014-06-16 11:34:44 +0000280 'thread_checker.h',
281 'thread_checker_impl.cc',
282 'thread_checker_impl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000283 'timeutils.cc',
284 'timeutils.h',
285 'timing.cc',
286 'timing.h',
287 'transformadapter.cc',
288 'transformadapter.h',
289 'unixfilesystem.cc',
290 'unixfilesystem.h',
291 'urlencode.cc',
292 'urlencode.h',
293 'versionparsing.cc',
294 'versionparsing.h',
295 'virtualsocketserver.cc',
296 'virtualsocketserver.h',
297 'win32.cc',
298 'win32.h',
299 'win32filesystem.cc',
300 'win32filesystem.h',
301 'win32regkey.cc',
302 'win32regkey.h',
303 'win32securityerrors.cc',
304 'win32socketinit.cc',
305 'win32socketinit.h',
306 'win32socketserver.cc',
307 'win32socketserver.h',
308 'win32window.cc',
309 'win32window.h',
310 'win32windowpicker.cc',
311 'win32windowpicker.h',
312 'window.h',
313 'windowpicker.h',
314 'windowpickerfactory.h',
315 'winfirewall.cc',
316 'winfirewall.h',
317 'winping.cc',
318 'winping.h',
319 'worker.cc',
320 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000321 'x11windowpicker.cc',
322 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000323 '../overrides/webrtc/base/basictypes.h',
324 '../overrides/webrtc/base/constructormagic.h',
325 '../overrides/webrtc/base/logging.cc',
326 '../overrides/webrtc/base/logging.h',
327 '../overrides/webrtc/base/win32socketinit.cc',
328 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000329 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000330 # these flags.
331 'cflags!': [
332 '-Wextra',
333 '-Wall',
334 ],
335 'cflags_cc!': [
336 '-Wnon-virtual-dtor',
337 ],
338 'direct_dependent_settings': {
339 'cflags_cc!': [
340 '-Wnon-virtual-dtor',
341 ],
342 'defines': [
343 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000344 ],
345 },
346 'include_dirs': [
347 '../../third_party/jsoncpp/overrides/include',
348 '../../third_party/jsoncpp/source/include',
349 ],
350 'conditions': [
351 ['build_with_chromium==1', {
352 'include_dirs': [
353 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000354 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000355 ],
356 'sources!': [
357 'asyncinvoker.cc',
358 'asyncinvoker.h',
359 'asyncinvoker-inl.h',
360 'asyncresolverinterface.h',
361 'atomicops.h',
362 'bandwidthsmoother.cc',
363 'bandwidthsmoother.h',
364 'basictypes.h',
365 'bind.h',
366 'bind.h.pump',
367 'buffer.h',
368 'callback.h',
369 'callback.h.pump',
370 'constructormagic.h',
371 'dbus.cc',
372 'dbus.h',
373 'diskcache_win32.cc',
374 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000375 'filelock.cc',
376 'filelock.h',
377 'fileutils_mock.h',
378 'genericslot.h',
379 'genericslot.h.pump',
380 'httpserver.cc',
381 'httpserver.h',
382 'json.cc',
383 'json.h',
384 'latebindingsymboltable.cc',
385 'latebindingsymboltable.cc.def',
386 'latebindingsymboltable.h',
387 'latebindingsymboltable.h.def',
388 'libdbusglibsymboltable.cc',
389 'libdbusglibsymboltable.h',
390 'linuxfdwalk.c',
391 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000392 'x11windowpicker.cc',
393 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000394 'logging.cc',
395 'logging.h',
396 'macasyncsocket.cc',
397 'macasyncsocket.h',
398 'maccocoasocketserver.h',
399 'maccocoasocketserver.mm',
400 'macsocketserver.cc',
401 'macsocketserver.h',
402 'macwindowpicker.cc',
403 'macwindowpicker.h',
404 'mathutils.h',
405 'multipart.cc',
406 'multipart.h',
407 'natserver.cc',
408 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000409 'natsocketfactory.cc',
410 'natsocketfactory.h',
411 'nattypes.cc',
412 'nattypes.h',
413 'openssl.h',
414 'optionsfile.cc',
415 'optionsfile.h',
416 'posix.cc',
417 'posix.h',
418 'profiler.cc',
419 'profiler.h',
420 'proxyserver.cc',
421 'proxyserver.h',
422 'refcount.h',
423 'referencecountedsingletonfactory.h',
424 'rollingaccumulator.h',
425 'safe_conversions.h',
426 'safe_conversions_impl.h',
427 'scopedptrcollection.h',
428 'scoped_ref_ptr.h',
429 'sec_buffer.h',
430 'sharedexclusivelock.cc',
431 'sharedexclusivelock.h',
432 'sslconfig.h',
433 'sslroots.h',
434 'stringdigest.h',
435 'testbase64.h',
436 'testclient.cc',
437 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000438 'transformadapter.cc',
439 'transformadapter.h',
440 'versionparsing.cc',
441 'versionparsing.h',
442 'virtualsocketserver.cc',
443 'virtualsocketserver.h',
444 'win32regkey.cc',
445 'win32regkey.h',
446 'win32socketinit.cc',
447 'win32socketinit.h',
448 'win32socketserver.cc',
449 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000450 'window.h',
451 'windowpickerfactory.h',
452 'windowpicker.h',
453 ],
454 'defines': [
455 'NO_MAIN_THREAD_WRAPPING',
456 'SSL_USE_NSS',
457 ],
458 'direct_dependent_settings': {
459 'defines': [
460 'NO_MAIN_THREAD_WRAPPING',
461 'SSL_USE_NSS',
462 ],
463 },
464 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000465 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000466 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000467 'dependencies': [
468 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
469 ],
470 }, {
471 'include_dirs': [
472 '<(json_root)',
473 ],
474 'defines': [
475 # When defined changes the include path for json.h to where it
476 # is expected to be when building json outside of the standalone
477 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000478 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000479 ],
480 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000481 ],
482 'sources!': [
483 '../overrides/webrtc/base/basictypes.h',
484 '../overrides/webrtc/base/constructormagic.h',
485 '../overrides/webrtc/base/win32socketinit.cc',
486 '../overrides/webrtc/base/logging.cc',
487 '../overrides/webrtc/base/logging.h',
488 ],
489 }],
490 ['use_openssl==1', {
491 'defines': [
492 'SSL_USE_OPENSSL',
493 'HAVE_OPENSSL_SSL_H',
494 ],
495 'direct_dependent_settings': {
496 'defines': [
497 'SSL_USE_OPENSSL',
498 'HAVE_OPENSSL_SSL_H',
499 ],
500 },
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000501 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000502 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000503 'dependencies': [
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000504 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000505 ],
506 }, {
507 'include_dirs': [
508 '<(ssl_root)',
509 ],
510 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000511 ],
512 }, {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000513 'conditions': [
514 ['use_legacy_ssl_defaults!=1', {
515 'defines': [
516 'SSL_USE_NSS',
517 'HAVE_NSS_SSL_H',
518 'SSL_USE_NSS_RNG',
519 ],
520 'direct_dependent_settings': {
521 'defines': [
522 'SSL_USE_NSS',
523 'HAVE_NSS_SSL_H',
524 'SSL_USE_NSS_RNG',
525 ],
526 },
527 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000528 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000529 }],
530 ['OS == "android"', {
531 'defines': [
532 'HAVE_OPENSSL_SSL_H'
533 ],
534 'direct_dependent_settings': {
535 'defines': [
536 'HAVE_OPENSSL_SSL_H'
537 ],
538 },
539 'link_settings': {
540 'libraries': [
541 '-llog',
542 '-lGLESv2',
543 ],
544 },
545 }, {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000546 'conditions': [
547 ['use_legacy_ssl_defaults!=1', {
548 'defines': [
549 'HAVE_NSS_SSL_H',
550 'SSL_USE_NSS_RNG',
551 ],
552 'direct_dependent_settings': {
553 'defines': [
554 'HAVE_NSS_SSL_H',
555 'SSL_USE_NSS_RNG',
556 ],
557 },
558 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000559 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000560 'sources!': [
561 'ifaddrs-android.cc',
562 'ifaddrs-android.h',
563 ],
564 }],
565 ['OS=="ios"', {
566 'all_dependent_settings': {
567 'xcode_settings': {
568 'OTHER_LDFLAGS': [
569 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000570 '-framework Security',
571 '-framework SystemConfiguration',
572 '-framework UIKit',
573 ],
574 },
575 },
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000576 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000577 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000578 'dependencies': [
579 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
580 ]
581 }, {
582 'include_dirs': [
583 '<(ssl_root)',
584 ],
585 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000586 ],
587 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000588 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000589 'link_settings': {
590 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000591 '-ldl',
592 '-lrt',
593 '-lXext',
594 '-lX11',
595 '-lXcomposite',
596 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000597 ],
598 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000599 }, {
600 'sources!': [
601 'x11windowpicker.cc',
602 'x11windowpicker.h',
603 ],
604 }],
605 ['OS=="linux"', {
606 'link_settings': {
607 'libraries': [
608 '-lcrypto',
609 '-ldl',
610 '-lrt',
611 ],
612 },
henrike@webrtc.org4ddcc402014-06-25 20:14:13 +0000613 'conditions': [
614 ['build_ssl==1', {
615 'link_settings': {
616 'libraries': [
617 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
618 ],
619 },
620 'cflags': [
621 '<!@(<(pkg-config) --cflags nss)',
622 ],
623 'ldflags': [
624 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
625 ],
626 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000627 ],
628 }, {
629 'sources!': [
630 'dbus.cc',
631 'dbus.h',
632 'libdbusglibsymboltable.cc',
633 'libdbusglibsymboltable.h',
634 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000635 ],
636 }],
637 ['OS=="mac"', {
638 'link_settings': {
639 'libraries': [
640 '$(SDKROOT)/usr/lib/libcrypto.dylib',
641 '$(SDKROOT)/usr/lib/libssl.dylib',
642 ],
643 },
644 'all_dependent_settings': {
645 'link_settings': {
646 'xcode_settings': {
647 'OTHER_LDFLAGS': [
648 '-framework Cocoa',
649 '-framework Foundation',
650 '-framework IOKit',
651 '-framework Security',
652 '-framework SystemConfiguration',
653 ],
654 },
655 },
656 },
657 'conditions': [
658 ['target_arch=="ia32"', {
659 'all_dependent_settings': {
660 'link_settings': {
661 'xcode_settings': {
662 'OTHER_LDFLAGS': [
663 '-framework Carbon',
664 ],
665 },
666 },
667 },
668 }],
669 ],
670 }, {
671 'sources!': [
672 'macasyncsocket.cc',
673 'macasyncsocket.h',
674 'maccocoasocketserver.h',
675 'maccocoasocketserver.mm',
676 'macconversion.cc',
677 'macconversion.h',
678 'macsocketserver.cc',
679 'macsocketserver.h',
680 'macutils.cc',
681 'macutils.h',
682 'macwindowpicker.cc',
683 'macwindowpicker.h',
684 ],
685 }],
686 ['OS=="win"', {
687 'link_settings': {
688 'libraries': [
689 '-lcrypt32.lib',
690 '-liphlpapi.lib',
691 '-lsecur32.lib',
692 ],
693 },
694 # Suppress warnings about WIN32_LEAN_AND_MEAN.
695 'msvs_disabled_warnings': [4005, 4703],
696 'defines': [
697 '_CRT_NONSTDC_NO_DEPRECATE',
698 ],
699 }, {
700 'sources/': [
701 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
702 ],
703 'sources!': [
704 'schanneladapter.cc',
705 'schanneladapter.h',
706 'winping.cc',
707 'winping.h',
708 'winfirewall.cc',
709 'winfirewall.h',
710 ],
711 }],
712 ['os_posix==0', {
713 'sources!': [
714 'latebindingsymboltable.cc',
715 'latebindingsymboltable.h',
716 'posix.cc',
717 'posix.h',
718 'unixfilesystem.cc',
719 'unixfilesystem.h',
720 ],
721 }, {
722 'configurations': {
723 'Debug_Base': {
724 'defines': [
725 # Chromium's build/common.gypi defines this for all posix
726 # _except_ for ios & mac. We want it there as well, e.g.
727 # because ASSERT and friends trigger off of it.
728 '_DEBUG',
729 ],
730 },
731 }
732 }],
733 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
734 'defines': [
735 'CARBON_DEPRECATED=YES',
736 ],
737 }],
738 ['OS!="ios" and OS!="mac"', {
739 'sources!': [
740 'scoped_autorelease_pool.mm',
741 ],
742 }],
henrike@webrtc.org5f2c81c2014-07-07 17:42:45 +0000743 ['OS=="ios"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000744 'sources!': [
745 'openssl.h',
746 'openssladapter.cc',
747 'openssladapter.h',
748 'openssldigest.cc',
749 'openssldigest.h',
750 'opensslidentity.cc',
751 'opensslidentity.h',
752 'opensslstreamadapter.cc',
753 'opensslstreamadapter.h',
754 ],
755 }],
756 ['OS!="linux" and OS!="android"', {
757 'sources!': [
758 'linux.cc',
759 'linux.h',
760 ],
761 }],
762 ['OS == "mac" or OS == "ios" or OS == "win"', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000763 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000764 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000765 'dependencies': [
766 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
767 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
768 '<(DEPTH)/third_party/nss/nss.gyp:nss',
769 ],
770 }, {
771 'include_dirs': [
772 '<(ssl_root)',
773 ],
774 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000775 ],
776 }],
777 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000778 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000779 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000780 'dependencies': [
781 '<(DEPTH)/build/linux/system.gyp:ssl',
782 ],
783 }, {
784 'include_dirs': [
785 '<(ssl_root)',
786 ],
787 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000788 ],
789 }],
790 ],
791 },
792 ],
793}