blob: 9d104032e34437979424a729824dcfb3b4ed9b9b [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 }],
tkchin42f580e2015-11-26 23:18:23 -080025 # TODO(tkchin): Mac support. There are a bunch of problems right now because
26 # of some settings pulled down from Chromium.
27 ['OS=="ios"', {
28 'targets': [
29 {
30 'target_name': 'rtc_base_objc',
31 'type': 'static_library',
32 'dependencies': [
33 'rtc_base',
34 ],
35 'sources': [
hayscedd8fef2015-12-08 11:08:39 -080036 'objc/RTCCameraPreviewView.h',
37 'objc/RTCCameraPreviewView.m',
38 'objc/RTCDispatcher.h',
39 'objc/RTCDispatcher.m',
tkchin42f580e2015-11-26 23:18:23 -080040 'objc/RTCLogging.h',
hayscedd8fef2015-12-08 11:08:39 -080041 'objc/RTCLogging.mm',
tkchin42f580e2015-11-26 23:18:23 -080042 ],
43 'xcode_settings': {
44 'CLANG_ENABLE_OBJC_ARC': 'YES',
45 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
46 },
47 }
48 ],
49 }], # OS=="ios"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000050 ],
51 'targets': [
52 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000053 # The subset of rtc_base approved for use outside of libjingle.
54 'target_name': 'rtc_base_approved',
55 'type': 'static_library',
56 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010057 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020058 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070059 'bitbuffer.cc',
60 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020061 'buffer.cc',
62 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020063 'bufferqueue.cc',
64 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070065 'bytebuffer.cc',
66 'bytebuffer.h',
67 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000068 'checks.cc',
69 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070070 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020071 'criticalsection.cc',
72 'criticalsection.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000073 'event.cc',
74 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000075 'event_tracer.cc',
76 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000077 'exp_filter.cc',
78 'exp_filter.h',
Tommi23edcff2015-05-25 10:45:43 +020079 'logging.cc',
80 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000081 'md5.cc',
82 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000083 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000084 'md5digest.h',
Karl Wibergbe579832015-11-10 22:34:18 +010085 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000086 'platform_file.cc',
87 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +020088 'platform_thread.cc',
89 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -080090 'platform_thread_types.h',
Peter Boström2ee24392015-06-22 07:57:16 +020091 'ratetracker.cc',
92 'ratetracker.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000093 'safe_conversions.h',
94 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +020095 'scoped_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000096 'stringencode.cc',
97 'stringencode.h',
98 'stringutils.cc',
99 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -0700100 'systeminfo.cc',
101 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000102 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000103 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000104 'thread_checker.h',
105 'thread_checker_impl.cc',
106 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000107 'timeutils.cc',
108 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000109 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700110 ],
111 'conditions': [
112 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100113 'dependencies': [
114 '<(DEPTH)/base/base.gyp:base',
115 ],
Noah Richards915590e2015-04-22 15:43:08 -0700116 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700117 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700118 ],
Peter Boström11e02292015-11-25 21:36:14 +0100119 'sources': [
120 '../../webrtc_overrides/webrtc/base/logging.cc',
121 '../../webrtc_overrides/webrtc/base/logging.h',
122 ],
Noah Richards915590e2015-04-22 15:43:08 -0700123 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +0200124 'logging.cc',
125 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700126 ],
Noah Richards915590e2015-04-22 15:43:08 -0700127 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000128 ],
129 },
130 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000131 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000132 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000133 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000134 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000135 'rtc_base_approved',
136 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000137 'defines': [
138 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700139 'SSL_USE_OPENSSL',
140 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000141 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000142 ],
143 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000144 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000145 'asyncfile.cc',
146 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000147 'asyncinvoker.cc',
148 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000149 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000150 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000151 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000152 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000153 'asyncresolverinterface.h',
154 'asyncsocket.cc',
155 'asyncsocket.h',
156 'asynctcpsocket.cc',
157 'asynctcpsocket.h',
158 'asyncudpsocket.cc',
159 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000160 'autodetectproxy.cc',
161 'autodetectproxy.h',
162 'bandwidthsmoother.cc',
163 'bandwidthsmoother.h',
164 'base64.cc',
165 'base64.h',
166 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000167 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000168 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000169 'common.cc',
170 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000171 'crc32.cc',
172 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000173 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000174 'cryptstring.h',
175 'dbus.cc',
176 'dbus.h',
177 'diskcache.cc',
178 'diskcache.h',
179 'diskcache_win32.cc',
180 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700181 'filerotatingstream.cc',
182 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000183 'fileutils.cc',
184 'fileutils.h',
185 'fileutils_mock.h',
186 'firewallsocketserver.cc',
187 'firewallsocketserver.h',
188 'flags.cc',
189 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000190 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000191 'gunit_prod.h',
192 'helpers.cc',
193 'helpers.h',
194 'httpbase.cc',
195 'httpbase.h',
196 'httpclient.cc',
197 'httpclient.h',
198 'httpcommon-inl.h',
199 'httpcommon.cc',
200 'httpcommon.h',
201 'httprequest.cc',
202 'httprequest.h',
203 'httpserver.cc',
204 'httpserver.h',
205 'ifaddrs-android.cc',
206 'ifaddrs-android.h',
207 'iosfilesystem.mm',
208 'ipaddress.cc',
209 'ipaddress.h',
210 'json.cc',
211 'json.h',
212 'latebindingsymboltable.cc',
213 'latebindingsymboltable.h',
214 'libdbusglibsymboltable.cc',
215 'libdbusglibsymboltable.h',
216 'linux.cc',
217 'linux.h',
218 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000219 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000220 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700221 'logsinks.cc',
222 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000223 'macasyncsocket.cc',
224 'macasyncsocket.h',
225 'maccocoasocketserver.h',
226 'maccocoasocketserver.mm',
227 'maccocoathreadhelper.h',
228 'maccocoathreadhelper.mm',
229 'macconversion.cc',
230 'macconversion.h',
231 'macsocketserver.cc',
232 'macsocketserver.h',
233 'macutils.cc',
234 'macutils.h',
235 'macwindowpicker.cc',
236 'macwindowpicker.h',
237 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000238 'messagedigest.cc',
239 'messagedigest.h',
240 'messagehandler.cc',
241 'messagehandler.h',
242 'messagequeue.cc',
243 'messagequeue.h',
244 'multipart.cc',
245 'multipart.h',
246 'natserver.cc',
247 'natserver.h',
248 'natsocketfactory.cc',
249 'natsocketfactory.h',
250 'nattypes.cc',
251 'nattypes.h',
252 'nethelpers.cc',
253 'nethelpers.h',
254 'network.cc',
255 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700256 'networkmonitor.cc',
257 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000258 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700259 'openssl.h',
260 'openssladapter.cc',
261 'openssladapter.h',
262 'openssldigest.cc',
263 'openssldigest.h',
264 'opensslidentity.cc',
265 'opensslidentity.h',
266 'opensslstreamadapter.cc',
267 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000268 'optionsfile.cc',
269 'optionsfile.h',
270 'pathutils.cc',
271 'pathutils.h',
272 'physicalsocketserver.cc',
273 'physicalsocketserver.h',
274 'posix.cc',
275 'posix.h',
276 'profiler.cc',
277 'profiler.h',
278 'proxydetect.cc',
279 'proxydetect.h',
280 'proxyinfo.cc',
281 'proxyinfo.h',
282 'proxyserver.cc',
283 'proxyserver.h',
284 'ratelimiter.cc',
285 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000286 'refcount.h',
287 'referencecountedsingletonfactory.h',
288 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200289 'rtccertificate.cc',
290 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000291 'scoped_autorelease_pool.h',
292 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000293 'scoped_ref_ptr.h',
294 'scopedptrcollection.h',
295 'sec_buffer.h',
296 'sha1.cc',
297 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000298 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000299 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000300 'sharedexclusivelock.cc',
301 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000302 'signalthread.cc',
303 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000304 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000305 'sigslot.h',
306 'sigslotrepeater.h',
307 'socket.h',
308 'socketadapters.cc',
309 'socketadapters.h',
310 'socketaddress.cc',
311 'socketaddress.h',
312 'socketaddresspair.cc',
313 'socketaddresspair.h',
314 'socketfactory.h',
315 'socketpool.cc',
316 'socketpool.h',
317 'socketserver.h',
318 'socketstream.cc',
319 'socketstream.h',
320 'ssladapter.cc',
321 'ssladapter.h',
322 'sslconfig.h',
323 'sslfingerprint.cc',
324 'sslfingerprint.h',
325 'sslidentity.cc',
326 'sslidentity.h',
327 'sslroots.h',
328 'sslsocketfactory.cc',
329 'sslsocketfactory.h',
330 'sslstreamadapter.cc',
331 'sslstreamadapter.h',
332 'sslstreamadapterhelper.cc',
333 'sslstreamadapterhelper.h',
334 'stream.cc',
335 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000336 'task.cc',
337 'task.h',
338 'taskparent.cc',
339 'taskparent.h',
340 'taskrunner.cc',
341 'taskrunner.h',
342 'testclient.cc',
343 'testclient.h',
344 'thread.cc',
345 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000346 'timing.cc',
347 'timing.h',
348 'transformadapter.cc',
349 'transformadapter.h',
350 'unixfilesystem.cc',
351 'unixfilesystem.h',
352 'urlencode.cc',
353 'urlencode.h',
354 'versionparsing.cc',
355 'versionparsing.h',
356 'virtualsocketserver.cc',
357 'virtualsocketserver.h',
358 'win32.cc',
359 'win32.h',
360 'win32filesystem.cc',
361 'win32filesystem.h',
362 'win32regkey.cc',
363 'win32regkey.h',
364 'win32securityerrors.cc',
365 'win32socketinit.cc',
366 'win32socketinit.h',
367 'win32socketserver.cc',
368 'win32socketserver.h',
369 'win32window.cc',
370 'win32window.h',
371 'win32windowpicker.cc',
372 'win32windowpicker.h',
373 'window.h',
374 'windowpicker.h',
375 'windowpickerfactory.h',
376 'winfirewall.cc',
377 'winfirewall.h',
378 'winping.cc',
379 'winping.h',
380 'worker.cc',
381 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000382 'x11windowpicker.cc',
383 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000384 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000385 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 # these flags.
387 'cflags!': [
388 '-Wextra',
389 '-Wall',
390 ],
391 'cflags_cc!': [
392 '-Wnon-virtual-dtor',
393 ],
394 'direct_dependent_settings': {
395 'cflags_cc!': [
396 '-Wnon-virtual-dtor',
397 ],
398 'defines': [
399 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700400 'SSL_USE_OPENSSL',
401 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000402 ],
403 },
404 'include_dirs': [
405 '../../third_party/jsoncpp/overrides/include',
406 '../../third_party/jsoncpp/source/include',
407 ],
408 'conditions': [
409 ['build_with_chromium==1', {
410 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700411 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000412 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000413 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700414 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700415 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700416 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000417 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000418 'atomicops.h',
419 'bandwidthsmoother.cc',
420 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000421 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000422 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000423 'dbus.cc',
424 'dbus.h',
425 'diskcache_win32.cc',
426 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000427 'fileutils_mock.h',
428 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000429 'httpserver.cc',
430 'httpserver.h',
431 'json.cc',
432 'json.h',
433 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000434 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000435 'libdbusglibsymboltable.cc',
436 'libdbusglibsymboltable.h',
437 'linuxfdwalk.c',
438 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000439 'x11windowpicker.cc',
440 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000441 'logging.cc',
442 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700443 'logsinks.cc',
444 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000445 'macasyncsocket.cc',
446 'macasyncsocket.h',
447 'maccocoasocketserver.h',
448 'maccocoasocketserver.mm',
449 'macsocketserver.cc',
450 'macsocketserver.h',
451 'macwindowpicker.cc',
452 'macwindowpicker.h',
453 'mathutils.h',
454 'multipart.cc',
455 'multipart.h',
456 'natserver.cc',
457 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000458 'natsocketfactory.cc',
459 'natsocketfactory.h',
460 'nattypes.cc',
461 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000462 'optionsfile.cc',
463 'optionsfile.h',
464 'posix.cc',
465 'posix.h',
466 'profiler.cc',
467 'profiler.h',
468 'proxyserver.cc',
469 'proxyserver.h',
470 'refcount.h',
471 'referencecountedsingletonfactory.h',
472 'rollingaccumulator.h',
473 'safe_conversions.h',
474 'safe_conversions_impl.h',
475 'scopedptrcollection.h',
476 'scoped_ref_ptr.h',
477 'sec_buffer.h',
478 'sharedexclusivelock.cc',
479 'sharedexclusivelock.h',
480 'sslconfig.h',
481 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000482 'testbase64.h',
483 'testclient.cc',
484 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000485 'transformadapter.cc',
486 'transformadapter.h',
487 'versionparsing.cc',
488 'versionparsing.h',
489 'virtualsocketserver.cc',
490 'virtualsocketserver.h',
491 'win32regkey.cc',
492 'win32regkey.h',
493 'win32socketinit.cc',
494 'win32socketinit.h',
495 'win32socketserver.cc',
496 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000497 'window.h',
498 'windowpickerfactory.h',
499 'windowpicker.h',
500 ],
501 'defines': [
502 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000503 ],
504 'direct_dependent_settings': {
505 'defines': [
506 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000507 ],
508 },
509 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000510 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000511 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000512 'dependencies': [
513 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
514 ],
515 }, {
516 'include_dirs': [
517 '<(json_root)',
518 ],
519 'defines': [
520 # When defined changes the include path for json.h to where it
521 # is expected to be when building json outside of the standalone
522 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000523 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000524 ],
525 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000526 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000527 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000528 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000529 'link_settings': {
530 'libraries': [
531 '-llog',
532 '-lGLESv2',
533 ],
534 },
535 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000536 'sources!': [
537 'ifaddrs-android.cc',
538 'ifaddrs-android.h',
539 ],
540 }],
541 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200542 'sources/': [
543 ['include', 'macconversion.*'],
544 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000545 'all_dependent_settings': {
546 'xcode_settings': {
547 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700548 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000549 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000550 '-framework Security',
551 '-framework SystemConfiguration',
552 '-framework UIKit',
553 ],
554 },
555 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000556 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000557 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000558 'link_settings': {
559 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000560 '-ldl',
561 '-lrt',
562 '-lXext',
563 '-lX11',
564 '-lXcomposite',
565 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000566 ],
567 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000568 }, {
569 'sources!': [
570 'x11windowpicker.cc',
571 'x11windowpicker.h',
572 ],
573 }],
574 ['OS=="linux"', {
575 'link_settings': {
576 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000577 '-ldl',
578 '-lrt',
579 ],
580 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000581 }, {
582 'sources!': [
583 'dbus.cc',
584 'dbus.h',
585 'libdbusglibsymboltable.cc',
586 'libdbusglibsymboltable.h',
587 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000588 ],
589 }],
590 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000591 'all_dependent_settings': {
592 'link_settings': {
593 'xcode_settings': {
594 'OTHER_LDFLAGS': [
595 '-framework Cocoa',
596 '-framework Foundation',
597 '-framework IOKit',
598 '-framework Security',
599 '-framework SystemConfiguration',
600 ],
601 },
602 },
603 },
604 'conditions': [
605 ['target_arch=="ia32"', {
606 'all_dependent_settings': {
607 'link_settings': {
608 'xcode_settings': {
609 'OTHER_LDFLAGS': [
610 '-framework Carbon',
611 ],
612 },
613 },
614 },
615 }],
616 ],
617 }, {
618 'sources!': [
619 'macasyncsocket.cc',
620 'macasyncsocket.h',
621 'maccocoasocketserver.h',
622 'maccocoasocketserver.mm',
623 'macconversion.cc',
624 'macconversion.h',
625 'macsocketserver.cc',
626 'macsocketserver.h',
627 'macutils.cc',
628 'macutils.h',
629 'macwindowpicker.cc',
630 'macwindowpicker.h',
631 ],
632 }],
633 ['OS=="win"', {
634 'link_settings': {
635 'libraries': [
636 '-lcrypt32.lib',
637 '-liphlpapi.lib',
638 '-lsecur32.lib',
639 ],
640 },
641 # Suppress warnings about WIN32_LEAN_AND_MEAN.
642 'msvs_disabled_warnings': [4005, 4703],
643 'defines': [
644 '_CRT_NONSTDC_NO_DEPRECATE',
645 ],
646 }, {
647 'sources/': [
648 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
649 ],
650 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000651 'winping.cc',
652 'winping.h',
653 'winfirewall.cc',
654 'winfirewall.h',
655 ],
656 }],
657 ['os_posix==0', {
658 'sources!': [
659 'latebindingsymboltable.cc',
660 'latebindingsymboltable.h',
661 'posix.cc',
662 'posix.h',
663 'unixfilesystem.cc',
664 'unixfilesystem.h',
665 ],
666 }, {
667 'configurations': {
668 'Debug_Base': {
669 'defines': [
670 # Chromium's build/common.gypi defines this for all posix
671 # _except_ for ios & mac. We want it there as well, e.g.
672 # because ASSERT and friends trigger off of it.
673 '_DEBUG',
674 ],
675 },
676 }
677 }],
678 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
679 'defines': [
680 'CARBON_DEPRECATED=YES',
681 ],
682 }],
683 ['OS!="ios" and OS!="mac"', {
684 'sources!': [
685 'scoped_autorelease_pool.mm',
686 ],
687 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000688 ['OS!="linux" and OS!="android"', {
689 'sources!': [
690 'linux.cc',
691 'linux.h',
692 ],
693 }],
torbjorng07d09362015-09-22 11:58:04 -0700694 ['build_ssl==1', {
695 'dependencies': [
696 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
697 ],
698 }, {
699 'include_dirs': [
700 '<(ssl_root)',
701 ],
702 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000703 ],
704 },
705 ],
706}