blob: c767a9a8cd8bbebe14cea2e7e540fe5ad2ed7a54 [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': [
Karl Wiberg94784372015-04-20 14:03:07 +020032 'buffer.cc',
33 'buffer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000034 'checks.cc',
35 'checks.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000036 'event.cc',
37 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000038 'event_tracer.cc',
39 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000040 'exp_filter.cc',
41 'exp_filter.h',
42 'md5.cc',
43 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000044 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000045 'md5digest.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000046 'platform_file.cc',
47 'platform_file.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000048 'safe_conversions.h',
49 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000050 'stringencode.cc',
51 'stringencode.h',
52 'stringutils.cc',
53 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000054 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000055 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000056 'thread_checker.h',
57 'thread_checker_impl.cc',
58 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000059 'timeutils.cc',
60 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000061 'trace_event.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000062 ],
63 },
64 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000065 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000066 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000067 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000068 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000069 'rtc_base_approved',
70 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000071 'defines': [
72 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000073 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000074 ],
75 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +000076 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000077 'asyncfile.cc',
78 'asyncfile.h',
79 'asynchttprequest.cc',
80 'asynchttprequest.h',
81 'asyncinvoker.cc',
82 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000083 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000084 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000085 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000086 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000087 'asyncresolverinterface.h',
88 'asyncsocket.cc',
89 'asyncsocket.h',
90 'asynctcpsocket.cc',
91 'asynctcpsocket.h',
92 'asyncudpsocket.cc',
93 'asyncudpsocket.h',
94 'atomicops.h',
95 'autodetectproxy.cc',
96 'autodetectproxy.h',
97 'bandwidthsmoother.cc',
98 'bandwidthsmoother.h',
99 'base64.cc',
100 'base64.h',
101 'basicdefs.h',
102 'basictypes.h',
103 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000104 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000105 'bytebuffer.cc',
106 'bytebuffer.h',
107 'byteorder.h',
108 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000109 'callback.h.pump',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000110 'constructormagic.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000111 'common.cc',
112 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000113 'cpumonitor.cc',
114 'cpumonitor.h',
115 'crc32.cc',
116 'crc32.h',
Jiayang Liubef8d2d2015-03-26 14:38:46 -0700117 'criticalsection.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000118 'criticalsection.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000119 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000120 'cryptstring.h',
121 'dbus.cc',
122 'dbus.h',
123 'diskcache.cc',
124 'diskcache.h',
125 'diskcache_win32.cc',
126 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000127 'filelock.cc',
128 'filelock.h',
129 'fileutils.cc',
130 'fileutils.h',
131 'fileutils_mock.h',
132 'firewallsocketserver.cc',
133 'firewallsocketserver.h',
134 'flags.cc',
135 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000136 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000137 'gunit_prod.h',
138 'helpers.cc',
139 'helpers.h',
140 'httpbase.cc',
141 'httpbase.h',
142 'httpclient.cc',
143 'httpclient.h',
144 'httpcommon-inl.h',
145 'httpcommon.cc',
146 'httpcommon.h',
147 'httprequest.cc',
148 'httprequest.h',
149 'httpserver.cc',
150 'httpserver.h',
151 'ifaddrs-android.cc',
152 'ifaddrs-android.h',
153 'iosfilesystem.mm',
154 'ipaddress.cc',
155 'ipaddress.h',
156 'json.cc',
157 'json.h',
158 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000159 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000160 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000161 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000162 'libdbusglibsymboltable.cc',
163 'libdbusglibsymboltable.h',
164 'linux.cc',
165 'linux.h',
166 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000167 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000168 'linked_ptr.h',
169 'logging.cc',
170 'logging.h',
171 'macasyncsocket.cc',
172 'macasyncsocket.h',
173 'maccocoasocketserver.h',
174 'maccocoasocketserver.mm',
175 'maccocoathreadhelper.h',
176 'maccocoathreadhelper.mm',
177 'macconversion.cc',
178 'macconversion.h',
179 'macsocketserver.cc',
180 'macsocketserver.h',
181 'macutils.cc',
182 'macutils.h',
183 'macwindowpicker.cc',
184 'macwindowpicker.h',
185 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000186 'messagedigest.cc',
187 'messagedigest.h',
188 'messagehandler.cc',
189 'messagehandler.h',
190 'messagequeue.cc',
191 'messagequeue.h',
192 'multipart.cc',
193 'multipart.h',
194 'natserver.cc',
195 'natserver.h',
196 'natsocketfactory.cc',
197 'natsocketfactory.h',
198 'nattypes.cc',
199 'nattypes.h',
200 'nethelpers.cc',
201 'nethelpers.h',
202 'network.cc',
203 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000205 'optionsfile.cc',
206 'optionsfile.h',
207 'pathutils.cc',
208 'pathutils.h',
209 'physicalsocketserver.cc',
210 'physicalsocketserver.h',
211 'posix.cc',
212 'posix.h',
213 'profiler.cc',
214 'profiler.h',
215 'proxydetect.cc',
216 'proxydetect.h',
217 'proxyinfo.cc',
218 'proxyinfo.h',
219 'proxyserver.cc',
220 'proxyserver.h',
221 'ratelimiter.cc',
222 'ratelimiter.h',
223 'ratetracker.cc',
224 'ratetracker.h',
225 'refcount.h',
226 'referencecountedsingletonfactory.h',
227 'rollingaccumulator.h',
228 'schanneladapter.cc',
229 'schanneladapter.h',
230 'scoped_autorelease_pool.h',
231 'scoped_autorelease_pool.mm',
232 'scoped_ptr.h',
233 'scoped_ref_ptr.h',
234 'scopedptrcollection.h',
235 'sec_buffer.h',
236 'sha1.cc',
237 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000238 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000239 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000240 'sharedexclusivelock.cc',
241 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000242 'signalthread.cc',
243 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000244 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000245 'sigslot.h',
246 'sigslotrepeater.h',
247 'socket.h',
248 'socketadapters.cc',
249 'socketadapters.h',
250 'socketaddress.cc',
251 'socketaddress.h',
252 'socketaddresspair.cc',
253 'socketaddresspair.h',
254 'socketfactory.h',
255 'socketpool.cc',
256 'socketpool.h',
257 'socketserver.h',
258 'socketstream.cc',
259 'socketstream.h',
260 'ssladapter.cc',
261 'ssladapter.h',
262 'sslconfig.h',
263 'sslfingerprint.cc',
264 'sslfingerprint.h',
265 'sslidentity.cc',
266 'sslidentity.h',
267 'sslroots.h',
268 'sslsocketfactory.cc',
269 'sslsocketfactory.h',
270 'sslstreamadapter.cc',
271 'sslstreamadapter.h',
272 'sslstreamadapterhelper.cc',
273 'sslstreamadapterhelper.h',
274 'stream.cc',
275 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000276 'systeminfo.cc',
277 'systeminfo.h',
278 'task.cc',
279 'task.h',
280 'taskparent.cc',
281 'taskparent.h',
282 'taskrunner.cc',
283 'taskrunner.h',
284 'testclient.cc',
285 'testclient.h',
286 'thread.cc',
287 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000288 'timing.cc',
289 'timing.h',
290 'transformadapter.cc',
291 'transformadapter.h',
292 'unixfilesystem.cc',
293 'unixfilesystem.h',
294 'urlencode.cc',
295 'urlencode.h',
296 'versionparsing.cc',
297 'versionparsing.h',
298 'virtualsocketserver.cc',
299 'virtualsocketserver.h',
300 'win32.cc',
301 'win32.h',
302 'win32filesystem.cc',
303 'win32filesystem.h',
304 'win32regkey.cc',
305 'win32regkey.h',
306 'win32securityerrors.cc',
307 'win32socketinit.cc',
308 'win32socketinit.h',
309 'win32socketserver.cc',
310 'win32socketserver.h',
311 'win32window.cc',
312 'win32window.h',
313 'win32windowpicker.cc',
314 'win32windowpicker.h',
315 'window.h',
316 'windowpicker.h',
317 'windowpickerfactory.h',
318 'winfirewall.cc',
319 'winfirewall.h',
320 'winping.cc',
321 'winping.h',
322 'worker.cc',
323 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000324 'x11windowpicker.cc',
325 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000326 '../overrides/webrtc/base/basictypes.h',
327 '../overrides/webrtc/base/constructormagic.h',
328 '../overrides/webrtc/base/logging.cc',
329 '../overrides/webrtc/base/logging.h',
330 '../overrides/webrtc/base/win32socketinit.cc',
331 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000332 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000333 # these flags.
334 'cflags!': [
335 '-Wextra',
336 '-Wall',
337 ],
338 'cflags_cc!': [
339 '-Wnon-virtual-dtor',
340 ],
341 'direct_dependent_settings': {
342 'cflags_cc!': [
343 '-Wnon-virtual-dtor',
344 ],
345 'defines': [
346 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000347 ],
348 },
349 'include_dirs': [
350 '../../third_party/jsoncpp/overrides/include',
351 '../../third_party/jsoncpp/source/include',
352 ],
353 'conditions': [
354 ['build_with_chromium==1', {
355 'include_dirs': [
356 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000357 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000358 ],
359 'sources!': [
360 'asyncinvoker.cc',
361 'asyncinvoker.h',
362 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000363 'atomicops.h',
364 'bandwidthsmoother.cc',
365 'bandwidthsmoother.h',
366 'basictypes.h',
367 'bind.h',
368 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000369 'callback.h',
370 'callback.h.pump',
371 'constructormagic.h',
372 'dbus.cc',
373 'dbus.h',
374 'diskcache_win32.cc',
375 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000376 'filelock.cc',
377 'filelock.h',
378 'fileutils_mock.h',
379 'genericslot.h',
380 'genericslot.h.pump',
381 'httpserver.cc',
382 'httpserver.h',
383 'json.cc',
384 'json.h',
385 'latebindingsymboltable.cc',
386 'latebindingsymboltable.cc.def',
387 'latebindingsymboltable.h',
388 'latebindingsymboltable.h.def',
389 'libdbusglibsymboltable.cc',
390 'libdbusglibsymboltable.h',
391 'linuxfdwalk.c',
392 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000393 'x11windowpicker.cc',
394 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000395 'logging.cc',
396 'logging.h',
397 'macasyncsocket.cc',
398 'macasyncsocket.h',
399 'maccocoasocketserver.h',
400 'maccocoasocketserver.mm',
401 'macsocketserver.cc',
402 'macsocketserver.h',
403 'macwindowpicker.cc',
404 'macwindowpicker.h',
405 'mathutils.h',
406 'multipart.cc',
407 'multipart.h',
408 'natserver.cc',
409 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000410 'natsocketfactory.cc',
411 'natsocketfactory.h',
412 'nattypes.cc',
413 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000414 'optionsfile.cc',
415 'optionsfile.h',
416 'posix.cc',
417 'posix.h',
418 'profiler.cc',
419 'profiler.h',
420 'proxyserver.cc',
421 'proxyserver.h',
422 'refcount.h',
423 'referencecountedsingletonfactory.h',
424 'rollingaccumulator.h',
425 'safe_conversions.h',
426 'safe_conversions_impl.h',
427 'scopedptrcollection.h',
428 'scoped_ref_ptr.h',
429 'sec_buffer.h',
430 'sharedexclusivelock.cc',
431 'sharedexclusivelock.h',
432 'sslconfig.h',
433 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000434 'testbase64.h',
435 'testclient.cc',
436 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000437 'transformadapter.cc',
438 'transformadapter.h',
439 'versionparsing.cc',
440 'versionparsing.h',
441 'virtualsocketserver.cc',
442 'virtualsocketserver.h',
443 'win32regkey.cc',
444 'win32regkey.h',
445 'win32socketinit.cc',
446 'win32socketinit.h',
447 'win32socketserver.cc',
448 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000449 'window.h',
450 'windowpickerfactory.h',
451 'windowpicker.h',
452 ],
453 'defines': [
454 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000455 ],
456 'direct_dependent_settings': {
457 'defines': [
458 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000459 ],
460 },
461 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000462 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000463 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000464 'dependencies': [
465 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
466 ],
467 }, {
468 'include_dirs': [
469 '<(json_root)',
470 ],
471 'defines': [
472 # When defined changes the include path for json.h to where it
473 # is expected to be when building json outside of the standalone
474 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000475 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000476 ],
477 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000478 ],
479 'sources!': [
480 '../overrides/webrtc/base/basictypes.h',
481 '../overrides/webrtc/base/constructormagic.h',
482 '../overrides/webrtc/base/win32socketinit.cc',
483 '../overrides/webrtc/base/logging.cc',
484 '../overrides/webrtc/base/logging.h',
485 ],
486 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000487 ['use_openssl==1', {
488 'defines': [
489 'SSL_USE_OPENSSL',
490 'HAVE_OPENSSL_SSL_H',
491 ],
492 'direct_dependent_settings': {
493 'defines': [
494 'SSL_USE_OPENSSL',
495 'HAVE_OPENSSL_SSL_H',
496 ],
497 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000498 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000499 'openssl.h',
500 'openssladapter.cc',
501 'openssladapter.h',
502 'openssldigest.cc',
503 'openssldigest.h',
504 'opensslidentity.cc',
505 'opensslidentity.h',
506 'opensslstreamadapter.cc',
507 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000508 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000509 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000510 ['build_ssl==1', {
511 'dependencies': [
512 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
513 ],
514 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000515 'include_dirs': [
516 '<(ssl_root)',
517 ],
518 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000519 ],
520 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000521 'sources': [
522 'nssidentity.cc',
523 'nssidentity.h',
524 'nssstreamadapter.cc',
525 'nssstreamadapter.h',
526 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000527 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000528 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000529 'defines': [
530 'SSL_USE_NSS',
531 'HAVE_NSS_SSL_H',
532 'SSL_USE_NSS_RNG',
533 ],
534 'direct_dependent_settings': {
535 'defines': [
536 'SSL_USE_NSS',
537 'HAVE_NSS_SSL_H',
538 'SSL_USE_NSS_RNG',
539 ],
540 },
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000541 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000542 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000543 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000544 # On some platforms, the rest of NSS is bundled. On others,
545 # it's pulled from the system.
Henrik Kjellanderca047f72015-04-08 08:54:02 +0200546 ['OS == "mac" or OS == "ios"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000547 'dependencies': [
548 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000549 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
550 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000551 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000552 }],
553 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
554 'dependencies': [
555 '<(DEPTH)/build/linux/system.gyp:ssl',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000556 ],
557 }],
558 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000559 }, {
560 'include_dirs': [
561 '<(ssl_root)',
562 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000563 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000564 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000565 }],
566 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000567 'link_settings': {
568 'libraries': [
569 '-llog',
570 '-lGLESv2',
571 ],
572 },
573 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000574 'sources!': [
575 'ifaddrs-android.cc',
576 'ifaddrs-android.h',
577 ],
578 }],
579 ['OS=="ios"', {
580 'all_dependent_settings': {
581 'xcode_settings': {
582 'OTHER_LDFLAGS': [
583 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000584 '-framework Security',
585 '-framework SystemConfiguration',
586 '-framework UIKit',
587 ],
588 },
589 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000590 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000591 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000592 'link_settings': {
593 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000594 '-ldl',
595 '-lrt',
596 '-lXext',
597 '-lX11',
598 '-lXcomposite',
599 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000600 ],
601 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000602 }, {
603 'sources!': [
604 'x11windowpicker.cc',
605 'x11windowpicker.h',
606 ],
607 }],
608 ['OS=="linux"', {
609 'link_settings': {
610 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000611 '-ldl',
612 '-lrt',
613 ],
614 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000615 }, {
616 'sources!': [
617 'dbus.cc',
618 'dbus.h',
619 'libdbusglibsymboltable.cc',
620 'libdbusglibsymboltable.h',
621 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000622 ],
623 }],
624 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000625 'all_dependent_settings': {
626 'link_settings': {
627 'xcode_settings': {
628 'OTHER_LDFLAGS': [
629 '-framework Cocoa',
630 '-framework Foundation',
631 '-framework IOKit',
632 '-framework Security',
633 '-framework SystemConfiguration',
634 ],
635 },
636 },
637 },
638 'conditions': [
639 ['target_arch=="ia32"', {
640 'all_dependent_settings': {
641 'link_settings': {
642 'xcode_settings': {
643 'OTHER_LDFLAGS': [
644 '-framework Carbon',
645 ],
646 },
647 },
648 },
649 }],
650 ],
651 }, {
652 'sources!': [
653 'macasyncsocket.cc',
654 'macasyncsocket.h',
655 'maccocoasocketserver.h',
656 'maccocoasocketserver.mm',
657 'macconversion.cc',
658 'macconversion.h',
659 'macsocketserver.cc',
660 'macsocketserver.h',
661 'macutils.cc',
662 'macutils.h',
663 'macwindowpicker.cc',
664 'macwindowpicker.h',
665 ],
666 }],
667 ['OS=="win"', {
668 'link_settings': {
669 'libraries': [
670 '-lcrypt32.lib',
671 '-liphlpapi.lib',
672 '-lsecur32.lib',
673 ],
674 },
675 # Suppress warnings about WIN32_LEAN_AND_MEAN.
676 'msvs_disabled_warnings': [4005, 4703],
677 'defines': [
678 '_CRT_NONSTDC_NO_DEPRECATE',
679 ],
680 }, {
681 'sources/': [
682 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
683 ],
684 'sources!': [
685 'schanneladapter.cc',
686 'schanneladapter.h',
687 'winping.cc',
688 'winping.h',
689 'winfirewall.cc',
690 'winfirewall.h',
691 ],
692 }],
693 ['os_posix==0', {
694 'sources!': [
695 'latebindingsymboltable.cc',
696 'latebindingsymboltable.h',
697 'posix.cc',
698 'posix.h',
699 'unixfilesystem.cc',
700 'unixfilesystem.h',
701 ],
702 }, {
703 'configurations': {
704 'Debug_Base': {
705 'defines': [
706 # Chromium's build/common.gypi defines this for all posix
707 # _except_ for ios & mac. We want it there as well, e.g.
708 # because ASSERT and friends trigger off of it.
709 '_DEBUG',
710 ],
711 },
712 }
713 }],
714 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
715 'defines': [
716 'CARBON_DEPRECATED=YES',
717 ],
718 }],
719 ['OS!="ios" and OS!="mac"', {
720 'sources!': [
721 'scoped_autorelease_pool.mm',
722 ],
723 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000724 ['OS!="linux" and OS!="android"', {
725 'sources!': [
726 'linux.cc',
727 'linux.h',
728 ],
729 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000730 ],
731 },
732 ],
733}