blob: 23a3c26c77081330f6f273dba4e55e6b232addea [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': [
36 'objc/RTCLogging.h',
37 'objc/RTCLogging.mm'
38 ],
39 'xcode_settings': {
40 'CLANG_ENABLE_OBJC_ARC': 'YES',
41 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
42 },
43 }
44 ],
45 }], # OS=="ios"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000046 ],
47 'targets': [
48 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000049 # The subset of rtc_base approved for use outside of libjingle.
50 'target_name': 'rtc_base_approved',
51 'type': 'static_library',
52 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010053 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020054 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070055 'bitbuffer.cc',
56 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020057 'buffer.cc',
58 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020059 'bufferqueue.cc',
60 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070061 'bytebuffer.cc',
62 'bytebuffer.h',
63 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000064 'checks.cc',
65 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070066 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020067 'criticalsection.cc',
68 'criticalsection.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000069 'event.cc',
70 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000071 'event_tracer.cc',
72 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000073 'exp_filter.cc',
74 'exp_filter.h',
Tommi23edcff2015-05-25 10:45:43 +020075 'logging.cc',
76 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000077 'md5.cc',
78 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000079 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000080 'md5digest.h',
Karl Wibergbe579832015-11-10 22:34:18 +010081 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000082 'platform_file.cc',
83 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +020084 'platform_thread.cc',
85 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -080086 'platform_thread_types.h',
Peter Boström2ee24392015-06-22 07:57:16 +020087 'ratetracker.cc',
88 'ratetracker.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000089 'safe_conversions.h',
90 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +020091 'scoped_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000092 'stringencode.cc',
93 'stringencode.h',
94 'stringutils.cc',
95 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -070096 'systeminfo.cc',
97 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000098 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000099 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000100 'thread_checker.h',
101 'thread_checker_impl.cc',
102 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000103 'timeutils.cc',
104 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000105 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700106 ],
107 'conditions': [
108 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100109 'dependencies': [
110 '<(DEPTH)/base/base.gyp:base',
111 ],
Noah Richards915590e2015-04-22 15:43:08 -0700112 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700113 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700114 ],
Peter Boström11e02292015-11-25 21:36:14 +0100115 'sources': [
116 '../../webrtc_overrides/webrtc/base/logging.cc',
117 '../../webrtc_overrides/webrtc/base/logging.h',
118 ],
Noah Richards915590e2015-04-22 15:43:08 -0700119 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +0200120 'logging.cc',
121 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700122 ],
Noah Richards915590e2015-04-22 15:43:08 -0700123 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000124 ],
125 },
126 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000127 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000128 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000129 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000130 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000131 'rtc_base_approved',
132 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000133 'defines': [
134 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700135 'SSL_USE_OPENSSL',
136 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000137 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000138 ],
139 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000140 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000141 'asyncfile.cc',
142 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000143 'asyncinvoker.cc',
144 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000145 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000146 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000147 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000148 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000149 'asyncresolverinterface.h',
150 'asyncsocket.cc',
151 'asyncsocket.h',
152 'asynctcpsocket.cc',
153 'asynctcpsocket.h',
154 'asyncudpsocket.cc',
155 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000156 'autodetectproxy.cc',
157 'autodetectproxy.h',
158 'bandwidthsmoother.cc',
159 'bandwidthsmoother.h',
160 'base64.cc',
161 'base64.h',
162 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000163 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000164 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000165 'common.cc',
166 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000167 'crc32.cc',
168 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000169 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000170 'cryptstring.h',
171 'dbus.cc',
172 'dbus.h',
173 'diskcache.cc',
174 'diskcache.h',
175 'diskcache_win32.cc',
176 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700177 'filerotatingstream.cc',
178 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000179 'fileutils.cc',
180 'fileutils.h',
181 'fileutils_mock.h',
182 'firewallsocketserver.cc',
183 'firewallsocketserver.h',
184 'flags.cc',
185 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000186 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000187 'gunit_prod.h',
188 'helpers.cc',
189 'helpers.h',
190 'httpbase.cc',
191 'httpbase.h',
192 'httpclient.cc',
193 'httpclient.h',
194 'httpcommon-inl.h',
195 'httpcommon.cc',
196 'httpcommon.h',
197 'httprequest.cc',
198 'httprequest.h',
199 'httpserver.cc',
200 'httpserver.h',
201 'ifaddrs-android.cc',
202 'ifaddrs-android.h',
203 'iosfilesystem.mm',
204 'ipaddress.cc',
205 'ipaddress.h',
206 'json.cc',
207 'json.h',
208 'latebindingsymboltable.cc',
209 'latebindingsymboltable.h',
210 'libdbusglibsymboltable.cc',
211 'libdbusglibsymboltable.h',
212 'linux.cc',
213 'linux.h',
214 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000215 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000216 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700217 'logsinks.cc',
218 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000219 'macasyncsocket.cc',
220 'macasyncsocket.h',
221 'maccocoasocketserver.h',
222 'maccocoasocketserver.mm',
223 'maccocoathreadhelper.h',
224 'maccocoathreadhelper.mm',
225 'macconversion.cc',
226 'macconversion.h',
227 'macsocketserver.cc',
228 'macsocketserver.h',
229 'macutils.cc',
230 'macutils.h',
231 'macwindowpicker.cc',
232 'macwindowpicker.h',
233 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000234 'messagedigest.cc',
235 'messagedigest.h',
236 'messagehandler.cc',
237 'messagehandler.h',
238 'messagequeue.cc',
239 'messagequeue.h',
240 'multipart.cc',
241 'multipart.h',
242 'natserver.cc',
243 'natserver.h',
244 'natsocketfactory.cc',
245 'natsocketfactory.h',
246 'nattypes.cc',
247 'nattypes.h',
248 'nethelpers.cc',
249 'nethelpers.h',
250 'network.cc',
251 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700252 'networkmonitor.cc',
253 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000254 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700255 'openssl.h',
256 'openssladapter.cc',
257 'openssladapter.h',
258 'openssldigest.cc',
259 'openssldigest.h',
260 'opensslidentity.cc',
261 'opensslidentity.h',
262 'opensslstreamadapter.cc',
263 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000264 'optionsfile.cc',
265 'optionsfile.h',
266 'pathutils.cc',
267 'pathutils.h',
268 'physicalsocketserver.cc',
269 'physicalsocketserver.h',
270 'posix.cc',
271 'posix.h',
272 'profiler.cc',
273 'profiler.h',
274 'proxydetect.cc',
275 'proxydetect.h',
276 'proxyinfo.cc',
277 'proxyinfo.h',
278 'proxyserver.cc',
279 'proxyserver.h',
280 'ratelimiter.cc',
281 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000282 'refcount.h',
283 'referencecountedsingletonfactory.h',
284 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200285 'rtccertificate.cc',
286 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000287 'scoped_autorelease_pool.h',
288 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000289 'scoped_ref_ptr.h',
290 'scopedptrcollection.h',
291 'sec_buffer.h',
292 'sha1.cc',
293 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000294 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000295 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000296 'sharedexclusivelock.cc',
297 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000298 'signalthread.cc',
299 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000300 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000301 'sigslot.h',
302 'sigslotrepeater.h',
303 'socket.h',
304 'socketadapters.cc',
305 'socketadapters.h',
306 'socketaddress.cc',
307 'socketaddress.h',
308 'socketaddresspair.cc',
309 'socketaddresspair.h',
310 'socketfactory.h',
311 'socketpool.cc',
312 'socketpool.h',
313 'socketserver.h',
314 'socketstream.cc',
315 'socketstream.h',
316 'ssladapter.cc',
317 'ssladapter.h',
318 'sslconfig.h',
319 'sslfingerprint.cc',
320 'sslfingerprint.h',
321 'sslidentity.cc',
322 'sslidentity.h',
323 'sslroots.h',
324 'sslsocketfactory.cc',
325 'sslsocketfactory.h',
326 'sslstreamadapter.cc',
327 'sslstreamadapter.h',
328 'sslstreamadapterhelper.cc',
329 'sslstreamadapterhelper.h',
330 'stream.cc',
331 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000332 'task.cc',
333 'task.h',
334 'taskparent.cc',
335 'taskparent.h',
336 'taskrunner.cc',
337 'taskrunner.h',
338 'testclient.cc',
339 'testclient.h',
340 'thread.cc',
341 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000342 'timing.cc',
343 'timing.h',
344 'transformadapter.cc',
345 'transformadapter.h',
346 'unixfilesystem.cc',
347 'unixfilesystem.h',
348 'urlencode.cc',
349 'urlencode.h',
350 'versionparsing.cc',
351 'versionparsing.h',
352 'virtualsocketserver.cc',
353 'virtualsocketserver.h',
354 'win32.cc',
355 'win32.h',
356 'win32filesystem.cc',
357 'win32filesystem.h',
358 'win32regkey.cc',
359 'win32regkey.h',
360 'win32securityerrors.cc',
361 'win32socketinit.cc',
362 'win32socketinit.h',
363 'win32socketserver.cc',
364 'win32socketserver.h',
365 'win32window.cc',
366 'win32window.h',
367 'win32windowpicker.cc',
368 'win32windowpicker.h',
369 'window.h',
370 'windowpicker.h',
371 'windowpickerfactory.h',
372 'winfirewall.cc',
373 'winfirewall.h',
374 'winping.cc',
375 'winping.h',
376 'worker.cc',
377 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000378 'x11windowpicker.cc',
379 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000380 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000381 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000382 # these flags.
383 'cflags!': [
384 '-Wextra',
385 '-Wall',
386 ],
387 'cflags_cc!': [
388 '-Wnon-virtual-dtor',
389 ],
390 'direct_dependent_settings': {
391 'cflags_cc!': [
392 '-Wnon-virtual-dtor',
393 ],
394 'defines': [
395 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700396 'SSL_USE_OPENSSL',
397 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000398 ],
399 },
400 'include_dirs': [
401 '../../third_party/jsoncpp/overrides/include',
402 '../../third_party/jsoncpp/source/include',
403 ],
404 'conditions': [
405 ['build_with_chromium==1', {
406 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700407 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000408 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000409 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700410 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700411 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700412 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000413 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000414 'atomicops.h',
415 'bandwidthsmoother.cc',
416 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000417 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000418 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000419 'dbus.cc',
420 'dbus.h',
421 'diskcache_win32.cc',
422 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000423 'fileutils_mock.h',
424 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000425 'httpserver.cc',
426 'httpserver.h',
427 'json.cc',
428 'json.h',
429 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000430 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000431 'libdbusglibsymboltable.cc',
432 'libdbusglibsymboltable.h',
433 'linuxfdwalk.c',
434 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000435 'x11windowpicker.cc',
436 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000437 'logging.cc',
438 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700439 'logsinks.cc',
440 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000441 'macasyncsocket.cc',
442 'macasyncsocket.h',
443 'maccocoasocketserver.h',
444 'maccocoasocketserver.mm',
445 'macsocketserver.cc',
446 'macsocketserver.h',
447 'macwindowpicker.cc',
448 'macwindowpicker.h',
449 'mathutils.h',
450 'multipart.cc',
451 'multipart.h',
452 'natserver.cc',
453 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000454 'natsocketfactory.cc',
455 'natsocketfactory.h',
456 'nattypes.cc',
457 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000458 'optionsfile.cc',
459 'optionsfile.h',
460 'posix.cc',
461 'posix.h',
462 'profiler.cc',
463 'profiler.h',
464 'proxyserver.cc',
465 'proxyserver.h',
466 'refcount.h',
467 'referencecountedsingletonfactory.h',
468 'rollingaccumulator.h',
469 'safe_conversions.h',
470 'safe_conversions_impl.h',
471 'scopedptrcollection.h',
472 'scoped_ref_ptr.h',
473 'sec_buffer.h',
474 'sharedexclusivelock.cc',
475 'sharedexclusivelock.h',
476 'sslconfig.h',
477 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000478 'testbase64.h',
479 'testclient.cc',
480 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000481 'transformadapter.cc',
482 'transformadapter.h',
483 'versionparsing.cc',
484 'versionparsing.h',
485 'virtualsocketserver.cc',
486 'virtualsocketserver.h',
487 'win32regkey.cc',
488 'win32regkey.h',
489 'win32socketinit.cc',
490 'win32socketinit.h',
491 'win32socketserver.cc',
492 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000493 'window.h',
494 'windowpickerfactory.h',
495 'windowpicker.h',
496 ],
497 'defines': [
498 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000499 ],
500 'direct_dependent_settings': {
501 'defines': [
502 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000503 ],
504 },
505 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000506 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000507 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000508 'dependencies': [
509 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
510 ],
511 }, {
512 'include_dirs': [
513 '<(json_root)',
514 ],
515 'defines': [
516 # When defined changes the include path for json.h to where it
517 # is expected to be when building json outside of the standalone
518 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000519 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000520 ],
521 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000522 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000523 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000524 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000525 'link_settings': {
526 'libraries': [
527 '-llog',
528 '-lGLESv2',
529 ],
530 },
531 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000532 'sources!': [
533 'ifaddrs-android.cc',
534 'ifaddrs-android.h',
535 ],
536 }],
537 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200538 'sources/': [
539 ['include', 'macconversion.*'],
540 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000541 'all_dependent_settings': {
542 'xcode_settings': {
543 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700544 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000545 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000546 '-framework Security',
547 '-framework SystemConfiguration',
548 '-framework UIKit',
549 ],
550 },
551 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000552 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000553 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000554 'link_settings': {
555 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000556 '-ldl',
557 '-lrt',
558 '-lXext',
559 '-lX11',
560 '-lXcomposite',
561 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000562 ],
563 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000564 }, {
565 'sources!': [
566 'x11windowpicker.cc',
567 'x11windowpicker.h',
568 ],
569 }],
570 ['OS=="linux"', {
571 'link_settings': {
572 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000573 '-ldl',
574 '-lrt',
575 ],
576 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000577 }, {
578 'sources!': [
579 'dbus.cc',
580 'dbus.h',
581 'libdbusglibsymboltable.cc',
582 'libdbusglibsymboltable.h',
583 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000584 ],
585 }],
586 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000587 'all_dependent_settings': {
588 'link_settings': {
589 'xcode_settings': {
590 'OTHER_LDFLAGS': [
591 '-framework Cocoa',
592 '-framework Foundation',
593 '-framework IOKit',
594 '-framework Security',
595 '-framework SystemConfiguration',
596 ],
597 },
598 },
599 },
600 'conditions': [
601 ['target_arch=="ia32"', {
602 'all_dependent_settings': {
603 'link_settings': {
604 'xcode_settings': {
605 'OTHER_LDFLAGS': [
606 '-framework Carbon',
607 ],
608 },
609 },
610 },
611 }],
612 ],
613 }, {
614 'sources!': [
615 'macasyncsocket.cc',
616 'macasyncsocket.h',
617 'maccocoasocketserver.h',
618 'maccocoasocketserver.mm',
619 'macconversion.cc',
620 'macconversion.h',
621 'macsocketserver.cc',
622 'macsocketserver.h',
623 'macutils.cc',
624 'macutils.h',
625 'macwindowpicker.cc',
626 'macwindowpicker.h',
627 ],
628 }],
629 ['OS=="win"', {
630 'link_settings': {
631 'libraries': [
632 '-lcrypt32.lib',
633 '-liphlpapi.lib',
634 '-lsecur32.lib',
635 ],
636 },
637 # Suppress warnings about WIN32_LEAN_AND_MEAN.
638 'msvs_disabled_warnings': [4005, 4703],
639 'defines': [
640 '_CRT_NONSTDC_NO_DEPRECATE',
641 ],
642 }, {
643 'sources/': [
644 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
645 ],
646 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000647 'winping.cc',
648 'winping.h',
649 'winfirewall.cc',
650 'winfirewall.h',
651 ],
652 }],
653 ['os_posix==0', {
654 'sources!': [
655 'latebindingsymboltable.cc',
656 'latebindingsymboltable.h',
657 'posix.cc',
658 'posix.h',
659 'unixfilesystem.cc',
660 'unixfilesystem.h',
661 ],
662 }, {
663 'configurations': {
664 'Debug_Base': {
665 'defines': [
666 # Chromium's build/common.gypi defines this for all posix
667 # _except_ for ios & mac. We want it there as well, e.g.
668 # because ASSERT and friends trigger off of it.
669 '_DEBUG',
670 ],
671 },
672 }
673 }],
674 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
675 'defines': [
676 'CARBON_DEPRECATED=YES',
677 ],
678 }],
679 ['OS!="ios" and OS!="mac"', {
680 'sources!': [
681 'scoped_autorelease_pool.mm',
682 ],
683 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000684 ['OS!="linux" and OS!="android"', {
685 'sources!': [
686 'linux.cc',
687 'linux.h',
688 ],
689 }],
torbjorng07d09362015-09-22 11:58:04 -0700690 ['build_ssl==1', {
691 'dependencies': [
692 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
693 ],
694 }, {
695 'include_dirs': [
696 '<(ssl_root)',
697 ],
698 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000699 ],
700 },
701 ],
702}