blob: 72f1b6341f8b4d9ea66416bd2778de7cb5366b4d [file] [log] [blame]
henrike@webrtc.orgf0488722014-05-13 18:00:261# 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:2928 # The subset of rtc_base approved for use outside of libjingle.
29 'target_name': 'rtc_base_approved',
30 'type': 'static_library',
31 'sources': [
Karl Wiberg94784372015-04-20 12:03:0732 'buffer.cc',
33 'buffer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:2934 'checks.cc',
35 'checks.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:2736 'event.cc',
37 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:3738 'event_tracer.cc',
39 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:2940 'exp_filter.cc',
41 'exp_filter.h',
42 'md5.cc',
43 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:5344 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:2945 'md5digest.h',
xians@webrtc.orge46bc772014-10-10 08:36:5646 'platform_file.cc',
47 'platform_file.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:0948 'safe_conversions.h',
49 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:2950 'stringencode.cc',
51 'stringencode.h',
52 'stringutils.cc',
53 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:0454 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:0055 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:2956 'thread_checker.h',
57 'thread_checker_impl.cc',
58 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:2959 'timeutils.cc',
60 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:3761 'trace_event.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:2962 ],
63 },
64 {
henrike@webrtc.orgb2efb672014-09-10 17:28:1965 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:2666 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:2967 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:2268 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:2969 'rtc_base_approved',
70 ],
henrike@webrtc.orgf0488722014-05-13 18:00:2671 'defines': [
72 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:2673 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:2674 ],
75 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:5576 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:2677 'asyncfile.cc',
78 'asyncfile.h',
79 'asynchttprequest.cc',
80 'asynchttprequest.h',
81 'asyncinvoker.cc',
82 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:1983 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:5384 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:2685 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:5386 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:2687 'asyncresolverinterface.h',
88 'asyncsocket.cc',
89 'asyncsocket.h',
90 'asynctcpsocket.cc',
91 'asynctcpsocket.h',
92 'asyncudpsocket.cc',
93 'asyncudpsocket.h',
94 'atomicops.h',
95 'autodetectproxy.cc',
96 'autodetectproxy.h',
97 'bandwidthsmoother.cc',
98 'bandwidthsmoother.h',
99 'base64.cc',
100 'base64.h',
101 'basicdefs.h',
102 'basictypes.h',
103 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19104 'bind.h.pump',
Noah Richardsbbf7c862015-04-21 23:30:13105 'bitbuffer.cc',
106 'bitbuffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26107 'bytebuffer.cc',
108 'bytebuffer.h',
109 'byteorder.h',
110 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19111 'callback.h.pump',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29112 'constructormagic.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26113 'common.cc',
114 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26115 'cpumonitor.cc',
116 'cpumonitor.h',
117 'crc32.cc',
118 'crc32.h',
Jiayang Liubef8d2d2015-03-26 21:38:46119 'criticalsection.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26120 'criticalsection.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53121 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26122 'cryptstring.h',
123 'dbus.cc',
124 'dbus.h',
125 'diskcache.cc',
126 'diskcache.h',
127 'diskcache_win32.cc',
128 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26129 'filelock.cc',
130 'filelock.h',
131 'fileutils.cc',
132 'fileutils.h',
133 'fileutils_mock.h',
134 'firewallsocketserver.cc',
135 'firewallsocketserver.h',
136 'flags.cc',
137 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14138 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26139 'gunit_prod.h',
140 'helpers.cc',
141 'helpers.h',
142 'httpbase.cc',
143 'httpbase.h',
144 'httpclient.cc',
145 'httpclient.h',
146 'httpcommon-inl.h',
147 'httpcommon.cc',
148 'httpcommon.h',
149 'httprequest.cc',
150 'httprequest.h',
151 'httpserver.cc',
152 'httpserver.h',
153 'ifaddrs-android.cc',
154 'ifaddrs-android.h',
155 'iosfilesystem.mm',
156 'ipaddress.cc',
157 'ipaddress.h',
158 'json.cc',
159 'json.h',
160 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19161 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26162 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19163 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26164 'libdbusglibsymboltable.cc',
165 'libdbusglibsymboltable.h',
166 'linux.cc',
167 'linux.h',
168 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19169 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26170 'linked_ptr.h',
171 'logging.cc',
172 'logging.h',
173 'macasyncsocket.cc',
174 'macasyncsocket.h',
175 'maccocoasocketserver.h',
176 'maccocoasocketserver.mm',
177 'maccocoathreadhelper.h',
178 'maccocoathreadhelper.mm',
179 'macconversion.cc',
180 'macconversion.h',
181 'macsocketserver.cc',
182 'macsocketserver.h',
183 'macutils.cc',
184 'macutils.h',
185 'macwindowpicker.cc',
186 'macwindowpicker.h',
187 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26188 'messagedigest.cc',
189 'messagedigest.h',
190 'messagehandler.cc',
191 'messagehandler.h',
192 'messagequeue.cc',
193 'messagequeue.h',
194 'multipart.cc',
195 'multipart.h',
196 'natserver.cc',
197 'natserver.h',
198 'natsocketfactory.cc',
199 'natsocketfactory.h',
200 'nattypes.cc',
201 'nattypes.h',
202 'nethelpers.cc',
203 'nethelpers.h',
204 'network.cc',
205 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26206 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26207 'optionsfile.cc',
208 'optionsfile.h',
209 'pathutils.cc',
210 'pathutils.h',
211 'physicalsocketserver.cc',
212 'physicalsocketserver.h',
213 'posix.cc',
214 'posix.h',
215 'profiler.cc',
216 'profiler.h',
217 'proxydetect.cc',
218 'proxydetect.h',
219 'proxyinfo.cc',
220 'proxyinfo.h',
221 'proxyserver.cc',
222 'proxyserver.h',
223 'ratelimiter.cc',
224 'ratelimiter.h',
225 'ratetracker.cc',
226 'ratetracker.h',
227 'refcount.h',
228 'referencecountedsingletonfactory.h',
229 'rollingaccumulator.h',
230 'schanneladapter.cc',
231 'schanneladapter.h',
232 'scoped_autorelease_pool.h',
233 'scoped_autorelease_pool.mm',
234 'scoped_ptr.h',
235 'scoped_ref_ptr.h',
236 'scopedptrcollection.h',
237 'sec_buffer.h',
238 'sha1.cc',
239 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53240 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26241 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54242 'sharedexclusivelock.cc',
243 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26244 'signalthread.cc',
245 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53246 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26247 'sigslot.h',
248 'sigslotrepeater.h',
249 'socket.h',
250 'socketadapters.cc',
251 'socketadapters.h',
252 'socketaddress.cc',
253 'socketaddress.h',
254 'socketaddresspair.cc',
255 'socketaddresspair.h',
256 'socketfactory.h',
257 'socketpool.cc',
258 'socketpool.h',
259 'socketserver.h',
260 'socketstream.cc',
261 'socketstream.h',
262 'ssladapter.cc',
263 'ssladapter.h',
264 'sslconfig.h',
265 'sslfingerprint.cc',
266 'sslfingerprint.h',
267 'sslidentity.cc',
268 'sslidentity.h',
269 'sslroots.h',
270 'sslsocketfactory.cc',
271 'sslsocketfactory.h',
272 'sslstreamadapter.cc',
273 'sslstreamadapter.h',
274 'sslstreamadapterhelper.cc',
275 'sslstreamadapterhelper.h',
276 'stream.cc',
277 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26278 'systeminfo.cc',
279 'systeminfo.h',
280 'task.cc',
281 'task.h',
282 'taskparent.cc',
283 'taskparent.h',
284 'taskrunner.cc',
285 'taskrunner.h',
286 'testclient.cc',
287 'testclient.h',
288 'thread.cc',
289 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26290 'timing.cc',
291 'timing.h',
292 'transformadapter.cc',
293 'transformadapter.h',
294 'unixfilesystem.cc',
295 'unixfilesystem.h',
296 'urlencode.cc',
297 'urlencode.h',
298 'versionparsing.cc',
299 'versionparsing.h',
300 'virtualsocketserver.cc',
301 'virtualsocketserver.h',
302 'win32.cc',
303 'win32.h',
304 'win32filesystem.cc',
305 'win32filesystem.h',
306 'win32regkey.cc',
307 'win32regkey.h',
308 'win32securityerrors.cc',
309 'win32socketinit.cc',
310 'win32socketinit.h',
311 'win32socketserver.cc',
312 'win32socketserver.h',
313 'win32window.cc',
314 'win32window.h',
315 'win32windowpicker.cc',
316 'win32windowpicker.h',
317 'window.h',
318 'windowpicker.h',
319 'windowpickerfactory.h',
320 'winfirewall.cc',
321 'winfirewall.h',
322 'winping.cc',
323 'winping.h',
324 'worker.cc',
325 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13326 'x11windowpicker.cc',
327 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26328 '../overrides/webrtc/base/basictypes.h',
329 '../overrides/webrtc/base/constructormagic.h',
330 '../overrides/webrtc/base/logging.cc',
331 '../overrides/webrtc/base/logging.h',
332 '../overrides/webrtc/base/win32socketinit.cc',
333 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19334 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26335 # these flags.
336 'cflags!': [
337 '-Wextra',
338 '-Wall',
339 ],
340 'cflags_cc!': [
341 '-Wnon-virtual-dtor',
342 ],
343 'direct_dependent_settings': {
344 'cflags_cc!': [
345 '-Wnon-virtual-dtor',
346 ],
347 'defines': [
348 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26349 ],
350 },
351 'include_dirs': [
352 '../../third_party/jsoncpp/overrides/include',
353 '../../third_party/jsoncpp/source/include',
354 ],
355 'conditions': [
356 ['build_with_chromium==1', {
357 'include_dirs': [
358 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30359 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26360 ],
361 'sources!': [
362 'asyncinvoker.cc',
363 'asyncinvoker.h',
364 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26365 'atomicops.h',
366 'bandwidthsmoother.cc',
367 'bandwidthsmoother.h',
368 'basictypes.h',
369 'bind.h',
370 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26371 'callback.h',
372 'callback.h.pump',
373 'constructormagic.h',
374 'dbus.cc',
375 'dbus.h',
376 'diskcache_win32.cc',
377 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26378 'filelock.cc',
379 'filelock.h',
380 'fileutils_mock.h',
381 'genericslot.h',
382 'genericslot.h.pump',
383 'httpserver.cc',
384 'httpserver.h',
385 'json.cc',
386 'json.h',
387 'latebindingsymboltable.cc',
388 'latebindingsymboltable.cc.def',
389 'latebindingsymboltable.h',
390 'latebindingsymboltable.h.def',
391 'libdbusglibsymboltable.cc',
392 'libdbusglibsymboltable.h',
393 'linuxfdwalk.c',
394 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13395 'x11windowpicker.cc',
396 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26397 'logging.cc',
398 'logging.h',
399 'macasyncsocket.cc',
400 'macasyncsocket.h',
401 'maccocoasocketserver.h',
402 'maccocoasocketserver.mm',
403 'macsocketserver.cc',
404 'macsocketserver.h',
405 'macwindowpicker.cc',
406 'macwindowpicker.h',
407 'mathutils.h',
408 'multipart.cc',
409 'multipart.h',
410 'natserver.cc',
411 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26412 'natsocketfactory.cc',
413 'natsocketfactory.h',
414 'nattypes.cc',
415 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26416 'optionsfile.cc',
417 'optionsfile.h',
418 'posix.cc',
419 'posix.h',
420 'profiler.cc',
421 'profiler.h',
422 'proxyserver.cc',
423 'proxyserver.h',
424 'refcount.h',
425 'referencecountedsingletonfactory.h',
426 'rollingaccumulator.h',
427 'safe_conversions.h',
428 'safe_conversions_impl.h',
429 'scopedptrcollection.h',
430 'scoped_ref_ptr.h',
431 'sec_buffer.h',
432 'sharedexclusivelock.cc',
433 'sharedexclusivelock.h',
434 'sslconfig.h',
435 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26436 'testbase64.h',
437 'testclient.cc',
438 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26439 '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:26451 'window.h',
452 'windowpickerfactory.h',
453 'windowpicker.h',
454 ],
455 'defines': [
456 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26457 ],
458 'direct_dependent_settings': {
459 'defines': [
460 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26461 ],
462 },
463 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20464 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44465 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20466 '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:44477 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20478 ],
479 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26480 ],
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:03489 ['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:40500 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03501 '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:40510 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20511 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03512 ['build_ssl==1', {
513 'dependencies': [
514 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
515 ],
516 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20517 'include_dirs': [
518 '<(ssl_root)',
519 ],
520 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26521 ],
522 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03523 'sources': [
524 'nssidentity.cc',
525 'nssidentity.h',
526 'nssstreamadapter.cc',
527 'nssstreamadapter.h',
528 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47529 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03530 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47531 '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:03543 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40544 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40545 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40546 # On some platforms, the rest of NSS is bundled. On others,
547 # it's pulled from the system.
Henrik Kjellanderca047f72015-04-08 06:54:02548 ['OS == "mac" or OS == "ios"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40549 'dependencies': [
550 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03551 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
552 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40553 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40554 }],
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:40558 ],
559 }],
560 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40561 }, {
562 'include_dirs': [
563 '<(ssl_root)',
564 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40565 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26566 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26567 }],
568 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26569 'link_settings': {
570 'libraries': [
571 '-llog',
572 '-lGLESv2',
573 ],
574 },
575 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26576 '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:26586 '-framework Security',
587 '-framework SystemConfiguration',
588 '-framework UIKit',
589 ],
590 },
591 },
henrike@webrtc.orgf0488722014-05-13 18:00:26592 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13593 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26594 'link_settings': {
595 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26596 '-ldl',
597 '-lrt',
598 '-lXext',
599 '-lX11',
600 '-lXcomposite',
601 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26602 ],
603 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13604 }, {
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:13613 '-ldl',
614 '-lrt',
615 ],
616 },
henrike@webrtc.orgf0488722014-05-13 18:00:26617 }, {
618 'sources!': [
619 'dbus.cc',
620 'dbus.h',
621 'libdbusglibsymboltable.cc',
622 'libdbusglibsymboltable.h',
623 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26624 ],
625 }],
626 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26627 '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:26726 ['OS!="linux" and OS!="android"', {
727 'sources!': [
728 'linux.cc',
729 'linux.h',
730 ],
731 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26732 ],
733 },
734 ],
735}