blob: 1158984e1026585583e059f53a869e804b6c75cf [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 'constructormagic.h',
399 'dbus.cc',
400 'dbus.h',
401 'diskcache_win32.cc',
402 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000403 'fileutils_mock.h',
404 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000405 'httpserver.cc',
406 'httpserver.h',
407 'json.cc',
408 'json.h',
409 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000410 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000411 'libdbusglibsymboltable.cc',
412 'libdbusglibsymboltable.h',
413 'linuxfdwalk.c',
414 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000415 'x11windowpicker.cc',
416 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000417 'logging.cc',
418 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700419 'logsinks.cc',
420 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000421 'macasyncsocket.cc',
422 'macasyncsocket.h',
423 'maccocoasocketserver.h',
424 'maccocoasocketserver.mm',
425 'macsocketserver.cc',
426 'macsocketserver.h',
427 'macwindowpicker.cc',
428 'macwindowpicker.h',
429 'mathutils.h',
430 'multipart.cc',
431 'multipart.h',
432 'natserver.cc',
433 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000434 'natsocketfactory.cc',
435 'natsocketfactory.h',
436 'nattypes.cc',
437 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000438 'optionsfile.cc',
439 'optionsfile.h',
440 'posix.cc',
441 'posix.h',
442 'profiler.cc',
443 'profiler.h',
444 'proxyserver.cc',
445 'proxyserver.h',
446 'refcount.h',
447 'referencecountedsingletonfactory.h',
448 'rollingaccumulator.h',
449 'safe_conversions.h',
450 'safe_conversions_impl.h',
451 'scopedptrcollection.h',
452 'scoped_ref_ptr.h',
453 'sec_buffer.h',
454 'sharedexclusivelock.cc',
455 'sharedexclusivelock.h',
456 'sslconfig.h',
457 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000458 'testbase64.h',
459 'testclient.cc',
460 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000461 'transformadapter.cc',
462 'transformadapter.h',
463 'versionparsing.cc',
464 'versionparsing.h',
465 'virtualsocketserver.cc',
466 'virtualsocketserver.h',
467 'win32regkey.cc',
468 'win32regkey.h',
469 'win32socketinit.cc',
470 'win32socketinit.h',
471 'win32socketserver.cc',
472 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000473 'window.h',
474 'windowpickerfactory.h',
475 'windowpicker.h',
476 ],
477 'defines': [
478 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000479 ],
480 'direct_dependent_settings': {
481 'defines': [
482 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000483 ],
484 },
485 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000486 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000487 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000488 'dependencies': [
489 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
490 ],
491 }, {
492 'include_dirs': [
493 '<(json_root)',
494 ],
495 'defines': [
496 # When defined changes the include path for json.h to where it
497 # is expected to be when building json outside of the standalone
498 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000499 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000500 ],
501 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000502 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000503 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000504 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000505 'link_settings': {
506 'libraries': [
507 '-llog',
508 '-lGLESv2',
509 ],
510 },
511 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000512 'sources!': [
513 'ifaddrs-android.cc',
514 'ifaddrs-android.h',
515 ],
516 }],
517 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200518 'sources/': [
519 ['include', 'macconversion.*'],
520 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000521 'all_dependent_settings': {
522 'xcode_settings': {
523 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700524 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000525 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000526 '-framework Security',
527 '-framework SystemConfiguration',
528 '-framework UIKit',
529 ],
530 },
531 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000532 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000533 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000534 'link_settings': {
535 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000536 '-ldl',
537 '-lrt',
538 '-lXext',
539 '-lX11',
540 '-lXcomposite',
541 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000542 ],
543 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000544 }, {
545 'sources!': [
546 'x11windowpicker.cc',
547 'x11windowpicker.h',
548 ],
549 }],
550 ['OS=="linux"', {
551 'link_settings': {
552 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000553 '-ldl',
554 '-lrt',
555 ],
556 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000557 }, {
558 'sources!': [
559 'dbus.cc',
560 'dbus.h',
561 'libdbusglibsymboltable.cc',
562 'libdbusglibsymboltable.h',
563 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000564 ],
565 }],
566 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000567 'all_dependent_settings': {
568 'link_settings': {
569 'xcode_settings': {
570 'OTHER_LDFLAGS': [
571 '-framework Cocoa',
572 '-framework Foundation',
573 '-framework IOKit',
574 '-framework Security',
575 '-framework SystemConfiguration',
576 ],
577 },
578 },
579 },
580 'conditions': [
581 ['target_arch=="ia32"', {
582 'all_dependent_settings': {
583 'link_settings': {
584 'xcode_settings': {
585 'OTHER_LDFLAGS': [
586 '-framework Carbon',
587 ],
588 },
589 },
590 },
591 }],
592 ],
593 }, {
594 'sources!': [
595 'macasyncsocket.cc',
596 'macasyncsocket.h',
597 'maccocoasocketserver.h',
598 'maccocoasocketserver.mm',
599 'macconversion.cc',
600 'macconversion.h',
601 'macsocketserver.cc',
602 'macsocketserver.h',
603 'macutils.cc',
604 'macutils.h',
605 'macwindowpicker.cc',
606 'macwindowpicker.h',
607 ],
608 }],
609 ['OS=="win"', {
610 'link_settings': {
611 'libraries': [
612 '-lcrypt32.lib',
613 '-liphlpapi.lib',
614 '-lsecur32.lib',
615 ],
616 },
617 # Suppress warnings about WIN32_LEAN_AND_MEAN.
618 'msvs_disabled_warnings': [4005, 4703],
619 'defines': [
620 '_CRT_NONSTDC_NO_DEPRECATE',
621 ],
622 }, {
623 'sources/': [
624 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
625 ],
626 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000627 'winping.cc',
628 'winping.h',
629 'winfirewall.cc',
630 'winfirewall.h',
631 ],
632 }],
633 ['os_posix==0', {
634 'sources!': [
635 'latebindingsymboltable.cc',
636 'latebindingsymboltable.h',
637 'posix.cc',
638 'posix.h',
639 'unixfilesystem.cc',
640 'unixfilesystem.h',
641 ],
642 }, {
643 'configurations': {
644 'Debug_Base': {
645 'defines': [
646 # Chromium's build/common.gypi defines this for all posix
647 # _except_ for ios & mac. We want it there as well, e.g.
648 # because ASSERT and friends trigger off of it.
649 '_DEBUG',
650 ],
651 },
652 }
653 }],
654 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
655 'defines': [
656 'CARBON_DEPRECATED=YES',
657 ],
658 }],
659 ['OS!="ios" and OS!="mac"', {
660 'sources!': [
661 'scoped_autorelease_pool.mm',
662 ],
663 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000664 ['OS!="linux" and OS!="android"', {
665 'sources!': [
666 'linux.cc',
667 'linux.h',
668 ],
669 }],
torbjorng07d09362015-09-22 11:58:04 -0700670 ['build_ssl==1', {
671 'dependencies': [
672 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
673 ],
674 }, {
675 'include_dirs': [
676 '<(ssl_root)',
677 ],
678 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000679 ],
680 },
681 ],
682}