blob: 59f96371ea625daecb88577dbfdb6f8de7569d6c [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', {
88 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -070089 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -070090 ],
91 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +020092 'logging.cc',
93 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -070094 ],
Noah Richards915590e2015-04-22 15:43:08 -070095 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000096 ],
97 },
98 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000099 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000100 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000101 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000102 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000103 'rtc_base_approved',
104 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000105 'defines': [
106 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700107 'SSL_USE_OPENSSL',
108 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000109 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000110 ],
111 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000112 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000113 'asyncfile.cc',
114 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000115 'asyncinvoker.cc',
116 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000117 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000118 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000119 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000120 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000121 'asyncresolverinterface.h',
122 'asyncsocket.cc',
123 'asyncsocket.h',
124 'asynctcpsocket.cc',
125 'asynctcpsocket.h',
126 'asyncudpsocket.cc',
127 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000128 'autodetectproxy.cc',
129 'autodetectproxy.h',
130 'bandwidthsmoother.cc',
131 'bandwidthsmoother.h',
132 'base64.cc',
133 'base64.h',
134 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000135 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000136 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000137 'common.cc',
138 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000139 'crc32.cc',
140 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000141 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000142 'cryptstring.h',
143 'dbus.cc',
144 'dbus.h',
145 'diskcache.cc',
146 'diskcache.h',
147 'diskcache_win32.cc',
148 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700149 'filerotatingstream.cc',
150 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000151 'fileutils.cc',
152 'fileutils.h',
153 'fileutils_mock.h',
154 'firewallsocketserver.cc',
155 'firewallsocketserver.h',
156 'flags.cc',
157 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000158 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000159 'gunit_prod.h',
160 'helpers.cc',
161 'helpers.h',
162 'httpbase.cc',
163 'httpbase.h',
164 'httpclient.cc',
165 'httpclient.h',
166 'httpcommon-inl.h',
167 'httpcommon.cc',
168 'httpcommon.h',
169 'httprequest.cc',
170 'httprequest.h',
171 'httpserver.cc',
172 'httpserver.h',
173 'ifaddrs-android.cc',
174 'ifaddrs-android.h',
175 'iosfilesystem.mm',
176 'ipaddress.cc',
177 'ipaddress.h',
178 'json.cc',
179 'json.h',
180 'latebindingsymboltable.cc',
181 'latebindingsymboltable.h',
182 'libdbusglibsymboltable.cc',
183 'libdbusglibsymboltable.h',
184 'linux.cc',
185 'linux.h',
186 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000187 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000188 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700189 'logsinks.cc',
190 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000191 'macasyncsocket.cc',
192 'macasyncsocket.h',
193 'maccocoasocketserver.h',
194 'maccocoasocketserver.mm',
195 'maccocoathreadhelper.h',
196 'maccocoathreadhelper.mm',
197 'macconversion.cc',
198 'macconversion.h',
199 'macsocketserver.cc',
200 'macsocketserver.h',
201 'macutils.cc',
202 'macutils.h',
203 'macwindowpicker.cc',
204 'macwindowpicker.h',
205 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000206 'messagedigest.cc',
207 'messagedigest.h',
208 'messagehandler.cc',
209 'messagehandler.h',
210 'messagequeue.cc',
211 'messagequeue.h',
212 'multipart.cc',
213 'multipart.h',
214 'natserver.cc',
215 'natserver.h',
216 'natsocketfactory.cc',
217 'natsocketfactory.h',
218 'nattypes.cc',
219 'nattypes.h',
220 'nethelpers.cc',
221 'nethelpers.h',
222 'network.cc',
223 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700224 'networkmonitor.cc',
225 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000226 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700227 'openssl.h',
228 'openssladapter.cc',
229 'openssladapter.h',
230 'openssldigest.cc',
231 'openssldigest.h',
232 'opensslidentity.cc',
233 'opensslidentity.h',
234 'opensslstreamadapter.cc',
235 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000236 'optionsfile.cc',
237 'optionsfile.h',
238 'pathutils.cc',
239 'pathutils.h',
240 'physicalsocketserver.cc',
241 'physicalsocketserver.h',
242 'posix.cc',
243 'posix.h',
244 'profiler.cc',
245 'profiler.h',
246 'proxydetect.cc',
247 'proxydetect.h',
248 'proxyinfo.cc',
249 'proxyinfo.h',
250 'proxyserver.cc',
251 'proxyserver.h',
252 'ratelimiter.cc',
253 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000254 'refcount.h',
255 'referencecountedsingletonfactory.h',
256 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200257 'rtccertificate.cc',
258 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000259 'scoped_autorelease_pool.h',
260 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000261 'scoped_ref_ptr.h',
262 'scopedptrcollection.h',
263 'sec_buffer.h',
264 'sha1.cc',
265 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000266 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000267 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000268 'sharedexclusivelock.cc',
269 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000270 'signalthread.cc',
271 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000272 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000273 'sigslot.h',
274 'sigslotrepeater.h',
275 'socket.h',
276 'socketadapters.cc',
277 'socketadapters.h',
278 'socketaddress.cc',
279 'socketaddress.h',
280 'socketaddresspair.cc',
281 'socketaddresspair.h',
282 'socketfactory.h',
283 'socketpool.cc',
284 'socketpool.h',
285 'socketserver.h',
286 'socketstream.cc',
287 'socketstream.h',
288 'ssladapter.cc',
289 'ssladapter.h',
290 'sslconfig.h',
291 'sslfingerprint.cc',
292 'sslfingerprint.h',
293 'sslidentity.cc',
294 'sslidentity.h',
295 'sslroots.h',
296 'sslsocketfactory.cc',
297 'sslsocketfactory.h',
298 'sslstreamadapter.cc',
299 'sslstreamadapter.h',
300 'sslstreamadapterhelper.cc',
301 'sslstreamadapterhelper.h',
302 'stream.cc',
303 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000304 'task.cc',
305 'task.h',
306 'taskparent.cc',
307 'taskparent.h',
308 'taskrunner.cc',
309 'taskrunner.h',
310 'testclient.cc',
311 'testclient.h',
312 'thread.cc',
313 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000314 'timing.cc',
315 'timing.h',
316 'transformadapter.cc',
317 'transformadapter.h',
318 'unixfilesystem.cc',
319 'unixfilesystem.h',
320 'urlencode.cc',
321 'urlencode.h',
322 'versionparsing.cc',
323 'versionparsing.h',
324 'virtualsocketserver.cc',
325 'virtualsocketserver.h',
326 'win32.cc',
327 'win32.h',
328 'win32filesystem.cc',
329 'win32filesystem.h',
330 'win32regkey.cc',
331 'win32regkey.h',
332 'win32securityerrors.cc',
333 'win32socketinit.cc',
334 'win32socketinit.h',
335 'win32socketserver.cc',
336 'win32socketserver.h',
337 'win32window.cc',
338 'win32window.h',
339 'win32windowpicker.cc',
340 'win32windowpicker.h',
341 'window.h',
342 'windowpicker.h',
343 'windowpickerfactory.h',
344 'winfirewall.cc',
345 'winfirewall.h',
346 'winping.cc',
347 'winping.h',
348 'worker.cc',
349 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000350 'x11windowpicker.cc',
351 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000352 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000353 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000354 # these flags.
355 'cflags!': [
356 '-Wextra',
357 '-Wall',
358 ],
359 'cflags_cc!': [
360 '-Wnon-virtual-dtor',
361 ],
362 'direct_dependent_settings': {
363 'cflags_cc!': [
364 '-Wnon-virtual-dtor',
365 ],
366 'defines': [
367 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700368 'SSL_USE_OPENSSL',
369 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000370 ],
371 },
372 'include_dirs': [
373 '../../third_party/jsoncpp/overrides/include',
374 '../../third_party/jsoncpp/source/include',
375 ],
376 'conditions': [
377 ['build_with_chromium==1', {
378 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700379 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000380 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000381 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700382 'sources': [
henrikg9dff0ba2015-10-02 10:07:50 -0700383 '../../webrtc_overrides/webrtc/base/logging.cc',
384 '../../webrtc_overrides/webrtc/base/logging.h',
henrikg990d57d2015-10-05 01:22:26 -0700385 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700386 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000387 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000388 'atomicops.h',
389 'bandwidthsmoother.cc',
390 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000391 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000392 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000393 'constructormagic.h',
394 'dbus.cc',
395 'dbus.h',
396 'diskcache_win32.cc',
397 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000398 'fileutils_mock.h',
399 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000400 'httpserver.cc',
401 'httpserver.h',
402 'json.cc',
403 'json.h',
404 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000405 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000406 'libdbusglibsymboltable.cc',
407 'libdbusglibsymboltable.h',
408 'linuxfdwalk.c',
409 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000410 'x11windowpicker.cc',
411 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000412 'logging.cc',
413 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700414 'logsinks.cc',
415 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000416 'macasyncsocket.cc',
417 'macasyncsocket.h',
418 'maccocoasocketserver.h',
419 'maccocoasocketserver.mm',
420 'macsocketserver.cc',
421 'macsocketserver.h',
422 'macwindowpicker.cc',
423 'macwindowpicker.h',
424 'mathutils.h',
425 'multipart.cc',
426 'multipart.h',
427 'natserver.cc',
428 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000429 'natsocketfactory.cc',
430 'natsocketfactory.h',
431 'nattypes.cc',
432 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000433 'optionsfile.cc',
434 'optionsfile.h',
435 'posix.cc',
436 'posix.h',
437 'profiler.cc',
438 'profiler.h',
439 'proxyserver.cc',
440 'proxyserver.h',
441 'refcount.h',
442 'referencecountedsingletonfactory.h',
443 'rollingaccumulator.h',
444 'safe_conversions.h',
445 'safe_conversions_impl.h',
446 'scopedptrcollection.h',
447 'scoped_ref_ptr.h',
448 'sec_buffer.h',
449 'sharedexclusivelock.cc',
450 'sharedexclusivelock.h',
451 'sslconfig.h',
452 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000453 'testbase64.h',
454 'testclient.cc',
455 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000456 'transformadapter.cc',
457 'transformadapter.h',
458 'versionparsing.cc',
459 'versionparsing.h',
460 'virtualsocketserver.cc',
461 'virtualsocketserver.h',
462 'win32regkey.cc',
463 'win32regkey.h',
464 'win32socketinit.cc',
465 'win32socketinit.h',
466 'win32socketserver.cc',
467 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000468 'window.h',
469 'windowpickerfactory.h',
470 'windowpicker.h',
471 ],
472 'defines': [
473 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000474 ],
475 'direct_dependent_settings': {
476 'defines': [
477 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000478 ],
479 },
480 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000481 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000482 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000483 'dependencies': [
484 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
485 ],
486 }, {
487 'include_dirs': [
488 '<(json_root)',
489 ],
490 'defines': [
491 # When defined changes the include path for json.h to where it
492 # is expected to be when building json outside of the standalone
493 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000494 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000495 ],
496 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000497 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000498 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000499 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000500 'link_settings': {
501 'libraries': [
502 '-llog',
503 '-lGLESv2',
504 ],
505 },
506 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000507 'sources!': [
508 'ifaddrs-android.cc',
509 'ifaddrs-android.h',
510 ],
511 }],
512 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200513 'sources/': [
514 ['include', 'macconversion.*'],
515 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000516 'all_dependent_settings': {
517 'xcode_settings': {
518 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700519 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000521 '-framework Security',
522 '-framework SystemConfiguration',
523 '-framework UIKit',
524 ],
525 },
526 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000527 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000528 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000529 'link_settings': {
530 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000531 '-ldl',
532 '-lrt',
533 '-lXext',
534 '-lX11',
535 '-lXcomposite',
536 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000537 ],
538 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000539 }, {
540 'sources!': [
541 'x11windowpicker.cc',
542 'x11windowpicker.h',
543 ],
544 }],
545 ['OS=="linux"', {
546 'link_settings': {
547 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000548 '-ldl',
549 '-lrt',
550 ],
551 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000552 }, {
553 'sources!': [
554 'dbus.cc',
555 'dbus.h',
556 'libdbusglibsymboltable.cc',
557 'libdbusglibsymboltable.h',
558 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000559 ],
560 }],
561 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000562 'all_dependent_settings': {
563 'link_settings': {
564 'xcode_settings': {
565 'OTHER_LDFLAGS': [
566 '-framework Cocoa',
567 '-framework Foundation',
568 '-framework IOKit',
569 '-framework Security',
570 '-framework SystemConfiguration',
571 ],
572 },
573 },
574 },
575 'conditions': [
576 ['target_arch=="ia32"', {
577 'all_dependent_settings': {
578 'link_settings': {
579 'xcode_settings': {
580 'OTHER_LDFLAGS': [
581 '-framework Carbon',
582 ],
583 },
584 },
585 },
586 }],
587 ],
588 }, {
589 'sources!': [
590 'macasyncsocket.cc',
591 'macasyncsocket.h',
592 'maccocoasocketserver.h',
593 'maccocoasocketserver.mm',
594 'macconversion.cc',
595 'macconversion.h',
596 'macsocketserver.cc',
597 'macsocketserver.h',
598 'macutils.cc',
599 'macutils.h',
600 'macwindowpicker.cc',
601 'macwindowpicker.h',
602 ],
603 }],
604 ['OS=="win"', {
605 'link_settings': {
606 'libraries': [
607 '-lcrypt32.lib',
608 '-liphlpapi.lib',
609 '-lsecur32.lib',
610 ],
611 },
612 # Suppress warnings about WIN32_LEAN_AND_MEAN.
613 'msvs_disabled_warnings': [4005, 4703],
614 'defines': [
615 '_CRT_NONSTDC_NO_DEPRECATE',
616 ],
617 }, {
618 'sources/': [
619 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
620 ],
621 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000622 'winping.cc',
623 'winping.h',
624 'winfirewall.cc',
625 'winfirewall.h',
626 ],
627 }],
628 ['os_posix==0', {
629 'sources!': [
630 'latebindingsymboltable.cc',
631 'latebindingsymboltable.h',
632 'posix.cc',
633 'posix.h',
634 'unixfilesystem.cc',
635 'unixfilesystem.h',
636 ],
637 }, {
638 'configurations': {
639 'Debug_Base': {
640 'defines': [
641 # Chromium's build/common.gypi defines this for all posix
642 # _except_ for ios & mac. We want it there as well, e.g.
643 # because ASSERT and friends trigger off of it.
644 '_DEBUG',
645 ],
646 },
647 }
648 }],
649 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
650 'defines': [
651 'CARBON_DEPRECATED=YES',
652 ],
653 }],
654 ['OS!="ios" and OS!="mac"', {
655 'sources!': [
656 'scoped_autorelease_pool.mm',
657 ],
658 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000659 ['OS!="linux" and OS!="android"', {
660 'sources!': [
661 'linux.cc',
662 'linux.h',
663 ],
664 }],
torbjorng07d09362015-09-22 11:58:04 -0700665 ['build_ssl==1', {
666 'dependencies': [
667 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
668 ],
669 }, {
670 'include_dirs': [
671 '<(ssl_root)',
672 ],
673 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000674 ],
675 },
676 ],
677}