blob: 5da97a6b65c58ef24df5ce1b1739d281fd6eabda [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',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000036 'event_tracer.cc',
37 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000038 'exp_filter.cc',
39 'exp_filter.h',
40 'md5.cc',
41 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000042 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000043 'md5digest.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000044 'platform_file.cc',
45 'platform_file.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000046 'safe_conversions.h',
47 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000048 'stringencode.cc',
49 'stringencode.h',
50 'stringutils.cc',
51 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000052 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000053 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000054 'thread_checker.h',
55 'thread_checker_impl.cc',
56 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000057 'timeutils.cc',
58 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000059 'trace_event.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000060 ],
61 },
62 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000063 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000064 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000065 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000066 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000067 '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',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000072 ],
73 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +000074 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000075 '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',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000082 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000083 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000084 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000085 'asyncresolverinterface.h',
86 'asyncsocket.cc',
87 'asyncsocket.h',
88 'asynctcpsocket.cc',
89 'asynctcpsocket.h',
90 'asyncudpsocket.cc',
91 'asyncudpsocket.h',
92 'atomicops.h',
93 'autodetectproxy.cc',
94 'autodetectproxy.h',
95 'bandwidthsmoother.cc',
96 'bandwidthsmoother.h',
97 'base64.cc',
98 'base64.h',
99 'basicdefs.h',
100 'basictypes.h',
101 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000102 'bind.h.pump',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000103 'buffer.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000104 'buffer.h',
105 'bytebuffer.cc',
106 'bytebuffer.h',
107 'byteorder.h',
108 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000109 'callback.h.pump',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000110 'constructormagic.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000111 'common.cc',
112 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000113 'cpumonitor.cc',
114 'cpumonitor.h',
115 'crc32.cc',
116 'crc32.h',
117 'criticalsection.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000118 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000119 'cryptstring.h',
120 'dbus.cc',
121 'dbus.h',
122 'diskcache.cc',
123 'diskcache.h',
124 'diskcache_win32.cc',
125 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000126 'filelock.cc',
127 'filelock.h',
128 'fileutils.cc',
129 'fileutils.h',
130 'fileutils_mock.h',
131 'firewallsocketserver.cc',
132 'firewallsocketserver.h',
133 'flags.cc',
134 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000135 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000136 'gunit_prod.h',
137 'helpers.cc',
138 'helpers.h',
139 'httpbase.cc',
140 'httpbase.h',
141 'httpclient.cc',
142 'httpclient.h',
143 'httpcommon-inl.h',
144 'httpcommon.cc',
145 'httpcommon.h',
146 'httprequest.cc',
147 'httprequest.h',
148 'httpserver.cc',
149 'httpserver.h',
150 'ifaddrs-android.cc',
151 'ifaddrs-android.h',
152 'iosfilesystem.mm',
153 'ipaddress.cc',
154 'ipaddress.h',
155 'json.cc',
156 'json.h',
157 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000158 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000159 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000160 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000161 'libdbusglibsymboltable.cc',
162 'libdbusglibsymboltable.h',
163 'linux.cc',
164 'linux.h',
165 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000166 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000167 'linked_ptr.h',
168 'logging.cc',
169 'logging.h',
170 'macasyncsocket.cc',
171 'macasyncsocket.h',
172 'maccocoasocketserver.h',
173 'maccocoasocketserver.mm',
174 'maccocoathreadhelper.h',
175 'maccocoathreadhelper.mm',
176 'macconversion.cc',
177 'macconversion.h',
178 'macsocketserver.cc',
179 'macsocketserver.h',
180 'macutils.cc',
181 'macutils.h',
182 'macwindowpicker.cc',
183 'macwindowpicker.h',
184 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000185 'messagedigest.cc',
186 'messagedigest.h',
187 'messagehandler.cc',
188 'messagehandler.h',
189 'messagequeue.cc',
190 'messagequeue.h',
191 'multipart.cc',
192 'multipart.h',
193 'natserver.cc',
194 'natserver.h',
195 'natsocketfactory.cc',
196 'natsocketfactory.h',
197 'nattypes.cc',
198 'nattypes.h',
199 'nethelpers.cc',
200 'nethelpers.h',
201 'network.cc',
202 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000203 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'optionsfile.cc',
205 'optionsfile.h',
206 'pathutils.cc',
207 'pathutils.h',
208 'physicalsocketserver.cc',
209 'physicalsocketserver.h',
210 'posix.cc',
211 'posix.h',
212 'profiler.cc',
213 'profiler.h',
214 'proxydetect.cc',
215 'proxydetect.h',
216 'proxyinfo.cc',
217 'proxyinfo.h',
218 'proxyserver.cc',
219 'proxyserver.h',
220 'ratelimiter.cc',
221 'ratelimiter.h',
222 'ratetracker.cc',
223 'ratetracker.h',
224 'refcount.h',
225 'referencecountedsingletonfactory.h',
226 'rollingaccumulator.h',
227 'schanneladapter.cc',
228 'schanneladapter.h',
229 'scoped_autorelease_pool.h',
230 'scoped_autorelease_pool.mm',
231 'scoped_ptr.h',
232 'scoped_ref_ptr.h',
233 'scopedptrcollection.h',
234 'sec_buffer.h',
235 'sha1.cc',
236 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000237 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000238 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000239 'sharedexclusivelock.cc',
240 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000241 'signalthread.cc',
242 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000243 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000244 'sigslot.h',
245 'sigslotrepeater.h',
246 'socket.h',
247 'socketadapters.cc',
248 'socketadapters.h',
249 'socketaddress.cc',
250 'socketaddress.h',
251 'socketaddresspair.cc',
252 'socketaddresspair.h',
253 'socketfactory.h',
254 'socketpool.cc',
255 'socketpool.h',
256 'socketserver.h',
257 'socketstream.cc',
258 'socketstream.h',
259 'ssladapter.cc',
260 'ssladapter.h',
261 'sslconfig.h',
262 'sslfingerprint.cc',
263 'sslfingerprint.h',
264 'sslidentity.cc',
265 'sslidentity.h',
266 'sslroots.h',
267 'sslsocketfactory.cc',
268 'sslsocketfactory.h',
269 'sslstreamadapter.cc',
270 'sslstreamadapter.h',
271 'sslstreamadapterhelper.cc',
272 'sslstreamadapterhelper.h',
273 'stream.cc',
274 'stream.h',
275 'stringdigest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000276 'systeminfo.cc',
277 'systeminfo.h',
278 'task.cc',
279 'task.h',
280 'taskparent.cc',
281 'taskparent.h',
282 'taskrunner.cc',
283 'taskrunner.h',
284 'testclient.cc',
285 'testclient.h',
286 'thread.cc',
287 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000288 'timing.cc',
289 'timing.h',
290 'transformadapter.cc',
291 'transformadapter.h',
292 'unixfilesystem.cc',
293 'unixfilesystem.h',
294 'urlencode.cc',
295 'urlencode.h',
296 'versionparsing.cc',
297 'versionparsing.h',
298 'virtualsocketserver.cc',
299 'virtualsocketserver.h',
300 'win32.cc',
301 'win32.h',
302 'win32filesystem.cc',
303 'win32filesystem.h',
304 'win32regkey.cc',
305 'win32regkey.h',
306 'win32securityerrors.cc',
307 'win32socketinit.cc',
308 'win32socketinit.h',
309 'win32socketserver.cc',
310 'win32socketserver.h',
311 'win32window.cc',
312 'win32window.h',
313 'win32windowpicker.cc',
314 'win32windowpicker.h',
315 'window.h',
316 'windowpicker.h',
317 'windowpickerfactory.h',
318 'winfirewall.cc',
319 'winfirewall.h',
320 'winping.cc',
321 'winping.h',
322 'worker.cc',
323 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000324 'x11windowpicker.cc',
325 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000326 '../overrides/webrtc/base/basictypes.h',
327 '../overrides/webrtc/base/constructormagic.h',
328 '../overrides/webrtc/base/logging.cc',
329 '../overrides/webrtc/base/logging.h',
330 '../overrides/webrtc/base/win32socketinit.cc',
331 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000332 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000333 # these flags.
334 'cflags!': [
335 '-Wextra',
336 '-Wall',
337 ],
338 'cflags_cc!': [
339 '-Wnon-virtual-dtor',
340 ],
341 'direct_dependent_settings': {
342 'cflags_cc!': [
343 '-Wnon-virtual-dtor',
344 ],
345 'defines': [
346 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000347 ],
348 },
349 'include_dirs': [
350 '../../third_party/jsoncpp/overrides/include',
351 '../../third_party/jsoncpp/source/include',
352 ],
353 'conditions': [
354 ['build_with_chromium==1', {
355 'include_dirs': [
356 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000357 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000358 ],
359 'sources!': [
360 'asyncinvoker.cc',
361 'asyncinvoker.h',
362 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000363 'atomicops.h',
364 'bandwidthsmoother.cc',
365 'bandwidthsmoother.h',
366 'basictypes.h',
367 'bind.h',
368 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000369 '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}