blob: f862eae3112b9e93b24e5bcfec6b63db0ff7390b [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': [
hjonaa32c3e2015-12-13 19:58:11 -080036 'objc/NSString+StdString.h',
37 'objc/NSString+StdString.mm',
hayscedd8fef2015-12-08 11:08:39 -080038 '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',
Jon Hjelleda99da82016-01-20 13:40:30 -080042 'objc/RTCSSLAdapter.h',
43 'objc/RTCSSLAdapter.mm',
tkchin42f580e2015-11-26 23:18:23 -080044 ],
hjonaa32c3e2015-12-13 19:58:11 -080045 'conditions': [
46 ['OS=="ios"', {
47 'sources': [
48 'objc/RTCCameraPreviewView.h',
49 'objc/RTCCameraPreviewView.m',
50 ],
51 'all_dependent_settings': {
52 'xcode_settings': {
53 'OTHER_LDFLAGS': [
54 '-framework AVFoundation',
55 ],
56 },
57 },
58 }],
59 ],
tkchin42f580e2015-11-26 23:18:23 -080060 'xcode_settings': {
61 'CLANG_ENABLE_OBJC_ARC': 'YES',
62 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
63 },
64 }
65 ],
66 }], # OS=="ios"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000067 ],
68 'targets': [
69 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000070 # The subset of rtc_base approved for use outside of libjingle.
71 'target_name': 'rtc_base_approved',
72 'type': 'static_library',
73 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010074 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020075 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070076 'bitbuffer.cc',
77 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020078 'buffer.cc',
79 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020080 'bufferqueue.cc',
81 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070082 'bytebuffer.cc',
83 'bytebuffer.h',
84 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000085 'checks.cc',
86 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070087 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020088 'criticalsection.cc',
89 'criticalsection.h',
kwiberg45fd9fe2015-12-16 01:09:16 -080090 'deprecation.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000091 'event.cc',
92 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000093 'event_tracer.cc',
94 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000095 'exp_filter.cc',
96 'exp_filter.h',
Tommi23edcff2015-05-25 10:45:43 +020097 'logging.cc',
98 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000099 'md5.cc',
100 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000101 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000102 'md5digest.h',
Karl Wibergbe579832015-11-10 22:34:18 +0100103 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000104 'platform_file.cc',
105 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +0200106 'platform_thread.cc',
107 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -0800108 'platform_thread_types.h',
terelius84e78f92015-12-10 01:50:55 -0800109 'random.cc',
110 'random.h',
Peter Boström2ee24392015-06-22 07:57:16 +0200111 'ratetracker.cc',
112 'ratetracker.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +0000113 'safe_conversions.h',
114 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +0200115 'scoped_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000116 'stringencode.cc',
117 'stringencode.h',
118 'stringutils.cc',
119 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -0700120 'systeminfo.cc',
121 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000122 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000123 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000124 'thread_checker.h',
125 'thread_checker_impl.cc',
126 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000127 'timeutils.cc',
128 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000129 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700130 ],
131 'conditions': [
132 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100133 'dependencies': [
134 '<(DEPTH)/base/base.gyp:base',
135 ],
Noah Richards915590e2015-04-22 15:43:08 -0700136 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700137 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700138 ],
Peter Boström11e02292015-11-25 21:36:14 +0100139 'sources': [
140 '../../webrtc_overrides/webrtc/base/logging.cc',
141 '../../webrtc_overrides/webrtc/base/logging.h',
142 ],
Noah Richards915590e2015-04-22 15:43:08 -0700143 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +0200144 'logging.cc',
145 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700146 ],
Noah Richards915590e2015-04-22 15:43:08 -0700147 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000148 ],
149 },
150 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000151 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000152 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000153 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000154 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000155 'rtc_base_approved',
156 ],
jbroman5584bf42016-01-12 09:46:55 -0800157 'export_dependent_settings': [
158 'rtc_base_approved',
159 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000160 'defines': [
161 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700162 'SSL_USE_OPENSSL',
163 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000164 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000165 ],
166 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000167 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000168 'asyncfile.cc',
169 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000170 'asyncinvoker.cc',
171 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000172 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000173 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000174 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000175 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000176 'asyncresolverinterface.h',
177 'asyncsocket.cc',
178 'asyncsocket.h',
179 'asynctcpsocket.cc',
180 'asynctcpsocket.h',
181 'asyncudpsocket.cc',
182 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000183 'autodetectproxy.cc',
184 'autodetectproxy.h',
185 'bandwidthsmoother.cc',
186 'bandwidthsmoother.h',
187 'base64.cc',
188 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000189 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000190 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000191 'common.cc',
192 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000193 'crc32.cc',
194 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000195 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'cryptstring.h',
197 'dbus.cc',
198 'dbus.h',
199 'diskcache.cc',
200 'diskcache.h',
201 'diskcache_win32.cc',
202 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700203 'filerotatingstream.cc',
204 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000205 'fileutils.cc',
206 'fileutils.h',
207 'fileutils_mock.h',
208 'firewallsocketserver.cc',
209 'firewallsocketserver.h',
210 'flags.cc',
211 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000212 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000213 'gunit_prod.h',
214 'helpers.cc',
215 'helpers.h',
216 'httpbase.cc',
217 'httpbase.h',
218 'httpclient.cc',
219 'httpclient.h',
220 'httpcommon-inl.h',
221 'httpcommon.cc',
222 'httpcommon.h',
223 'httprequest.cc',
224 'httprequest.h',
225 'httpserver.cc',
226 'httpserver.h',
227 'ifaddrs-android.cc',
228 'ifaddrs-android.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800229 'ifaddrs_converter.cc',
230 'ifaddrs_converter.h',
231 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000232 'iosfilesystem.mm',
233 'ipaddress.cc',
234 'ipaddress.h',
235 'json.cc',
236 'json.h',
237 'latebindingsymboltable.cc',
238 'latebindingsymboltable.h',
239 'libdbusglibsymboltable.cc',
240 'libdbusglibsymboltable.h',
241 'linux.cc',
242 'linux.h',
243 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000244 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000245 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700246 'logsinks.cc',
247 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000248 'macasyncsocket.cc',
249 'macasyncsocket.h',
250 'maccocoasocketserver.h',
251 'maccocoasocketserver.mm',
252 'maccocoathreadhelper.h',
253 'maccocoathreadhelper.mm',
254 'macconversion.cc',
255 'macconversion.h',
256 'macsocketserver.cc',
257 'macsocketserver.h',
258 'macutils.cc',
259 'macutils.h',
260 'macwindowpicker.cc',
261 'macwindowpicker.h',
262 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000263 'messagedigest.cc',
264 'messagedigest.h',
265 'messagehandler.cc',
266 'messagehandler.h',
267 'messagequeue.cc',
268 'messagequeue.h',
269 'multipart.cc',
270 'multipart.h',
271 'natserver.cc',
272 'natserver.h',
273 'natsocketfactory.cc',
274 'natsocketfactory.h',
275 'nattypes.cc',
276 'nattypes.h',
277 'nethelpers.cc',
278 'nethelpers.h',
279 'network.cc',
280 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700281 'networkmonitor.cc',
282 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000283 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700284 'openssl.h',
285 'openssladapter.cc',
286 'openssladapter.h',
287 'openssldigest.cc',
288 'openssldigest.h',
289 'opensslidentity.cc',
290 'opensslidentity.h',
291 'opensslstreamadapter.cc',
292 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000293 'optionsfile.cc',
294 'optionsfile.h',
295 'pathutils.cc',
296 'pathutils.h',
297 'physicalsocketserver.cc',
298 'physicalsocketserver.h',
299 'posix.cc',
300 'posix.h',
301 'profiler.cc',
302 'profiler.h',
303 'proxydetect.cc',
304 'proxydetect.h',
305 'proxyinfo.cc',
306 'proxyinfo.h',
307 'proxyserver.cc',
308 'proxyserver.h',
309 'ratelimiter.cc',
310 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000311 'refcount.h',
312 'referencecountedsingletonfactory.h',
313 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200314 'rtccertificate.cc',
315 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000316 'scoped_autorelease_pool.h',
317 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000318 'scoped_ref_ptr.h',
319 'scopedptrcollection.h',
320 'sec_buffer.h',
321 'sha1.cc',
322 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000323 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000324 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000325 'sharedexclusivelock.cc',
326 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000327 'signalthread.cc',
328 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000329 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000330 'sigslot.h',
331 'sigslotrepeater.h',
332 'socket.h',
333 'socketadapters.cc',
334 'socketadapters.h',
335 'socketaddress.cc',
336 'socketaddress.h',
337 'socketaddresspair.cc',
338 'socketaddresspair.h',
339 'socketfactory.h',
340 'socketpool.cc',
341 'socketpool.h',
342 'socketserver.h',
343 'socketstream.cc',
344 'socketstream.h',
345 'ssladapter.cc',
346 'ssladapter.h',
347 'sslconfig.h',
348 'sslfingerprint.cc',
349 'sslfingerprint.h',
350 'sslidentity.cc',
351 'sslidentity.h',
352 'sslroots.h',
353 'sslsocketfactory.cc',
354 'sslsocketfactory.h',
355 'sslstreamadapter.cc',
356 'sslstreamadapter.h',
357 'sslstreamadapterhelper.cc',
358 'sslstreamadapterhelper.h',
359 'stream.cc',
360 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000361 'task.cc',
362 'task.h',
363 'taskparent.cc',
364 'taskparent.h',
365 'taskrunner.cc',
366 'taskrunner.h',
367 'testclient.cc',
368 'testclient.h',
369 'thread.cc',
370 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000371 'timing.cc',
372 'timing.h',
373 'transformadapter.cc',
374 'transformadapter.h',
375 'unixfilesystem.cc',
376 'unixfilesystem.h',
377 'urlencode.cc',
378 'urlencode.h',
379 'versionparsing.cc',
380 'versionparsing.h',
381 'virtualsocketserver.cc',
382 'virtualsocketserver.h',
383 'win32.cc',
384 'win32.h',
385 'win32filesystem.cc',
386 'win32filesystem.h',
387 'win32regkey.cc',
388 'win32regkey.h',
389 'win32securityerrors.cc',
390 'win32socketinit.cc',
391 'win32socketinit.h',
392 'win32socketserver.cc',
393 'win32socketserver.h',
394 'win32window.cc',
395 'win32window.h',
396 'win32windowpicker.cc',
397 'win32windowpicker.h',
398 'window.h',
399 'windowpicker.h',
400 'windowpickerfactory.h',
401 'winfirewall.cc',
402 'winfirewall.h',
403 'winping.cc',
404 'winping.h',
405 'worker.cc',
406 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000407 'x11windowpicker.cc',
408 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000409 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000410 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000411 # these flags.
412 'cflags!': [
413 '-Wextra',
414 '-Wall',
415 ],
416 'cflags_cc!': [
417 '-Wnon-virtual-dtor',
418 ],
419 'direct_dependent_settings': {
420 'cflags_cc!': [
421 '-Wnon-virtual-dtor',
422 ],
423 'defines': [
424 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700425 'SSL_USE_OPENSSL',
426 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000427 ],
428 },
429 'include_dirs': [
430 '../../third_party/jsoncpp/overrides/include',
431 '../../third_party/jsoncpp/source/include',
432 ],
433 'conditions': [
434 ['build_with_chromium==1', {
435 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700436 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000437 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000438 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700439 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700440 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700441 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000442 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000443 'atomicops.h',
444 'bandwidthsmoother.cc',
445 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000446 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000447 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000448 'dbus.cc',
449 'dbus.h',
450 'diskcache_win32.cc',
451 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000452 'fileutils_mock.h',
453 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000454 'httpserver.cc',
455 'httpserver.h',
456 'json.cc',
457 'json.h',
458 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000459 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000460 'libdbusglibsymboltable.cc',
461 'libdbusglibsymboltable.h',
462 'linuxfdwalk.c',
463 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000464 'x11windowpicker.cc',
465 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000466 'logging.cc',
467 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700468 'logsinks.cc',
469 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000470 'macasyncsocket.cc',
471 'macasyncsocket.h',
472 'maccocoasocketserver.h',
473 'maccocoasocketserver.mm',
474 'macsocketserver.cc',
475 'macsocketserver.h',
476 'macwindowpicker.cc',
477 'macwindowpicker.h',
478 'mathutils.h',
479 'multipart.cc',
480 'multipart.h',
481 'natserver.cc',
482 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000483 'natsocketfactory.cc',
484 'natsocketfactory.h',
485 'nattypes.cc',
486 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000487 'optionsfile.cc',
488 'optionsfile.h',
489 'posix.cc',
490 'posix.h',
491 'profiler.cc',
492 'profiler.h',
493 'proxyserver.cc',
494 'proxyserver.h',
495 'refcount.h',
496 'referencecountedsingletonfactory.h',
497 'rollingaccumulator.h',
498 'safe_conversions.h',
499 'safe_conversions_impl.h',
500 'scopedptrcollection.h',
501 'scoped_ref_ptr.h',
502 'sec_buffer.h',
503 'sharedexclusivelock.cc',
504 'sharedexclusivelock.h',
505 'sslconfig.h',
506 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000507 'testbase64.h',
508 'testclient.cc',
509 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000510 'transformadapter.cc',
511 'transformadapter.h',
512 'versionparsing.cc',
513 'versionparsing.h',
514 'virtualsocketserver.cc',
515 'virtualsocketserver.h',
516 'win32regkey.cc',
517 'win32regkey.h',
518 'win32socketinit.cc',
519 'win32socketinit.h',
520 'win32socketserver.cc',
521 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000522 'window.h',
523 'windowpickerfactory.h',
524 'windowpicker.h',
525 ],
526 'defines': [
527 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000528 ],
529 'direct_dependent_settings': {
530 'defines': [
531 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000532 ],
533 },
534 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000535 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000536 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000537 'dependencies': [
538 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
539 ],
540 }, {
541 'include_dirs': [
542 '<(json_root)',
543 ],
544 'defines': [
545 # When defined changes the include path for json.h to where it
546 # is expected to be when building json outside of the standalone
547 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000548 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000549 ],
550 }],
kjellander7cae30c2015-12-16 14:05:29 -0800551 ['OS=="win" and clang==1', {
552 'msvs_settings': {
553 'VCCLCompilerTool': {
554 'AdditionalOptions': [
555 # Disable warnings failing when compiling with Clang on Windows.
556 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800557 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800558 '-Wno-missing-braces',
559 ],
560 },
561 },
562 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000563 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000564 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000565 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000566 'link_settings': {
567 'libraries': [
568 '-llog',
569 '-lGLESv2',
570 ],
571 },
572 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000573 'sources!': [
574 'ifaddrs-android.cc',
575 'ifaddrs-android.h',
576 ],
577 }],
578 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200579 'sources/': [
580 ['include', 'macconversion.*'],
581 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000582 'all_dependent_settings': {
583 'xcode_settings': {
584 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700585 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000586 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000587 '-framework Security',
588 '-framework SystemConfiguration',
589 '-framework UIKit',
590 ],
591 },
592 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000593 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000594 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000595 'link_settings': {
596 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000597 '-ldl',
598 '-lrt',
599 '-lXext',
600 '-lX11',
601 '-lXcomposite',
602 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000603 ],
604 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000605 }, {
606 'sources!': [
607 'x11windowpicker.cc',
608 'x11windowpicker.h',
609 ],
610 }],
611 ['OS=="linux"', {
612 'link_settings': {
613 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000614 '-ldl',
615 '-lrt',
616 ],
617 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000618 }, {
619 'sources!': [
620 'dbus.cc',
621 'dbus.h',
622 'libdbusglibsymboltable.cc',
623 'libdbusglibsymboltable.h',
624 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000625 ],
626 }],
627 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000628 'all_dependent_settings': {
629 'link_settings': {
630 'xcode_settings': {
631 'OTHER_LDFLAGS': [
632 '-framework Cocoa',
633 '-framework Foundation',
634 '-framework IOKit',
635 '-framework Security',
636 '-framework SystemConfiguration',
637 ],
638 },
639 },
640 },
641 'conditions': [
642 ['target_arch=="ia32"', {
643 'all_dependent_settings': {
644 'link_settings': {
645 'xcode_settings': {
646 'OTHER_LDFLAGS': [
647 '-framework Carbon',
648 ],
649 },
650 },
651 },
652 }],
653 ],
654 }, {
655 'sources!': [
656 'macasyncsocket.cc',
657 'macasyncsocket.h',
658 'maccocoasocketserver.h',
659 'maccocoasocketserver.mm',
660 'macconversion.cc',
661 'macconversion.h',
662 'macsocketserver.cc',
663 'macsocketserver.h',
664 'macutils.cc',
665 'macutils.h',
666 'macwindowpicker.cc',
667 'macwindowpicker.h',
668 ],
669 }],
670 ['OS=="win"', {
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800671 'sources!': [
672 'ifaddrs_converter.cc',
673 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000674 'link_settings': {
675 'libraries': [
676 '-lcrypt32.lib',
677 '-liphlpapi.lib',
678 '-lsecur32.lib',
679 ],
680 },
681 # Suppress warnings about WIN32_LEAN_AND_MEAN.
682 'msvs_disabled_warnings': [4005, 4703],
683 'defines': [
684 '_CRT_NONSTDC_NO_DEPRECATE',
685 ],
686 }, {
687 'sources/': [
688 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
689 ],
690 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000691 'winping.cc',
692 'winping.h',
693 'winfirewall.cc',
694 'winfirewall.h',
695 ],
696 }],
697 ['os_posix==0', {
698 'sources!': [
699 'latebindingsymboltable.cc',
700 'latebindingsymboltable.h',
701 'posix.cc',
702 'posix.h',
703 'unixfilesystem.cc',
704 'unixfilesystem.h',
705 ],
706 }, {
707 'configurations': {
708 'Debug_Base': {
709 'defines': [
710 # Chromium's build/common.gypi defines this for all posix
711 # _except_ for ios & mac. We want it there as well, e.g.
712 # because ASSERT and friends trigger off of it.
713 '_DEBUG',
714 ],
715 },
716 }
717 }],
718 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
719 'defines': [
720 'CARBON_DEPRECATED=YES',
721 ],
722 }],
723 ['OS!="ios" and OS!="mac"', {
724 'sources!': [
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800725 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000726 'scoped_autorelease_pool.mm',
727 ],
728 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000729 ['OS!="linux" and OS!="android"', {
730 'sources!': [
731 'linux.cc',
732 'linux.h',
733 ],
734 }],
torbjorng07d09362015-09-22 11:58:04 -0700735 ['build_ssl==1', {
736 'dependencies': [
737 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
738 ],
739 }, {
740 'include_dirs': [
741 '<(ssl_root)',
742 ],
743 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000744 ],
745 },
746 ],
747}