blob: ac235294149c6c4985d0164f0c361303a898a324 [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',
Jiayang Liubef8d2d2015-03-26 14:38:46 -0700117 'criticalsection.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000118 'criticalsection.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000119 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000120 'cryptstring.h',
121 'dbus.cc',
122 'dbus.h',
123 'diskcache.cc',
124 'diskcache.h',
125 'diskcache_win32.cc',
126 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000127 'filelock.cc',
128 'filelock.h',
129 'fileutils.cc',
130 'fileutils.h',
131 'fileutils_mock.h',
132 'firewallsocketserver.cc',
133 'firewallsocketserver.h',
134 'flags.cc',
135 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000136 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000137 'gunit_prod.h',
138 'helpers.cc',
139 'helpers.h',
140 'httpbase.cc',
141 'httpbase.h',
142 'httpclient.cc',
143 'httpclient.h',
144 'httpcommon-inl.h',
145 'httpcommon.cc',
146 'httpcommon.h',
147 'httprequest.cc',
148 'httprequest.h',
149 'httpserver.cc',
150 'httpserver.h',
151 'ifaddrs-android.cc',
152 'ifaddrs-android.h',
153 'iosfilesystem.mm',
154 'ipaddress.cc',
155 'ipaddress.h',
156 'json.cc',
157 'json.h',
158 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000159 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000160 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000161 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000162 'libdbusglibsymboltable.cc',
163 'libdbusglibsymboltable.h',
164 'linux.cc',
165 'linux.h',
166 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000167 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000168 'linked_ptr.h',
169 'logging.cc',
170 'logging.h',
171 'macasyncsocket.cc',
172 'macasyncsocket.h',
173 'maccocoasocketserver.h',
174 'maccocoasocketserver.mm',
175 'maccocoathreadhelper.h',
176 'maccocoathreadhelper.mm',
177 'macconversion.cc',
178 'macconversion.h',
179 'macsocketserver.cc',
180 'macsocketserver.h',
181 'macutils.cc',
182 'macutils.h',
183 'macwindowpicker.cc',
184 'macwindowpicker.h',
185 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000186 'messagedigest.cc',
187 'messagedigest.h',
188 'messagehandler.cc',
189 'messagehandler.h',
190 'messagequeue.cc',
191 'messagequeue.h',
192 'multipart.cc',
193 'multipart.h',
194 'natserver.cc',
195 'natserver.h',
196 'natsocketfactory.cc',
197 'natsocketfactory.h',
198 'nattypes.cc',
199 'nattypes.h',
200 'nethelpers.cc',
201 'nethelpers.h',
202 'network.cc',
203 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000205 'optionsfile.cc',
206 'optionsfile.h',
207 'pathutils.cc',
208 'pathutils.h',
209 'physicalsocketserver.cc',
210 'physicalsocketserver.h',
211 'posix.cc',
212 'posix.h',
213 'profiler.cc',
214 'profiler.h',
215 'proxydetect.cc',
216 'proxydetect.h',
217 'proxyinfo.cc',
218 'proxyinfo.h',
219 'proxyserver.cc',
220 'proxyserver.h',
221 'ratelimiter.cc',
222 'ratelimiter.h',
223 'ratetracker.cc',
224 'ratetracker.h',
225 'refcount.h',
226 'referencecountedsingletonfactory.h',
227 'rollingaccumulator.h',
228 'schanneladapter.cc',
229 'schanneladapter.h',
230 'scoped_autorelease_pool.h',
231 'scoped_autorelease_pool.mm',
232 'scoped_ptr.h',
233 'scoped_ref_ptr.h',
234 'scopedptrcollection.h',
235 'sec_buffer.h',
236 'sha1.cc',
237 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000238 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000239 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000240 'sharedexclusivelock.cc',
241 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000242 'signalthread.cc',
243 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000244 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000245 'sigslot.h',
246 'sigslotrepeater.h',
247 'socket.h',
248 'socketadapters.cc',
249 'socketadapters.h',
250 'socketaddress.cc',
251 'socketaddress.h',
252 'socketaddresspair.cc',
253 'socketaddresspair.h',
254 'socketfactory.h',
255 'socketpool.cc',
256 'socketpool.h',
257 'socketserver.h',
258 'socketstream.cc',
259 'socketstream.h',
260 'ssladapter.cc',
261 'ssladapter.h',
262 'sslconfig.h',
263 'sslfingerprint.cc',
264 'sslfingerprint.h',
265 'sslidentity.cc',
266 'sslidentity.h',
267 'sslroots.h',
268 'sslsocketfactory.cc',
269 'sslsocketfactory.h',
270 'sslstreamadapter.cc',
271 'sslstreamadapter.h',
272 'sslstreamadapterhelper.cc',
273 'sslstreamadapterhelper.h',
274 'stream.cc',
275 'stream.h',
276 'stringdigest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000277 'systeminfo.cc',
278 'systeminfo.h',
279 'task.cc',
280 'task.h',
281 'taskparent.cc',
282 'taskparent.h',
283 'taskrunner.cc',
284 'taskrunner.h',
285 'testclient.cc',
286 'testclient.h',
287 'thread.cc',
288 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000289 'timing.cc',
290 'timing.h',
291 'transformadapter.cc',
292 'transformadapter.h',
293 'unixfilesystem.cc',
294 'unixfilesystem.h',
295 'urlencode.cc',
296 'urlencode.h',
297 'versionparsing.cc',
298 'versionparsing.h',
299 'virtualsocketserver.cc',
300 'virtualsocketserver.h',
301 'win32.cc',
302 'win32.h',
303 'win32filesystem.cc',
304 'win32filesystem.h',
305 'win32regkey.cc',
306 'win32regkey.h',
307 'win32securityerrors.cc',
308 'win32socketinit.cc',
309 'win32socketinit.h',
310 'win32socketserver.cc',
311 'win32socketserver.h',
312 'win32window.cc',
313 'win32window.h',
314 'win32windowpicker.cc',
315 'win32windowpicker.h',
316 'window.h',
317 'windowpicker.h',
318 'windowpickerfactory.h',
319 'winfirewall.cc',
320 'winfirewall.h',
321 'winping.cc',
322 'winping.h',
323 'worker.cc',
324 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000325 'x11windowpicker.cc',
326 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000327 '../overrides/webrtc/base/basictypes.h',
328 '../overrides/webrtc/base/constructormagic.h',
329 '../overrides/webrtc/base/logging.cc',
330 '../overrides/webrtc/base/logging.h',
331 '../overrides/webrtc/base/win32socketinit.cc',
332 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000333 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000334 # these flags.
335 'cflags!': [
336 '-Wextra',
337 '-Wall',
338 ],
339 'cflags_cc!': [
340 '-Wnon-virtual-dtor',
341 ],
342 'direct_dependent_settings': {
343 'cflags_cc!': [
344 '-Wnon-virtual-dtor',
345 ],
346 'defines': [
347 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000348 ],
349 },
350 'include_dirs': [
351 '../../third_party/jsoncpp/overrides/include',
352 '../../third_party/jsoncpp/source/include',
353 ],
354 'conditions': [
355 ['build_with_chromium==1', {
356 'include_dirs': [
357 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000358 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000359 ],
360 'sources!': [
361 'asyncinvoker.cc',
362 'asyncinvoker.h',
363 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000364 'atomicops.h',
365 'bandwidthsmoother.cc',
366 'bandwidthsmoother.h',
367 'basictypes.h',
368 'bind.h',
369 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000370 '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}