blob: d8232a4c25a97413921557d4ea4ec0a5684b56df [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': [
Peter Boströmff019b02015-04-30 14:16:07 +020032 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070033 'basictypes.h',
34 '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',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000060 'platform_file.cc',
61 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +020062 'platform_thread.cc',
63 'platform_thread.h',
Peter Boström2ee24392015-06-22 07:57:16 +020064 'ratetracker.cc',
65 'ratetracker.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000066 'safe_conversions.h',
67 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +020068 'scoped_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000069 'stringencode.cc',
70 'stringencode.h',
71 'stringutils.cc',
72 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -070073 'systeminfo.cc',
74 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000075 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000076 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000077 'thread_checker.h',
78 'thread_checker_impl.cc',
79 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000080 'timeutils.cc',
81 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000082 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070083 ],
84 'conditions': [
85 ['build_with_chromium==1', {
86 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -070087 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -070088 ],
89 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +020090 'logging.cc',
91 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -070092 ],
Noah Richards915590e2015-04-22 15:43:08 -070093 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000094 ],
95 },
96 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000097 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000098 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000099 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000100 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000101 'rtc_base_approved',
102 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000103 'defines': [
104 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700105 'SSL_USE_OPENSSL',
106 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000107 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000108 ],
109 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000110 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000111 'asyncfile.cc',
112 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000113 'asyncinvoker.cc',
114 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000115 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000116 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000117 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000118 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000119 'asyncresolverinterface.h',
120 'asyncsocket.cc',
121 'asyncsocket.h',
122 'asynctcpsocket.cc',
123 'asynctcpsocket.h',
124 'asyncudpsocket.cc',
125 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000126 'autodetectproxy.cc',
127 'autodetectproxy.h',
128 'bandwidthsmoother.cc',
129 'bandwidthsmoother.h',
130 'base64.cc',
131 'base64.h',
132 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000133 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000134 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000135 'common.cc',
136 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000137 'crc32.cc',
138 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000139 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000140 'cryptstring.h',
141 'dbus.cc',
142 'dbus.h',
143 'diskcache.cc',
144 'diskcache.h',
145 'diskcache_win32.cc',
146 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700147 'filerotatingstream.cc',
148 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000149 'fileutils.cc',
150 'fileutils.h',
151 'fileutils_mock.h',
152 'firewallsocketserver.cc',
153 'firewallsocketserver.h',
154 'flags.cc',
155 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000156 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000157 'gunit_prod.h',
158 'helpers.cc',
159 'helpers.h',
160 'httpbase.cc',
161 'httpbase.h',
162 'httpclient.cc',
163 'httpclient.h',
164 'httpcommon-inl.h',
165 'httpcommon.cc',
166 'httpcommon.h',
167 'httprequest.cc',
168 'httprequest.h',
169 'httpserver.cc',
170 'httpserver.h',
171 'ifaddrs-android.cc',
172 'ifaddrs-android.h',
173 'iosfilesystem.mm',
174 'ipaddress.cc',
175 'ipaddress.h',
176 'json.cc',
177 'json.h',
178 'latebindingsymboltable.cc',
179 'latebindingsymboltable.h',
180 'libdbusglibsymboltable.cc',
181 'libdbusglibsymboltable.h',
182 'linux.cc',
183 'linux.h',
184 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000185 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000186 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700187 'logsinks.cc',
188 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000189 'macasyncsocket.cc',
190 'macasyncsocket.h',
191 'maccocoasocketserver.h',
192 'maccocoasocketserver.mm',
193 'maccocoathreadhelper.h',
194 'maccocoathreadhelper.mm',
195 'macconversion.cc',
196 'macconversion.h',
197 'macsocketserver.cc',
198 'macsocketserver.h',
199 'macutils.cc',
200 'macutils.h',
201 'macwindowpicker.cc',
202 'macwindowpicker.h',
203 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'messagedigest.cc',
205 'messagedigest.h',
206 'messagehandler.cc',
207 'messagehandler.h',
208 'messagequeue.cc',
209 'messagequeue.h',
210 'multipart.cc',
211 'multipart.h',
212 'natserver.cc',
213 'natserver.h',
214 'natsocketfactory.cc',
215 'natsocketfactory.h',
216 'nattypes.cc',
217 'nattypes.h',
218 'nethelpers.cc',
219 'nethelpers.h',
220 'network.cc',
221 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000222 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700223 'openssl.h',
224 'openssladapter.cc',
225 'openssladapter.h',
226 'openssldigest.cc',
227 'openssldigest.h',
228 'opensslidentity.cc',
229 'opensslidentity.h',
230 'opensslstreamadapter.cc',
231 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000232 'optionsfile.cc',
233 'optionsfile.h',
234 'pathutils.cc',
235 'pathutils.h',
236 'physicalsocketserver.cc',
237 'physicalsocketserver.h',
238 'posix.cc',
239 'posix.h',
240 'profiler.cc',
241 'profiler.h',
242 'proxydetect.cc',
243 'proxydetect.h',
244 'proxyinfo.cc',
245 'proxyinfo.h',
246 'proxyserver.cc',
247 'proxyserver.h',
248 'ratelimiter.cc',
249 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000250 'refcount.h',
251 'referencecountedsingletonfactory.h',
252 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200253 'rtccertificate.cc',
254 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000255 'schanneladapter.cc',
256 'schanneladapter.h',
257 'scoped_autorelease_pool.h',
258 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000259 'scoped_ref_ptr.h',
260 'scopedptrcollection.h',
261 'sec_buffer.h',
262 'sha1.cc',
263 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000264 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000265 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000266 'sharedexclusivelock.cc',
267 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000268 'signalthread.cc',
269 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000270 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000271 'sigslot.h',
272 'sigslotrepeater.h',
273 'socket.h',
274 'socketadapters.cc',
275 'socketadapters.h',
276 'socketaddress.cc',
277 'socketaddress.h',
278 'socketaddresspair.cc',
279 'socketaddresspair.h',
280 'socketfactory.h',
281 'socketpool.cc',
282 'socketpool.h',
283 'socketserver.h',
284 'socketstream.cc',
285 'socketstream.h',
286 'ssladapter.cc',
287 'ssladapter.h',
288 'sslconfig.h',
289 'sslfingerprint.cc',
290 'sslfingerprint.h',
291 'sslidentity.cc',
292 'sslidentity.h',
293 'sslroots.h',
294 'sslsocketfactory.cc',
295 'sslsocketfactory.h',
296 'sslstreamadapter.cc',
297 'sslstreamadapter.h',
298 'sslstreamadapterhelper.cc',
299 'sslstreamadapterhelper.h',
300 'stream.cc',
301 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000302 'task.cc',
303 'task.h',
304 'taskparent.cc',
305 'taskparent.h',
306 'taskrunner.cc',
307 'taskrunner.h',
308 'testclient.cc',
309 'testclient.h',
310 'thread.cc',
311 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000312 'timing.cc',
313 'timing.h',
314 'transformadapter.cc',
315 'transformadapter.h',
316 'unixfilesystem.cc',
317 'unixfilesystem.h',
318 'urlencode.cc',
319 'urlencode.h',
320 'versionparsing.cc',
321 'versionparsing.h',
322 'virtualsocketserver.cc',
323 'virtualsocketserver.h',
324 'win32.cc',
325 'win32.h',
326 'win32filesystem.cc',
327 'win32filesystem.h',
328 'win32regkey.cc',
329 'win32regkey.h',
330 'win32securityerrors.cc',
331 'win32socketinit.cc',
332 'win32socketinit.h',
333 'win32socketserver.cc',
334 'win32socketserver.h',
335 'win32window.cc',
336 'win32window.h',
337 'win32windowpicker.cc',
338 'win32windowpicker.h',
339 'window.h',
340 'windowpicker.h',
341 'windowpickerfactory.h',
342 'winfirewall.cc',
343 'winfirewall.h',
344 'winping.cc',
345 'winping.h',
346 'worker.cc',
347 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000348 'x11windowpicker.cc',
349 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000350 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000351 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000352 # these flags.
353 'cflags!': [
354 '-Wextra',
355 '-Wall',
356 ],
357 'cflags_cc!': [
358 '-Wnon-virtual-dtor',
359 ],
360 'direct_dependent_settings': {
361 'cflags_cc!': [
362 '-Wnon-virtual-dtor',
363 ],
364 'defines': [
365 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700366 'SSL_USE_OPENSSL',
367 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000368 ],
369 },
370 'include_dirs': [
371 '../../third_party/jsoncpp/overrides/include',
372 '../../third_party/jsoncpp/source/include',
373 ],
374 'conditions': [
375 ['build_with_chromium==1', {
376 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700377 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000378 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000379 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700380 'sources': [
381 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
382 '../../webrtc_overrides/webrtc/base/logging.cc',
383 '../../webrtc_overrides/webrtc/base/logging.h',
384 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000385 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 'atomicops.h',
387 'bandwidthsmoother.cc',
388 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000389 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000390 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000391 'constructormagic.h',
392 'dbus.cc',
393 'dbus.h',
394 'diskcache_win32.cc',
395 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000396 'fileutils_mock.h',
397 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000398 'httpserver.cc',
399 'httpserver.h',
400 'json.cc',
401 'json.h',
402 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000403 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000404 'libdbusglibsymboltable.cc',
405 'libdbusglibsymboltable.h',
406 'linuxfdwalk.c',
407 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000408 'x11windowpicker.cc',
409 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000410 'logging.cc',
411 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700412 'logsinks.cc',
413 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000414 'macasyncsocket.cc',
415 'macasyncsocket.h',
416 'maccocoasocketserver.h',
417 'maccocoasocketserver.mm',
418 'macsocketserver.cc',
419 'macsocketserver.h',
420 'macwindowpicker.cc',
421 'macwindowpicker.h',
422 'mathutils.h',
423 'multipart.cc',
424 'multipart.h',
425 'natserver.cc',
426 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000427 'natsocketfactory.cc',
428 'natsocketfactory.h',
429 'nattypes.cc',
430 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000431 'optionsfile.cc',
432 'optionsfile.h',
433 'posix.cc',
434 'posix.h',
435 'profiler.cc',
436 'profiler.h',
437 'proxyserver.cc',
438 'proxyserver.h',
439 'refcount.h',
440 'referencecountedsingletonfactory.h',
441 'rollingaccumulator.h',
442 'safe_conversions.h',
443 'safe_conversions_impl.h',
444 'scopedptrcollection.h',
445 'scoped_ref_ptr.h',
446 'sec_buffer.h',
447 'sharedexclusivelock.cc',
448 'sharedexclusivelock.h',
449 'sslconfig.h',
450 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000451 'testbase64.h',
452 'testclient.cc',
453 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000454 'transformadapter.cc',
455 'transformadapter.h',
456 'versionparsing.cc',
457 'versionparsing.h',
458 'virtualsocketserver.cc',
459 'virtualsocketserver.h',
460 'win32regkey.cc',
461 'win32regkey.h',
462 'win32socketinit.cc',
463 'win32socketinit.h',
464 'win32socketserver.cc',
465 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000466 'window.h',
467 'windowpickerfactory.h',
468 'windowpicker.h',
469 ],
470 'defines': [
471 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000472 ],
473 'direct_dependent_settings': {
474 'defines': [
475 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000476 ],
477 },
478 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000479 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000480 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000481 'dependencies': [
482 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
483 ],
484 }, {
485 'include_dirs': [
486 '<(json_root)',
487 ],
488 'defines': [
489 # When defined changes the include path for json.h to where it
490 # is expected to be when building json outside of the standalone
491 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000492 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000493 ],
494 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000495 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000496 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000497 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000498 'link_settings': {
499 'libraries': [
500 '-llog',
501 '-lGLESv2',
502 ],
503 },
504 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000505 'sources!': [
506 'ifaddrs-android.cc',
507 'ifaddrs-android.h',
508 ],
509 }],
510 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200511 'sources/': [
512 ['include', 'macconversion.*'],
513 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000514 'all_dependent_settings': {
515 'xcode_settings': {
516 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700517 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000518 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000519 '-framework Security',
520 '-framework SystemConfiguration',
521 '-framework UIKit',
522 ],
523 },
524 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000525 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000526 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000527 'link_settings': {
528 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000529 '-ldl',
530 '-lrt',
531 '-lXext',
532 '-lX11',
533 '-lXcomposite',
534 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000535 ],
536 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000537 }, {
538 'sources!': [
539 'x11windowpicker.cc',
540 'x11windowpicker.h',
541 ],
542 }],
543 ['OS=="linux"', {
544 'link_settings': {
545 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000546 '-ldl',
547 '-lrt',
548 ],
549 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000550 }, {
551 'sources!': [
552 'dbus.cc',
553 'dbus.h',
554 'libdbusglibsymboltable.cc',
555 'libdbusglibsymboltable.h',
556 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000557 ],
558 }],
559 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000560 'all_dependent_settings': {
561 'link_settings': {
562 'xcode_settings': {
563 'OTHER_LDFLAGS': [
564 '-framework Cocoa',
565 '-framework Foundation',
566 '-framework IOKit',
567 '-framework Security',
568 '-framework SystemConfiguration',
569 ],
570 },
571 },
572 },
573 'conditions': [
574 ['target_arch=="ia32"', {
575 'all_dependent_settings': {
576 'link_settings': {
577 'xcode_settings': {
578 'OTHER_LDFLAGS': [
579 '-framework Carbon',
580 ],
581 },
582 },
583 },
584 }],
585 ],
586 }, {
587 'sources!': [
588 'macasyncsocket.cc',
589 'macasyncsocket.h',
590 'maccocoasocketserver.h',
591 'maccocoasocketserver.mm',
592 'macconversion.cc',
593 'macconversion.h',
594 'macsocketserver.cc',
595 'macsocketserver.h',
596 'macutils.cc',
597 'macutils.h',
598 'macwindowpicker.cc',
599 'macwindowpicker.h',
600 ],
601 }],
602 ['OS=="win"', {
603 'link_settings': {
604 'libraries': [
605 '-lcrypt32.lib',
606 '-liphlpapi.lib',
607 '-lsecur32.lib',
608 ],
609 },
610 # Suppress warnings about WIN32_LEAN_AND_MEAN.
611 'msvs_disabled_warnings': [4005, 4703],
612 'defines': [
613 '_CRT_NONSTDC_NO_DEPRECATE',
614 ],
615 }, {
616 'sources/': [
617 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
618 ],
619 'sources!': [
620 'schanneladapter.cc',
621 'schanneladapter.h',
622 '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}