blob: a330be81313947c46f50d98e22fcb403b7db392e [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': [
Henrik Kjellander47f33cb2016-04-05 13:28:41 +020012 ['os_posix==1 and OS!="mac" and OS!="ios"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000013 '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 }],
tkchinee75c7a2016-02-17 14:44:52 -080025 ['OS=="ios" or (OS=="mac" and mac_deployment_target=="10.7")', {
tkchin42f580e2015-11-26 23:18:23 -080026 'targets': [
27 {
28 'target_name': 'rtc_base_objc',
29 'type': 'static_library',
tkchinee75c7a2016-02-17 14:44:52 -080030 'includes': [ '../build/objc_common.gypi' ],
tkchin42f580e2015-11-26 23:18:23 -080031 'dependencies': [
32 'rtc_base',
33 ],
34 'sources': [
hjonaa32c3e2015-12-13 19:58:11 -080035 'objc/NSString+StdString.h',
36 'objc/NSString+StdString.mm',
hayscedd8fef2015-12-08 11:08:39 -080037 'objc/RTCDispatcher.h',
38 'objc/RTCDispatcher.m',
tkchin4f735d12016-03-03 17:54:28 -080039 'objc/RTCFieldTrials.h',
40 'objc/RTCFieldTrials.mm',
Jon Hjelle6140fcc2016-02-24 16:33:12 -080041 'objc/RTCFileLogger.h',
42 'objc/RTCFileLogger.mm',
tkchin42f580e2015-11-26 23:18:23 -080043 'objc/RTCLogging.h',
hayscedd8fef2015-12-08 11:08:39 -080044 'objc/RTCLogging.mm',
tkchind1fb26d2016-02-03 01:51:18 -080045 'objc/RTCMacros.h',
Jon Hjelleda99da82016-01-20 13:40:30 -080046 'objc/RTCSSLAdapter.h',
47 'objc/RTCSSLAdapter.mm',
tkchind1fb26d2016-02-03 01:51:18 -080048 'objc/RTCTracing.h',
49 'objc/RTCTracing.mm',
tkchin42f580e2015-11-26 23:18:23 -080050 ],
hjonaa32c3e2015-12-13 19:58:11 -080051 'conditions': [
52 ['OS=="ios"', {
53 'sources': [
54 'objc/RTCCameraPreviewView.h',
55 'objc/RTCCameraPreviewView.m',
tkchin5ed5ed92016-03-08 10:51:54 -080056 'objc/RTCUIApplication.h',
57 'objc/RTCUIApplication.mm',
hjonaa32c3e2015-12-13 19:58:11 -080058 ],
59 'all_dependent_settings': {
60 'xcode_settings': {
61 'OTHER_LDFLAGS': [
62 '-framework AVFoundation',
63 ],
64 },
65 },
66 }],
67 ],
tkchin42f580e2015-11-26 23:18:23 -080068 }
69 ],
70 }], # OS=="ios"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000071 ],
72 'targets': [
73 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000074 # The subset of rtc_base approved for use outside of libjingle.
75 'target_name': 'rtc_base_approved',
76 'type': 'static_library',
77 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010078 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020079 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070080 'bitbuffer.cc',
81 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020082 'buffer.cc',
83 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020084 'bufferqueue.cc',
85 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070086 'bytebuffer.cc',
87 'bytebuffer.h',
88 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000089 'checks.cc',
90 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070091 'constructormagic.h',
tommiebfbab52016-03-19 11:36:18 -070092 'copyonwritebuffer.cc',
93 'copyonwritebuffer.h',
Tommi494f2092015-04-27 17:39:23 +020094 'criticalsection.cc',
95 'criticalsection.h',
kwiberg45fd9fe2015-12-16 01:09:16 -080096 'deprecation.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000097 'event.cc',
98 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000099 'event_tracer.cc',
100 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000101 'exp_filter.cc',
102 'exp_filter.h',
103 'md5.cc',
104 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000105 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000106 'md5digest.h',
philipel5ab4c6d2016-03-08 03:36:15 -0800107 'mod_ops.h',
Karl Wibergbe579832015-11-10 22:34:18 +0100108 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000109 'platform_file.cc',
110 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +0200111 'platform_thread.cc',
112 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -0800113 'platform_thread_types.h',
terelius84e78f92015-12-10 01:50:55 -0800114 'random.cc',
115 'random.h',
tkchinf75d0082016-02-23 22:49:42 -0800116 'rate_statistics.cc',
117 'rate_statistics.h',
Peter Boström2ee24392015-06-22 07:57:16 +0200118 'ratetracker.cc',
119 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -0800120 'refcount.h',
Tommid44c0772016-03-11 17:12:32 -0800121 'safe_conversions.h',
122 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +0200123 'scoped_ptr.h',
tommi04af8392016-02-14 08:11:10 -0800124 'scoped_ref_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000125 'stringencode.cc',
126 'stringencode.h',
127 'stringutils.cc',
128 'stringutils.h',
terelius85fa7d52016-03-24 01:51:52 -0700129 'swap_queue.h',
tommiefefda62015-08-20 05:04:09 -0700130 'systeminfo.cc',
131 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000132 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000133 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000134 'thread_checker.h',
135 'thread_checker_impl.cc',
136 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000137 'timeutils.cc',
138 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000139 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700140 ],
141 'conditions': [
142 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100143 'dependencies': [
144 '<(DEPTH)/base/base.gyp:base',
145 ],
Noah Richards915590e2015-04-22 15:43:08 -0700146 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700147 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700148 ],
Peter Boström11e02292015-11-25 21:36:14 +0100149 'sources': [
150 '../../webrtc_overrides/webrtc/base/logging.cc',
151 '../../webrtc_overrides/webrtc/base/logging.h',
152 ],
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200153 }, {
154 'sources': [
Tommi23edcff2015-05-25 10:45:43 +0200155 'logging.cc',
156 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700157 ],
Noah Richards915590e2015-04-22 15:43:08 -0700158 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000159 ],
160 },
161 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000162 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000163 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000164 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000165 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000166 'rtc_base_approved',
167 ],
jbroman5584bf42016-01-12 09:46:55 -0800168 'export_dependent_settings': [
169 'rtc_base_approved',
170 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000171 'defines': [
172 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700173 'SSL_USE_OPENSSL',
174 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000175 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000176 ],
177 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000178 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000179 'asyncfile.cc',
180 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000181 'asyncinvoker.cc',
182 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000183 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000184 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000185 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000186 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000187 'asyncresolverinterface.h',
188 'asyncsocket.cc',
189 'asyncsocket.h',
190 'asynctcpsocket.cc',
191 'asynctcpsocket.h',
192 'asyncudpsocket.cc',
193 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000194 'autodetectproxy.cc',
195 'autodetectproxy.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'base64.cc',
197 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'common.cc',
199 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 'crc32.cc',
201 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000202 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000203 'cryptstring.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'diskcache.cc',
205 'diskcache.h',
tkchin93411912015-07-22 12:12:17 -0700206 'filerotatingstream.cc',
207 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000208 'fileutils.cc',
209 'fileutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000210 'firewallsocketserver.cc',
211 'firewallsocketserver.h',
212 'flags.cc',
213 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000214 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000215 'gunit_prod.h',
216 'helpers.cc',
217 'helpers.h',
218 'httpbase.cc',
219 'httpbase.h',
220 'httpclient.cc',
221 'httpclient.h',
222 'httpcommon-inl.h',
223 'httpcommon.cc',
224 'httpcommon.h',
225 'httprequest.cc',
226 'httprequest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000227 'iosfilesystem.mm',
228 'ipaddress.cc',
229 'ipaddress.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000230 'linked_ptr.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000231 'messagedigest.cc',
232 'messagedigest.h',
233 'messagehandler.cc',
234 'messagehandler.h',
235 'messagequeue.cc',
236 'messagequeue.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000237 'nethelpers.cc',
238 'nethelpers.h',
239 'network.cc',
240 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700241 'networkmonitor.cc',
242 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000243 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700244 'openssl.h',
245 'openssladapter.cc',
246 'openssladapter.h',
247 'openssldigest.cc',
248 'openssldigest.h',
249 'opensslidentity.cc',
250 'opensslidentity.h',
251 'opensslstreamadapter.cc',
252 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000253 'pathutils.cc',
254 'pathutils.h',
255 'physicalsocketserver.cc',
256 'physicalsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000257 'proxydetect.cc',
258 'proxydetect.h',
259 'proxyinfo.cc',
260 'proxyinfo.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000261 'ratelimiter.cc',
262 'ratelimiter.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200263 'rtccertificate.cc',
264 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000265 'sha1.cc',
266 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000267 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000268 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000269 'sharedexclusivelock.cc',
270 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000271 'signalthread.cc',
272 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000273 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000274 'sigslot.h',
275 'sigslotrepeater.h',
276 'socket.h',
277 'socketadapters.cc',
278 'socketadapters.h',
279 'socketaddress.cc',
280 'socketaddress.h',
281 'socketaddresspair.cc',
282 'socketaddresspair.h',
283 'socketfactory.h',
284 'socketpool.cc',
285 'socketpool.h',
286 'socketserver.h',
287 'socketstream.cc',
288 'socketstream.h',
289 'ssladapter.cc',
290 'ssladapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000291 'sslfingerprint.cc',
292 'sslfingerprint.h',
293 'sslidentity.cc',
294 'sslidentity.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000295 'sslsocketfactory.cc',
296 'sslsocketfactory.h',
297 'sslstreamadapter.cc',
298 'sslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000299 'stream.cc',
300 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000301 'task.cc',
302 'task.h',
303 'taskparent.cc',
304 'taskparent.h',
305 'taskrunner.cc',
306 'taskrunner.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000307 'thread.cc',
308 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000309 'timing.cc',
310 'timing.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000311 'urlencode.cc',
312 'urlencode.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000313 'worker.cc',
314 'worker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000315 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000316 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000317 # these flags.
318 'cflags!': [
319 '-Wextra',
320 '-Wall',
321 ],
322 'cflags_cc!': [
323 '-Wnon-virtual-dtor',
324 ],
325 'direct_dependent_settings': {
326 'cflags_cc!': [
327 '-Wnon-virtual-dtor',
328 ],
329 'defines': [
330 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700331 'SSL_USE_OPENSSL',
332 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000333 ],
334 },
335 'include_dirs': [
336 '../../third_party/jsoncpp/overrides/include',
337 '../../third_party/jsoncpp/source/include',
338 ],
339 'conditions': [
340 ['build_with_chromium==1', {
341 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700342 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000343 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000344 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700345 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700346 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700347 ],
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200348 'defines': [
349 'NO_MAIN_THREAD_WRAPPING',
350 ],
351 'direct_dependent_settings': {
352 'defines': [
353 'NO_MAIN_THREAD_WRAPPING',
354 ],
355 },
356 }, {
357 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000358 'bandwidthsmoother.cc',
359 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000360 'bind.h',
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200361 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000362 'callback.h',
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200363 'callback.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000364 'fileutils_mock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000365 'httpserver.cc',
366 'httpserver.h',
367 'json.cc',
368 'json.h',
tkchin93411912015-07-22 12:12:17 -0700369 'logsinks.cc',
370 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000371 'mathutils.h',
372 'multipart.cc',
373 'multipart.h',
374 'natserver.cc',
375 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000376 'natsocketfactory.cc',
377 'natsocketfactory.h',
378 'nattypes.cc',
379 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000380 'optionsfile.cc',
381 'optionsfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000382 'profiler.cc',
383 'profiler.h',
384 'proxyserver.cc',
385 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 'referencecountedsingletonfactory.h',
387 'rollingaccumulator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000388 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000389 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000390 'sslconfig.h',
391 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000392 'testbase64.h',
393 'testclient.cc',
394 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000395 'transformadapter.cc',
396 'transformadapter.h',
397 'versionparsing.cc',
398 'versionparsing.h',
399 'virtualsocketserver.cc',
400 'virtualsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000401 'window.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000402 'windowpicker.h',
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200403 'windowpickerfactory.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000404 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000405 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000406 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000407 'dependencies': [
408 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
409 ],
410 }, {
411 'include_dirs': [
412 '<(json_root)',
413 ],
414 'defines': [
415 # When defined changes the include path for json.h to where it
416 # is expected to be when building json outside of the standalone
417 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000418 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000419 ],
420 }],
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200421 ['OS=="linux"', {
422 'sources': [
423 'dbus.cc',
424 'dbus.h',
425 'libdbusglibsymboltable.cc',
426 'libdbusglibsymboltable.h',
427 'linuxfdwalk.c',
428 'linuxfdwalk.h',
429 ],
430 }],
431 ['os_posix==1', {
432 'sources': [
433 'latebindingsymboltable.cc',
434 'latebindingsymboltable.cc.def',
435 'latebindingsymboltable.h',
436 'latebindingsymboltable.h.def',
437 'posix.cc',
438 'posix.h',
439 ],
440 }],
441 ['OS=="mac"', {
442 'sources': [
443 'macasyncsocket.cc',
444 'macasyncsocket.h',
445 'maccocoasocketserver.h',
446 'maccocoasocketserver.mm',
447 'macsocketserver.cc',
448 'macsocketserver.h',
449 'macwindowpicker.cc',
450 'macwindowpicker.h',
451 ],
452 }],
453 ['OS=="win"', {
454 'sources': [
455 'diskcache_win32.cc',
456 'diskcache_win32.h',
457 'win32regkey.cc',
458 'win32regkey.h',
459 'win32socketinit.cc',
460 'win32socketinit.h',
461 'win32socketserver.cc',
462 'win32socketserver.h',
463 ],
464 }],
kjellander7cae30c2015-12-16 14:05:29 -0800465 ['OS=="win" and clang==1', {
466 'msvs_settings': {
467 'VCCLCompilerTool': {
468 'AdditionalOptions': [
469 # Disable warnings failing when compiling with Clang on Windows.
470 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800471 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800472 '-Wno-missing-braces',
473 ],
474 },
475 },
476 }],
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200477 ], # conditions
478 }], # build_with_chromium==0
479 ['OS=="android"', {
480 'sources': [
481 'ifaddrs-android.cc',
482 'ifaddrs-android.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000483 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000484 'link_settings': {
485 'libraries': [
486 '-llog',
487 '-lGLESv2',
488 ],
489 },
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200490 }],
491 ['OS=="mac" or OS=="ios"', {
492 'sources': [
493 'maccocoathreadhelper.h',
494 'maccocoathreadhelper.mm',
495 'macconversion.cc',
496 'macconversion.h',
497 'macifaddrs_converter.cc',
498 'scoped_autorelease_pool.h',
499 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000500 ],
501 }],
502 ['OS=="ios"', {
503 'all_dependent_settings': {
504 'xcode_settings': {
505 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700506 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000507 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000508 '-framework Security',
509 '-framework SystemConfiguration',
510 '-framework UIKit',
511 ],
512 },
513 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000514 }],
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200515 ['use_x11==1', {
516 'sources': [
517 'x11windowpicker.cc',
518 'x11windowpicker.h',
519 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 'link_settings': {
521 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000522 '-ldl',
523 '-lrt',
524 '-lXext',
525 '-lX11',
526 '-lXcomposite',
527 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000528 ],
529 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000530 }],
531 ['OS=="linux"', {
532 'link_settings': {
533 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000534 '-ldl',
535 '-lrt',
536 ],
537 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000538 }],
539 ['OS=="mac"', {
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200540 'sources': [
541 'macutils.cc',
542 'macutils.h',
543 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000544 'all_dependent_settings': {
545 'link_settings': {
546 'xcode_settings': {
547 'OTHER_LDFLAGS': [
548 '-framework Cocoa',
549 '-framework Foundation',
550 '-framework IOKit',
551 '-framework Security',
552 '-framework SystemConfiguration',
553 ],
554 },
555 },
556 },
557 'conditions': [
558 ['target_arch=="ia32"', {
559 'all_dependent_settings': {
560 'link_settings': {
561 'xcode_settings': {
562 'OTHER_LDFLAGS': [
563 '-framework Carbon',
564 ],
565 },
566 },
567 },
568 }],
569 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000570 }],
571 ['OS=="win"', {
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200572 'sources': [
573 'win32.cc',
574 'win32.h',
575 'win32filesystem.cc',
576 'win32filesystem.h',
577 'win32securityerrors.cc',
578 'win32window.cc',
579 'win32window.h',
580 'win32windowpicker.cc',
581 'win32windowpicker.h',
582 'winfirewall.cc',
583 'winfirewall.h',
584 'winping.cc',
585 'winping.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800586 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000587 'link_settings': {
588 'libraries': [
589 '-lcrypt32.lib',
590 '-liphlpapi.lib',
591 '-lsecur32.lib',
592 ],
593 },
594 # Suppress warnings about WIN32_LEAN_AND_MEAN.
595 'msvs_disabled_warnings': [4005, 4703],
596 'defines': [
597 '_CRT_NONSTDC_NO_DEPRECATE',
598 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000599 }],
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200600 ['os_posix==1', {
601 'sources': [
602 'ifaddrs_converter.cc',
603 'ifaddrs_converter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000604 'unixfilesystem.cc',
605 'unixfilesystem.h',
606 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000607 'configurations': {
608 'Debug_Base': {
609 'defines': [
610 # Chromium's build/common.gypi defines this for all posix
611 # _except_ for ios & mac. We want it there as well, e.g.
612 # because ASSERT and friends trigger off of it.
613 '_DEBUG',
614 ],
615 },
616 }
617 }],
618 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
619 'defines': [
620 'CARBON_DEPRECATED=YES',
621 ],
622 }],
Henrik Kjellander47f33cb2016-04-05 13:28:41 +0200623 ['OS=="linux" or OS=="android"', {
624 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000625 'linux.cc',
626 'linux.h',
627 ],
628 }],
torbjorng07d09362015-09-22 11:58:04 -0700629 ['build_ssl==1', {
630 'dependencies': [
631 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
632 ],
633 }, {
634 'include_dirs': [
635 '<(ssl_root)',
636 ],
637 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000638 ],
639 },
kjellander988d31e2016-02-05 00:23:50 -0800640 {
641 'target_name': 'gtest_prod',
642 'type': 'static_library',
643 'sources': [
644 'gtest_prod_util.h',
645 ],
646 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000647 ],
648}