blob: 380eee6ed57e09975184ea48a96989efd12ce0d6 [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',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000049 'platform_file.cc',
50 'platform_file.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000051 'stringencode.cc',
52 'stringencode.h',
53 'stringutils.cc',
54 'stringutils.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000055 'thread_annotations.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': [
72 'asyncfile.cc',
73 'asyncfile.h',
74 'asynchttprequest.cc',
75 'asynchttprequest.h',
76 'asyncinvoker.cc',
77 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000078 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000079 'asyncpacketsocket.h',
80 'asyncresolverinterface.h',
81 'asyncsocket.cc',
82 'asyncsocket.h',
83 'asynctcpsocket.cc',
84 'asynctcpsocket.h',
85 'asyncudpsocket.cc',
86 'asyncudpsocket.h',
87 'atomicops.h',
88 'autodetectproxy.cc',
89 'autodetectproxy.h',
90 'bandwidthsmoother.cc',
91 'bandwidthsmoother.h',
92 'base64.cc',
93 'base64.h',
94 'basicdefs.h',
95 'basictypes.h',
96 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000097 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000098 'buffer.h',
99 'bytebuffer.cc',
100 'bytebuffer.h',
101 'byteorder.h',
102 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000103 'callback.h.pump',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000104 'constructormagic.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000105 'common.cc',
106 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000107 'cpumonitor.cc',
108 'cpumonitor.h',
109 'crc32.cc',
110 'crc32.h',
111 'criticalsection.h',
112 'cryptstring.h',
113 'dbus.cc',
114 'dbus.h',
115 'diskcache.cc',
116 'diskcache.h',
117 'diskcache_win32.cc',
118 'diskcache_win32.h',
119 'event.cc',
120 'event.h',
121 'filelock.cc',
122 'filelock.h',
123 'fileutils.cc',
124 'fileutils.h',
125 'fileutils_mock.h',
126 'firewallsocketserver.cc',
127 'firewallsocketserver.h',
128 'flags.cc',
129 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000130 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000131 'gunit_prod.h',
132 'helpers.cc',
133 'helpers.h',
134 'httpbase.cc',
135 'httpbase.h',
136 'httpclient.cc',
137 'httpclient.h',
138 'httpcommon-inl.h',
139 'httpcommon.cc',
140 'httpcommon.h',
141 'httprequest.cc',
142 'httprequest.h',
143 'httpserver.cc',
144 'httpserver.h',
145 'ifaddrs-android.cc',
146 'ifaddrs-android.h',
147 'iosfilesystem.mm',
148 'ipaddress.cc',
149 'ipaddress.h',
150 'json.cc',
151 'json.h',
152 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000153 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000154 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000155 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000156 'libdbusglibsymboltable.cc',
157 'libdbusglibsymboltable.h',
158 'linux.cc',
159 'linux.h',
160 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000161 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000162 'linked_ptr.h',
163 'logging.cc',
164 'logging.h',
165 'macasyncsocket.cc',
166 'macasyncsocket.h',
167 'maccocoasocketserver.h',
168 'maccocoasocketserver.mm',
169 'maccocoathreadhelper.h',
170 'maccocoathreadhelper.mm',
171 'macconversion.cc',
172 'macconversion.h',
173 'macsocketserver.cc',
174 'macsocketserver.h',
175 'macutils.cc',
176 'macutils.h',
177 'macwindowpicker.cc',
178 'macwindowpicker.h',
179 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000180 'messagedigest.cc',
181 'messagedigest.h',
182 'messagehandler.cc',
183 'messagehandler.h',
184 'messagequeue.cc',
185 'messagequeue.h',
186 'multipart.cc',
187 'multipart.h',
188 'natserver.cc',
189 'natserver.h',
190 'natsocketfactory.cc',
191 'natsocketfactory.h',
192 'nattypes.cc',
193 'nattypes.h',
194 'nethelpers.cc',
195 'nethelpers.h',
196 'network.cc',
197 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000199 'optionsfile.cc',
200 'optionsfile.h',
201 'pathutils.cc',
202 'pathutils.h',
203 'physicalsocketserver.cc',
204 'physicalsocketserver.h',
205 'posix.cc',
206 'posix.h',
207 'profiler.cc',
208 'profiler.h',
209 'proxydetect.cc',
210 'proxydetect.h',
211 'proxyinfo.cc',
212 'proxyinfo.h',
213 'proxyserver.cc',
214 'proxyserver.h',
215 'ratelimiter.cc',
216 'ratelimiter.h',
217 'ratetracker.cc',
218 'ratetracker.h',
219 'refcount.h',
220 'referencecountedsingletonfactory.h',
221 'rollingaccumulator.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000222 'safe_conversions.h',
223 'safe_conversions_impl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000224 'schanneladapter.cc',
225 'schanneladapter.h',
226 'scoped_autorelease_pool.h',
227 'scoped_autorelease_pool.mm',
228 'scoped_ptr.h',
229 'scoped_ref_ptr.h',
230 'scopedptrcollection.h',
231 'sec_buffer.h',
232 'sha1.cc',
233 'sha1.h',
234 'sha1digest.h',
235 'sharedexclusivelock.cc',
236 'sharedexclusivelock.h',
237 'signalthread.cc',
238 'signalthread.h',
239 'sigslot.h',
240 'sigslotrepeater.h',
241 'socket.h',
242 'socketadapters.cc',
243 'socketadapters.h',
244 'socketaddress.cc',
245 'socketaddress.h',
246 'socketaddresspair.cc',
247 'socketaddresspair.h',
248 'socketfactory.h',
249 'socketpool.cc',
250 'socketpool.h',
251 'socketserver.h',
252 'socketstream.cc',
253 'socketstream.h',
254 'ssladapter.cc',
255 'ssladapter.h',
256 'sslconfig.h',
257 'sslfingerprint.cc',
258 'sslfingerprint.h',
259 'sslidentity.cc',
260 'sslidentity.h',
261 'sslroots.h',
262 'sslsocketfactory.cc',
263 'sslsocketfactory.h',
264 'sslstreamadapter.cc',
265 'sslstreamadapter.h',
266 'sslstreamadapterhelper.cc',
267 'sslstreamadapterhelper.h',
268 'stream.cc',
269 'stream.h',
270 'stringdigest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000271 'systeminfo.cc',
272 'systeminfo.h',
273 'task.cc',
274 'task.h',
275 'taskparent.cc',
276 'taskparent.h',
277 'taskrunner.cc',
278 'taskrunner.h',
279 'testclient.cc',
280 'testclient.h',
281 'thread.cc',
282 'thread.h',
henrik.lundin@webrtc.org1e3c5c22014-06-16 11:34:44 +0000283 'thread_checker.h',
284 'thread_checker_impl.cc',
285 'thread_checker_impl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000286 'timing.cc',
287 'timing.h',
288 'transformadapter.cc',
289 'transformadapter.h',
290 'unixfilesystem.cc',
291 'unixfilesystem.h',
292 'urlencode.cc',
293 'urlencode.h',
294 'versionparsing.cc',
295 'versionparsing.h',
296 'virtualsocketserver.cc',
297 'virtualsocketserver.h',
298 'win32.cc',
299 'win32.h',
300 'win32filesystem.cc',
301 'win32filesystem.h',
302 'win32regkey.cc',
303 'win32regkey.h',
304 'win32securityerrors.cc',
305 'win32socketinit.cc',
306 'win32socketinit.h',
307 'win32socketserver.cc',
308 'win32socketserver.h',
309 'win32window.cc',
310 'win32window.h',
311 'win32windowpicker.cc',
312 'win32windowpicker.h',
313 'window.h',
314 'windowpicker.h',
315 'windowpickerfactory.h',
316 'winfirewall.cc',
317 'winfirewall.h',
318 'winping.cc',
319 'winping.h',
320 'worker.cc',
321 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000322 'x11windowpicker.cc',
323 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000324 '../overrides/webrtc/base/basictypes.h',
325 '../overrides/webrtc/base/constructormagic.h',
326 '../overrides/webrtc/base/logging.cc',
327 '../overrides/webrtc/base/logging.h',
328 '../overrides/webrtc/base/win32socketinit.cc',
329 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000330 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000331 # these flags.
332 'cflags!': [
333 '-Wextra',
334 '-Wall',
335 ],
336 'cflags_cc!': [
337 '-Wnon-virtual-dtor',
338 ],
339 'direct_dependent_settings': {
340 'cflags_cc!': [
341 '-Wnon-virtual-dtor',
342 ],
343 'defines': [
344 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000345 ],
346 },
347 'include_dirs': [
348 '../../third_party/jsoncpp/overrides/include',
349 '../../third_party/jsoncpp/source/include',
350 ],
351 'conditions': [
352 ['build_with_chromium==1', {
353 'include_dirs': [
354 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000355 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000356 ],
357 'sources!': [
358 'asyncinvoker.cc',
359 'asyncinvoker.h',
360 'asyncinvoker-inl.h',
361 'asyncresolverinterface.h',
362 'atomicops.h',
363 'bandwidthsmoother.cc',
364 'bandwidthsmoother.h',
365 'basictypes.h',
366 'bind.h',
367 'bind.h.pump',
368 'buffer.h',
369 'callback.h',
370 'callback.h.pump',
371 'constructormagic.h',
372 'dbus.cc',
373 'dbus.h',
374 'diskcache_win32.cc',
375 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000376 'filelock.cc',
377 'filelock.h',
378 'fileutils_mock.h',
379 'genericslot.h',
380 'genericslot.h.pump',
381 'httpserver.cc',
382 'httpserver.h',
383 'json.cc',
384 'json.h',
385 'latebindingsymboltable.cc',
386 'latebindingsymboltable.cc.def',
387 'latebindingsymboltable.h',
388 'latebindingsymboltable.h.def',
389 'libdbusglibsymboltable.cc',
390 'libdbusglibsymboltable.h',
391 'linuxfdwalk.c',
392 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000393 'x11windowpicker.cc',
394 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000395 'logging.cc',
396 'logging.h',
397 'macasyncsocket.cc',
398 'macasyncsocket.h',
399 'maccocoasocketserver.h',
400 'maccocoasocketserver.mm',
401 'macsocketserver.cc',
402 'macsocketserver.h',
403 'macwindowpicker.cc',
404 'macwindowpicker.h',
405 'mathutils.h',
406 'multipart.cc',
407 'multipart.h',
408 'natserver.cc',
409 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000410 'natsocketfactory.cc',
411 'natsocketfactory.h',
412 'nattypes.cc',
413 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000414 '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',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000456 ],
457 'direct_dependent_settings': {
458 'defines': [
459 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000460 ],
461 },
462 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000463 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000464 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000465 'dependencies': [
466 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
467 ],
468 }, {
469 'include_dirs': [
470 '<(json_root)',
471 ],
472 'defines': [
473 # When defined changes the include path for json.h to where it
474 # is expected to be when building json outside of the standalone
475 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000476 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000477 ],
478 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000479 ],
480 'sources!': [
481 '../overrides/webrtc/base/basictypes.h',
482 '../overrides/webrtc/base/constructormagic.h',
483 '../overrides/webrtc/base/win32socketinit.cc',
484 '../overrides/webrtc/base/logging.cc',
485 '../overrides/webrtc/base/logging.h',
486 ],
487 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000488 ['use_openssl==1', {
489 'defines': [
490 'SSL_USE_OPENSSL',
491 'HAVE_OPENSSL_SSL_H',
492 ],
493 'direct_dependent_settings': {
494 'defines': [
495 'SSL_USE_OPENSSL',
496 'HAVE_OPENSSL_SSL_H',
497 ],
498 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000499 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000500 'openssl.h',
501 'openssladapter.cc',
502 'openssladapter.h',
503 'openssldigest.cc',
504 'openssldigest.h',
505 'opensslidentity.cc',
506 'opensslidentity.h',
507 'opensslstreamadapter.cc',
508 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000509 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000510 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000511 ['build_ssl==1', {
512 'dependencies': [
513 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
514 ],
515 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000516 'include_dirs': [
517 '<(ssl_root)',
518 ],
519 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 ],
521 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000522 'sources': [
523 'nssidentity.cc',
524 'nssidentity.h',
525 'nssstreamadapter.cc',
526 'nssstreamadapter.h',
527 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000528 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000529 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000530 'defines': [
531 'SSL_USE_NSS',
532 'HAVE_NSS_SSL_H',
533 'SSL_USE_NSS_RNG',
534 ],
535 'direct_dependent_settings': {
536 'defines': [
537 'SSL_USE_NSS',
538 'HAVE_NSS_SSL_H',
539 'SSL_USE_NSS_RNG',
540 ],
541 },
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000542 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000543 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000544 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000545 # On some platforms, the rest of NSS is bundled. On others,
546 # it's pulled from the system.
547 ['OS == "mac" or OS == "ios" or OS == "win"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000548 'dependencies': [
549 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000550 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
551 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000552 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000553 }],
554 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
555 'dependencies': [
556 '<(DEPTH)/build/linux/system.gyp:ssl',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000557 ],
558 }],
559 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000560 }, {
561 'include_dirs': [
562 '<(ssl_root)',
563 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000564 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000565 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000566 }],
567 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000568 'link_settings': {
569 'libraries': [
570 '-llog',
571 '-lGLESv2',
572 ],
573 },
574 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000575 'sources!': [
576 'ifaddrs-android.cc',
577 'ifaddrs-android.h',
578 ],
579 }],
580 ['OS=="ios"', {
581 'all_dependent_settings': {
582 'xcode_settings': {
583 'OTHER_LDFLAGS': [
584 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000585 '-framework Security',
586 '-framework SystemConfiguration',
587 '-framework UIKit',
588 ],
589 },
590 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000591 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000592 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000593 'link_settings': {
594 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000595 '-ldl',
596 '-lrt',
597 '-lXext',
598 '-lX11',
599 '-lXcomposite',
600 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000601 ],
602 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000603 }, {
604 'sources!': [
605 'x11windowpicker.cc',
606 'x11windowpicker.h',
607 ],
608 }],
609 ['OS=="linux"', {
610 'link_settings': {
611 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000612 '-ldl',
613 '-lrt',
614 ],
615 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000616 }, {
617 'sources!': [
618 'dbus.cc',
619 'dbus.h',
620 'libdbusglibsymboltable.cc',
621 'libdbusglibsymboltable.h',
622 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000623 ],
624 }],
625 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000626 'all_dependent_settings': {
627 'link_settings': {
628 'xcode_settings': {
629 'OTHER_LDFLAGS': [
630 '-framework Cocoa',
631 '-framework Foundation',
632 '-framework IOKit',
633 '-framework Security',
634 '-framework SystemConfiguration',
635 ],
636 },
637 },
638 },
639 'conditions': [
640 ['target_arch=="ia32"', {
641 'all_dependent_settings': {
642 'link_settings': {
643 'xcode_settings': {
644 'OTHER_LDFLAGS': [
645 '-framework Carbon',
646 ],
647 },
648 },
649 },
650 }],
651 ],
652 }, {
653 'sources!': [
654 'macasyncsocket.cc',
655 'macasyncsocket.h',
656 'maccocoasocketserver.h',
657 'maccocoasocketserver.mm',
658 'macconversion.cc',
659 'macconversion.h',
660 'macsocketserver.cc',
661 'macsocketserver.h',
662 'macutils.cc',
663 'macutils.h',
664 'macwindowpicker.cc',
665 'macwindowpicker.h',
666 ],
667 }],
668 ['OS=="win"', {
669 'link_settings': {
670 'libraries': [
671 '-lcrypt32.lib',
672 '-liphlpapi.lib',
673 '-lsecur32.lib',
674 ],
675 },
676 # Suppress warnings about WIN32_LEAN_AND_MEAN.
677 'msvs_disabled_warnings': [4005, 4703],
678 'defines': [
679 '_CRT_NONSTDC_NO_DEPRECATE',
680 ],
681 }, {
682 'sources/': [
683 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
684 ],
685 'sources!': [
686 'schanneladapter.cc',
687 'schanneladapter.h',
688 'winping.cc',
689 'winping.h',
690 'winfirewall.cc',
691 'winfirewall.h',
692 ],
693 }],
694 ['os_posix==0', {
695 'sources!': [
696 'latebindingsymboltable.cc',
697 'latebindingsymboltable.h',
698 'posix.cc',
699 'posix.h',
700 'unixfilesystem.cc',
701 'unixfilesystem.h',
702 ],
703 }, {
704 'configurations': {
705 'Debug_Base': {
706 'defines': [
707 # Chromium's build/common.gypi defines this for all posix
708 # _except_ for ios & mac. We want it there as well, e.g.
709 # because ASSERT and friends trigger off of it.
710 '_DEBUG',
711 ],
712 },
713 }
714 }],
715 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
716 'defines': [
717 'CARBON_DEPRECATED=YES',
718 ],
719 }],
720 ['OS!="ios" and OS!="mac"', {
721 'sources!': [
722 'scoped_autorelease_pool.mm',
723 ],
724 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000725 ['OS!="linux" and OS!="android"', {
726 'sources!': [
727 'linux.cc',
728 'linux.h',
729 ],
730 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000731 ],
732 },
733 ],
734}