blob: c15c1db49a5fe1a29761389dace39bc9376084c3 [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',
Peter Boström2ee24392015-06-22 07:57:16 +020065 'ratetracker.cc',
66 'ratetracker.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000067 'safe_conversions.h',
68 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +020069 'scoped_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000070 'stringencode.cc',
71 'stringencode.h',
72 'stringutils.cc',
73 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -070074 'systeminfo.cc',
75 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000076 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000077 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000078 'thread_checker.h',
79 'thread_checker_impl.cc',
80 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000081 'timeutils.cc',
82 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000083 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070084 ],
85 'conditions': [
86 ['build_with_chromium==1', {
87 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -070088 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -070089 ],
90 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +020091 'logging.cc',
92 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -070093 ],
Noah Richards915590e2015-04-22 15:43:08 -070094 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000095 ],
96 },
97 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000098 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000099 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000100 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000101 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000102 'rtc_base_approved',
103 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000104 'defines': [
105 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700106 'SSL_USE_OPENSSL',
107 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000108 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000109 ],
110 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000111 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000112 'asyncfile.cc',
113 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000114 'asyncinvoker.cc',
115 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000116 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000117 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000118 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000119 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000120 'asyncresolverinterface.h',
121 'asyncsocket.cc',
122 'asyncsocket.h',
123 'asynctcpsocket.cc',
124 'asynctcpsocket.h',
125 'asyncudpsocket.cc',
126 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000127 'autodetectproxy.cc',
128 'autodetectproxy.h',
129 'bandwidthsmoother.cc',
130 'bandwidthsmoother.h',
131 'base64.cc',
132 'base64.h',
133 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000134 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000135 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000136 'common.cc',
137 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000138 'crc32.cc',
139 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000140 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000141 'cryptstring.h',
142 'dbus.cc',
143 'dbus.h',
144 'diskcache.cc',
145 'diskcache.h',
146 'diskcache_win32.cc',
147 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700148 'filerotatingstream.cc',
149 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000150 'fileutils.cc',
151 'fileutils.h',
152 'fileutils_mock.h',
153 'firewallsocketserver.cc',
154 'firewallsocketserver.h',
155 'flags.cc',
156 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000157 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000158 'gunit_prod.h',
159 'helpers.cc',
160 'helpers.h',
161 'httpbase.cc',
162 'httpbase.h',
163 'httpclient.cc',
164 'httpclient.h',
165 'httpcommon-inl.h',
166 'httpcommon.cc',
167 'httpcommon.h',
168 'httprequest.cc',
169 'httprequest.h',
170 'httpserver.cc',
171 'httpserver.h',
172 'ifaddrs-android.cc',
173 'ifaddrs-android.h',
174 'iosfilesystem.mm',
175 'ipaddress.cc',
176 'ipaddress.h',
177 'json.cc',
178 'json.h',
179 'latebindingsymboltable.cc',
180 'latebindingsymboltable.h',
181 'libdbusglibsymboltable.cc',
182 'libdbusglibsymboltable.h',
183 'linux.cc',
184 'linux.h',
185 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000186 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000187 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700188 'logsinks.cc',
189 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000190 'macasyncsocket.cc',
191 'macasyncsocket.h',
192 'maccocoasocketserver.h',
193 'maccocoasocketserver.mm',
194 'maccocoathreadhelper.h',
195 'maccocoathreadhelper.mm',
196 'macconversion.cc',
197 'macconversion.h',
198 'macsocketserver.cc',
199 'macsocketserver.h',
200 'macutils.cc',
201 'macutils.h',
202 'macwindowpicker.cc',
203 'macwindowpicker.h',
204 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000205 'messagedigest.cc',
206 'messagedigest.h',
207 'messagehandler.cc',
208 'messagehandler.h',
209 'messagequeue.cc',
210 'messagequeue.h',
211 'multipart.cc',
212 'multipart.h',
213 'natserver.cc',
214 'natserver.h',
215 'natsocketfactory.cc',
216 'natsocketfactory.h',
217 'nattypes.cc',
218 'nattypes.h',
219 'nethelpers.cc',
220 'nethelpers.h',
221 'network.cc',
222 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700223 'networkmonitor.cc',
224 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000225 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700226 'openssl.h',
227 'openssladapter.cc',
228 'openssladapter.h',
229 'openssldigest.cc',
230 'openssldigest.h',
231 'opensslidentity.cc',
232 'opensslidentity.h',
233 'opensslstreamadapter.cc',
234 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000235 'optionsfile.cc',
236 'optionsfile.h',
237 'pathutils.cc',
238 'pathutils.h',
239 'physicalsocketserver.cc',
240 'physicalsocketserver.h',
241 'posix.cc',
242 'posix.h',
243 'profiler.cc',
244 'profiler.h',
245 'proxydetect.cc',
246 'proxydetect.h',
247 'proxyinfo.cc',
248 'proxyinfo.h',
249 'proxyserver.cc',
250 'proxyserver.h',
251 'ratelimiter.cc',
252 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000253 'refcount.h',
254 'referencecountedsingletonfactory.h',
255 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200256 'rtccertificate.cc',
257 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000258 'scoped_autorelease_pool.h',
259 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000260 'scoped_ref_ptr.h',
261 'scopedptrcollection.h',
262 'sec_buffer.h',
263 'sha1.cc',
264 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000265 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000266 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000267 'sharedexclusivelock.cc',
268 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000269 'signalthread.cc',
270 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000271 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000272 'sigslot.h',
273 'sigslotrepeater.h',
274 'socket.h',
275 'socketadapters.cc',
276 'socketadapters.h',
277 'socketaddress.cc',
278 'socketaddress.h',
279 'socketaddresspair.cc',
280 'socketaddresspair.h',
281 'socketfactory.h',
282 'socketpool.cc',
283 'socketpool.h',
284 'socketserver.h',
285 'socketstream.cc',
286 'socketstream.h',
287 'ssladapter.cc',
288 'ssladapter.h',
289 'sslconfig.h',
290 'sslfingerprint.cc',
291 'sslfingerprint.h',
292 'sslidentity.cc',
293 'sslidentity.h',
294 'sslroots.h',
295 'sslsocketfactory.cc',
296 'sslsocketfactory.h',
297 'sslstreamadapter.cc',
298 'sslstreamadapter.h',
299 'sslstreamadapterhelper.cc',
300 'sslstreamadapterhelper.h',
301 'stream.cc',
302 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000303 'task.cc',
304 'task.h',
305 'taskparent.cc',
306 'taskparent.h',
307 'taskrunner.cc',
308 'taskrunner.h',
309 'testclient.cc',
310 'testclient.h',
311 'thread.cc',
312 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000313 'timing.cc',
314 'timing.h',
315 'transformadapter.cc',
316 'transformadapter.h',
317 'unixfilesystem.cc',
318 'unixfilesystem.h',
319 'urlencode.cc',
320 'urlencode.h',
321 'versionparsing.cc',
322 'versionparsing.h',
323 'virtualsocketserver.cc',
324 'virtualsocketserver.h',
325 'win32.cc',
326 'win32.h',
327 'win32filesystem.cc',
328 'win32filesystem.h',
329 'win32regkey.cc',
330 'win32regkey.h',
331 'win32securityerrors.cc',
332 'win32socketinit.cc',
333 'win32socketinit.h',
334 'win32socketserver.cc',
335 'win32socketserver.h',
336 'win32window.cc',
337 'win32window.h',
338 'win32windowpicker.cc',
339 'win32windowpicker.h',
340 'window.h',
341 'windowpicker.h',
342 'windowpickerfactory.h',
343 'winfirewall.cc',
344 'winfirewall.h',
345 'winping.cc',
346 'winping.h',
347 'worker.cc',
348 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000349 'x11windowpicker.cc',
350 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000351 ],
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',
torbjorng07d09362015-09-22 11:58:04 -0700367 'SSL_USE_OPENSSL',
368 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000369 ],
370 },
371 'include_dirs': [
372 '../../third_party/jsoncpp/overrides/include',
373 '../../third_party/jsoncpp/source/include',
374 ],
375 'conditions': [
376 ['build_with_chromium==1', {
377 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700378 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000379 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000380 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700381 'sources': [
henrikg9dff0ba2015-10-02 10:07:50 -0700382 '../../webrtc_overrides/webrtc/base/logging.cc',
383 '../../webrtc_overrides/webrtc/base/logging.h',
henrikg990d57d2015-10-05 01:22:26 -0700384 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700385 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000387 'atomicops.h',
388 'bandwidthsmoother.cc',
389 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000390 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000391 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000392 'constructormagic.h',
393 'dbus.cc',
394 'dbus.h',
395 'diskcache_win32.cc',
396 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000397 'fileutils_mock.h',
398 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000399 'httpserver.cc',
400 'httpserver.h',
401 'json.cc',
402 'json.h',
403 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000404 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000405 'libdbusglibsymboltable.cc',
406 'libdbusglibsymboltable.h',
407 'linuxfdwalk.c',
408 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000409 'x11windowpicker.cc',
410 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000411 'logging.cc',
412 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700413 'logsinks.cc',
414 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000415 'macasyncsocket.cc',
416 'macasyncsocket.h',
417 'maccocoasocketserver.h',
418 'maccocoasocketserver.mm',
419 'macsocketserver.cc',
420 'macsocketserver.h',
421 'macwindowpicker.cc',
422 'macwindowpicker.h',
423 'mathutils.h',
424 'multipart.cc',
425 'multipart.h',
426 'natserver.cc',
427 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000428 'natsocketfactory.cc',
429 'natsocketfactory.h',
430 'nattypes.cc',
431 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000432 'optionsfile.cc',
433 'optionsfile.h',
434 'posix.cc',
435 'posix.h',
436 'profiler.cc',
437 'profiler.h',
438 'proxyserver.cc',
439 'proxyserver.h',
440 'refcount.h',
441 'referencecountedsingletonfactory.h',
442 'rollingaccumulator.h',
443 'safe_conversions.h',
444 'safe_conversions_impl.h',
445 'scopedptrcollection.h',
446 'scoped_ref_ptr.h',
447 'sec_buffer.h',
448 'sharedexclusivelock.cc',
449 'sharedexclusivelock.h',
450 'sslconfig.h',
451 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000452 'testbase64.h',
453 'testclient.cc',
454 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000455 'transformadapter.cc',
456 'transformadapter.h',
457 'versionparsing.cc',
458 'versionparsing.h',
459 'virtualsocketserver.cc',
460 'virtualsocketserver.h',
461 'win32regkey.cc',
462 'win32regkey.h',
463 'win32socketinit.cc',
464 'win32socketinit.h',
465 'win32socketserver.cc',
466 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000467 'window.h',
468 'windowpickerfactory.h',
469 'windowpicker.h',
470 ],
471 'defines': [
472 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000473 ],
474 'direct_dependent_settings': {
475 'defines': [
476 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000477 ],
478 },
479 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000480 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000481 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000482 'dependencies': [
483 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
484 ],
485 }, {
486 'include_dirs': [
487 '<(json_root)',
488 ],
489 'defines': [
490 # When defined changes the include path for json.h to where it
491 # is expected to be when building json outside of the standalone
492 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000493 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000494 ],
495 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000496 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000497 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000498 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000499 'link_settings': {
500 'libraries': [
501 '-llog',
502 '-lGLESv2',
503 ],
504 },
505 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000506 'sources!': [
507 'ifaddrs-android.cc',
508 'ifaddrs-android.h',
509 ],
510 }],
511 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200512 'sources/': [
513 ['include', 'macconversion.*'],
514 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000515 'all_dependent_settings': {
516 'xcode_settings': {
517 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700518 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000519 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 '-framework Security',
521 '-framework SystemConfiguration',
522 '-framework UIKit',
523 ],
524 },
525 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000526 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000527 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000528 'link_settings': {
529 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000530 '-ldl',
531 '-lrt',
532 '-lXext',
533 '-lX11',
534 '-lXcomposite',
535 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000536 ],
537 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000538 }, {
539 'sources!': [
540 'x11windowpicker.cc',
541 'x11windowpicker.h',
542 ],
543 }],
544 ['OS=="linux"', {
545 'link_settings': {
546 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000547 '-ldl',
548 '-lrt',
549 ],
550 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000551 }, {
552 'sources!': [
553 'dbus.cc',
554 'dbus.h',
555 'libdbusglibsymboltable.cc',
556 'libdbusglibsymboltable.h',
557 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000558 ],
559 }],
560 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000561 'all_dependent_settings': {
562 'link_settings': {
563 'xcode_settings': {
564 'OTHER_LDFLAGS': [
565 '-framework Cocoa',
566 '-framework Foundation',
567 '-framework IOKit',
568 '-framework Security',
569 '-framework SystemConfiguration',
570 ],
571 },
572 },
573 },
574 'conditions': [
575 ['target_arch=="ia32"', {
576 'all_dependent_settings': {
577 'link_settings': {
578 'xcode_settings': {
579 'OTHER_LDFLAGS': [
580 '-framework Carbon',
581 ],
582 },
583 },
584 },
585 }],
586 ],
587 }, {
588 'sources!': [
589 'macasyncsocket.cc',
590 'macasyncsocket.h',
591 'maccocoasocketserver.h',
592 'maccocoasocketserver.mm',
593 'macconversion.cc',
594 'macconversion.h',
595 'macsocketserver.cc',
596 'macsocketserver.h',
597 'macutils.cc',
598 'macutils.h',
599 'macwindowpicker.cc',
600 'macwindowpicker.h',
601 ],
602 }],
603 ['OS=="win"', {
604 'link_settings': {
605 'libraries': [
606 '-lcrypt32.lib',
607 '-liphlpapi.lib',
608 '-lsecur32.lib',
609 ],
610 },
611 # Suppress warnings about WIN32_LEAN_AND_MEAN.
612 'msvs_disabled_warnings': [4005, 4703],
613 'defines': [
614 '_CRT_NONSTDC_NO_DEPRECATE',
615 ],
616 }, {
617 'sources/': [
618 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
619 ],
620 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000621 'winping.cc',
622 'winping.h',
623 'winfirewall.cc',
624 'winfirewall.h',
625 ],
626 }],
627 ['os_posix==0', {
628 'sources!': [
629 'latebindingsymboltable.cc',
630 'latebindingsymboltable.h',
631 'posix.cc',
632 'posix.h',
633 'unixfilesystem.cc',
634 'unixfilesystem.h',
635 ],
636 }, {
637 'configurations': {
638 'Debug_Base': {
639 'defines': [
640 # Chromium's build/common.gypi defines this for all posix
641 # _except_ for ios & mac. We want it there as well, e.g.
642 # because ASSERT and friends trigger off of it.
643 '_DEBUG',
644 ],
645 },
646 }
647 }],
648 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
649 'defines': [
650 'CARBON_DEPRECATED=YES',
651 ],
652 }],
653 ['OS!="ios" and OS!="mac"', {
654 'sources!': [
655 'scoped_autorelease_pool.mm',
656 ],
657 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000658 ['OS!="linux" and OS!="android"', {
659 'sources!': [
660 'linux.cc',
661 'linux.h',
662 ],
663 }],
torbjorng07d09362015-09-22 11:58:04 -0700664 ['build_ssl==1', {
665 'dependencies': [
666 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
667 ],
668 }, {
669 'include_dirs': [
670 '<(ssl_root)',
671 ],
672 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000673 ],
674 },
675 ],
676}