blob: 377b41c2fd191c3cb4db422855df6102447d6a2d [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',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000130 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000131 'common.cc',
132 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000133 'cpumonitor.cc',
134 'cpumonitor.h',
135 'crc32.cc',
136 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000137 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000138 'cryptstring.h',
139 'dbus.cc',
140 'dbus.h',
141 'diskcache.cc',
142 'diskcache.h',
143 'diskcache_win32.cc',
144 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000145 'filelock.cc',
146 'filelock.h',
147 '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 'filelock.cc',
388 'filelock.h',
389 'fileutils_mock.h',
390 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000391 'httpserver.cc',
392 'httpserver.h',
393 'json.cc',
394 'json.h',
395 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000396 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000397 'libdbusglibsymboltable.cc',
398 'libdbusglibsymboltable.h',
399 'linuxfdwalk.c',
400 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000401 'x11windowpicker.cc',
402 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000403 'logging.cc',
404 'logging.h',
405 'macasyncsocket.cc',
406 'macasyncsocket.h',
407 'maccocoasocketserver.h',
408 'maccocoasocketserver.mm',
409 'macsocketserver.cc',
410 'macsocketserver.h',
411 'macwindowpicker.cc',
412 'macwindowpicker.h',
413 'mathutils.h',
414 'multipart.cc',
415 'multipart.h',
416 'natserver.cc',
417 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000418 'natsocketfactory.cc',
419 'natsocketfactory.h',
420 'nattypes.cc',
421 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000422 'optionsfile.cc',
423 'optionsfile.h',
424 'posix.cc',
425 'posix.h',
426 'profiler.cc',
427 'profiler.h',
428 'proxyserver.cc',
429 'proxyserver.h',
430 'refcount.h',
431 'referencecountedsingletonfactory.h',
432 'rollingaccumulator.h',
433 'safe_conversions.h',
434 'safe_conversions_impl.h',
435 'scopedptrcollection.h',
436 'scoped_ref_ptr.h',
437 'sec_buffer.h',
438 'sharedexclusivelock.cc',
439 'sharedexclusivelock.h',
440 'sslconfig.h',
441 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000442 'testbase64.h',
443 'testclient.cc',
444 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000445 'transformadapter.cc',
446 'transformadapter.h',
447 'versionparsing.cc',
448 'versionparsing.h',
449 'virtualsocketserver.cc',
450 'virtualsocketserver.h',
451 'win32regkey.cc',
452 'win32regkey.h',
453 'win32socketinit.cc',
454 'win32socketinit.h',
455 'win32socketserver.cc',
456 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000457 'window.h',
458 'windowpickerfactory.h',
459 'windowpicker.h',
460 ],
461 'defines': [
462 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000463 ],
464 'direct_dependent_settings': {
465 'defines': [
466 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000467 ],
468 },
469 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000470 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000471 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000472 'dependencies': [
473 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
474 ],
475 }, {
476 'include_dirs': [
477 '<(json_root)',
478 ],
479 'defines': [
480 # When defined changes the include path for json.h to where it
481 # is expected to be when building json outside of the standalone
482 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000483 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000484 ],
485 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000486 ],
487 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000488 '../overrides/webrtc/base/win32socketinit.cc',
489 '../overrides/webrtc/base/logging.cc',
490 '../overrides/webrtc/base/logging.h',
491 ],
492 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000493 ['use_openssl==1', {
494 'defines': [
495 'SSL_USE_OPENSSL',
496 'HAVE_OPENSSL_SSL_H',
497 ],
498 'direct_dependent_settings': {
499 'defines': [
500 'SSL_USE_OPENSSL',
501 'HAVE_OPENSSL_SSL_H',
502 ],
503 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000504 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000505 'openssl.h',
506 'openssladapter.cc',
507 'openssladapter.h',
508 'openssldigest.cc',
509 'openssldigest.h',
510 'opensslidentity.cc',
511 'opensslidentity.h',
512 'opensslstreamadapter.cc',
513 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000514 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000515 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000516 ['build_ssl==1', {
517 'dependencies': [
518 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
519 ],
520 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000521 'include_dirs': [
522 '<(ssl_root)',
523 ],
524 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000525 ],
526 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000527 'sources': [
528 'nssidentity.cc',
529 'nssidentity.h',
530 'nssstreamadapter.cc',
531 'nssstreamadapter.h',
532 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000533 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000534 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000535 'defines': [
536 'SSL_USE_NSS',
537 'HAVE_NSS_SSL_H',
538 'SSL_USE_NSS_RNG',
539 ],
540 'direct_dependent_settings': {
541 'defines': [
542 'SSL_USE_NSS',
543 'HAVE_NSS_SSL_H',
544 'SSL_USE_NSS_RNG',
545 ],
546 },
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000547 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000548 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000549 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000550 # On some platforms, the rest of NSS is bundled. On others,
551 # it's pulled from the system.
Henrik Kjellanderca047f72015-04-08 08:54:02 +0200552 ['OS == "mac" or OS == "ios"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000553 'dependencies': [
554 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000555 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
556 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000557 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000558 }],
559 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
560 'dependencies': [
561 '<(DEPTH)/build/linux/system.gyp:ssl',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000562 ],
563 }],
564 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000565 }, {
566 'include_dirs': [
567 '<(ssl_root)',
568 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000569 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000570 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000571 }],
572 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000573 'link_settings': {
574 'libraries': [
575 '-llog',
576 '-lGLESv2',
577 ],
578 },
579 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000580 'sources!': [
581 'ifaddrs-android.cc',
582 'ifaddrs-android.h',
583 ],
584 }],
585 ['OS=="ios"', {
586 'all_dependent_settings': {
587 'xcode_settings': {
588 'OTHER_LDFLAGS': [
589 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000590 '-framework Security',
591 '-framework SystemConfiguration',
592 '-framework UIKit',
593 ],
594 },
595 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000596 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000597 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000598 'link_settings': {
599 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000600 '-ldl',
601 '-lrt',
602 '-lXext',
603 '-lX11',
604 '-lXcomposite',
605 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000606 ],
607 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000608 }, {
609 'sources!': [
610 'x11windowpicker.cc',
611 'x11windowpicker.h',
612 ],
613 }],
614 ['OS=="linux"', {
615 'link_settings': {
616 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000617 '-ldl',
618 '-lrt',
619 ],
620 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000621 }, {
622 'sources!': [
623 'dbus.cc',
624 'dbus.h',
625 'libdbusglibsymboltable.cc',
626 'libdbusglibsymboltable.h',
627 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000628 ],
629 }],
630 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000631 'all_dependent_settings': {
632 'link_settings': {
633 'xcode_settings': {
634 'OTHER_LDFLAGS': [
635 '-framework Cocoa',
636 '-framework Foundation',
637 '-framework IOKit',
638 '-framework Security',
639 '-framework SystemConfiguration',
640 ],
641 },
642 },
643 },
644 'conditions': [
645 ['target_arch=="ia32"', {
646 'all_dependent_settings': {
647 'link_settings': {
648 'xcode_settings': {
649 'OTHER_LDFLAGS': [
650 '-framework Carbon',
651 ],
652 },
653 },
654 },
655 }],
656 ],
657 }, {
658 'sources!': [
659 'macasyncsocket.cc',
660 'macasyncsocket.h',
661 'maccocoasocketserver.h',
662 'maccocoasocketserver.mm',
663 'macconversion.cc',
664 'macconversion.h',
665 'macsocketserver.cc',
666 'macsocketserver.h',
667 'macutils.cc',
668 'macutils.h',
669 'macwindowpicker.cc',
670 'macwindowpicker.h',
671 ],
672 }],
673 ['OS=="win"', {
674 'link_settings': {
675 'libraries': [
676 '-lcrypt32.lib',
677 '-liphlpapi.lib',
678 '-lsecur32.lib',
679 ],
680 },
681 # Suppress warnings about WIN32_LEAN_AND_MEAN.
682 'msvs_disabled_warnings': [4005, 4703],
683 'defines': [
684 '_CRT_NONSTDC_NO_DEPRECATE',
685 ],
686 }, {
687 'sources/': [
688 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
689 ],
690 'sources!': [
691 'schanneladapter.cc',
692 'schanneladapter.h',
693 'winping.cc',
694 'winping.h',
695 'winfirewall.cc',
696 'winfirewall.h',
697 ],
698 }],
699 ['os_posix==0', {
700 'sources!': [
701 'latebindingsymboltable.cc',
702 'latebindingsymboltable.h',
703 'posix.cc',
704 'posix.h',
705 'unixfilesystem.cc',
706 'unixfilesystem.h',
707 ],
708 }, {
709 'configurations': {
710 'Debug_Base': {
711 'defines': [
712 # Chromium's build/common.gypi defines this for all posix
713 # _except_ for ios & mac. We want it there as well, e.g.
714 # because ASSERT and friends trigger off of it.
715 '_DEBUG',
716 ],
717 },
718 }
719 }],
720 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
721 'defines': [
722 'CARBON_DEPRECATED=YES',
723 ],
724 }],
725 ['OS!="ios" and OS!="mac"', {
726 'sources!': [
727 'scoped_autorelease_pool.mm',
728 ],
729 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000730 ['OS!="linux" and OS!="android"', {
731 'sources!': [
732 'linux.cc',
733 'linux.h',
734 ],
735 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000736 ],
737 },
738 ],
739}