blob: 9992d6dfb7788d4681cb1008f0e8e9b79a3556cf [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',
Tommibebc6902015-05-18 09:51:42 +020060 'platform_thread.cc',
61 'platform_thread.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000062 'safe_conversions.h',
63 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000064 'stringencode.cc',
65 'stringencode.h',
66 'stringutils.cc',
67 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000068 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000069 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000070 'thread_checker.h',
71 'thread_checker_impl.cc',
72 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000073 'timeutils.cc',
74 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000075 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070076 ],
77 'conditions': [
78 ['build_with_chromium==1', {
79 'include_dirs': [
80 '../overrides',
81 ],
82 'sources!': [
83 'basictypes.h',
84 'constructormagic.h',
85 ],
86 }, {
87 'sources!': [
88 '../overrides/webrtc/base/basictypes.h',
89 '../overrides/webrtc/base/constructormagic.h',
90 ],
91 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000092 ],
93 },
94 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000095 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000096 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000097 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000098 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000099 'rtc_base_approved',
100 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000101 'defines': [
102 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000103 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000104 ],
105 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000106 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000107 'asyncfile.cc',
108 'asyncfile.h',
109 'asynchttprequest.cc',
110 'asynchttprequest.h',
111 'asyncinvoker.cc',
112 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000113 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000114 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000115 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000116 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000117 'asyncresolverinterface.h',
118 'asyncsocket.cc',
119 'asyncsocket.h',
120 'asynctcpsocket.cc',
121 'asynctcpsocket.h',
122 'asyncudpsocket.cc',
123 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000124 'autodetectproxy.cc',
125 'autodetectproxy.h',
126 'bandwidthsmoother.cc',
127 'bandwidthsmoother.h',
128 'base64.cc',
129 'base64.h',
130 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000131 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000132 'callback.h',
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 'fileutils.cc',
148 'fileutils.h',
149 'fileutils_mock.h',
150 'firewallsocketserver.cc',
151 'firewallsocketserver.h',
152 'flags.cc',
153 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000154 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000155 'gunit_prod.h',
156 'helpers.cc',
157 'helpers.h',
158 'httpbase.cc',
159 'httpbase.h',
160 'httpclient.cc',
161 'httpclient.h',
162 'httpcommon-inl.h',
163 'httpcommon.cc',
164 'httpcommon.h',
165 'httprequest.cc',
166 'httprequest.h',
167 'httpserver.cc',
168 'httpserver.h',
169 'ifaddrs-android.cc',
170 'ifaddrs-android.h',
171 'iosfilesystem.mm',
172 'ipaddress.cc',
173 'ipaddress.h',
174 'json.cc',
175 'json.h',
176 'latebindingsymboltable.cc',
177 'latebindingsymboltable.h',
178 'libdbusglibsymboltable.cc',
179 'libdbusglibsymboltable.h',
180 'linux.cc',
181 'linux.h',
182 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000183 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000184 'linked_ptr.h',
185 'logging.cc',
186 'logging.h',
187 'macasyncsocket.cc',
188 'macasyncsocket.h',
189 'maccocoasocketserver.h',
190 'maccocoasocketserver.mm',
191 'maccocoathreadhelper.h',
192 'maccocoathreadhelper.mm',
193 'macconversion.cc',
194 'macconversion.h',
195 'macsocketserver.cc',
196 'macsocketserver.h',
197 'macutils.cc',
198 'macutils.h',
199 'macwindowpicker.cc',
200 'macwindowpicker.h',
201 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000202 'messagedigest.cc',
203 'messagedigest.h',
204 'messagehandler.cc',
205 'messagehandler.h',
206 'messagequeue.cc',
207 'messagequeue.h',
208 'multipart.cc',
209 'multipart.h',
210 'natserver.cc',
211 'natserver.h',
212 'natsocketfactory.cc',
213 'natsocketfactory.h',
214 'nattypes.cc',
215 'nattypes.h',
216 'nethelpers.cc',
217 'nethelpers.h',
218 'network.cc',
219 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000220 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000221 'optionsfile.cc',
222 'optionsfile.h',
223 'pathutils.cc',
224 'pathutils.h',
225 'physicalsocketserver.cc',
226 'physicalsocketserver.h',
227 'posix.cc',
228 'posix.h',
229 'profiler.cc',
230 'profiler.h',
231 'proxydetect.cc',
232 'proxydetect.h',
233 'proxyinfo.cc',
234 'proxyinfo.h',
235 'proxyserver.cc',
236 'proxyserver.h',
237 'ratelimiter.cc',
238 'ratelimiter.h',
239 'ratetracker.cc',
240 'ratetracker.h',
241 'refcount.h',
242 'referencecountedsingletonfactory.h',
243 'rollingaccumulator.h',
244 'schanneladapter.cc',
245 'schanneladapter.h',
246 'scoped_autorelease_pool.h',
247 'scoped_autorelease_pool.mm',
248 'scoped_ptr.h',
249 'scoped_ref_ptr.h',
250 'scopedptrcollection.h',
251 'sec_buffer.h',
252 'sha1.cc',
253 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000254 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000255 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000256 'sharedexclusivelock.cc',
257 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000258 'signalthread.cc',
259 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000260 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000261 'sigslot.h',
262 'sigslotrepeater.h',
263 'socket.h',
264 'socketadapters.cc',
265 'socketadapters.h',
266 'socketaddress.cc',
267 'socketaddress.h',
268 'socketaddresspair.cc',
269 'socketaddresspair.h',
270 'socketfactory.h',
271 'socketpool.cc',
272 'socketpool.h',
273 'socketserver.h',
274 'socketstream.cc',
275 'socketstream.h',
276 'ssladapter.cc',
277 'ssladapter.h',
278 'sslconfig.h',
279 'sslfingerprint.cc',
280 'sslfingerprint.h',
281 'sslidentity.cc',
282 'sslidentity.h',
283 'sslroots.h',
284 'sslsocketfactory.cc',
285 'sslsocketfactory.h',
286 'sslstreamadapter.cc',
287 'sslstreamadapter.h',
288 'sslstreamadapterhelper.cc',
289 'sslstreamadapterhelper.h',
290 'stream.cc',
291 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000292 'systeminfo.cc',
293 'systeminfo.h',
294 'task.cc',
295 'task.h',
296 'taskparent.cc',
297 'taskparent.h',
298 'taskrunner.cc',
299 'taskrunner.h',
300 'testclient.cc',
301 'testclient.h',
302 'thread.cc',
303 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000304 'timing.cc',
305 'timing.h',
306 'transformadapter.cc',
307 'transformadapter.h',
308 'unixfilesystem.cc',
309 'unixfilesystem.h',
310 'urlencode.cc',
311 'urlencode.h',
312 'versionparsing.cc',
313 'versionparsing.h',
314 'virtualsocketserver.cc',
315 'virtualsocketserver.h',
316 'win32.cc',
317 'win32.h',
318 'win32filesystem.cc',
319 'win32filesystem.h',
320 'win32regkey.cc',
321 'win32regkey.h',
322 'win32securityerrors.cc',
323 'win32socketinit.cc',
324 'win32socketinit.h',
325 'win32socketserver.cc',
326 'win32socketserver.h',
327 'win32window.cc',
328 'win32window.h',
329 'win32windowpicker.cc',
330 'win32windowpicker.h',
331 'window.h',
332 'windowpicker.h',
333 'windowpickerfactory.h',
334 'winfirewall.cc',
335 'winfirewall.h',
336 'winping.cc',
337 'winping.h',
338 'worker.cc',
339 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000340 'x11windowpicker.cc',
341 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000342 '../overrides/webrtc/base/logging.cc',
343 '../overrides/webrtc/base/logging.h',
344 '../overrides/webrtc/base/win32socketinit.cc',
345 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000346 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000347 # these flags.
348 'cflags!': [
349 '-Wextra',
350 '-Wall',
351 ],
352 'cflags_cc!': [
353 '-Wnon-virtual-dtor',
354 ],
355 'direct_dependent_settings': {
356 'cflags_cc!': [
357 '-Wnon-virtual-dtor',
358 ],
359 'defines': [
360 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000361 ],
362 },
363 'include_dirs': [
364 '../../third_party/jsoncpp/overrides/include',
365 '../../third_party/jsoncpp/source/include',
366 ],
367 'conditions': [
368 ['build_with_chromium==1', {
369 'include_dirs': [
370 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000371 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000372 ],
373 'sources!': [
374 'asyncinvoker.cc',
375 'asyncinvoker.h',
376 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000377 'atomicops.h',
378 'bandwidthsmoother.cc',
379 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000380 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000381 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000382 'constructormagic.h',
383 'dbus.cc',
384 'dbus.h',
385 'diskcache_win32.cc',
386 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000387 'fileutils_mock.h',
388 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000389 'httpserver.cc',
390 'httpserver.h',
391 'json.cc',
392 'json.h',
393 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000394 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000395 'libdbusglibsymboltable.cc',
396 'libdbusglibsymboltable.h',
397 'linuxfdwalk.c',
398 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000399 'x11windowpicker.cc',
400 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000401 'logging.cc',
402 'logging.h',
403 'macasyncsocket.cc',
404 'macasyncsocket.h',
405 'maccocoasocketserver.h',
406 'maccocoasocketserver.mm',
407 'macsocketserver.cc',
408 'macsocketserver.h',
409 'macwindowpicker.cc',
410 'macwindowpicker.h',
411 'mathutils.h',
412 'multipart.cc',
413 'multipart.h',
414 'natserver.cc',
415 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000416 'natsocketfactory.cc',
417 'natsocketfactory.h',
418 'nattypes.cc',
419 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000420 'optionsfile.cc',
421 'optionsfile.h',
422 'posix.cc',
423 'posix.h',
424 'profiler.cc',
425 'profiler.h',
426 'proxyserver.cc',
427 'proxyserver.h',
428 'refcount.h',
429 'referencecountedsingletonfactory.h',
430 'rollingaccumulator.h',
431 'safe_conversions.h',
432 'safe_conversions_impl.h',
433 'scopedptrcollection.h',
434 'scoped_ref_ptr.h',
435 'sec_buffer.h',
436 'sharedexclusivelock.cc',
437 'sharedexclusivelock.h',
438 'sslconfig.h',
439 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000440 'testbase64.h',
441 'testclient.cc',
442 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000443 'transformadapter.cc',
444 'transformadapter.h',
445 'versionparsing.cc',
446 'versionparsing.h',
447 'virtualsocketserver.cc',
448 'virtualsocketserver.h',
449 'win32regkey.cc',
450 'win32regkey.h',
451 'win32socketinit.cc',
452 'win32socketinit.h',
453 'win32socketserver.cc',
454 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000455 'window.h',
456 'windowpickerfactory.h',
457 'windowpicker.h',
458 ],
459 'defines': [
460 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000461 ],
462 'direct_dependent_settings': {
463 'defines': [
464 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000465 ],
466 },
467 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000468 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000469 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000470 'dependencies': [
471 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
472 ],
473 }, {
474 'include_dirs': [
475 '<(json_root)',
476 ],
477 'defines': [
478 # When defined changes the include path for json.h to where it
479 # is expected to be when building json outside of the standalone
480 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000481 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000482 ],
483 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000484 ],
485 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000486 '../overrides/webrtc/base/win32socketinit.cc',
487 '../overrides/webrtc/base/logging.cc',
488 '../overrides/webrtc/base/logging.h',
489 ],
490 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000491 ['use_openssl==1', {
492 'defines': [
493 'SSL_USE_OPENSSL',
494 'HAVE_OPENSSL_SSL_H',
495 ],
496 'direct_dependent_settings': {
497 'defines': [
498 'SSL_USE_OPENSSL',
499 'HAVE_OPENSSL_SSL_H',
500 ],
501 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000502 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000503 'openssl.h',
504 'openssladapter.cc',
505 'openssladapter.h',
506 'openssldigest.cc',
507 'openssldigest.h',
508 'opensslidentity.cc',
509 'opensslidentity.h',
510 'opensslstreamadapter.cc',
511 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000512 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000513 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000514 ['build_ssl==1', {
515 'dependencies': [
516 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
517 ],
518 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000519 'include_dirs': [
520 '<(ssl_root)',
521 ],
522 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000523 ],
524 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000525 'sources': [
526 'nssidentity.cc',
527 'nssidentity.h',
528 'nssstreamadapter.cc',
529 'nssstreamadapter.h',
530 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000531 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000532 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000533 'defines': [
534 'SSL_USE_NSS',
535 'HAVE_NSS_SSL_H',
536 'SSL_USE_NSS_RNG',
537 ],
538 'direct_dependent_settings': {
539 'defines': [
540 'SSL_USE_NSS',
541 'HAVE_NSS_SSL_H',
542 'SSL_USE_NSS_RNG',
543 ],
544 },
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000545 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000546 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000547 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000548 # On some platforms, the rest of NSS is bundled. On others,
549 # it's pulled from the system.
Henrik Kjellanderca047f72015-04-08 08:54:02 +0200550 ['OS == "mac" or OS == "ios"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000551 'dependencies': [
552 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000553 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
554 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000555 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000556 }],
557 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
558 'dependencies': [
559 '<(DEPTH)/build/linux/system.gyp:ssl',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000560 ],
561 }],
562 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000563 }, {
564 'include_dirs': [
565 '<(ssl_root)',
566 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000567 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000568 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000569 }],
570 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000571 'link_settings': {
572 'libraries': [
573 '-llog',
574 '-lGLESv2',
575 ],
576 },
577 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000578 'sources!': [
579 'ifaddrs-android.cc',
580 'ifaddrs-android.h',
581 ],
582 }],
583 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200584 'sources/': [
585 ['include', 'macconversion.*'],
586 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000587 'all_dependent_settings': {
588 'xcode_settings': {
589 'OTHER_LDFLAGS': [
590 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000591 '-framework Security',
592 '-framework SystemConfiguration',
593 '-framework UIKit',
594 ],
595 },
596 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000597 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000598 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000599 'link_settings': {
600 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000601 '-ldl',
602 '-lrt',
603 '-lXext',
604 '-lX11',
605 '-lXcomposite',
606 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000607 ],
608 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000609 }, {
610 'sources!': [
611 'x11windowpicker.cc',
612 'x11windowpicker.h',
613 ],
614 }],
615 ['OS=="linux"', {
616 'link_settings': {
617 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000618 '-ldl',
619 '-lrt',
620 ],
621 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000622 }, {
623 'sources!': [
624 'dbus.cc',
625 'dbus.h',
626 'libdbusglibsymboltable.cc',
627 'libdbusglibsymboltable.h',
628 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000629 ],
630 }],
631 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000632 'all_dependent_settings': {
633 'link_settings': {
634 'xcode_settings': {
635 'OTHER_LDFLAGS': [
636 '-framework Cocoa',
637 '-framework Foundation',
638 '-framework IOKit',
639 '-framework Security',
640 '-framework SystemConfiguration',
641 ],
642 },
643 },
644 },
645 'conditions': [
646 ['target_arch=="ia32"', {
647 'all_dependent_settings': {
648 'link_settings': {
649 'xcode_settings': {
650 'OTHER_LDFLAGS': [
651 '-framework Carbon',
652 ],
653 },
654 },
655 },
656 }],
657 ],
658 }, {
659 'sources!': [
660 'macasyncsocket.cc',
661 'macasyncsocket.h',
662 'maccocoasocketserver.h',
663 'maccocoasocketserver.mm',
664 'macconversion.cc',
665 'macconversion.h',
666 'macsocketserver.cc',
667 'macsocketserver.h',
668 'macutils.cc',
669 'macutils.h',
670 'macwindowpicker.cc',
671 'macwindowpicker.h',
672 ],
673 }],
674 ['OS=="win"', {
675 'link_settings': {
676 'libraries': [
677 '-lcrypt32.lib',
678 '-liphlpapi.lib',
679 '-lsecur32.lib',
680 ],
681 },
682 # Suppress warnings about WIN32_LEAN_AND_MEAN.
683 'msvs_disabled_warnings': [4005, 4703],
684 'defines': [
685 '_CRT_NONSTDC_NO_DEPRECATE',
686 ],
687 }, {
688 'sources/': [
689 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
690 ],
691 'sources!': [
692 'schanneladapter.cc',
693 'schanneladapter.h',
694 'winping.cc',
695 'winping.h',
696 'winfirewall.cc',
697 'winfirewall.h',
698 ],
699 }],
700 ['os_posix==0', {
701 'sources!': [
702 'latebindingsymboltable.cc',
703 'latebindingsymboltable.h',
704 'posix.cc',
705 'posix.h',
706 'unixfilesystem.cc',
707 'unixfilesystem.h',
708 ],
709 }, {
710 'configurations': {
711 'Debug_Base': {
712 'defines': [
713 # Chromium's build/common.gypi defines this for all posix
714 # _except_ for ios & mac. We want it there as well, e.g.
715 # because ASSERT and friends trigger off of it.
716 '_DEBUG',
717 ],
718 },
719 }
720 }],
721 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
722 'defines': [
723 'CARBON_DEPRECATED=YES',
724 ],
725 }],
726 ['OS!="ios" and OS!="mac"', {
727 'sources!': [
728 'scoped_autorelease_pool.mm',
729 ],
730 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000731 ['OS!="linux" and OS!="android"', {
732 'sources!': [
733 'linux.cc',
734 'linux.h',
735 ],
736 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000737 ],
738 },
739 ],
740}