blob: 0d1cb056f4be0506c2014399b8bfb173a22ab840 [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',
pbos@webrtc.org75025432015-02-06 08:32:32 +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',
pbos@webrtc.org75025432015-02-06 08:32:32 +000045 'sharedexclusivelock.cc',
46 'sharedexclusivelock.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000047 'stringencode.cc',
48 'stringencode.h',
49 'stringutils.cc',
50 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000051 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000052 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000053 'thread_checker.h',
54 'thread_checker_impl.cc',
55 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000056 'timeutils.cc',
57 'timeutils.h',
58 ],
59 },
60 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000061 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000062 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000063 'dependencies': [
64 'rtc_base_approved',
65 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000066 'defines': [
67 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000068 'LOGGING=1',
69 'USE_WEBRTC_DEV_BRANCH',
70 ],
71 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +000072 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000073 'asyncfile.cc',
74 'asyncfile.h',
75 'asynchttprequest.cc',
76 'asynchttprequest.h',
77 'asyncinvoker.cc',
78 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000079 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000080 'asyncpacketsocket.h',
81 'asyncresolverinterface.h',
82 'asyncsocket.cc',
83 'asyncsocket.h',
84 'asynctcpsocket.cc',
85 'asynctcpsocket.h',
86 'asyncudpsocket.cc',
87 'asyncudpsocket.h',
88 'atomicops.h',
89 'autodetectproxy.cc',
90 'autodetectproxy.h',
91 'bandwidthsmoother.cc',
92 'bandwidthsmoother.h',
93 'base64.cc',
94 'base64.h',
95 'basicdefs.h',
96 'basictypes.h',
97 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000098 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000099 'buffer.h',
100 'bytebuffer.cc',
101 'bytebuffer.h',
102 'byteorder.h',
103 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000104 'callback.h.pump',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000105 'constructormagic.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000106 'common.cc',
107 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000108 'cpumonitor.cc',
109 'cpumonitor.h',
110 'crc32.cc',
111 'crc32.h',
112 'criticalsection.h',
113 'cryptstring.h',
114 'dbus.cc',
115 'dbus.h',
116 'diskcache.cc',
117 'diskcache.h',
118 'diskcache_win32.cc',
119 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000120 'filelock.cc',
121 'filelock.h',
122 'fileutils.cc',
123 'fileutils.h',
124 'fileutils_mock.h',
125 'firewallsocketserver.cc',
126 'firewallsocketserver.h',
127 'flags.cc',
128 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000129 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000130 'gunit_prod.h',
131 'helpers.cc',
132 'helpers.h',
133 'httpbase.cc',
134 'httpbase.h',
135 'httpclient.cc',
136 'httpclient.h',
137 'httpcommon-inl.h',
138 'httpcommon.cc',
139 'httpcommon.h',
140 'httprequest.cc',
141 'httprequest.h',
142 'httpserver.cc',
143 'httpserver.h',
144 'ifaddrs-android.cc',
145 'ifaddrs-android.h',
146 'iosfilesystem.mm',
147 'ipaddress.cc',
148 'ipaddress.h',
149 'json.cc',
150 'json.h',
151 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000152 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000153 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000154 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000155 'libdbusglibsymboltable.cc',
156 'libdbusglibsymboltable.h',
157 'linux.cc',
158 'linux.h',
159 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000160 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000161 'linked_ptr.h',
162 'logging.cc',
163 'logging.h',
164 'macasyncsocket.cc',
165 'macasyncsocket.h',
166 'maccocoasocketserver.h',
167 'maccocoasocketserver.mm',
168 'maccocoathreadhelper.h',
169 'maccocoathreadhelper.mm',
170 'macconversion.cc',
171 'macconversion.h',
172 'macsocketserver.cc',
173 'macsocketserver.h',
174 'macutils.cc',
175 'macutils.h',
176 'macwindowpicker.cc',
177 'macwindowpicker.h',
178 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000179 'messagedigest.cc',
180 'messagedigest.h',
181 'messagehandler.cc',
182 'messagehandler.h',
183 'messagequeue.cc',
184 'messagequeue.h',
185 'multipart.cc',
186 'multipart.h',
187 'natserver.cc',
188 'natserver.h',
189 'natsocketfactory.cc',
190 'natsocketfactory.h',
191 'nattypes.cc',
192 'nattypes.h',
193 'nethelpers.cc',
194 'nethelpers.h',
195 'network.cc',
196 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000197 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'optionsfile.cc',
199 'optionsfile.h',
200 'pathutils.cc',
201 'pathutils.h',
202 'physicalsocketserver.cc',
203 'physicalsocketserver.h',
204 'posix.cc',
205 'posix.h',
206 'profiler.cc',
207 'profiler.h',
208 'proxydetect.cc',
209 'proxydetect.h',
210 'proxyinfo.cc',
211 'proxyinfo.h',
212 'proxyserver.cc',
213 'proxyserver.h',
214 'ratelimiter.cc',
215 'ratelimiter.h',
216 'ratetracker.cc',
217 'ratetracker.h',
218 'refcount.h',
219 'referencecountedsingletonfactory.h',
220 'rollingaccumulator.h',
221 'schanneladapter.cc',
222 'schanneladapter.h',
223 'scoped_autorelease_pool.h',
224 'scoped_autorelease_pool.mm',
225 'scoped_ptr.h',
226 'scoped_ref_ptr.h',
227 'scopedptrcollection.h',
228 'sec_buffer.h',
229 'sha1.cc',
230 'sha1.h',
231 'sha1digest.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}