blob: 155642c1f46cd842378746dcfae16aea0c58a649 [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',
Peter Boström2ee24392015-06-22 07:57:16 +020066 'ratetracker.cc',
67 'ratetracker.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000068 'safe_conversions.h',
69 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000070 'stringencode.cc',
71 'stringencode.h',
72 'stringutils.cc',
73 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000074 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000075 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000076 'thread_checker.h',
77 'thread_checker_impl.cc',
78 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000079 'timeutils.cc',
80 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000081 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070082 ],
83 'conditions': [
84 ['build_with_chromium==1', {
85 'include_dirs': [
86 '../overrides',
87 ],
88 'sources!': [
89 'basictypes.h',
90 'constructormagic.h',
Tommi23edcff2015-05-25 10:45:43 +020091 'logging.cc',
92 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -070093 ],
94 }, {
95 'sources!': [
96 '../overrides/webrtc/base/basictypes.h',
97 '../overrides/webrtc/base/constructormagic.h',
98 ],
99 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000100 ],
101 },
102 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000103 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000104 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000105 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000106 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000107 'rtc_base_approved',
108 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000109 'defines': [
110 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000111 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000112 ],
113 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000114 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000115 'asyncfile.cc',
116 'asyncfile.h',
117 'asynchttprequest.cc',
118 'asynchttprequest.h',
119 'asyncinvoker.cc',
120 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000121 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000122 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000123 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000124 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000125 'asyncresolverinterface.h',
126 'asyncsocket.cc',
127 'asyncsocket.h',
128 'asynctcpsocket.cc',
129 'asynctcpsocket.h',
130 'asyncudpsocket.cc',
131 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000132 'autodetectproxy.cc',
133 'autodetectproxy.h',
134 'bandwidthsmoother.cc',
135 'bandwidthsmoother.h',
136 'base64.cc',
137 'base64.h',
138 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000139 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000140 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000141 'common.cc',
142 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000143 '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',
tkchin93411912015-07-22 12:12:17 -0700153 'filerotatingstream.cc',
154 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000155 'fileutils.cc',
156 'fileutils.h',
157 'fileutils_mock.h',
158 'firewallsocketserver.cc',
159 'firewallsocketserver.h',
160 'flags.cc',
161 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000162 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000163 'gunit_prod.h',
164 'helpers.cc',
165 'helpers.h',
166 'httpbase.cc',
167 'httpbase.h',
168 'httpclient.cc',
169 'httpclient.h',
170 'httpcommon-inl.h',
171 'httpcommon.cc',
172 'httpcommon.h',
173 'httprequest.cc',
174 'httprequest.h',
175 'httpserver.cc',
176 'httpserver.h',
177 'ifaddrs-android.cc',
178 'ifaddrs-android.h',
179 'iosfilesystem.mm',
180 'ipaddress.cc',
181 'ipaddress.h',
182 'json.cc',
183 'json.h',
184 'latebindingsymboltable.cc',
185 'latebindingsymboltable.h',
186 'libdbusglibsymboltable.cc',
187 'libdbusglibsymboltable.h',
188 'linux.cc',
189 'linux.h',
190 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000191 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000192 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700193 'logsinks.cc',
194 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000195 'macasyncsocket.cc',
196 'macasyncsocket.h',
197 'maccocoasocketserver.h',
198 'maccocoasocketserver.mm',
199 'maccocoathreadhelper.h',
200 'maccocoathreadhelper.mm',
201 'macconversion.cc',
202 'macconversion.h',
203 'macsocketserver.cc',
204 'macsocketserver.h',
205 'macutils.cc',
206 'macutils.h',
207 'macwindowpicker.cc',
208 'macwindowpicker.h',
209 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000210 'messagedigest.cc',
211 'messagedigest.h',
212 'messagehandler.cc',
213 'messagehandler.h',
214 'messagequeue.cc',
215 'messagequeue.h',
216 'multipart.cc',
217 'multipart.h',
218 'natserver.cc',
219 'natserver.h',
220 'natsocketfactory.cc',
221 'natsocketfactory.h',
222 'nattypes.cc',
223 'nattypes.h',
224 'nethelpers.cc',
225 'nethelpers.h',
226 'network.cc',
227 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000228 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000229 'optionsfile.cc',
230 'optionsfile.h',
231 'pathutils.cc',
232 'pathutils.h',
233 'physicalsocketserver.cc',
234 'physicalsocketserver.h',
235 'posix.cc',
236 'posix.h',
237 'profiler.cc',
238 'profiler.h',
239 'proxydetect.cc',
240 'proxydetect.h',
241 'proxyinfo.cc',
242 'proxyinfo.h',
243 'proxyserver.cc',
244 'proxyserver.h',
245 'ratelimiter.cc',
246 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000247 'refcount.h',
248 'referencecountedsingletonfactory.h',
249 'rollingaccumulator.h',
250 'schanneladapter.cc',
251 'schanneladapter.h',
252 'scoped_autorelease_pool.h',
253 'scoped_autorelease_pool.mm',
254 'scoped_ptr.h',
255 'scoped_ref_ptr.h',
256 'scopedptrcollection.h',
257 'sec_buffer.h',
258 'sha1.cc',
259 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000260 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000261 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000262 'sharedexclusivelock.cc',
263 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000264 'signalthread.cc',
265 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000266 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000267 'sigslot.h',
268 'sigslotrepeater.h',
269 'socket.h',
270 'socketadapters.cc',
271 'socketadapters.h',
272 'socketaddress.cc',
273 'socketaddress.h',
274 'socketaddresspair.cc',
275 'socketaddresspair.h',
276 'socketfactory.h',
277 'socketpool.cc',
278 'socketpool.h',
279 'socketserver.h',
280 'socketstream.cc',
281 'socketstream.h',
282 'ssladapter.cc',
283 'ssladapter.h',
284 'sslconfig.h',
285 'sslfingerprint.cc',
286 'sslfingerprint.h',
287 'sslidentity.cc',
288 'sslidentity.h',
289 'sslroots.h',
290 'sslsocketfactory.cc',
291 'sslsocketfactory.h',
292 'sslstreamadapter.cc',
293 'sslstreamadapter.h',
294 'sslstreamadapterhelper.cc',
295 'sslstreamadapterhelper.h',
296 'stream.cc',
297 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000298 'systeminfo.cc',
299 'systeminfo.h',
300 'task.cc',
301 'task.h',
302 'taskparent.cc',
303 'taskparent.h',
304 'taskrunner.cc',
305 'taskrunner.h',
306 'testclient.cc',
307 'testclient.h',
308 'thread.cc',
309 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000310 'timing.cc',
311 'timing.h',
312 'transformadapter.cc',
313 'transformadapter.h',
314 'unixfilesystem.cc',
315 'unixfilesystem.h',
316 'urlencode.cc',
317 'urlencode.h',
318 'versionparsing.cc',
319 'versionparsing.h',
320 'virtualsocketserver.cc',
321 'virtualsocketserver.h',
322 'win32.cc',
323 'win32.h',
324 'win32filesystem.cc',
325 'win32filesystem.h',
326 'win32regkey.cc',
327 'win32regkey.h',
328 'win32securityerrors.cc',
329 'win32socketinit.cc',
330 'win32socketinit.h',
331 'win32socketserver.cc',
332 'win32socketserver.h',
333 'win32window.cc',
334 'win32window.h',
335 'win32windowpicker.cc',
336 'win32windowpicker.h',
337 'window.h',
338 'windowpicker.h',
339 'windowpickerfactory.h',
340 'winfirewall.cc',
341 'winfirewall.h',
342 'winping.cc',
343 'winping.h',
344 'worker.cc',
345 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000346 'x11windowpicker.cc',
347 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000348 '../overrides/webrtc/base/logging.cc',
349 '../overrides/webrtc/base/logging.h',
350 '../overrides/webrtc/base/win32socketinit.cc',
351 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000352 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000353 # these flags.
354 'cflags!': [
355 '-Wextra',
356 '-Wall',
357 ],
358 'cflags_cc!': [
359 '-Wnon-virtual-dtor',
360 ],
361 'direct_dependent_settings': {
362 'cflags_cc!': [
363 '-Wnon-virtual-dtor',
364 ],
365 'defines': [
366 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000367 ],
368 },
369 'include_dirs': [
370 '../../third_party/jsoncpp/overrides/include',
371 '../../third_party/jsoncpp/source/include',
372 ],
373 'conditions': [
374 ['build_with_chromium==1', {
375 'include_dirs': [
376 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000377 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000378 ],
379 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000380 'atomicops.h',
381 'bandwidthsmoother.cc',
382 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000383 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000384 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000385 'constructormagic.h',
386 'dbus.cc',
387 'dbus.h',
388 'diskcache_win32.cc',
389 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000390 'fileutils_mock.h',
391 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000392 'httpserver.cc',
393 'httpserver.h',
394 'json.cc',
395 'json.h',
396 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000397 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000398 'libdbusglibsymboltable.cc',
399 'libdbusglibsymboltable.h',
400 'linuxfdwalk.c',
401 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000402 'x11windowpicker.cc',
403 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000404 'logging.cc',
405 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700406 'logsinks.cc',
407 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000408 'macasyncsocket.cc',
409 'macasyncsocket.h',
410 'maccocoasocketserver.h',
411 'maccocoasocketserver.mm',
412 'macsocketserver.cc',
413 'macsocketserver.h',
414 'macwindowpicker.cc',
415 'macwindowpicker.h',
416 'mathutils.h',
417 'multipart.cc',
418 'multipart.h',
419 'natserver.cc',
420 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000421 'natsocketfactory.cc',
422 'natsocketfactory.h',
423 'nattypes.cc',
424 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000425 'optionsfile.cc',
426 'optionsfile.h',
427 'posix.cc',
428 'posix.h',
429 'profiler.cc',
430 'profiler.h',
431 'proxyserver.cc',
432 'proxyserver.h',
433 'refcount.h',
434 'referencecountedsingletonfactory.h',
435 'rollingaccumulator.h',
436 'safe_conversions.h',
437 'safe_conversions_impl.h',
438 'scopedptrcollection.h',
439 'scoped_ref_ptr.h',
440 'sec_buffer.h',
441 'sharedexclusivelock.cc',
442 'sharedexclusivelock.h',
443 'sslconfig.h',
444 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000445 'testbase64.h',
446 'testclient.cc',
447 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000448 'transformadapter.cc',
449 'transformadapter.h',
450 'versionparsing.cc',
451 'versionparsing.h',
452 'virtualsocketserver.cc',
453 'virtualsocketserver.h',
454 'win32regkey.cc',
455 'win32regkey.h',
456 'win32socketinit.cc',
457 'win32socketinit.h',
458 'win32socketserver.cc',
459 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000460 'window.h',
461 'windowpickerfactory.h',
462 'windowpicker.h',
463 ],
464 'defines': [
465 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000466 ],
467 'direct_dependent_settings': {
468 'defines': [
469 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000470 ],
471 },
472 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000473 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000474 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000475 'dependencies': [
476 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
477 ],
478 }, {
479 'include_dirs': [
480 '<(json_root)',
481 ],
482 'defines': [
483 # When defined changes the include path for json.h to where it
484 # is expected to be when building json outside of the standalone
485 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000486 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000487 ],
488 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000489 ],
490 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000491 '../overrides/webrtc/base/win32socketinit.cc',
492 '../overrides/webrtc/base/logging.cc',
493 '../overrides/webrtc/base/logging.h',
494 ],
495 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000496 ['use_openssl==1', {
497 'defines': [
498 'SSL_USE_OPENSSL',
499 'HAVE_OPENSSL_SSL_H',
500 ],
501 'direct_dependent_settings': {
502 'defines': [
503 'SSL_USE_OPENSSL',
504 'HAVE_OPENSSL_SSL_H',
505 ],
506 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000507 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000508 'openssl.h',
509 'openssladapter.cc',
510 'openssladapter.h',
511 'openssldigest.cc',
512 'openssldigest.h',
513 'opensslidentity.cc',
514 'opensslidentity.h',
515 'opensslstreamadapter.cc',
516 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000517 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000518 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000519 ['build_ssl==1', {
520 'dependencies': [
521 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
522 ],
523 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000524 'include_dirs': [
525 '<(ssl_root)',
526 ],
527 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000528 ],
529 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000530 'sources': [
531 'nssidentity.cc',
532 'nssidentity.h',
533 'nssstreamadapter.cc',
534 'nssstreamadapter.h',
535 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000536 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000537 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000538 'defines': [
539 'SSL_USE_NSS',
540 'HAVE_NSS_SSL_H',
541 'SSL_USE_NSS_RNG',
542 ],
543 'direct_dependent_settings': {
544 'defines': [
545 'SSL_USE_NSS',
546 'HAVE_NSS_SSL_H',
547 'SSL_USE_NSS_RNG',
548 ],
549 },
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000550 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000551 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000552 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000553 # On some platforms, the rest of NSS is bundled. On others,
554 # it's pulled from the system.
Henrik Kjellanderca047f72015-04-08 08:54:02 +0200555 ['OS == "mac" or OS == "ios"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000556 'dependencies': [
557 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000558 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
559 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000560 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000561 }],
562 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
563 'dependencies': [
564 '<(DEPTH)/build/linux/system.gyp:ssl',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000565 ],
566 }],
567 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000568 }, {
569 'include_dirs': [
570 '<(ssl_root)',
571 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000572 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000573 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000574 }],
575 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000576 'link_settings': {
577 'libraries': [
578 '-llog',
579 '-lGLESv2',
580 ],
581 },
582 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000583 'sources!': [
584 'ifaddrs-android.cc',
585 'ifaddrs-android.h',
586 ],
587 }],
588 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200589 'sources/': [
590 ['include', 'macconversion.*'],
591 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000592 'all_dependent_settings': {
593 'xcode_settings': {
594 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700595 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000596 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000597 '-framework Security',
598 '-framework SystemConfiguration',
599 '-framework UIKit',
600 ],
601 },
602 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000603 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000604 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000605 'link_settings': {
606 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000607 '-ldl',
608 '-lrt',
609 '-lXext',
610 '-lX11',
611 '-lXcomposite',
612 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000613 ],
614 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000615 }, {
616 'sources!': [
617 'x11windowpicker.cc',
618 'x11windowpicker.h',
619 ],
620 }],
621 ['OS=="linux"', {
622 'link_settings': {
623 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000624 '-ldl',
625 '-lrt',
626 ],
627 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000628 }, {
629 'sources!': [
630 'dbus.cc',
631 'dbus.h',
632 'libdbusglibsymboltable.cc',
633 'libdbusglibsymboltable.h',
634 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000635 ],
636 }],
637 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000638 'all_dependent_settings': {
639 'link_settings': {
640 'xcode_settings': {
641 'OTHER_LDFLAGS': [
642 '-framework Cocoa',
643 '-framework Foundation',
644 '-framework IOKit',
645 '-framework Security',
646 '-framework SystemConfiguration',
647 ],
648 },
649 },
650 },
651 'conditions': [
652 ['target_arch=="ia32"', {
653 'all_dependent_settings': {
654 'link_settings': {
655 'xcode_settings': {
656 'OTHER_LDFLAGS': [
657 '-framework Carbon',
658 ],
659 },
660 },
661 },
662 }],
663 ],
664 }, {
665 'sources!': [
666 'macasyncsocket.cc',
667 'macasyncsocket.h',
668 'maccocoasocketserver.h',
669 'maccocoasocketserver.mm',
670 'macconversion.cc',
671 'macconversion.h',
672 'macsocketserver.cc',
673 'macsocketserver.h',
674 'macutils.cc',
675 'macutils.h',
676 'macwindowpicker.cc',
677 'macwindowpicker.h',
678 ],
679 }],
680 ['OS=="win"', {
681 'link_settings': {
682 'libraries': [
683 '-lcrypt32.lib',
684 '-liphlpapi.lib',
685 '-lsecur32.lib',
686 ],
687 },
688 # Suppress warnings about WIN32_LEAN_AND_MEAN.
689 'msvs_disabled_warnings': [4005, 4703],
690 'defines': [
691 '_CRT_NONSTDC_NO_DEPRECATE',
692 ],
693 }, {
694 'sources/': [
695 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
696 ],
697 'sources!': [
698 'schanneladapter.cc',
699 'schanneladapter.h',
700 'winping.cc',
701 'winping.h',
702 'winfirewall.cc',
703 'winfirewall.h',
704 ],
705 }],
706 ['os_posix==0', {
707 'sources!': [
708 'latebindingsymboltable.cc',
709 'latebindingsymboltable.h',
710 'posix.cc',
711 'posix.h',
712 'unixfilesystem.cc',
713 'unixfilesystem.h',
714 ],
715 }, {
716 'configurations': {
717 'Debug_Base': {
718 'defines': [
719 # Chromium's build/common.gypi defines this for all posix
720 # _except_ for ios & mac. We want it there as well, e.g.
721 # because ASSERT and friends trigger off of it.
722 '_DEBUG',
723 ],
724 },
725 }
726 }],
727 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
728 'defines': [
729 'CARBON_DEPRECATED=YES',
730 ],
731 }],
732 ['OS!="ios" and OS!="mac"', {
733 'sources!': [
734 'scoped_autorelease_pool.mm',
735 ],
736 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000737 ['OS!="linux" and OS!="android"', {
738 'sources!': [
739 'linux.cc',
740 'linux.h',
741 ],
742 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000743 ],
744 },
745 ],
746}