blob: fa92707c21a4acfbaa9ef32780fc562c294dd9c1 [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 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000038 # The subset of rtc_base approved for use outside of libjingle.
39 'target_name': 'rtc_base_approved',
40 'type': 'static_library',
41 'sources': [
42 'checks.cc',
43 'checks.h',
44 'exp_filter.cc',
45 'exp_filter.h',
46 'md5.cc',
47 'md5.h',
48 'md5digest.h',
49 'stringencode.cc',
50 'stringencode.h',
51 'stringutils.cc',
52 'stringutils.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000053 'thread_annotations.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000054 'timeutils.cc',
55 'timeutils.h',
56 ],
57 },
58 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000059 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000060 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000061 'dependencies': [
62 'rtc_base_approved',
63 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000064 'defines': [
65 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000066 'LOGGING=1',
67 'USE_WEBRTC_DEV_BRANCH',
68 ],
69 'sources': [
70 'asyncfile.cc',
71 'asyncfile.h',
72 'asynchttprequest.cc',
73 'asynchttprequest.h',
74 'asyncinvoker.cc',
75 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000076 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000077 'asyncpacketsocket.h',
78 'asyncresolverinterface.h',
79 'asyncsocket.cc',
80 'asyncsocket.h',
81 'asynctcpsocket.cc',
82 'asynctcpsocket.h',
83 'asyncudpsocket.cc',
84 'asyncudpsocket.h',
85 'atomicops.h',
86 'autodetectproxy.cc',
87 'autodetectproxy.h',
88 'bandwidthsmoother.cc',
89 'bandwidthsmoother.h',
90 'base64.cc',
91 'base64.h',
92 'basicdefs.h',
93 'basictypes.h',
94 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000095 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000096 'buffer.h',
97 'bytebuffer.cc',
98 'bytebuffer.h',
99 'byteorder.h',
100 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000101 'callback.h.pump',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000102 'constructormagic.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000103 'common.cc',
104 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000105 'cpumonitor.cc',
106 'cpumonitor.h',
107 'crc32.cc',
108 'crc32.h',
109 'criticalsection.h',
110 'cryptstring.h',
111 'dbus.cc',
112 'dbus.h',
113 'diskcache.cc',
114 'diskcache.h',
115 'diskcache_win32.cc',
116 'diskcache_win32.h',
117 'event.cc',
118 'event.h',
119 'filelock.cc',
120 'filelock.h',
121 'fileutils.cc',
122 'fileutils.h',
123 'fileutils_mock.h',
124 'firewallsocketserver.cc',
125 'firewallsocketserver.h',
126 'flags.cc',
127 'flags.h',
128 'gunit_prod.h',
129 'helpers.cc',
130 'helpers.h',
131 'httpbase.cc',
132 'httpbase.h',
133 'httpclient.cc',
134 'httpclient.h',
135 'httpcommon-inl.h',
136 'httpcommon.cc',
137 'httpcommon.h',
138 'httprequest.cc',
139 'httprequest.h',
140 'httpserver.cc',
141 'httpserver.h',
142 'ifaddrs-android.cc',
143 'ifaddrs-android.h',
144 'iosfilesystem.mm',
145 'ipaddress.cc',
146 'ipaddress.h',
147 'json.cc',
148 'json.h',
149 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000150 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000151 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000152 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000153 'libdbusglibsymboltable.cc',
154 'libdbusglibsymboltable.h',
155 'linux.cc',
156 'linux.h',
157 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000158 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000159 'linked_ptr.h',
160 'logging.cc',
161 'logging.h',
162 'macasyncsocket.cc',
163 'macasyncsocket.h',
164 'maccocoasocketserver.h',
165 'maccocoasocketserver.mm',
166 'maccocoathreadhelper.h',
167 'maccocoathreadhelper.mm',
168 'macconversion.cc',
169 'macconversion.h',
170 'macsocketserver.cc',
171 'macsocketserver.h',
172 'macutils.cc',
173 'macutils.h',
174 'macwindowpicker.cc',
175 'macwindowpicker.h',
176 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000177 'messagedigest.cc',
178 'messagedigest.h',
179 'messagehandler.cc',
180 'messagehandler.h',
181 'messagequeue.cc',
182 'messagequeue.h',
183 'multipart.cc',
184 'multipart.h',
185 'natserver.cc',
186 'natserver.h',
187 'natsocketfactory.cc',
188 'natsocketfactory.h',
189 'nattypes.cc',
190 'nattypes.h',
191 'nethelpers.cc',
192 'nethelpers.h',
193 'network.cc',
194 'network.h',
195 'nssidentity.cc',
196 'nssidentity.h',
197 'nssstreamadapter.cc',
198 'nssstreamadapter.h',
199 'nullsocketserver.h',
200 'openssl.h',
201 'openssladapter.cc',
202 'openssladapter.h',
203 'openssldigest.cc',
204 'openssldigest.h',
205 'opensslidentity.cc',
206 'opensslidentity.h',
207 'opensslstreamadapter.cc',
208 'opensslstreamadapter.h',
209 'optionsfile.cc',
210 'optionsfile.h',
211 'pathutils.cc',
212 'pathutils.h',
213 'physicalsocketserver.cc',
214 'physicalsocketserver.h',
215 'posix.cc',
216 'posix.h',
217 'profiler.cc',
218 'profiler.h',
219 'proxydetect.cc',
220 'proxydetect.h',
221 'proxyinfo.cc',
222 'proxyinfo.h',
223 'proxyserver.cc',
224 'proxyserver.h',
225 'ratelimiter.cc',
226 'ratelimiter.h',
227 'ratetracker.cc',
228 'ratetracker.h',
229 'refcount.h',
230 'referencecountedsingletonfactory.h',
231 'rollingaccumulator.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000232 'safe_conversions.h',
233 'safe_conversions_impl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000234 'schanneladapter.cc',
235 'schanneladapter.h',
236 'scoped_autorelease_pool.h',
237 'scoped_autorelease_pool.mm',
238 'scoped_ptr.h',
239 'scoped_ref_ptr.h',
240 'scopedptrcollection.h',
241 'sec_buffer.h',
242 'sha1.cc',
243 'sha1.h',
244 'sha1digest.h',
245 'sharedexclusivelock.cc',
246 'sharedexclusivelock.h',
247 'signalthread.cc',
248 'signalthread.h',
249 'sigslot.h',
250 'sigslotrepeater.h',
251 'socket.h',
252 'socketadapters.cc',
253 'socketadapters.h',
254 'socketaddress.cc',
255 'socketaddress.h',
256 'socketaddresspair.cc',
257 'socketaddresspair.h',
258 'socketfactory.h',
259 'socketpool.cc',
260 'socketpool.h',
261 'socketserver.h',
262 'socketstream.cc',
263 'socketstream.h',
264 'ssladapter.cc',
265 'ssladapter.h',
266 'sslconfig.h',
267 'sslfingerprint.cc',
268 'sslfingerprint.h',
269 'sslidentity.cc',
270 'sslidentity.h',
271 'sslroots.h',
272 'sslsocketfactory.cc',
273 'sslsocketfactory.h',
274 'sslstreamadapter.cc',
275 'sslstreamadapter.h',
276 'sslstreamadapterhelper.cc',
277 'sslstreamadapterhelper.h',
278 'stream.cc',
279 'stream.h',
280 'stringdigest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000281 'systeminfo.cc',
282 'systeminfo.h',
283 'task.cc',
284 'task.h',
285 'taskparent.cc',
286 'taskparent.h',
287 'taskrunner.cc',
288 'taskrunner.h',
289 'testclient.cc',
290 'testclient.h',
291 'thread.cc',
292 'thread.h',
henrik.lundin@webrtc.org1e3c5c22014-06-16 11:34:44 +0000293 'thread_checker.h',
294 'thread_checker_impl.cc',
295 'thread_checker_impl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000296 'timing.cc',
297 'timing.h',
298 'transformadapter.cc',
299 'transformadapter.h',
300 'unixfilesystem.cc',
301 'unixfilesystem.h',
302 'urlencode.cc',
303 'urlencode.h',
304 'versionparsing.cc',
305 'versionparsing.h',
306 'virtualsocketserver.cc',
307 'virtualsocketserver.h',
308 'win32.cc',
309 'win32.h',
310 'win32filesystem.cc',
311 'win32filesystem.h',
312 'win32regkey.cc',
313 'win32regkey.h',
314 'win32securityerrors.cc',
315 'win32socketinit.cc',
316 'win32socketinit.h',
317 'win32socketserver.cc',
318 'win32socketserver.h',
319 'win32window.cc',
320 'win32window.h',
321 'win32windowpicker.cc',
322 'win32windowpicker.h',
323 'window.h',
324 'windowpicker.h',
325 'windowpickerfactory.h',
326 'winfirewall.cc',
327 'winfirewall.h',
328 'winping.cc',
329 'winping.h',
330 'worker.cc',
331 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000332 'x11windowpicker.cc',
333 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000334 '../overrides/webrtc/base/basictypes.h',
335 '../overrides/webrtc/base/constructormagic.h',
336 '../overrides/webrtc/base/logging.cc',
337 '../overrides/webrtc/base/logging.h',
338 '../overrides/webrtc/base/win32socketinit.cc',
339 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000340 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000341 # these flags.
342 'cflags!': [
343 '-Wextra',
344 '-Wall',
345 ],
346 'cflags_cc!': [
347 '-Wnon-virtual-dtor',
348 ],
349 'direct_dependent_settings': {
350 'cflags_cc!': [
351 '-Wnon-virtual-dtor',
352 ],
353 'defines': [
354 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000355 ],
356 },
357 'include_dirs': [
358 '../../third_party/jsoncpp/overrides/include',
359 '../../third_party/jsoncpp/source/include',
360 ],
361 'conditions': [
362 ['build_with_chromium==1', {
363 'include_dirs': [
364 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000365 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000366 ],
367 'sources!': [
368 'asyncinvoker.cc',
369 'asyncinvoker.h',
370 'asyncinvoker-inl.h',
371 'asyncresolverinterface.h',
372 'atomicops.h',
373 'bandwidthsmoother.cc',
374 'bandwidthsmoother.h',
375 'basictypes.h',
376 'bind.h',
377 'bind.h.pump',
378 'buffer.h',
379 'callback.h',
380 'callback.h.pump',
381 'constructormagic.h',
382 'dbus.cc',
383 'dbus.h',
384 'diskcache_win32.cc',
385 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 'filelock.cc',
387 'filelock.h',
388 'fileutils_mock.h',
389 'genericslot.h',
390 'genericslot.h.pump',
391 'httpserver.cc',
392 'httpserver.h',
393 'json.cc',
394 'json.h',
395 'latebindingsymboltable.cc',
396 'latebindingsymboltable.cc.def',
397 'latebindingsymboltable.h',
398 'latebindingsymboltable.h.def',
399 'libdbusglibsymboltable.cc',
400 'libdbusglibsymboltable.h',
401 'linuxfdwalk.c',
402 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000403 'x11windowpicker.cc',
404 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000405 'logging.cc',
406 'logging.h',
407 'macasyncsocket.cc',
408 'macasyncsocket.h',
409 'maccocoasocketserver.h',
410 'maccocoasocketserver.mm',
411 'macsocketserver.cc',
412 'macsocketserver.h',
413 'macwindowpicker.cc',
414 'macwindowpicker.h',
415 'mathutils.h',
416 'multipart.cc',
417 'multipart.h',
418 'natserver.cc',
419 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000420 'natsocketfactory.cc',
421 'natsocketfactory.h',
422 'nattypes.cc',
423 'nattypes.h',
424 'openssl.h',
425 'optionsfile.cc',
426 'optionsfile.h',
427 'posix.cc',
428 'posix.h',
429 'profiler.cc',
430 'profiler.h',
431 'proxyserver.cc',
432 'proxyserver.h',
433 'refcount.h',
434 'referencecountedsingletonfactory.h',
435 'rollingaccumulator.h',
436 'safe_conversions.h',
437 'safe_conversions_impl.h',
438 'scopedptrcollection.h',
439 'scoped_ref_ptr.h',
440 'sec_buffer.h',
441 'sharedexclusivelock.cc',
442 'sharedexclusivelock.h',
443 'sslconfig.h',
444 'sslroots.h',
445 'stringdigest.h',
446 'testbase64.h',
447 'testclient.cc',
448 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000449 'transformadapter.cc',
450 'transformadapter.h',
451 'versionparsing.cc',
452 'versionparsing.h',
453 'virtualsocketserver.cc',
454 'virtualsocketserver.h',
455 'win32regkey.cc',
456 'win32regkey.h',
457 'win32socketinit.cc',
458 'win32socketinit.h',
459 'win32socketserver.cc',
460 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000461 'window.h',
462 'windowpickerfactory.h',
463 'windowpicker.h',
464 ],
465 'defines': [
466 'NO_MAIN_THREAD_WRAPPING',
467 'SSL_USE_NSS',
468 ],
469 'direct_dependent_settings': {
470 'defines': [
471 'NO_MAIN_THREAD_WRAPPING',
472 'SSL_USE_NSS',
473 ],
474 },
475 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000476 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000477 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000478 'dependencies': [
479 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
480 ],
481 }, {
482 'include_dirs': [
483 '<(json_root)',
484 ],
485 'defines': [
486 # When defined changes the include path for json.h to where it
487 # is expected to be when building json outside of the standalone
488 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000489 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000490 ],
491 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000492 ],
493 'sources!': [
494 '../overrides/webrtc/base/basictypes.h',
495 '../overrides/webrtc/base/constructormagic.h',
496 '../overrides/webrtc/base/win32socketinit.cc',
497 '../overrides/webrtc/base/logging.cc',
498 '../overrides/webrtc/base/logging.h',
499 ],
500 }],
501 ['use_openssl==1', {
502 'defines': [
503 'SSL_USE_OPENSSL',
504 'HAVE_OPENSSL_SSL_H',
505 ],
506 'direct_dependent_settings': {
507 'defines': [
508 'SSL_USE_OPENSSL',
509 'HAVE_OPENSSL_SSL_H',
510 ],
511 },
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000512 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000513 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000514 'dependencies': [
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000515 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000516 ],
517 }, {
518 'include_dirs': [
519 '<(ssl_root)',
520 ],
521 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000522 ],
523 }, {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000524 'conditions': [
525 ['use_legacy_ssl_defaults!=1', {
526 'defines': [
527 'SSL_USE_NSS',
528 'HAVE_NSS_SSL_H',
529 'SSL_USE_NSS_RNG',
530 ],
531 'direct_dependent_settings': {
532 'defines': [
533 'SSL_USE_NSS',
534 'HAVE_NSS_SSL_H',
535 'SSL_USE_NSS_RNG',
536 ],
537 },
538 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000539 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000540 }],
541 ['OS == "android"', {
542 'defines': [
543 'HAVE_OPENSSL_SSL_H'
544 ],
545 'direct_dependent_settings': {
546 'defines': [
547 'HAVE_OPENSSL_SSL_H'
548 ],
549 },
550 'link_settings': {
551 'libraries': [
552 '-llog',
553 '-lGLESv2',
554 ],
555 },
556 }, {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000557 'conditions': [
558 ['use_legacy_ssl_defaults!=1', {
559 'defines': [
560 'HAVE_NSS_SSL_H',
561 'SSL_USE_NSS_RNG',
562 ],
563 'direct_dependent_settings': {
564 'defines': [
565 'HAVE_NSS_SSL_H',
566 'SSL_USE_NSS_RNG',
567 ],
568 },
569 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000570 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000571 'sources!': [
572 'ifaddrs-android.cc',
573 'ifaddrs-android.h',
574 ],
575 }],
576 ['OS=="ios"', {
577 'all_dependent_settings': {
578 'xcode_settings': {
579 'OTHER_LDFLAGS': [
580 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000581 '-framework Security',
582 '-framework SystemConfiguration',
583 '-framework UIKit',
584 ],
585 },
586 },
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000587 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000588 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000589 'dependencies': [
590 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
591 ]
592 }, {
593 'include_dirs': [
594 '<(ssl_root)',
595 ],
596 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000597 ],
598 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000599 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000600 'link_settings': {
601 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000602 '-ldl',
603 '-lrt',
604 '-lXext',
605 '-lX11',
606 '-lXcomposite',
607 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000608 ],
609 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000610 }, {
611 'sources!': [
612 'x11windowpicker.cc',
613 'x11windowpicker.h',
614 ],
615 }],
616 ['OS=="linux"', {
617 'link_settings': {
618 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000619 '-ldl',
620 '-lrt',
621 ],
622 },
henrike@webrtc.org4ddcc402014-06-25 20:14:13 +0000623 'conditions': [
624 ['build_ssl==1', {
625 'link_settings': {
626 'libraries': [
627 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
628 ],
629 },
630 'cflags': [
631 '<!@(<(pkg-config) --cflags nss)',
632 ],
633 'ldflags': [
634 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
635 ],
636 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000637 ],
638 }, {
639 'sources!': [
640 'dbus.cc',
641 'dbus.h',
642 'libdbusglibsymboltable.cc',
643 'libdbusglibsymboltable.h',
644 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000645 ],
646 }],
647 ['OS=="mac"', {
648 'link_settings': {
649 'libraries': [
650 '$(SDKROOT)/usr/lib/libcrypto.dylib',
651 '$(SDKROOT)/usr/lib/libssl.dylib',
652 ],
653 },
654 'all_dependent_settings': {
655 'link_settings': {
656 'xcode_settings': {
657 'OTHER_LDFLAGS': [
658 '-framework Cocoa',
659 '-framework Foundation',
660 '-framework IOKit',
661 '-framework Security',
662 '-framework SystemConfiguration',
663 ],
664 },
665 },
666 },
667 'conditions': [
668 ['target_arch=="ia32"', {
669 'all_dependent_settings': {
670 'link_settings': {
671 'xcode_settings': {
672 'OTHER_LDFLAGS': [
673 '-framework Carbon',
674 ],
675 },
676 },
677 },
678 }],
679 ],
680 }, {
681 'sources!': [
682 'macasyncsocket.cc',
683 'macasyncsocket.h',
684 'maccocoasocketserver.h',
685 'maccocoasocketserver.mm',
686 'macconversion.cc',
687 'macconversion.h',
688 'macsocketserver.cc',
689 'macsocketserver.h',
690 'macutils.cc',
691 'macutils.h',
692 'macwindowpicker.cc',
693 'macwindowpicker.h',
694 ],
695 }],
696 ['OS=="win"', {
697 'link_settings': {
698 'libraries': [
699 '-lcrypt32.lib',
700 '-liphlpapi.lib',
701 '-lsecur32.lib',
702 ],
703 },
704 # Suppress warnings about WIN32_LEAN_AND_MEAN.
705 'msvs_disabled_warnings': [4005, 4703],
706 'defines': [
707 '_CRT_NONSTDC_NO_DEPRECATE',
708 ],
709 }, {
710 'sources/': [
711 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
712 ],
713 'sources!': [
714 'schanneladapter.cc',
715 'schanneladapter.h',
716 'winping.cc',
717 'winping.h',
718 'winfirewall.cc',
719 'winfirewall.h',
720 ],
721 }],
722 ['os_posix==0', {
723 'sources!': [
724 'latebindingsymboltable.cc',
725 'latebindingsymboltable.h',
726 'posix.cc',
727 'posix.h',
728 'unixfilesystem.cc',
729 'unixfilesystem.h',
730 ],
731 }, {
732 'configurations': {
733 'Debug_Base': {
734 'defines': [
735 # Chromium's build/common.gypi defines this for all posix
736 # _except_ for ios & mac. We want it there as well, e.g.
737 # because ASSERT and friends trigger off of it.
738 '_DEBUG',
739 ],
740 },
741 }
742 }],
743 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
744 'defines': [
745 'CARBON_DEPRECATED=YES',
746 ],
747 }],
748 ['OS!="ios" and OS!="mac"', {
749 'sources!': [
750 'scoped_autorelease_pool.mm',
751 ],
752 }],
henrike@webrtc.org5f2c81c2014-07-07 17:42:45 +0000753 ['OS=="ios"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000754 'sources!': [
755 'openssl.h',
756 'openssladapter.cc',
757 'openssladapter.h',
758 'openssldigest.cc',
759 'openssldigest.h',
760 'opensslidentity.cc',
761 'opensslidentity.h',
762 'opensslstreamadapter.cc',
763 'opensslstreamadapter.h',
764 ],
765 }],
766 ['OS!="linux" and OS!="android"', {
767 'sources!': [
768 'linux.cc',
769 'linux.h',
770 ],
771 }],
772 ['OS == "mac" or OS == "ios" or OS == "win"', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000773 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000774 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000775 'dependencies': [
776 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
777 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
778 '<(DEPTH)/third_party/nss/nss.gyp:nss',
779 ],
780 }, {
781 'include_dirs': [
782 '<(ssl_root)',
783 ],
784 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000785 ],
786 }],
787 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000788 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000789 ['build_ssl==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000790 'dependencies': [
791 '<(DEPTH)/build/linux/system.gyp:ssl',
792 ],
793 }, {
794 'include_dirs': [
795 '<(ssl_root)',
796 ],
797 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000798 ],
799 }],
800 ],
801 },
802 ],
803}