blob: 42d25bfc1181c73e7831b934c6a77ba138014292 [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 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000028 # The subset of rtc_base approved for use outside of libjingle.
29 'target_name': 'rtc_base_approved',
30 'type': 'static_library',
31 'sources': [
32 'checks.cc',
33 'checks.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000034 'event.cc',
35 'event.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000036 'exp_filter.cc',
37 'exp_filter.h',
38 'md5.cc',
39 'md5.h',
40 'md5digest.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000041 'platform_file.cc',
42 'platform_file.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000043 'safe_conversions.h',
44 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000045 'stringencode.cc',
46 'stringencode.h',
47 'stringutils.cc',
48 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000049 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000050 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000051 'thread_checker.h',
52 'thread_checker_impl.cc',
53 'thread_checker_impl.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': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000062 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000063 'rtc_base_approved',
64 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000065 'defines': [
66 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000067 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000068 ],
69 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +000070 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000071 'asyncfile.cc',
72 'asyncfile.h',
73 'asynchttprequest.cc',
74 'asynchttprequest.h',
75 'asyncinvoker.cc',
76 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000077 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000078 'asyncpacketsocket.h',
79 'asyncresolverinterface.h',
80 'asyncsocket.cc',
81 'asyncsocket.h',
82 'asynctcpsocket.cc',
83 'asynctcpsocket.h',
84 'asyncudpsocket.cc',
85 'asyncudpsocket.h',
86 'atomicops.h',
87 'autodetectproxy.cc',
88 'autodetectproxy.h',
89 'bandwidthsmoother.cc',
90 'bandwidthsmoother.h',
91 'base64.cc',
92 'base64.h',
93 'basicdefs.h',
94 'basictypes.h',
95 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000096 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000097 'buffer.h',
98 'bytebuffer.cc',
99 'bytebuffer.h',
100 'byteorder.h',
101 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000102 'callback.h.pump',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000103 'constructormagic.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000104 'common.cc',
105 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000106 'cpumonitor.cc',
107 'cpumonitor.h',
108 'crc32.cc',
109 'crc32.h',
110 'criticalsection.h',
111 'cryptstring.h',
112 'dbus.cc',
113 'dbus.h',
114 'diskcache.cc',
115 'diskcache.h',
116 'diskcache_win32.cc',
117 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000118 'filelock.cc',
119 'filelock.h',
120 'fileutils.cc',
121 'fileutils.h',
122 'fileutils_mock.h',
123 'firewallsocketserver.cc',
124 'firewallsocketserver.h',
125 'flags.cc',
126 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000127 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000128 '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',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000195 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'optionsfile.cc',
197 'optionsfile.h',
198 'pathutils.cc',
199 'pathutils.h',
200 'physicalsocketserver.cc',
201 'physicalsocketserver.h',
202 'posix.cc',
203 'posix.h',
204 'profiler.cc',
205 'profiler.h',
206 'proxydetect.cc',
207 'proxydetect.h',
208 'proxyinfo.cc',
209 'proxyinfo.h',
210 'proxyserver.cc',
211 'proxyserver.h',
212 'ratelimiter.cc',
213 'ratelimiter.h',
214 'ratetracker.cc',
215 'ratetracker.h',
216 'refcount.h',
217 'referencecountedsingletonfactory.h',
218 'rollingaccumulator.h',
219 'schanneladapter.cc',
220 'schanneladapter.h',
221 'scoped_autorelease_pool.h',
222 'scoped_autorelease_pool.mm',
223 'scoped_ptr.h',
224 'scoped_ref_ptr.h',
225 'scopedptrcollection.h',
226 'sec_buffer.h',
227 'sha1.cc',
228 'sha1.h',
229 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000230 'sharedexclusivelock.cc',
231 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000232 'signalthread.cc',
233 'signalthread.h',
234 'sigslot.h',
235 'sigslotrepeater.h',
236 'socket.h',
237 'socketadapters.cc',
238 'socketadapters.h',
239 'socketaddress.cc',
240 'socketaddress.h',
241 'socketaddresspair.cc',
242 'socketaddresspair.h',
243 'socketfactory.h',
244 'socketpool.cc',
245 'socketpool.h',
246 'socketserver.h',
247 'socketstream.cc',
248 'socketstream.h',
249 'ssladapter.cc',
250 'ssladapter.h',
251 'sslconfig.h',
252 'sslfingerprint.cc',
253 'sslfingerprint.h',
254 'sslidentity.cc',
255 'sslidentity.h',
256 'sslroots.h',
257 'sslsocketfactory.cc',
258 'sslsocketfactory.h',
259 'sslstreamadapter.cc',
260 'sslstreamadapter.h',
261 'sslstreamadapterhelper.cc',
262 'sslstreamadapterhelper.h',
263 'stream.cc',
264 'stream.h',
265 'stringdigest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000266 'systeminfo.cc',
267 'systeminfo.h',
268 'task.cc',
269 'task.h',
270 'taskparent.cc',
271 'taskparent.h',
272 'taskrunner.cc',
273 'taskrunner.h',
274 'testclient.cc',
275 'testclient.h',
276 'thread.cc',
277 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000278 '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',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000314 'x11windowpicker.cc',
315 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000316 '../overrides/webrtc/base/basictypes.h',
317 '../overrides/webrtc/base/constructormagic.h',
318 '../overrides/webrtc/base/logging.cc',
319 '../overrides/webrtc/base/logging.h',
320 '../overrides/webrtc/base/win32socketinit.cc',
321 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000322 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000323 # these flags.
324 'cflags!': [
325 '-Wextra',
326 '-Wall',
327 ],
328 'cflags_cc!': [
329 '-Wnon-virtual-dtor',
330 ],
331 'direct_dependent_settings': {
332 'cflags_cc!': [
333 '-Wnon-virtual-dtor',
334 ],
335 'defines': [
336 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000337 ],
338 },
339 'include_dirs': [
340 '../../third_party/jsoncpp/overrides/include',
341 '../../third_party/jsoncpp/source/include',
342 ],
343 'conditions': [
344 ['build_with_chromium==1', {
345 'include_dirs': [
346 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000347 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000348 ],
349 'sources!': [
350 'asyncinvoker.cc',
351 'asyncinvoker.h',
352 'asyncinvoker-inl.h',
353 'asyncresolverinterface.h',
354 'atomicops.h',
355 'bandwidthsmoother.cc',
356 'bandwidthsmoother.h',
357 'basictypes.h',
358 'bind.h',
359 'bind.h.pump',
360 'buffer.h',
361 'callback.h',
362 'callback.h.pump',
363 'constructormagic.h',
364 'dbus.cc',
365 'dbus.h',
366 'diskcache_win32.cc',
367 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000368 'filelock.cc',
369 'filelock.h',
370 'fileutils_mock.h',
371 'genericslot.h',
372 'genericslot.h.pump',
373 'httpserver.cc',
374 'httpserver.h',
375 'json.cc',
376 'json.h',
377 'latebindingsymboltable.cc',
378 'latebindingsymboltable.cc.def',
379 'latebindingsymboltable.h',
380 'latebindingsymboltable.h.def',
381 'libdbusglibsymboltable.cc',
382 'libdbusglibsymboltable.h',
383 'linuxfdwalk.c',
384 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000385 'x11windowpicker.cc',
386 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000387 'logging.cc',
388 'logging.h',
389 'macasyncsocket.cc',
390 'macasyncsocket.h',
391 'maccocoasocketserver.h',
392 'maccocoasocketserver.mm',
393 'macsocketserver.cc',
394 'macsocketserver.h',
395 'macwindowpicker.cc',
396 'macwindowpicker.h',
397 'mathutils.h',
398 'multipart.cc',
399 'multipart.h',
400 'natserver.cc',
401 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000402 'natsocketfactory.cc',
403 'natsocketfactory.h',
404 'nattypes.cc',
405 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000406 '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',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000448 ],
449 'direct_dependent_settings': {
450 'defines': [
451 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000452 ],
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 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000480 ['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 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000491 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000492 'openssl.h',
493 'openssladapter.cc',
494 'openssladapter.h',
495 'openssldigest.cc',
496 'openssldigest.h',
497 'opensslidentity.cc',
498 'opensslidentity.h',
499 'opensslstreamadapter.cc',
500 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000501 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000502 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000503 ['build_ssl==1', {
504 'dependencies': [
505 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
506 ],
507 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000508 'include_dirs': [
509 '<(ssl_root)',
510 ],
511 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000512 ],
513 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000514 'sources': [
515 'nssidentity.cc',
516 'nssidentity.h',
517 'nssstreamadapter.cc',
518 'nssstreamadapter.h',
519 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000520 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000521 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000522 'defines': [
523 'SSL_USE_NSS',
524 'HAVE_NSS_SSL_H',
525 'SSL_USE_NSS_RNG',
526 ],
527 'direct_dependent_settings': {
528 'defines': [
529 'SSL_USE_NSS',
530 'HAVE_NSS_SSL_H',
531 'SSL_USE_NSS_RNG',
532 ],
533 },
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000534 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000535 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000536 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000537 # On some platforms, the rest of NSS is bundled. On others,
538 # it's pulled from the system.
539 ['OS == "mac" or OS == "ios" or OS == "win"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000540 'dependencies': [
541 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000542 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
543 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000544 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000545 }],
546 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
547 'dependencies': [
548 '<(DEPTH)/build/linux/system.gyp:ssl',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000549 ],
550 }],
551 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000552 }, {
553 'include_dirs': [
554 '<(ssl_root)',
555 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000556 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000557 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000558 }],
559 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000560 'link_settings': {
561 'libraries': [
562 '-llog',
563 '-lGLESv2',
564 ],
565 },
566 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000567 'sources!': [
568 'ifaddrs-android.cc',
569 'ifaddrs-android.h',
570 ],
571 }],
572 ['OS=="ios"', {
573 'all_dependent_settings': {
574 'xcode_settings': {
575 'OTHER_LDFLAGS': [
576 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000577 '-framework Security',
578 '-framework SystemConfiguration',
579 '-framework UIKit',
580 ],
581 },
582 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000583 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000584 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000585 'link_settings': {
586 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000587 '-ldl',
588 '-lrt',
589 '-lXext',
590 '-lX11',
591 '-lXcomposite',
592 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000593 ],
594 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000595 }, {
596 'sources!': [
597 'x11windowpicker.cc',
598 'x11windowpicker.h',
599 ],
600 }],
601 ['OS=="linux"', {
602 'link_settings': {
603 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000604 '-ldl',
605 '-lrt',
606 ],
607 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000608 }, {
609 'sources!': [
610 'dbus.cc',
611 'dbus.h',
612 'libdbusglibsymboltable.cc',
613 'libdbusglibsymboltable.h',
614 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000615 ],
616 }],
617 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000618 'all_dependent_settings': {
619 'link_settings': {
620 'xcode_settings': {
621 'OTHER_LDFLAGS': [
622 '-framework Cocoa',
623 '-framework Foundation',
624 '-framework IOKit',
625 '-framework Security',
626 '-framework SystemConfiguration',
627 ],
628 },
629 },
630 },
631 'conditions': [
632 ['target_arch=="ia32"', {
633 'all_dependent_settings': {
634 'link_settings': {
635 'xcode_settings': {
636 'OTHER_LDFLAGS': [
637 '-framework Carbon',
638 ],
639 },
640 },
641 },
642 }],
643 ],
644 }, {
645 'sources!': [
646 'macasyncsocket.cc',
647 'macasyncsocket.h',
648 'maccocoasocketserver.h',
649 'maccocoasocketserver.mm',
650 'macconversion.cc',
651 'macconversion.h',
652 'macsocketserver.cc',
653 'macsocketserver.h',
654 'macutils.cc',
655 'macutils.h',
656 'macwindowpicker.cc',
657 'macwindowpicker.h',
658 ],
659 }],
660 ['OS=="win"', {
661 'link_settings': {
662 'libraries': [
663 '-lcrypt32.lib',
664 '-liphlpapi.lib',
665 '-lsecur32.lib',
666 ],
667 },
668 # Suppress warnings about WIN32_LEAN_AND_MEAN.
669 'msvs_disabled_warnings': [4005, 4703],
670 'defines': [
671 '_CRT_NONSTDC_NO_DEPRECATE',
672 ],
673 }, {
674 'sources/': [
675 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
676 ],
677 'sources!': [
678 'schanneladapter.cc',
679 'schanneladapter.h',
680 'winping.cc',
681 'winping.h',
682 'winfirewall.cc',
683 'winfirewall.h',
684 ],
685 }],
686 ['os_posix==0', {
687 'sources!': [
688 'latebindingsymboltable.cc',
689 'latebindingsymboltable.h',
690 'posix.cc',
691 'posix.h',
692 'unixfilesystem.cc',
693 'unixfilesystem.h',
694 ],
695 }, {
696 'configurations': {
697 'Debug_Base': {
698 'defines': [
699 # Chromium's build/common.gypi defines this for all posix
700 # _except_ for ios & mac. We want it there as well, e.g.
701 # because ASSERT and friends trigger off of it.
702 '_DEBUG',
703 ],
704 },
705 }
706 }],
707 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
708 'defines': [
709 'CARBON_DEPRECATED=YES',
710 ],
711 }],
712 ['OS!="ios" and OS!="mac"', {
713 'sources!': [
714 'scoped_autorelease_pool.mm',
715 ],
716 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000717 ['OS!="linux" and OS!="android"', {
718 'sources!': [
719 'linux.cc',
720 'linux.h',
721 ],
722 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000723 ],
724 },
725 ],
726}