blob: 78742e00bc024b879e02e553bcc7259cc9882938 [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!': [
90 'basictypes.h',
91 'constructormagic.h',
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',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000224 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700225 'openssl.h',
226 'openssladapter.cc',
227 'openssladapter.h',
228 'openssldigest.cc',
229 'openssldigest.h',
230 'opensslidentity.cc',
231 'opensslidentity.h',
232 'opensslstreamadapter.cc',
233 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000234 'optionsfile.cc',
235 'optionsfile.h',
236 'pathutils.cc',
237 'pathutils.h',
238 'physicalsocketserver.cc',
239 'physicalsocketserver.h',
240 'posix.cc',
241 'posix.h',
242 'profiler.cc',
243 'profiler.h',
244 'proxydetect.cc',
245 'proxydetect.h',
246 'proxyinfo.cc',
247 'proxyinfo.h',
248 'proxyserver.cc',
249 'proxyserver.h',
250 'ratelimiter.cc',
251 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000252 'refcount.h',
253 'referencecountedsingletonfactory.h',
254 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200255 'rtccertificate.cc',
256 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000257 'schanneladapter.cc',
258 'schanneladapter.h',
259 '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',
henrikgee2bf412015-09-30 03:48:52 -0700352 '../../webrtc_overrides/webrtc/base/logging.cc',
353 '../../webrtc_overrides/webrtc/base/logging.h',
354 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000355 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000356 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000357 # these flags.
358 'cflags!': [
359 '-Wextra',
360 '-Wall',
361 ],
362 'cflags_cc!': [
363 '-Wnon-virtual-dtor',
364 ],
365 'direct_dependent_settings': {
366 'cflags_cc!': [
367 '-Wnon-virtual-dtor',
368 ],
369 'defines': [
370 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700371 'SSL_USE_OPENSSL',
372 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000373 ],
374 },
375 'include_dirs': [
376 '../../third_party/jsoncpp/overrides/include',
377 '../../third_party/jsoncpp/source/include',
378 ],
379 'conditions': [
380 ['build_with_chromium==1', {
381 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700382 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000383 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000384 ],
385 '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 ],
496 'sources!': [
henrikgee2bf412015-09-30 03:48:52 -0700497 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
498 '../../webrtc_overrides/webrtc/base/logging.cc',
499 '../../webrtc_overrides/webrtc/base/logging.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000500 ],
501 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000502 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000503 'link_settings': {
504 'libraries': [
505 '-llog',
506 '-lGLESv2',
507 ],
508 },
509 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000510 'sources!': [
511 'ifaddrs-android.cc',
512 'ifaddrs-android.h',
513 ],
514 }],
515 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200516 'sources/': [
517 ['include', 'macconversion.*'],
518 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000519 'all_dependent_settings': {
520 'xcode_settings': {
521 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700522 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000523 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000524 '-framework Security',
525 '-framework SystemConfiguration',
526 '-framework UIKit',
527 ],
528 },
529 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000530 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000531 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000532 'link_settings': {
533 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000534 '-ldl',
535 '-lrt',
536 '-lXext',
537 '-lX11',
538 '-lXcomposite',
539 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000540 ],
541 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000542 }, {
543 'sources!': [
544 'x11windowpicker.cc',
545 'x11windowpicker.h',
546 ],
547 }],
548 ['OS=="linux"', {
549 'link_settings': {
550 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000551 '-ldl',
552 '-lrt',
553 ],
554 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000555 }, {
556 'sources!': [
557 'dbus.cc',
558 'dbus.h',
559 'libdbusglibsymboltable.cc',
560 'libdbusglibsymboltable.h',
561 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000562 ],
563 }],
564 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000565 'all_dependent_settings': {
566 'link_settings': {
567 'xcode_settings': {
568 'OTHER_LDFLAGS': [
569 '-framework Cocoa',
570 '-framework Foundation',
571 '-framework IOKit',
572 '-framework Security',
573 '-framework SystemConfiguration',
574 ],
575 },
576 },
577 },
578 'conditions': [
579 ['target_arch=="ia32"', {
580 'all_dependent_settings': {
581 'link_settings': {
582 'xcode_settings': {
583 'OTHER_LDFLAGS': [
584 '-framework Carbon',
585 ],
586 },
587 },
588 },
589 }],
590 ],
591 }, {
592 'sources!': [
593 'macasyncsocket.cc',
594 'macasyncsocket.h',
595 'maccocoasocketserver.h',
596 'maccocoasocketserver.mm',
597 'macconversion.cc',
598 'macconversion.h',
599 'macsocketserver.cc',
600 'macsocketserver.h',
601 'macutils.cc',
602 'macutils.h',
603 'macwindowpicker.cc',
604 'macwindowpicker.h',
605 ],
606 }],
607 ['OS=="win"', {
608 'link_settings': {
609 'libraries': [
610 '-lcrypt32.lib',
611 '-liphlpapi.lib',
612 '-lsecur32.lib',
613 ],
614 },
615 # Suppress warnings about WIN32_LEAN_AND_MEAN.
616 'msvs_disabled_warnings': [4005, 4703],
617 'defines': [
618 '_CRT_NONSTDC_NO_DEPRECATE',
619 ],
620 }, {
621 'sources/': [
622 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
623 ],
624 'sources!': [
625 'schanneladapter.cc',
626 'schanneladapter.h',
627 '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}