blob: 57ef4f47df453e7ab9dd90fb2b38df356742544f [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',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000036 'exp_filter.cc',
37 'exp_filter.h',
38 'md5.cc',
39 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000040 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000041 'md5digest.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000042 'platform_file.cc',
43 'platform_file.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000044 'safe_conversions.h',
45 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000046 'stringencode.cc',
47 'stringencode.h',
48 'stringutils.cc',
49 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000050 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000051 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000052 'thread_checker.h',
53 'thread_checker_impl.cc',
54 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000055 'timeutils.cc',
56 'timeutils.h',
57 ],
58 },
59 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000060 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000061 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000062 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000063 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000064 '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',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000069 ],
70 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +000071 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000072 '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',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000079 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000080 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000081 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000082 'asyncresolverinterface.h',
83 'asyncsocket.cc',
84 'asyncsocket.h',
85 'asynctcpsocket.cc',
86 'asynctcpsocket.h',
87 'asyncudpsocket.cc',
88 'asyncudpsocket.h',
89 'atomicops.h',
90 'autodetectproxy.cc',
91 'autodetectproxy.h',
92 'bandwidthsmoother.cc',
93 'bandwidthsmoother.h',
94 'base64.cc',
95 'base64.h',
96 'basicdefs.h',
97 'basictypes.h',
98 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000099 'bind.h.pump',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000100 'buffer.cc',
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',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000115 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000116 'cryptstring.h',
117 'dbus.cc',
118 'dbus.h',
119 'diskcache.cc',
120 'diskcache.h',
121 'diskcache_win32.cc',
122 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000123 'filelock.cc',
124 'filelock.h',
125 'fileutils.cc',
126 'fileutils.h',
127 'fileutils_mock.h',
128 'firewallsocketserver.cc',
129 'firewallsocketserver.h',
130 'flags.cc',
131 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000132 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000133 'gunit_prod.h',
134 'helpers.cc',
135 'helpers.h',
136 'httpbase.cc',
137 'httpbase.h',
138 'httpclient.cc',
139 'httpclient.h',
140 'httpcommon-inl.h',
141 'httpcommon.cc',
142 'httpcommon.h',
143 'httprequest.cc',
144 'httprequest.h',
145 'httpserver.cc',
146 'httpserver.h',
147 'ifaddrs-android.cc',
148 'ifaddrs-android.h',
149 'iosfilesystem.mm',
150 'ipaddress.cc',
151 'ipaddress.h',
152 'json.cc',
153 'json.h',
154 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000155 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000156 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000157 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000158 'libdbusglibsymboltable.cc',
159 'libdbusglibsymboltable.h',
160 'linux.cc',
161 'linux.h',
162 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000163 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000164 'linked_ptr.h',
165 'logging.cc',
166 'logging.h',
167 'macasyncsocket.cc',
168 'macasyncsocket.h',
169 'maccocoasocketserver.h',
170 'maccocoasocketserver.mm',
171 'maccocoathreadhelper.h',
172 'maccocoathreadhelper.mm',
173 'macconversion.cc',
174 'macconversion.h',
175 'macsocketserver.cc',
176 'macsocketserver.h',
177 'macutils.cc',
178 'macutils.h',
179 'macwindowpicker.cc',
180 'macwindowpicker.h',
181 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000182 'messagedigest.cc',
183 'messagedigest.h',
184 'messagehandler.cc',
185 'messagehandler.h',
186 'messagequeue.cc',
187 'messagequeue.h',
188 'multipart.cc',
189 'multipart.h',
190 'natserver.cc',
191 'natserver.h',
192 'natsocketfactory.cc',
193 'natsocketfactory.h',
194 'nattypes.cc',
195 'nattypes.h',
196 'nethelpers.cc',
197 'nethelpers.h',
198 'network.cc',
199 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000201 'optionsfile.cc',
202 'optionsfile.h',
203 'pathutils.cc',
204 'pathutils.h',
205 'physicalsocketserver.cc',
206 'physicalsocketserver.h',
207 'posix.cc',
208 'posix.h',
209 'profiler.cc',
210 'profiler.h',
211 'proxydetect.cc',
212 'proxydetect.h',
213 'proxyinfo.cc',
214 'proxyinfo.h',
215 'proxyserver.cc',
216 'proxyserver.h',
217 'ratelimiter.cc',
218 'ratelimiter.h',
219 'ratetracker.cc',
220 'ratetracker.h',
221 'refcount.h',
222 'referencecountedsingletonfactory.h',
223 'rollingaccumulator.h',
224 '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',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000234 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000235 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000236 'sharedexclusivelock.cc',
237 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000238 'signalthread.cc',
239 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000240 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000241 'sigslot.h',
242 'sigslotrepeater.h',
243 'socket.h',
244 'socketadapters.cc',
245 'socketadapters.h',
246 'socketaddress.cc',
247 'socketaddress.h',
248 'socketaddresspair.cc',
249 'socketaddresspair.h',
250 'socketfactory.h',
251 'socketpool.cc',
252 'socketpool.h',
253 'socketserver.h',
254 'socketstream.cc',
255 'socketstream.h',
256 'ssladapter.cc',
257 'ssladapter.h',
258 'sslconfig.h',
259 'sslfingerprint.cc',
260 'sslfingerprint.h',
261 'sslidentity.cc',
262 'sslidentity.h',
263 'sslroots.h',
264 'sslsocketfactory.cc',
265 'sslsocketfactory.h',
266 'sslstreamadapter.cc',
267 'sslstreamadapter.h',
268 'sslstreamadapterhelper.cc',
269 'sslstreamadapterhelper.h',
270 'stream.cc',
271 'stream.h',
272 'stringdigest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000273 'systeminfo.cc',
274 'systeminfo.h',
275 'task.cc',
276 'task.h',
277 'taskparent.cc',
278 'taskparent.h',
279 'taskrunner.cc',
280 'taskrunner.h',
281 'testclient.cc',
282 'testclient.h',
283 'thread.cc',
284 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000285 'timing.cc',
286 'timing.h',
287 'transformadapter.cc',
288 'transformadapter.h',
289 'unixfilesystem.cc',
290 'unixfilesystem.h',
291 'urlencode.cc',
292 'urlencode.h',
293 'versionparsing.cc',
294 'versionparsing.h',
295 'virtualsocketserver.cc',
296 'virtualsocketserver.h',
297 'win32.cc',
298 'win32.h',
299 'win32filesystem.cc',
300 'win32filesystem.h',
301 'win32regkey.cc',
302 'win32regkey.h',
303 'win32securityerrors.cc',
304 'win32socketinit.cc',
305 'win32socketinit.h',
306 'win32socketserver.cc',
307 'win32socketserver.h',
308 'win32window.cc',
309 'win32window.h',
310 'win32windowpicker.cc',
311 'win32windowpicker.h',
312 'window.h',
313 'windowpicker.h',
314 'windowpickerfactory.h',
315 'winfirewall.cc',
316 'winfirewall.h',
317 'winping.cc',
318 'winping.h',
319 'worker.cc',
320 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000321 'x11windowpicker.cc',
322 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000323 '../overrides/webrtc/base/basictypes.h',
324 '../overrides/webrtc/base/constructormagic.h',
325 '../overrides/webrtc/base/logging.cc',
326 '../overrides/webrtc/base/logging.h',
327 '../overrides/webrtc/base/win32socketinit.cc',
328 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000329 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000330 # these flags.
331 'cflags!': [
332 '-Wextra',
333 '-Wall',
334 ],
335 'cflags_cc!': [
336 '-Wnon-virtual-dtor',
337 ],
338 'direct_dependent_settings': {
339 'cflags_cc!': [
340 '-Wnon-virtual-dtor',
341 ],
342 'defines': [
343 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000344 ],
345 },
346 'include_dirs': [
347 '../../third_party/jsoncpp/overrides/include',
348 '../../third_party/jsoncpp/source/include',
349 ],
350 'conditions': [
351 ['build_with_chromium==1', {
352 'include_dirs': [
353 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000354 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000355 ],
356 'sources!': [
357 'asyncinvoker.cc',
358 'asyncinvoker.h',
359 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000360 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000361 'asyncresolverinterface.h',
362 'atomicops.h',
363 'bandwidthsmoother.cc',
364 'bandwidthsmoother.h',
365 'basictypes.h',
366 'bind.h',
367 'bind.h.pump',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000368 'buffer.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000369 '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}