blob: 3444ce2f28bc0063715435051b60e2bffdf30e06 [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',
kwiberg@webrtc.org3df38b42015-01-13 11:37:48 +000044 'compile_assert.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000045 'exp_filter.cc',
46 'exp_filter.h',
47 'md5.cc',
48 'md5.h',
49 'md5digest.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000050 'platform_file.cc',
51 'platform_file.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000052 'safe_conversions.h',
53 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000054 'stringencode.cc',
55 'stringencode.h',
56 'stringutils.cc',
57 'stringutils.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000058 'thread_annotations.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000059 'timeutils.cc',
60 'timeutils.h',
61 ],
62 },
63 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000064 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000065 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000066 'dependencies': [
67 'rtc_base_approved',
68 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000069 'defines': [
70 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000071 'LOGGING=1',
72 'USE_WEBRTC_DEV_BRANCH',
73 ],
74 'sources': [
75 'asyncfile.cc',
76 'asyncfile.h',
77 'asynchttprequest.cc',
78 'asynchttprequest.h',
79 'asyncinvoker.cc',
80 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000081 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000082 'asyncpacketsocket.h',
83 'asyncresolverinterface.h',
84 'asyncsocket.cc',
85 'asyncsocket.h',
86 'asynctcpsocket.cc',
87 'asynctcpsocket.h',
88 'asyncudpsocket.cc',
89 'asyncudpsocket.h',
90 'atomicops.h',
91 'autodetectproxy.cc',
92 'autodetectproxy.h',
93 'bandwidthsmoother.cc',
94 'bandwidthsmoother.h',
95 'base64.cc',
96 'base64.h',
97 'basicdefs.h',
98 'basictypes.h',
99 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000100 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000101 'buffer.h',
102 'bytebuffer.cc',
103 'bytebuffer.h',
104 'byteorder.h',
105 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000106 'callback.h.pump',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000107 'constructormagic.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000108 'common.cc',
109 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000110 'cpumonitor.cc',
111 'cpumonitor.h',
112 'crc32.cc',
113 'crc32.h',
114 'criticalsection.h',
115 'cryptstring.h',
116 'dbus.cc',
117 'dbus.h',
118 'diskcache.cc',
119 'diskcache.h',
120 'diskcache_win32.cc',
121 'diskcache_win32.h',
122 'event.cc',
123 'event.h',
124 'filelock.cc',
125 'filelock.h',
126 'fileutils.cc',
127 'fileutils.h',
128 'fileutils_mock.h',
129 'firewallsocketserver.cc',
130 'firewallsocketserver.h',
131 'flags.cc',
132 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000133 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000134 'gunit_prod.h',
135 'helpers.cc',
136 'helpers.h',
137 'httpbase.cc',
138 'httpbase.h',
139 'httpclient.cc',
140 'httpclient.h',
141 'httpcommon-inl.h',
142 'httpcommon.cc',
143 'httpcommon.h',
144 'httprequest.cc',
145 'httprequest.h',
146 'httpserver.cc',
147 'httpserver.h',
148 'ifaddrs-android.cc',
149 'ifaddrs-android.h',
150 'iosfilesystem.mm',
151 'ipaddress.cc',
152 'ipaddress.h',
153 'json.cc',
154 'json.h',
155 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000156 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000157 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000158 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000159 'libdbusglibsymboltable.cc',
160 'libdbusglibsymboltable.h',
161 'linux.cc',
162 'linux.h',
163 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000164 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000165 'linked_ptr.h',
166 'logging.cc',
167 'logging.h',
168 'macasyncsocket.cc',
169 'macasyncsocket.h',
170 'maccocoasocketserver.h',
171 'maccocoasocketserver.mm',
172 'maccocoathreadhelper.h',
173 'maccocoathreadhelper.mm',
174 'macconversion.cc',
175 'macconversion.h',
176 'macsocketserver.cc',
177 'macsocketserver.h',
178 'macutils.cc',
179 'macutils.h',
180 'macwindowpicker.cc',
181 'macwindowpicker.h',
182 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000183 'messagedigest.cc',
184 'messagedigest.h',
185 'messagehandler.cc',
186 'messagehandler.h',
187 'messagequeue.cc',
188 'messagequeue.h',
189 'multipart.cc',
190 'multipart.h',
191 'natserver.cc',
192 'natserver.h',
193 'natsocketfactory.cc',
194 'natsocketfactory.h',
195 'nattypes.cc',
196 'nattypes.h',
197 'nethelpers.cc',
198 'nethelpers.h',
199 'network.cc',
200 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000201 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000202 'optionsfile.cc',
203 'optionsfile.h',
204 'pathutils.cc',
205 'pathutils.h',
206 'physicalsocketserver.cc',
207 'physicalsocketserver.h',
208 'posix.cc',
209 'posix.h',
210 'profiler.cc',
211 'profiler.h',
212 'proxydetect.cc',
213 'proxydetect.h',
214 'proxyinfo.cc',
215 'proxyinfo.h',
216 'proxyserver.cc',
217 'proxyserver.h',
218 'ratelimiter.cc',
219 'ratelimiter.h',
220 'ratetracker.cc',
221 'ratetracker.h',
222 'refcount.h',
223 'referencecountedsingletonfactory.h',
224 'rollingaccumulator.h',
225 'schanneladapter.cc',
226 'schanneladapter.h',
227 'scoped_autorelease_pool.h',
228 'scoped_autorelease_pool.mm',
229 'scoped_ptr.h',
230 'scoped_ref_ptr.h',
231 'scopedptrcollection.h',
232 'sec_buffer.h',
233 'sha1.cc',
234 'sha1.h',
235 'sha1digest.h',
236 'sharedexclusivelock.cc',
237 'sharedexclusivelock.h',
238 'signalthread.cc',
239 'signalthread.h',
240 'sigslot.h',
241 'sigslotrepeater.h',
242 'socket.h',
243 'socketadapters.cc',
244 'socketadapters.h',
245 'socketaddress.cc',
246 'socketaddress.h',
247 'socketaddresspair.cc',
248 'socketaddresspair.h',
249 'socketfactory.h',
250 'socketpool.cc',
251 'socketpool.h',
252 'socketserver.h',
253 'socketstream.cc',
254 'socketstream.h',
255 'ssladapter.cc',
256 'ssladapter.h',
257 'sslconfig.h',
258 'sslfingerprint.cc',
259 'sslfingerprint.h',
260 'sslidentity.cc',
261 'sslidentity.h',
262 'sslroots.h',
263 'sslsocketfactory.cc',
264 'sslsocketfactory.h',
265 'sslstreamadapter.cc',
266 'sslstreamadapter.h',
267 'sslstreamadapterhelper.cc',
268 'sslstreamadapterhelper.h',
269 'stream.cc',
270 'stream.h',
271 'stringdigest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000272 'systeminfo.cc',
273 'systeminfo.h',
274 'task.cc',
275 'task.h',
276 'taskparent.cc',
277 'taskparent.h',
278 'taskrunner.cc',
279 'taskrunner.h',
280 'testclient.cc',
281 'testclient.h',
282 'thread.cc',
283 'thread.h',
henrik.lundin@webrtc.org1e3c5c22014-06-16 11:34:44 +0000284 'thread_checker.h',
285 'thread_checker_impl.cc',
286 'thread_checker_impl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000287 'timing.cc',
288 'timing.h',
289 'transformadapter.cc',
290 'transformadapter.h',
291 'unixfilesystem.cc',
292 'unixfilesystem.h',
293 'urlencode.cc',
294 'urlencode.h',
295 'versionparsing.cc',
296 'versionparsing.h',
297 'virtualsocketserver.cc',
298 'virtualsocketserver.h',
299 'win32.cc',
300 'win32.h',
301 'win32filesystem.cc',
302 'win32filesystem.h',
303 'win32regkey.cc',
304 'win32regkey.h',
305 'win32securityerrors.cc',
306 'win32socketinit.cc',
307 'win32socketinit.h',
308 'win32socketserver.cc',
309 'win32socketserver.h',
310 'win32window.cc',
311 'win32window.h',
312 'win32windowpicker.cc',
313 'win32windowpicker.h',
314 'window.h',
315 'windowpicker.h',
316 'windowpickerfactory.h',
317 'winfirewall.cc',
318 'winfirewall.h',
319 'winping.cc',
320 'winping.h',
321 'worker.cc',
322 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000323 'x11windowpicker.cc',
324 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000325 '../overrides/webrtc/base/basictypes.h',
326 '../overrides/webrtc/base/constructormagic.h',
327 '../overrides/webrtc/base/logging.cc',
328 '../overrides/webrtc/base/logging.h',
329 '../overrides/webrtc/base/win32socketinit.cc',
330 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000331 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000332 # these flags.
333 'cflags!': [
334 '-Wextra',
335 '-Wall',
336 ],
337 'cflags_cc!': [
338 '-Wnon-virtual-dtor',
339 ],
340 'direct_dependent_settings': {
341 'cflags_cc!': [
342 '-Wnon-virtual-dtor',
343 ],
344 'defines': [
345 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000346 ],
347 },
348 'include_dirs': [
349 '../../third_party/jsoncpp/overrides/include',
350 '../../third_party/jsoncpp/source/include',
351 ],
352 'conditions': [
353 ['build_with_chromium==1', {
354 'include_dirs': [
355 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000356 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000357 ],
358 'sources!': [
359 'asyncinvoker.cc',
360 'asyncinvoker.h',
361 'asyncinvoker-inl.h',
362 'asyncresolverinterface.h',
363 'atomicops.h',
364 'bandwidthsmoother.cc',
365 'bandwidthsmoother.h',
366 'basictypes.h',
367 'bind.h',
368 'bind.h.pump',
369 'buffer.h',
370 'callback.h',
371 'callback.h.pump',
372 'constructormagic.h',
373 'dbus.cc',
374 'dbus.h',
375 'diskcache_win32.cc',
376 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000377 'filelock.cc',
378 'filelock.h',
379 'fileutils_mock.h',
380 'genericslot.h',
381 'genericslot.h.pump',
382 'httpserver.cc',
383 'httpserver.h',
384 'json.cc',
385 'json.h',
386 'latebindingsymboltable.cc',
387 'latebindingsymboltable.cc.def',
388 'latebindingsymboltable.h',
389 'latebindingsymboltable.h.def',
390 'libdbusglibsymboltable.cc',
391 'libdbusglibsymboltable.h',
392 'linuxfdwalk.c',
393 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000394 'x11windowpicker.cc',
395 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000396 'logging.cc',
397 'logging.h',
398 'macasyncsocket.cc',
399 'macasyncsocket.h',
400 'maccocoasocketserver.h',
401 'maccocoasocketserver.mm',
402 'macsocketserver.cc',
403 'macsocketserver.h',
404 'macwindowpicker.cc',
405 'macwindowpicker.h',
406 'mathutils.h',
407 'multipart.cc',
408 'multipart.h',
409 'natserver.cc',
410 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000411 'natsocketfactory.cc',
412 'natsocketfactory.h',
413 'nattypes.cc',
414 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000415 'optionsfile.cc',
416 'optionsfile.h',
417 'posix.cc',
418 'posix.h',
419 'profiler.cc',
420 'profiler.h',
421 'proxyserver.cc',
422 'proxyserver.h',
423 'refcount.h',
424 'referencecountedsingletonfactory.h',
425 'rollingaccumulator.h',
426 'safe_conversions.h',
427 'safe_conversions_impl.h',
428 'scopedptrcollection.h',
429 'scoped_ref_ptr.h',
430 'sec_buffer.h',
431 'sharedexclusivelock.cc',
432 'sharedexclusivelock.h',
433 'sslconfig.h',
434 'sslroots.h',
435 'stringdigest.h',
436 'testbase64.h',
437 'testclient.cc',
438 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000439 'transformadapter.cc',
440 'transformadapter.h',
441 'versionparsing.cc',
442 'versionparsing.h',
443 'virtualsocketserver.cc',
444 'virtualsocketserver.h',
445 'win32regkey.cc',
446 'win32regkey.h',
447 'win32socketinit.cc',
448 'win32socketinit.h',
449 'win32socketserver.cc',
450 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000451 'window.h',
452 'windowpickerfactory.h',
453 'windowpicker.h',
454 ],
455 'defines': [
456 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000457 ],
458 'direct_dependent_settings': {
459 'defines': [
460 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000461 ],
462 },
463 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000464 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000465 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000466 'dependencies': [
467 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
468 ],
469 }, {
470 'include_dirs': [
471 '<(json_root)',
472 ],
473 'defines': [
474 # When defined changes the include path for json.h to where it
475 # is expected to be when building json outside of the standalone
476 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000477 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000478 ],
479 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000480 ],
481 'sources!': [
482 '../overrides/webrtc/base/basictypes.h',
483 '../overrides/webrtc/base/constructormagic.h',
484 '../overrides/webrtc/base/win32socketinit.cc',
485 '../overrides/webrtc/base/logging.cc',
486 '../overrides/webrtc/base/logging.h',
487 ],
488 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000489 ['use_openssl==1', {
490 'defines': [
491 'SSL_USE_OPENSSL',
492 'HAVE_OPENSSL_SSL_H',
493 ],
494 'direct_dependent_settings': {
495 'defines': [
496 'SSL_USE_OPENSSL',
497 'HAVE_OPENSSL_SSL_H',
498 ],
499 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000500 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000501 'openssl.h',
502 'openssladapter.cc',
503 'openssladapter.h',
504 'openssldigest.cc',
505 'openssldigest.h',
506 'opensslidentity.cc',
507 'opensslidentity.h',
508 'opensslstreamadapter.cc',
509 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000510 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000511 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000512 ['build_ssl==1', {
513 'dependencies': [
514 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
515 ],
516 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000517 'include_dirs': [
518 '<(ssl_root)',
519 ],
520 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000521 ],
522 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000523 'sources': [
524 'nssidentity.cc',
525 'nssidentity.h',
526 'nssstreamadapter.cc',
527 'nssstreamadapter.h',
528 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000529 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000530 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000531 'defines': [
532 'SSL_USE_NSS',
533 'HAVE_NSS_SSL_H',
534 'SSL_USE_NSS_RNG',
535 ],
536 'direct_dependent_settings': {
537 'defines': [
538 'SSL_USE_NSS',
539 'HAVE_NSS_SSL_H',
540 'SSL_USE_NSS_RNG',
541 ],
542 },
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000543 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000544 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000545 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000546 # On some platforms, the rest of NSS is bundled. On others,
547 # it's pulled from the system.
548 ['OS == "mac" or OS == "ios" or OS == "win"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000549 'dependencies': [
550 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000551 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
552 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000553 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000554 }],
555 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
556 'dependencies': [
557 '<(DEPTH)/build/linux/system.gyp:ssl',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000558 ],
559 }],
560 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000561 }, {
562 'include_dirs': [
563 '<(ssl_root)',
564 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000565 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000566 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000567 }],
568 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000569 'link_settings': {
570 'libraries': [
571 '-llog',
572 '-lGLESv2',
573 ],
574 },
575 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000576 'sources!': [
577 'ifaddrs-android.cc',
578 'ifaddrs-android.h',
579 ],
580 }],
581 ['OS=="ios"', {
582 'all_dependent_settings': {
583 'xcode_settings': {
584 'OTHER_LDFLAGS': [
585 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000586 '-framework Security',
587 '-framework SystemConfiguration',
588 '-framework UIKit',
589 ],
590 },
591 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000592 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000593 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000594 'link_settings': {
595 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000596 '-ldl',
597 '-lrt',
598 '-lXext',
599 '-lX11',
600 '-lXcomposite',
601 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000602 ],
603 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000604 }, {
605 'sources!': [
606 'x11windowpicker.cc',
607 'x11windowpicker.h',
608 ],
609 }],
610 ['OS=="linux"', {
611 'link_settings': {
612 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000613 '-ldl',
614 '-lrt',
615 ],
616 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000617 }, {
618 'sources!': [
619 'dbus.cc',
620 'dbus.h',
621 'libdbusglibsymboltable.cc',
622 'libdbusglibsymboltable.h',
623 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000624 ],
625 }],
626 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000627 'all_dependent_settings': {
628 'link_settings': {
629 'xcode_settings': {
630 'OTHER_LDFLAGS': [
631 '-framework Cocoa',
632 '-framework Foundation',
633 '-framework IOKit',
634 '-framework Security',
635 '-framework SystemConfiguration',
636 ],
637 },
638 },
639 },
640 'conditions': [
641 ['target_arch=="ia32"', {
642 'all_dependent_settings': {
643 'link_settings': {
644 'xcode_settings': {
645 'OTHER_LDFLAGS': [
646 '-framework Carbon',
647 ],
648 },
649 },
650 },
651 }],
652 ],
653 }, {
654 'sources!': [
655 'macasyncsocket.cc',
656 'macasyncsocket.h',
657 'maccocoasocketserver.h',
658 'maccocoasocketserver.mm',
659 'macconversion.cc',
660 'macconversion.h',
661 'macsocketserver.cc',
662 'macsocketserver.h',
663 'macutils.cc',
664 'macutils.h',
665 'macwindowpicker.cc',
666 'macwindowpicker.h',
667 ],
668 }],
669 ['OS=="win"', {
670 'link_settings': {
671 'libraries': [
672 '-lcrypt32.lib',
673 '-liphlpapi.lib',
674 '-lsecur32.lib',
675 ],
676 },
677 # Suppress warnings about WIN32_LEAN_AND_MEAN.
678 'msvs_disabled_warnings': [4005, 4703],
679 'defines': [
680 '_CRT_NONSTDC_NO_DEPRECATE',
681 ],
682 }, {
683 'sources/': [
684 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
685 ],
686 'sources!': [
687 'schanneladapter.cc',
688 'schanneladapter.h',
689 'winping.cc',
690 'winping.h',
691 'winfirewall.cc',
692 'winfirewall.h',
693 ],
694 }],
695 ['os_posix==0', {
696 'sources!': [
697 'latebindingsymboltable.cc',
698 'latebindingsymboltable.h',
699 'posix.cc',
700 'posix.h',
701 'unixfilesystem.cc',
702 'unixfilesystem.h',
703 ],
704 }, {
705 'configurations': {
706 'Debug_Base': {
707 'defines': [
708 # Chromium's build/common.gypi defines this for all posix
709 # _except_ for ios & mac. We want it there as well, e.g.
710 # because ASSERT and friends trigger off of it.
711 '_DEBUG',
712 ],
713 },
714 }
715 }],
716 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
717 'defines': [
718 'CARBON_DEPRECATED=YES',
719 ],
720 }],
721 ['OS!="ios" and OS!="mac"', {
722 'sources!': [
723 'scoped_autorelease_pool.mm',
724 ],
725 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000726 ['OS!="linux" and OS!="android"', {
727 'sources!': [
728 'linux.cc',
729 'linux.h',
730 ],
731 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000732 ],
733 },
734 ],
735}