blob: 44aff84c43019156a3fa71a59b88e83051a8b7dc [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 Wiberge2a83ee2015-10-26 19:51:29 +010032 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020033 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070034 'bitbuffer.cc',
35 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020036 'buffer.cc',
37 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020038 'bufferqueue.cc',
39 'bufferqueue.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',
Tommi23edcff2015-05-25 10:45:43 +020054 'logging.cc',
55 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000056 'md5.cc',
57 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000058 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000059 'md5digest.h',
Karl Wibergbe579832015-11-10 22:34:18 +010060 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000061 'platform_file.cc',
62 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +020063 'platform_thread.cc',
64 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -080065 'platform_thread_types.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',
Tommic844ca42015-08-19 10:51:18 +020070 'scoped_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000071 'stringencode.cc',
72 'stringencode.h',
73 'stringutils.cc',
74 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -070075 'systeminfo.cc',
76 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000077 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000078 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000079 'thread_checker.h',
80 'thread_checker_impl.cc',
81 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000082 'timeutils.cc',
83 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000084 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070085 ],
86 'conditions': [
87 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +010088 'dependencies': [
89 '<(DEPTH)/base/base.gyp:base',
90 ],
Noah Richards915590e2015-04-22 15:43:08 -070091 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -070092 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -070093 ],
Peter Boström11e02292015-11-25 21:36:14 +010094 'sources': [
95 '../../webrtc_overrides/webrtc/base/logging.cc',
96 '../../webrtc_overrides/webrtc/base/logging.h',
97 ],
Noah Richards915590e2015-04-22 15:43:08 -070098 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +020099 'logging.cc',
100 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700101 ],
Noah Richards915590e2015-04-22 15:43:08 -0700102 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000103 ],
104 },
105 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000106 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000107 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000108 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000109 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000110 'rtc_base_approved',
111 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000112 'defines': [
113 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700114 'SSL_USE_OPENSSL',
115 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000116 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000117 ],
118 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000119 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000120 'asyncfile.cc',
121 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000122 'asyncinvoker.cc',
123 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000124 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000125 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000126 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000127 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000128 'asyncresolverinterface.h',
129 'asyncsocket.cc',
130 'asyncsocket.h',
131 'asynctcpsocket.cc',
132 'asynctcpsocket.h',
133 'asyncudpsocket.cc',
134 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000135 'autodetectproxy.cc',
136 'autodetectproxy.h',
137 'bandwidthsmoother.cc',
138 'bandwidthsmoother.h',
139 'base64.cc',
140 'base64.h',
141 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000142 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000143 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000144 'common.cc',
145 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000146 'crc32.cc',
147 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000148 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000149 'cryptstring.h',
150 'dbus.cc',
151 'dbus.h',
152 'diskcache.cc',
153 'diskcache.h',
154 'diskcache_win32.cc',
155 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700156 'filerotatingstream.cc',
157 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000158 'fileutils.cc',
159 'fileutils.h',
160 'fileutils_mock.h',
161 'firewallsocketserver.cc',
162 'firewallsocketserver.h',
163 'flags.cc',
164 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000165 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000166 'gunit_prod.h',
167 'helpers.cc',
168 'helpers.h',
169 'httpbase.cc',
170 'httpbase.h',
171 'httpclient.cc',
172 'httpclient.h',
173 'httpcommon-inl.h',
174 'httpcommon.cc',
175 'httpcommon.h',
176 'httprequest.cc',
177 'httprequest.h',
178 'httpserver.cc',
179 'httpserver.h',
180 'ifaddrs-android.cc',
181 'ifaddrs-android.h',
182 'iosfilesystem.mm',
183 'ipaddress.cc',
184 'ipaddress.h',
185 'json.cc',
186 'json.h',
187 'latebindingsymboltable.cc',
188 'latebindingsymboltable.h',
189 'libdbusglibsymboltable.cc',
190 'libdbusglibsymboltable.h',
191 'linux.cc',
192 'linux.h',
193 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000194 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000195 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700196 'logsinks.cc',
197 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'macasyncsocket.cc',
199 'macasyncsocket.h',
200 'maccocoasocketserver.h',
201 'maccocoasocketserver.mm',
202 'maccocoathreadhelper.h',
203 'maccocoathreadhelper.mm',
204 'macconversion.cc',
205 'macconversion.h',
206 'macsocketserver.cc',
207 'macsocketserver.h',
208 'macutils.cc',
209 'macutils.h',
210 'macwindowpicker.cc',
211 'macwindowpicker.h',
212 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000213 'messagedigest.cc',
214 'messagedigest.h',
215 'messagehandler.cc',
216 'messagehandler.h',
217 'messagequeue.cc',
218 'messagequeue.h',
219 'multipart.cc',
220 'multipart.h',
221 'natserver.cc',
222 'natserver.h',
223 'natsocketfactory.cc',
224 'natsocketfactory.h',
225 'nattypes.cc',
226 'nattypes.h',
227 'nethelpers.cc',
228 'nethelpers.h',
229 'network.cc',
230 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700231 'networkmonitor.cc',
232 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000233 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700234 'openssl.h',
235 'openssladapter.cc',
236 'openssladapter.h',
237 'openssldigest.cc',
238 'openssldigest.h',
239 'opensslidentity.cc',
240 'opensslidentity.h',
241 'opensslstreamadapter.cc',
242 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000243 'optionsfile.cc',
244 'optionsfile.h',
245 'pathutils.cc',
246 'pathutils.h',
247 'physicalsocketserver.cc',
248 'physicalsocketserver.h',
249 'posix.cc',
250 'posix.h',
251 'profiler.cc',
252 'profiler.h',
253 'proxydetect.cc',
254 'proxydetect.h',
255 'proxyinfo.cc',
256 'proxyinfo.h',
257 'proxyserver.cc',
258 'proxyserver.h',
259 'ratelimiter.cc',
260 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000261 'refcount.h',
262 'referencecountedsingletonfactory.h',
263 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200264 'rtccertificate.cc',
265 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000266 'scoped_autorelease_pool.h',
267 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000268 'scoped_ref_ptr.h',
269 'scopedptrcollection.h',
270 'sec_buffer.h',
271 'sha1.cc',
272 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000273 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000274 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000275 'sharedexclusivelock.cc',
276 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000277 'signalthread.cc',
278 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000279 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000280 'sigslot.h',
281 'sigslotrepeater.h',
282 'socket.h',
283 'socketadapters.cc',
284 'socketadapters.h',
285 'socketaddress.cc',
286 'socketaddress.h',
287 'socketaddresspair.cc',
288 'socketaddresspair.h',
289 'socketfactory.h',
290 'socketpool.cc',
291 'socketpool.h',
292 'socketserver.h',
293 'socketstream.cc',
294 'socketstream.h',
295 'ssladapter.cc',
296 'ssladapter.h',
297 'sslconfig.h',
298 'sslfingerprint.cc',
299 'sslfingerprint.h',
300 'sslidentity.cc',
301 'sslidentity.h',
302 'sslroots.h',
303 'sslsocketfactory.cc',
304 'sslsocketfactory.h',
305 'sslstreamadapter.cc',
306 'sslstreamadapter.h',
307 'sslstreamadapterhelper.cc',
308 'sslstreamadapterhelper.h',
309 'stream.cc',
310 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000311 'task.cc',
312 'task.h',
313 'taskparent.cc',
314 'taskparent.h',
315 'taskrunner.cc',
316 'taskrunner.h',
317 'testclient.cc',
318 'testclient.h',
319 'thread.cc',
320 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000321 'timing.cc',
322 'timing.h',
323 'transformadapter.cc',
324 'transformadapter.h',
325 'unixfilesystem.cc',
326 'unixfilesystem.h',
327 'urlencode.cc',
328 'urlencode.h',
329 'versionparsing.cc',
330 'versionparsing.h',
331 'virtualsocketserver.cc',
332 'virtualsocketserver.h',
333 'win32.cc',
334 'win32.h',
335 'win32filesystem.cc',
336 'win32filesystem.h',
337 'win32regkey.cc',
338 'win32regkey.h',
339 'win32securityerrors.cc',
340 'win32socketinit.cc',
341 'win32socketinit.h',
342 'win32socketserver.cc',
343 'win32socketserver.h',
344 'win32window.cc',
345 'win32window.h',
346 'win32windowpicker.cc',
347 'win32windowpicker.h',
348 'window.h',
349 'windowpicker.h',
350 'windowpickerfactory.h',
351 'winfirewall.cc',
352 'winfirewall.h',
353 'winping.cc',
354 'winping.h',
355 'worker.cc',
356 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000357 'x11windowpicker.cc',
358 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000359 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000360 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000361 # these flags.
362 'cflags!': [
363 '-Wextra',
364 '-Wall',
365 ],
366 'cflags_cc!': [
367 '-Wnon-virtual-dtor',
368 ],
369 'direct_dependent_settings': {
370 'cflags_cc!': [
371 '-Wnon-virtual-dtor',
372 ],
373 'defines': [
374 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700375 'SSL_USE_OPENSSL',
376 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000377 ],
378 },
379 'include_dirs': [
380 '../../third_party/jsoncpp/overrides/include',
381 '../../third_party/jsoncpp/source/include',
382 ],
383 'conditions': [
384 ['build_with_chromium==1', {
385 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700386 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000387 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000388 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700389 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700390 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700391 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000392 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000393 'atomicops.h',
394 'bandwidthsmoother.cc',
395 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000396 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000397 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000398 'dbus.cc',
399 'dbus.h',
400 'diskcache_win32.cc',
401 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000402 'fileutils_mock.h',
403 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000404 'httpserver.cc',
405 'httpserver.h',
406 'json.cc',
407 'json.h',
408 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000409 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000410 'libdbusglibsymboltable.cc',
411 'libdbusglibsymboltable.h',
412 'linuxfdwalk.c',
413 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000414 'x11windowpicker.cc',
415 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000416 'logging.cc',
417 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700418 'logsinks.cc',
419 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000420 'macasyncsocket.cc',
421 'macasyncsocket.h',
422 'maccocoasocketserver.h',
423 'maccocoasocketserver.mm',
424 'macsocketserver.cc',
425 'macsocketserver.h',
426 'macwindowpicker.cc',
427 'macwindowpicker.h',
428 'mathutils.h',
429 'multipart.cc',
430 'multipart.h',
431 'natserver.cc',
432 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000433 'natsocketfactory.cc',
434 'natsocketfactory.h',
435 'nattypes.cc',
436 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000437 'optionsfile.cc',
438 'optionsfile.h',
439 'posix.cc',
440 'posix.h',
441 'profiler.cc',
442 'profiler.h',
443 'proxyserver.cc',
444 'proxyserver.h',
445 'refcount.h',
446 'referencecountedsingletonfactory.h',
447 'rollingaccumulator.h',
448 'safe_conversions.h',
449 'safe_conversions_impl.h',
450 'scopedptrcollection.h',
451 'scoped_ref_ptr.h',
452 'sec_buffer.h',
453 'sharedexclusivelock.cc',
454 'sharedexclusivelock.h',
455 'sslconfig.h',
456 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000457 'testbase64.h',
458 'testclient.cc',
459 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000460 'transformadapter.cc',
461 'transformadapter.h',
462 'versionparsing.cc',
463 'versionparsing.h',
464 'virtualsocketserver.cc',
465 'virtualsocketserver.h',
466 'win32regkey.cc',
467 'win32regkey.h',
468 'win32socketinit.cc',
469 'win32socketinit.h',
470 'win32socketserver.cc',
471 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000472 'window.h',
473 'windowpickerfactory.h',
474 'windowpicker.h',
475 ],
476 'defines': [
477 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000478 ],
479 'direct_dependent_settings': {
480 'defines': [
481 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000482 ],
483 },
484 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000485 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000486 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000487 'dependencies': [
488 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
489 ],
490 }, {
491 'include_dirs': [
492 '<(json_root)',
493 ],
494 'defines': [
495 # When defined changes the include path for json.h to where it
496 # is expected to be when building json outside of the standalone
497 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000498 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000499 ],
500 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000501 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000502 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000503 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000504 'link_settings': {
505 'libraries': [
506 '-llog',
507 '-lGLESv2',
508 ],
509 },
510 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000511 'sources!': [
512 'ifaddrs-android.cc',
513 'ifaddrs-android.h',
514 ],
515 }],
516 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200517 'sources/': [
518 ['include', 'macconversion.*'],
519 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 'all_dependent_settings': {
521 'xcode_settings': {
522 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700523 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000524 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000525 '-framework Security',
526 '-framework SystemConfiguration',
527 '-framework UIKit',
528 ],
529 },
530 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000531 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000532 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000533 'link_settings': {
534 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000535 '-ldl',
536 '-lrt',
537 '-lXext',
538 '-lX11',
539 '-lXcomposite',
540 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000541 ],
542 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000543 }, {
544 'sources!': [
545 'x11windowpicker.cc',
546 'x11windowpicker.h',
547 ],
548 }],
549 ['OS=="linux"', {
550 'link_settings': {
551 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000552 '-ldl',
553 '-lrt',
554 ],
555 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000556 }, {
557 'sources!': [
558 'dbus.cc',
559 'dbus.h',
560 'libdbusglibsymboltable.cc',
561 'libdbusglibsymboltable.h',
562 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000563 ],
564 }],
565 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000566 'all_dependent_settings': {
567 'link_settings': {
568 'xcode_settings': {
569 'OTHER_LDFLAGS': [
570 '-framework Cocoa',
571 '-framework Foundation',
572 '-framework IOKit',
573 '-framework Security',
574 '-framework SystemConfiguration',
575 ],
576 },
577 },
578 },
579 'conditions': [
580 ['target_arch=="ia32"', {
581 'all_dependent_settings': {
582 'link_settings': {
583 'xcode_settings': {
584 'OTHER_LDFLAGS': [
585 '-framework Carbon',
586 ],
587 },
588 },
589 },
590 }],
591 ],
592 }, {
593 'sources!': [
594 'macasyncsocket.cc',
595 'macasyncsocket.h',
596 'maccocoasocketserver.h',
597 'maccocoasocketserver.mm',
598 'macconversion.cc',
599 'macconversion.h',
600 'macsocketserver.cc',
601 'macsocketserver.h',
602 'macutils.cc',
603 'macutils.h',
604 'macwindowpicker.cc',
605 'macwindowpicker.h',
606 ],
607 }],
608 ['OS=="win"', {
609 'link_settings': {
610 'libraries': [
611 '-lcrypt32.lib',
612 '-liphlpapi.lib',
613 '-lsecur32.lib',
614 ],
615 },
616 # Suppress warnings about WIN32_LEAN_AND_MEAN.
617 'msvs_disabled_warnings': [4005, 4703],
618 'defines': [
619 '_CRT_NONSTDC_NO_DEPRECATE',
620 ],
621 }, {
622 'sources/': [
623 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
624 ],
625 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000626 'winping.cc',
627 'winping.h',
628 'winfirewall.cc',
629 'winfirewall.h',
630 ],
631 }],
632 ['os_posix==0', {
633 'sources!': [
634 'latebindingsymboltable.cc',
635 'latebindingsymboltable.h',
636 'posix.cc',
637 'posix.h',
638 'unixfilesystem.cc',
639 'unixfilesystem.h',
640 ],
641 }, {
642 'configurations': {
643 'Debug_Base': {
644 'defines': [
645 # Chromium's build/common.gypi defines this for all posix
646 # _except_ for ios & mac. We want it there as well, e.g.
647 # because ASSERT and friends trigger off of it.
648 '_DEBUG',
649 ],
650 },
651 }
652 }],
653 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
654 'defines': [
655 'CARBON_DEPRECATED=YES',
656 ],
657 }],
658 ['OS!="ios" and OS!="mac"', {
659 'sources!': [
660 'scoped_autorelease_pool.mm',
661 ],
662 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000663 ['OS!="linux" and OS!="android"', {
664 'sources!': [
665 'linux.cc',
666 'linux.h',
667 ],
668 }],
torbjorng07d09362015-09-22 11:58:04 -0700669 ['build_ssl==1', {
670 'dependencies': [
671 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
672 ],
673 }, {
674 'include_dirs': [
675 '<(ssl_root)',
676 ],
677 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000678 ],
679 },
680 ],
681}