blob: cc1ebf43da064ca44e982eed7391ec4a72610ae9 [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',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020040 'bufferqueue.cc',
41 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070042 'bytebuffer.cc',
43 'bytebuffer.h',
44 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000045 'checks.cc',
46 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070047 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020048 'criticalsection.cc',
49 'criticalsection.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000050 'event.cc',
51 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000052 'event_tracer.cc',
53 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000054 'exp_filter.cc',
55 'exp_filter.h',
Tommi23edcff2015-05-25 10:45:43 +020056 'logging.cc',
57 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000058 'md5.cc',
59 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000060 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000061 'md5digest.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000062 'platform_file.cc',
63 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +020064 'platform_thread.cc',
65 'platform_thread.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000066 'safe_conversions.h',
67 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000068 'stringencode.cc',
69 'stringencode.h',
70 'stringutils.cc',
71 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000072 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000073 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000074 'thread_checker.h',
75 'thread_checker_impl.cc',
76 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000077 'timeutils.cc',
78 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000079 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070080 ],
81 'conditions': [
82 ['build_with_chromium==1', {
83 'include_dirs': [
84 '../overrides',
85 ],
86 'sources!': [
87 'basictypes.h',
88 'constructormagic.h',
Tommi23edcff2015-05-25 10:45:43 +020089 'logging.cc',
90 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -070091 ],
92 }, {
93 'sources!': [
94 '../overrides/webrtc/base/basictypes.h',
95 '../overrides/webrtc/base/constructormagic.h',
96 ],
97 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000098 ],
99 },
100 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000101 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000102 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000103 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000104 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000105 'rtc_base_approved',
106 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000107 'defines': [
108 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000109 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000110 ],
111 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000112 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000113 'asyncfile.cc',
114 'asyncfile.h',
115 'asynchttprequest.cc',
116 'asynchttprequest.h',
117 'asyncinvoker.cc',
118 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000119 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000120 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000121 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000122 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000123 'asyncresolverinterface.h',
124 'asyncsocket.cc',
125 'asyncsocket.h',
126 'asynctcpsocket.cc',
127 'asynctcpsocket.h',
128 'asyncudpsocket.cc',
129 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000130 'autodetectproxy.cc',
131 'autodetectproxy.h',
132 'bandwidthsmoother.cc',
133 'bandwidthsmoother.h',
134 'base64.cc',
135 'base64.h',
136 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000137 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000138 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000139 'common.cc',
140 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000141 'cpumonitor.cc',
142 'cpumonitor.h',
143 'crc32.cc',
144 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000145 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000146 'cryptstring.h',
147 'dbus.cc',
148 'dbus.h',
149 'diskcache.cc',
150 'diskcache.h',
151 'diskcache_win32.cc',
152 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000153 'fileutils.cc',
154 'fileutils.h',
155 'fileutils_mock.h',
156 'firewallsocketserver.cc',
157 'firewallsocketserver.h',
158 'flags.cc',
159 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000160 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000161 'gunit_prod.h',
162 'helpers.cc',
163 'helpers.h',
164 'httpbase.cc',
165 'httpbase.h',
166 'httpclient.cc',
167 'httpclient.h',
168 'httpcommon-inl.h',
169 'httpcommon.cc',
170 'httpcommon.h',
171 'httprequest.cc',
172 'httprequest.h',
173 'httpserver.cc',
174 'httpserver.h',
175 'ifaddrs-android.cc',
176 'ifaddrs-android.h',
177 'iosfilesystem.mm',
178 'ipaddress.cc',
179 'ipaddress.h',
180 'json.cc',
181 'json.h',
182 'latebindingsymboltable.cc',
183 'latebindingsymboltable.h',
184 'libdbusglibsymboltable.cc',
185 'libdbusglibsymboltable.h',
186 'linux.cc',
187 'linux.h',
188 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000189 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000190 'linked_ptr.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000191 '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',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000385 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 'constructormagic.h',
387 'dbus.cc',
388 'dbus.h',
389 'diskcache_win32.cc',
390 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000391 'fileutils_mock.h',
392 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000393 'httpserver.cc',
394 'httpserver.h',
395 'json.cc',
396 'json.h',
397 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000398 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000399 'libdbusglibsymboltable.cc',
400 'libdbusglibsymboltable.h',
401 'linuxfdwalk.c',
402 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000403 'x11windowpicker.cc',
404 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000405 'logging.cc',
406 'logging.h',
407 'macasyncsocket.cc',
408 'macasyncsocket.h',
409 'maccocoasocketserver.h',
410 'maccocoasocketserver.mm',
411 'macsocketserver.cc',
412 'macsocketserver.h',
413 'macwindowpicker.cc',
414 'macwindowpicker.h',
415 'mathutils.h',
416 'multipart.cc',
417 'multipart.h',
418 'natserver.cc',
419 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000420 'natsocketfactory.cc',
421 'natsocketfactory.h',
422 'nattypes.cc',
423 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000424 'optionsfile.cc',
425 'optionsfile.h',
426 'posix.cc',
427 'posix.h',
428 'profiler.cc',
429 'profiler.h',
430 'proxyserver.cc',
431 'proxyserver.h',
432 'refcount.h',
433 'referencecountedsingletonfactory.h',
434 'rollingaccumulator.h',
435 'safe_conversions.h',
436 'safe_conversions_impl.h',
437 'scopedptrcollection.h',
438 'scoped_ref_ptr.h',
439 'sec_buffer.h',
440 'sharedexclusivelock.cc',
441 'sharedexclusivelock.h',
442 'sslconfig.h',
443 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000444 'testbase64.h',
445 'testclient.cc',
446 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000447 'transformadapter.cc',
448 'transformadapter.h',
449 'versionparsing.cc',
450 'versionparsing.h',
451 'virtualsocketserver.cc',
452 'virtualsocketserver.h',
453 'win32regkey.cc',
454 'win32regkey.h',
455 'win32socketinit.cc',
456 'win32socketinit.h',
457 'win32socketserver.cc',
458 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000459 'window.h',
460 'windowpickerfactory.h',
461 'windowpicker.h',
462 ],
463 'defines': [
464 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000465 ],
466 'direct_dependent_settings': {
467 'defines': [
468 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000469 ],
470 },
471 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000472 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000473 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000474 'dependencies': [
475 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
476 ],
477 }, {
478 'include_dirs': [
479 '<(json_root)',
480 ],
481 'defines': [
482 # When defined changes the include path for json.h to where it
483 # is expected to be when building json outside of the standalone
484 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000485 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000486 ],
487 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000488 ],
489 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000490 '../overrides/webrtc/base/win32socketinit.cc',
491 '../overrides/webrtc/base/logging.cc',
492 '../overrides/webrtc/base/logging.h',
493 ],
494 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000495 ['use_openssl==1', {
496 'defines': [
497 'SSL_USE_OPENSSL',
498 'HAVE_OPENSSL_SSL_H',
499 ],
500 'direct_dependent_settings': {
501 'defines': [
502 'SSL_USE_OPENSSL',
503 'HAVE_OPENSSL_SSL_H',
504 ],
505 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000506 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000507 'openssl.h',
508 'openssladapter.cc',
509 'openssladapter.h',
510 'openssldigest.cc',
511 'openssldigest.h',
512 'opensslidentity.cc',
513 'opensslidentity.h',
514 'opensslstreamadapter.cc',
515 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000516 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000517 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000518 ['build_ssl==1', {
519 'dependencies': [
520 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
521 ],
522 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000523 'include_dirs': [
524 '<(ssl_root)',
525 ],
526 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000527 ],
528 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000529 'sources': [
530 'nssidentity.cc',
531 'nssidentity.h',
532 'nssstreamadapter.cc',
533 'nssstreamadapter.h',
534 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000535 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000536 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000537 'defines': [
538 'SSL_USE_NSS',
539 'HAVE_NSS_SSL_H',
540 'SSL_USE_NSS_RNG',
541 ],
542 'direct_dependent_settings': {
543 'defines': [
544 'SSL_USE_NSS',
545 'HAVE_NSS_SSL_H',
546 'SSL_USE_NSS_RNG',
547 ],
548 },
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000549 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000550 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000551 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000552 # On some platforms, the rest of NSS is bundled. On others,
553 # it's pulled from the system.
Henrik Kjellanderca047f72015-04-08 08:54:02 +0200554 ['OS == "mac" or OS == "ios"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000555 'dependencies': [
556 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000557 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
558 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000559 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000560 }],
561 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
562 'dependencies': [
563 '<(DEPTH)/build/linux/system.gyp:ssl',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000564 ],
565 }],
566 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000567 }, {
568 'include_dirs': [
569 '<(ssl_root)',
570 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000571 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000572 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000573 }],
574 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000575 'link_settings': {
576 'libraries': [
577 '-llog',
578 '-lGLESv2',
579 ],
580 },
581 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000582 'sources!': [
583 'ifaddrs-android.cc',
584 'ifaddrs-android.h',
585 ],
586 }],
587 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200588 'sources/': [
589 ['include', 'macconversion.*'],
590 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000591 'all_dependent_settings': {
592 'xcode_settings': {
593 'OTHER_LDFLAGS': [
594 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000595 '-framework Security',
596 '-framework SystemConfiguration',
597 '-framework UIKit',
598 ],
599 },
600 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000601 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000602 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000603 'link_settings': {
604 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000605 '-ldl',
606 '-lrt',
607 '-lXext',
608 '-lX11',
609 '-lXcomposite',
610 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000611 ],
612 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000613 }, {
614 'sources!': [
615 'x11windowpicker.cc',
616 'x11windowpicker.h',
617 ],
618 }],
619 ['OS=="linux"', {
620 'link_settings': {
621 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000622 '-ldl',
623 '-lrt',
624 ],
625 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000626 }, {
627 'sources!': [
628 'dbus.cc',
629 'dbus.h',
630 'libdbusglibsymboltable.cc',
631 'libdbusglibsymboltable.h',
632 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000633 ],
634 }],
635 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000636 'all_dependent_settings': {
637 'link_settings': {
638 'xcode_settings': {
639 'OTHER_LDFLAGS': [
640 '-framework Cocoa',
641 '-framework Foundation',
642 '-framework IOKit',
643 '-framework Security',
644 '-framework SystemConfiguration',
645 ],
646 },
647 },
648 },
649 'conditions': [
650 ['target_arch=="ia32"', {
651 'all_dependent_settings': {
652 'link_settings': {
653 'xcode_settings': {
654 'OTHER_LDFLAGS': [
655 '-framework Carbon',
656 ],
657 },
658 },
659 },
660 }],
661 ],
662 }, {
663 'sources!': [
664 'macasyncsocket.cc',
665 'macasyncsocket.h',
666 'maccocoasocketserver.h',
667 'maccocoasocketserver.mm',
668 'macconversion.cc',
669 'macconversion.h',
670 'macsocketserver.cc',
671 'macsocketserver.h',
672 'macutils.cc',
673 'macutils.h',
674 'macwindowpicker.cc',
675 'macwindowpicker.h',
676 ],
677 }],
678 ['OS=="win"', {
679 'link_settings': {
680 'libraries': [
681 '-lcrypt32.lib',
682 '-liphlpapi.lib',
683 '-lsecur32.lib',
684 ],
685 },
686 # Suppress warnings about WIN32_LEAN_AND_MEAN.
687 'msvs_disabled_warnings': [4005, 4703],
688 'defines': [
689 '_CRT_NONSTDC_NO_DEPRECATE',
690 ],
691 }, {
692 'sources/': [
693 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
694 ],
695 'sources!': [
696 'schanneladapter.cc',
697 'schanneladapter.h',
698 'winping.cc',
699 'winping.h',
700 'winfirewall.cc',
701 'winfirewall.h',
702 ],
703 }],
704 ['os_posix==0', {
705 'sources!': [
706 'latebindingsymboltable.cc',
707 'latebindingsymboltable.h',
708 'posix.cc',
709 'posix.h',
710 'unixfilesystem.cc',
711 'unixfilesystem.h',
712 ],
713 }, {
714 'configurations': {
715 'Debug_Base': {
716 'defines': [
717 # Chromium's build/common.gypi defines this for all posix
718 # _except_ for ios & mac. We want it there as well, e.g.
719 # because ASSERT and friends trigger off of it.
720 '_DEBUG',
721 ],
722 },
723 }
724 }],
725 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
726 'defines': [
727 'CARBON_DEPRECATED=YES',
728 ],
729 }],
730 ['OS!="ios" and OS!="mac"', {
731 'sources!': [
732 'scoped_autorelease_pool.mm',
733 ],
734 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000735 ['OS!="linux" and OS!="android"', {
736 'sources!': [
737 'linux.cc',
738 'linux.h',
739 ],
740 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000741 ],
742 },
743 ],
744}