blob: 76d85a760e4b2e481aaeb5a309ac3306c1d927c0 [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': [
Tommi494f2092015-04-27 17:39:23 +020032 '../overrides/webrtc/base/basictypes.h',
33 '../overrides/webrtc/base/constructormagic.h',
Peter Boströmff019b02015-04-30 14:16:07 +020034 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070035 'basictypes.h',
36 'bitbuffer.cc',
37 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020038 'buffer.cc',
39 'buffer.h',
Noah Richards915590e2015-04-22 15:43:08 -070040 'bytebuffer.cc',
41 'bytebuffer.h',
42 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000043 'checks.cc',
44 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070045 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020046 'criticalsection.cc',
47 'criticalsection.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000048 'event.cc',
49 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000050 'event_tracer.cc',
51 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000052 'exp_filter.cc',
53 'exp_filter.h',
54 'md5.cc',
55 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000056 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000057 'md5digest.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000058 'platform_file.cc',
59 'platform_file.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000060 'safe_conversions.h',
61 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000062 'stringencode.cc',
63 'stringencode.h',
64 'stringutils.cc',
65 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000066 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000067 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000068 'thread_checker.h',
69 'thread_checker_impl.cc',
70 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000071 'timeutils.cc',
72 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000073 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070074 ],
75 'conditions': [
76 ['build_with_chromium==1', {
77 'include_dirs': [
78 '../overrides',
79 ],
80 'sources!': [
81 'basictypes.h',
82 'constructormagic.h',
83 ],
84 }, {
85 'sources!': [
86 '../overrides/webrtc/base/basictypes.h',
87 '../overrides/webrtc/base/constructormagic.h',
88 ],
89 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000090 ],
91 },
92 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000093 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000094 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000095 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000096 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000097 'rtc_base_approved',
98 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000099 'defines': [
100 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000101 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000102 ],
103 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000104 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000105 'asyncfile.cc',
106 'asyncfile.h',
107 'asynchttprequest.cc',
108 'asynchttprequest.h',
109 'asyncinvoker.cc',
110 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000111 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000112 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000113 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000114 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000115 'asyncresolverinterface.h',
116 'asyncsocket.cc',
117 'asyncsocket.h',
118 'asynctcpsocket.cc',
119 'asynctcpsocket.h',
120 'asyncudpsocket.cc',
121 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000122 'autodetectproxy.cc',
123 'autodetectproxy.h',
124 'bandwidthsmoother.cc',
125 'bandwidthsmoother.h',
126 'base64.cc',
127 'base64.h',
128 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000129 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000130 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000131 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000132 'callback.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000133 'common.cc',
134 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000135 'cpumonitor.cc',
136 'cpumonitor.h',
137 'crc32.cc',
138 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000139 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000140 'cryptstring.h',
141 'dbus.cc',
142 'dbus.h',
143 'diskcache.cc',
144 'diskcache.h',
145 'diskcache_win32.cc',
146 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000147 'filelock.cc',
148 'filelock.h',
149 'fileutils.cc',
150 'fileutils.h',
151 'fileutils_mock.h',
152 'firewallsocketserver.cc',
153 'firewallsocketserver.h',
154 'flags.cc',
155 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000156 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000157 'gunit_prod.h',
158 'helpers.cc',
159 'helpers.h',
160 'httpbase.cc',
161 'httpbase.h',
162 'httpclient.cc',
163 'httpclient.h',
164 'httpcommon-inl.h',
165 'httpcommon.cc',
166 'httpcommon.h',
167 'httprequest.cc',
168 'httprequest.h',
169 'httpserver.cc',
170 'httpserver.h',
171 'ifaddrs-android.cc',
172 'ifaddrs-android.h',
173 'iosfilesystem.mm',
174 'ipaddress.cc',
175 'ipaddress.h',
176 'json.cc',
177 'json.h',
178 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000179 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000180 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000181 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000182 'libdbusglibsymboltable.cc',
183 'libdbusglibsymboltable.h',
184 'linux.cc',
185 'linux.h',
186 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000187 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000188 'linked_ptr.h',
189 'logging.cc',
190 'logging.h',
191 'macasyncsocket.cc',
192 'macasyncsocket.h',
193 'maccocoasocketserver.h',
194 'maccocoasocketserver.mm',
195 'maccocoathreadhelper.h',
196 'maccocoathreadhelper.mm',
197 'macconversion.cc',
198 'macconversion.h',
199 'macsocketserver.cc',
200 'macsocketserver.h',
201 'macutils.cc',
202 'macutils.h',
203 'macwindowpicker.cc',
204 'macwindowpicker.h',
205 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000206 'messagedigest.cc',
207 'messagedigest.h',
208 'messagehandler.cc',
209 'messagehandler.h',
210 'messagequeue.cc',
211 'messagequeue.h',
212 'multipart.cc',
213 'multipart.h',
214 'natserver.cc',
215 'natserver.h',
216 'natsocketfactory.cc',
217 'natsocketfactory.h',
218 'nattypes.cc',
219 'nattypes.h',
220 'nethelpers.cc',
221 'nethelpers.h',
222 'network.cc',
223 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000224 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000225 'optionsfile.cc',
226 'optionsfile.h',
227 'pathutils.cc',
228 'pathutils.h',
229 'physicalsocketserver.cc',
230 'physicalsocketserver.h',
231 'posix.cc',
232 'posix.h',
233 'profiler.cc',
234 'profiler.h',
235 'proxydetect.cc',
236 'proxydetect.h',
237 'proxyinfo.cc',
238 'proxyinfo.h',
239 'proxyserver.cc',
240 'proxyserver.h',
241 'ratelimiter.cc',
242 'ratelimiter.h',
243 'ratetracker.cc',
244 'ratetracker.h',
245 'refcount.h',
246 'referencecountedsingletonfactory.h',
247 'rollingaccumulator.h',
248 'schanneladapter.cc',
249 'schanneladapter.h',
250 'scoped_autorelease_pool.h',
251 'scoped_autorelease_pool.mm',
252 'scoped_ptr.h',
253 'scoped_ref_ptr.h',
254 'scopedptrcollection.h',
255 'sec_buffer.h',
256 'sha1.cc',
257 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000258 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000259 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000260 'sharedexclusivelock.cc',
261 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000262 'signalthread.cc',
263 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000264 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000265 'sigslot.h',
266 'sigslotrepeater.h',
267 'socket.h',
268 'socketadapters.cc',
269 'socketadapters.h',
270 'socketaddress.cc',
271 'socketaddress.h',
272 'socketaddresspair.cc',
273 'socketaddresspair.h',
274 'socketfactory.h',
275 'socketpool.cc',
276 'socketpool.h',
277 'socketserver.h',
278 'socketstream.cc',
279 'socketstream.h',
280 'ssladapter.cc',
281 'ssladapter.h',
282 'sslconfig.h',
283 'sslfingerprint.cc',
284 'sslfingerprint.h',
285 'sslidentity.cc',
286 'sslidentity.h',
287 'sslroots.h',
288 'sslsocketfactory.cc',
289 'sslsocketfactory.h',
290 'sslstreamadapter.cc',
291 'sslstreamadapter.h',
292 'sslstreamadapterhelper.cc',
293 'sslstreamadapterhelper.h',
294 'stream.cc',
295 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000296 'systeminfo.cc',
297 'systeminfo.h',
298 'task.cc',
299 'task.h',
300 'taskparent.cc',
301 'taskparent.h',
302 'taskrunner.cc',
303 'taskrunner.h',
304 'testclient.cc',
305 'testclient.h',
306 'thread.cc',
307 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000308 'timing.cc',
309 'timing.h',
310 'transformadapter.cc',
311 'transformadapter.h',
312 'unixfilesystem.cc',
313 'unixfilesystem.h',
314 'urlencode.cc',
315 'urlencode.h',
316 'versionparsing.cc',
317 'versionparsing.h',
318 'virtualsocketserver.cc',
319 'virtualsocketserver.h',
320 'win32.cc',
321 'win32.h',
322 'win32filesystem.cc',
323 'win32filesystem.h',
324 'win32regkey.cc',
325 'win32regkey.h',
326 'win32securityerrors.cc',
327 'win32socketinit.cc',
328 'win32socketinit.h',
329 'win32socketserver.cc',
330 'win32socketserver.h',
331 'win32window.cc',
332 'win32window.h',
333 'win32windowpicker.cc',
334 'win32windowpicker.h',
335 'window.h',
336 'windowpicker.h',
337 'windowpickerfactory.h',
338 'winfirewall.cc',
339 'winfirewall.h',
340 'winping.cc',
341 'winping.h',
342 'worker.cc',
343 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000344 'x11windowpicker.cc',
345 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000346 '../overrides/webrtc/base/logging.cc',
347 '../overrides/webrtc/base/logging.h',
348 '../overrides/webrtc/base/win32socketinit.cc',
349 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000350 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000351 # these flags.
352 'cflags!': [
353 '-Wextra',
354 '-Wall',
355 ],
356 'cflags_cc!': [
357 '-Wnon-virtual-dtor',
358 ],
359 'direct_dependent_settings': {
360 'cflags_cc!': [
361 '-Wnon-virtual-dtor',
362 ],
363 'defines': [
364 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000365 ],
366 },
367 'include_dirs': [
368 '../../third_party/jsoncpp/overrides/include',
369 '../../third_party/jsoncpp/source/include',
370 ],
371 'conditions': [
372 ['build_with_chromium==1', {
373 'include_dirs': [
374 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000375 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000376 ],
377 'sources!': [
378 'asyncinvoker.cc',
379 'asyncinvoker.h',
380 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000381 'atomicops.h',
382 'bandwidthsmoother.cc',
383 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000384 'bind.h',
385 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 'callback.h',
387 'callback.h.pump',
388 'constructormagic.h',
389 'dbus.cc',
390 'dbus.h',
391 'diskcache_win32.cc',
392 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000393 'filelock.cc',
394 'filelock.h',
395 'fileutils_mock.h',
396 'genericslot.h',
397 'genericslot.h.pump',
398 'httpserver.cc',
399 'httpserver.h',
400 'json.cc',
401 'json.h',
402 'latebindingsymboltable.cc',
403 'latebindingsymboltable.cc.def',
404 'latebindingsymboltable.h',
405 'latebindingsymboltable.h.def',
406 'libdbusglibsymboltable.cc',
407 'libdbusglibsymboltable.h',
408 'linuxfdwalk.c',
409 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000410 'x11windowpicker.cc',
411 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000412 'logging.cc',
413 'logging.h',
414 'macasyncsocket.cc',
415 'macasyncsocket.h',
416 'maccocoasocketserver.h',
417 'maccocoasocketserver.mm',
418 'macsocketserver.cc',
419 'macsocketserver.h',
420 'macwindowpicker.cc',
421 'macwindowpicker.h',
422 'mathutils.h',
423 'multipart.cc',
424 'multipart.h',
425 'natserver.cc',
426 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000427 'natsocketfactory.cc',
428 'natsocketfactory.h',
429 'nattypes.cc',
430 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000431 'optionsfile.cc',
432 'optionsfile.h',
433 'posix.cc',
434 'posix.h',
435 'profiler.cc',
436 'profiler.h',
437 'proxyserver.cc',
438 'proxyserver.h',
439 'refcount.h',
440 'referencecountedsingletonfactory.h',
441 'rollingaccumulator.h',
442 'safe_conversions.h',
443 'safe_conversions_impl.h',
444 'scopedptrcollection.h',
445 'scoped_ref_ptr.h',
446 'sec_buffer.h',
447 'sharedexclusivelock.cc',
448 'sharedexclusivelock.h',
449 'sslconfig.h',
450 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000451 'testbase64.h',
452 'testclient.cc',
453 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000454 'transformadapter.cc',
455 'transformadapter.h',
456 'versionparsing.cc',
457 'versionparsing.h',
458 'virtualsocketserver.cc',
459 'virtualsocketserver.h',
460 'win32regkey.cc',
461 'win32regkey.h',
462 'win32socketinit.cc',
463 'win32socketinit.h',
464 'win32socketserver.cc',
465 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000466 'window.h',
467 'windowpickerfactory.h',
468 'windowpicker.h',
469 ],
470 'defines': [
471 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000472 ],
473 'direct_dependent_settings': {
474 'defines': [
475 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000476 ],
477 },
478 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000479 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000480 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000481 'dependencies': [
482 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
483 ],
484 }, {
485 'include_dirs': [
486 '<(json_root)',
487 ],
488 'defines': [
489 # When defined changes the include path for json.h to where it
490 # is expected to be when building json outside of the standalone
491 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000492 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000493 ],
494 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000495 ],
496 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000497 '../overrides/webrtc/base/win32socketinit.cc',
498 '../overrides/webrtc/base/logging.cc',
499 '../overrides/webrtc/base/logging.h',
500 ],
501 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000502 ['use_openssl==1', {
503 'defines': [
504 'SSL_USE_OPENSSL',
505 'HAVE_OPENSSL_SSL_H',
506 ],
507 'direct_dependent_settings': {
508 'defines': [
509 'SSL_USE_OPENSSL',
510 'HAVE_OPENSSL_SSL_H',
511 ],
512 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000513 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000514 'openssl.h',
515 'openssladapter.cc',
516 'openssladapter.h',
517 'openssldigest.cc',
518 'openssldigest.h',
519 'opensslidentity.cc',
520 'opensslidentity.h',
521 'opensslstreamadapter.cc',
522 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000523 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000524 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000525 ['build_ssl==1', {
526 'dependencies': [
527 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
528 ],
529 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000530 'include_dirs': [
531 '<(ssl_root)',
532 ],
533 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000534 ],
535 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000536 'sources': [
537 'nssidentity.cc',
538 'nssidentity.h',
539 'nssstreamadapter.cc',
540 'nssstreamadapter.h',
541 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000542 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000543 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000544 'defines': [
545 'SSL_USE_NSS',
546 'HAVE_NSS_SSL_H',
547 'SSL_USE_NSS_RNG',
548 ],
549 'direct_dependent_settings': {
550 'defines': [
551 'SSL_USE_NSS',
552 'HAVE_NSS_SSL_H',
553 'SSL_USE_NSS_RNG',
554 ],
555 },
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000556 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000557 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000558 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000559 # On some platforms, the rest of NSS is bundled. On others,
560 # it's pulled from the system.
Henrik Kjellanderca047f72015-04-08 08:54:02 +0200561 ['OS == "mac" or OS == "ios"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000562 'dependencies': [
563 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000564 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
565 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000566 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000567 }],
568 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
569 'dependencies': [
570 '<(DEPTH)/build/linux/system.gyp:ssl',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000571 ],
572 }],
573 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000574 }, {
575 'include_dirs': [
576 '<(ssl_root)',
577 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000578 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000579 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000580 }],
581 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000582 'link_settings': {
583 'libraries': [
584 '-llog',
585 '-lGLESv2',
586 ],
587 },
588 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000589 'sources!': [
590 'ifaddrs-android.cc',
591 'ifaddrs-android.h',
592 ],
593 }],
594 ['OS=="ios"', {
595 'all_dependent_settings': {
596 'xcode_settings': {
597 'OTHER_LDFLAGS': [
598 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000599 '-framework Security',
600 '-framework SystemConfiguration',
601 '-framework UIKit',
602 ],
603 },
604 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000605 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000606 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000607 'link_settings': {
608 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000609 '-ldl',
610 '-lrt',
611 '-lXext',
612 '-lX11',
613 '-lXcomposite',
614 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000615 ],
616 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000617 }, {
618 'sources!': [
619 'x11windowpicker.cc',
620 'x11windowpicker.h',
621 ],
622 }],
623 ['OS=="linux"', {
624 'link_settings': {
625 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000626 '-ldl',
627 '-lrt',
628 ],
629 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000630 }, {
631 'sources!': [
632 'dbus.cc',
633 'dbus.h',
634 'libdbusglibsymboltable.cc',
635 'libdbusglibsymboltable.h',
636 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000637 ],
638 }],
639 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000640 'all_dependent_settings': {
641 'link_settings': {
642 'xcode_settings': {
643 'OTHER_LDFLAGS': [
644 '-framework Cocoa',
645 '-framework Foundation',
646 '-framework IOKit',
647 '-framework Security',
648 '-framework SystemConfiguration',
649 ],
650 },
651 },
652 },
653 'conditions': [
654 ['target_arch=="ia32"', {
655 'all_dependent_settings': {
656 'link_settings': {
657 'xcode_settings': {
658 'OTHER_LDFLAGS': [
659 '-framework Carbon',
660 ],
661 },
662 },
663 },
664 }],
665 ],
666 }, {
667 'sources!': [
668 'macasyncsocket.cc',
669 'macasyncsocket.h',
670 'maccocoasocketserver.h',
671 'maccocoasocketserver.mm',
672 'macconversion.cc',
673 'macconversion.h',
674 'macsocketserver.cc',
675 'macsocketserver.h',
676 'macutils.cc',
677 'macutils.h',
678 'macwindowpicker.cc',
679 'macwindowpicker.h',
680 ],
681 }],
682 ['OS=="win"', {
683 'link_settings': {
684 'libraries': [
685 '-lcrypt32.lib',
686 '-liphlpapi.lib',
687 '-lsecur32.lib',
688 ],
689 },
690 # Suppress warnings about WIN32_LEAN_AND_MEAN.
691 'msvs_disabled_warnings': [4005, 4703],
692 'defines': [
693 '_CRT_NONSTDC_NO_DEPRECATE',
694 ],
695 }, {
696 'sources/': [
697 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
698 ],
699 'sources!': [
700 'schanneladapter.cc',
701 'schanneladapter.h',
702 'winping.cc',
703 'winping.h',
704 'winfirewall.cc',
705 'winfirewall.h',
706 ],
707 }],
708 ['os_posix==0', {
709 'sources!': [
710 'latebindingsymboltable.cc',
711 'latebindingsymboltable.h',
712 'posix.cc',
713 'posix.h',
714 'unixfilesystem.cc',
715 'unixfilesystem.h',
716 ],
717 }, {
718 'configurations': {
719 'Debug_Base': {
720 'defines': [
721 # Chromium's build/common.gypi defines this for all posix
722 # _except_ for ios & mac. We want it there as well, e.g.
723 # because ASSERT and friends trigger off of it.
724 '_DEBUG',
725 ],
726 },
727 }
728 }],
729 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
730 'defines': [
731 'CARBON_DEPRECATED=YES',
732 ],
733 }],
734 ['OS!="ios" and OS!="mac"', {
735 'sources!': [
736 'scoped_autorelease_pool.mm',
737 ],
738 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000739 ['OS!="linux" and OS!="android"', {
740 'sources!': [
741 'linux.cc',
742 'linux.h',
743 ],
744 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000745 ],
746 },
747 ],
748}