blob: 0e6198c1c4226501b537cf01dfa1a7370384fb2b [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': [
kjellandera8a7ef62016-04-05 08:13:31 -070012 ['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',
tkchin42f580e2015-11-26 23:18:23 -080041 'objc/RTCLogging.h',
hayscedd8fef2015-12-08 11:08:39 -080042 'objc/RTCLogging.mm',
tkchind1fb26d2016-02-03 01:51:18 -080043 'objc/RTCMacros.h',
Jon Hjelleda99da82016-01-20 13:40:30 -080044 'objc/RTCSSLAdapter.h',
45 'objc/RTCSSLAdapter.mm',
tkchind1fb26d2016-02-03 01:51:18 -080046 'objc/RTCTracing.h',
47 'objc/RTCTracing.mm',
tkchin42f580e2015-11-26 23:18:23 -080048 ],
hjonaa32c3e2015-12-13 19:58:11 -080049 'conditions': [
50 ['OS=="ios"', {
51 'sources': [
52 'objc/RTCCameraPreviewView.h',
53 'objc/RTCCameraPreviewView.m',
tkchin5ed5ed92016-03-08 10:51:54 -080054 'objc/RTCUIApplication.h',
55 'objc/RTCUIApplication.mm',
hjonaa32c3e2015-12-13 19:58:11 -080056 ],
57 'all_dependent_settings': {
58 'xcode_settings': {
59 'OTHER_LDFLAGS': [
60 '-framework AVFoundation',
61 ],
62 },
63 },
64 }],
sdefresne1a0c4612016-04-20 01:44:54 -070065 ['build_with_chromium==0', {
66 'sources': [
67 'objc/RTCFileLogger.h',
68 'objc/RTCFileLogger.mm',
69 ],
70 }],
hjonaa32c3e2015-12-13 19:58:11 -080071 ],
tkchin42f580e2015-11-26 23:18:23 -080072 }
73 ],
74 }], # OS=="ios"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000075 ],
76 'targets': [
77 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000078 # The subset of rtc_base approved for use outside of libjingle.
79 'target_name': 'rtc_base_approved',
80 'type': 'static_library',
81 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010082 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020083 'atomicops.h',
Tommicc4fdde2016-04-22 19:34:59 +020084 'bind.h',
Noah Richards915590e2015-04-22 15:43:08 -070085 'bitbuffer.cc',
86 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020087 'buffer.cc',
88 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020089 'bufferqueue.cc',
90 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070091 'bytebuffer.cc',
92 'bytebuffer.h',
93 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000094 'checks.cc',
95 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070096 'constructormagic.h',
tommiebfbab52016-03-19 11:36:18 -070097 'copyonwritebuffer.cc',
98 'copyonwritebuffer.h',
Tommi494f2092015-04-27 17:39:23 +020099 'criticalsection.cc',
100 'criticalsection.h',
kwiberg45fd9fe2015-12-16 01:09:16 -0800101 'deprecation.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +0000102 'event.cc',
103 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000104 'event_tracer.cc',
105 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000106 'exp_filter.cc',
107 'exp_filter.h',
108 'md5.cc',
109 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000110 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000111 'md5digest.h',
philipel5ab4c6d2016-03-08 03:36:15 -0800112 'mod_ops.h',
skvlad98bb6642016-04-07 15:36:45 -0700113 'onetimeevent.h',
Karl Wibergbe579832015-11-10 22:34:18 +0100114 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000115 'platform_file.cc',
116 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +0200117 'platform_thread.cc',
118 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -0800119 'platform_thread_types.h',
terelius84e78f92015-12-10 01:50:55 -0800120 'random.cc',
121 'random.h',
tkchinf75d0082016-02-23 22:49:42 -0800122 'rate_statistics.cc',
123 'rate_statistics.h',
Peter Boström2ee24392015-06-22 07:57:16 +0200124 'ratetracker.cc',
125 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -0800126 'refcount.h',
Tommid44c0772016-03-11 17:12:32 -0800127 'safe_conversions.h',
128 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +0200129 'scoped_ptr.h',
tommi04af8392016-02-14 08:11:10 -0800130 'scoped_ref_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000131 'stringencode.cc',
132 'stringencode.h',
133 'stringutils.cc',
134 'stringutils.h',
terelius85fa7d52016-03-24 01:51:52 -0700135 'swap_queue.h',
tommiefefda62015-08-20 05:04:09 -0700136 'systeminfo.cc',
137 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000138 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000139 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000140 'thread_checker.h',
141 'thread_checker_impl.cc',
142 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000143 'timeutils.cc',
144 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000145 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700146 ],
147 'conditions': [
148 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100149 'dependencies': [
150 '<(DEPTH)/base/base.gyp:base',
151 ],
Noah Richards915590e2015-04-22 15:43:08 -0700152 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700153 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700154 ],
Peter Boström11e02292015-11-25 21:36:14 +0100155 'sources': [
156 '../../webrtc_overrides/webrtc/base/logging.cc',
157 '../../webrtc_overrides/webrtc/base/logging.h',
158 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700159 }, {
160 'sources': [
Tommi23edcff2015-05-25 10:45:43 +0200161 'logging.cc',
162 'logging.h',
Tommi09ca02e2016-04-24 17:32:48 +0200163 'logging_mac.mm',
Noah Richards915590e2015-04-22 15:43:08 -0700164 ],
Noah Richards915590e2015-04-22 15:43:08 -0700165 }],
Tommi09ca02e2016-04-24 17:32:48 +0200166 ['OS=="mac" and build_with_chromium==0', {
167 'all_dependent_settings': {
168 'xcode_settings': {
169 'OTHER_LDFLAGS': [
170 # needed for logging_mac.mm
171 '-framework Foundation',
172 ],
173 },
174 },
175 }], # OS=="mac" and build_with_chromium==0
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000176 ],
177 },
178 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000179 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000180 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000181 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000182 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000183 'rtc_base_approved',
184 ],
jbroman5584bf42016-01-12 09:46:55 -0800185 'export_dependent_settings': [
186 'rtc_base_approved',
187 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000188 'defines': [
189 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700190 'SSL_USE_OPENSSL',
191 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000192 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000193 ],
194 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000195 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'asyncfile.cc',
197 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'asyncinvoker.cc',
199 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000200 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000201 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000202 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000203 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'asyncresolverinterface.h',
205 'asyncsocket.cc',
206 'asyncsocket.h',
207 'asynctcpsocket.cc',
208 'asynctcpsocket.h',
209 'asyncudpsocket.cc',
210 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000211 'autodetectproxy.cc',
212 'autodetectproxy.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000213 'base64.cc',
214 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000215 'common.cc',
216 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000217 'crc32.cc',
218 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000219 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000220 'cryptstring.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000221 'diskcache.cc',
222 'diskcache.h',
tkchin93411912015-07-22 12:12:17 -0700223 'filerotatingstream.cc',
224 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000225 'fileutils.cc',
226 'fileutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000227 'firewallsocketserver.cc',
228 'firewallsocketserver.h',
229 'flags.cc',
230 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000231 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000232 'gunit_prod.h',
233 'helpers.cc',
234 'helpers.h',
235 'httpbase.cc',
236 'httpbase.h',
237 'httpclient.cc',
238 'httpclient.h',
239 'httpcommon-inl.h',
240 'httpcommon.cc',
241 'httpcommon.h',
242 'httprequest.cc',
243 'httprequest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000244 'iosfilesystem.mm',
245 'ipaddress.cc',
246 'ipaddress.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000247 'linked_ptr.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000248 'messagedigest.cc',
249 'messagedigest.h',
250 'messagehandler.cc',
251 'messagehandler.h',
252 'messagequeue.cc',
253 'messagequeue.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000254 'nethelpers.cc',
255 'nethelpers.h',
256 'network.cc',
257 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700258 'networkmonitor.cc',
259 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000260 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700261 'openssl.h',
262 'openssladapter.cc',
263 'openssladapter.h',
264 'openssldigest.cc',
265 'openssldigest.h',
266 'opensslidentity.cc',
267 'opensslidentity.h',
268 'opensslstreamadapter.cc',
269 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000270 'pathutils.cc',
271 'pathutils.h',
272 'physicalsocketserver.cc',
273 'physicalsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000274 'proxydetect.cc',
275 'proxydetect.h',
276 'proxyinfo.cc',
277 'proxyinfo.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000278 'ratelimiter.cc',
279 'ratelimiter.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200280 'rtccertificate.cc',
281 'rtccertificate.h',
Henrik Boströmda3a1da2016-04-15 17:55:21 +0200282 'rtccertificategenerator.cc',
283 'rtccertificategenerator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000284 'sha1.cc',
285 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000286 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000287 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000288 'sharedexclusivelock.cc',
289 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000290 'signalthread.cc',
291 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000292 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000293 'sigslot.h',
294 'sigslotrepeater.h',
295 'socket.h',
296 'socketadapters.cc',
297 'socketadapters.h',
298 'socketaddress.cc',
299 'socketaddress.h',
300 'socketaddresspair.cc',
301 'socketaddresspair.h',
302 'socketfactory.h',
303 'socketpool.cc',
304 'socketpool.h',
305 'socketserver.h',
306 'socketstream.cc',
307 'socketstream.h',
308 'ssladapter.cc',
309 'ssladapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000310 'sslfingerprint.cc',
311 'sslfingerprint.h',
312 'sslidentity.cc',
313 'sslidentity.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000314 'sslsocketfactory.cc',
315 'sslsocketfactory.h',
316 'sslstreamadapter.cc',
317 'sslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000318 'stream.cc',
319 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000320 'task.cc',
321 'task.h',
322 'taskparent.cc',
323 'taskparent.h',
324 'taskrunner.cc',
325 'taskrunner.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000326 'thread.cc',
327 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000328 'timing.cc',
329 'timing.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000330 'urlencode.cc',
331 'urlencode.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000332 'worker.cc',
333 'worker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000334 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000335 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000336 # these flags.
337 'cflags!': [
338 '-Wextra',
339 '-Wall',
340 ],
341 'cflags_cc!': [
342 '-Wnon-virtual-dtor',
343 ],
344 'direct_dependent_settings': {
345 'cflags_cc!': [
346 '-Wnon-virtual-dtor',
347 ],
348 'defines': [
349 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700350 'SSL_USE_OPENSSL',
351 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000352 ],
353 },
354 'include_dirs': [
355 '../../third_party/jsoncpp/overrides/include',
356 '../../third_party/jsoncpp/source/include',
357 ],
358 'conditions': [
359 ['build_with_chromium==1', {
360 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700361 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000362 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000363 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700364 'conditions': [
365 ['OS=="win"', {
366 'sources': [
367 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
368 ],
369 }],
henrikg9dff0ba2015-10-02 10:07:50 -0700370 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700371 'defines': [
372 'NO_MAIN_THREAD_WRAPPING',
373 ],
374 'direct_dependent_settings': {
375 'defines': [
376 'NO_MAIN_THREAD_WRAPPING',
377 ],
378 },
379 }, {
380 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000381 'bandwidthsmoother.cc',
382 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000383 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000384 'fileutils_mock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000385 'httpserver.cc',
386 'httpserver.h',
387 'json.cc',
388 'json.h',
tkchin93411912015-07-22 12:12:17 -0700389 'logsinks.cc',
390 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000391 'mathutils.h',
392 'multipart.cc',
393 'multipart.h',
394 'natserver.cc',
395 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000396 'natsocketfactory.cc',
397 'natsocketfactory.h',
398 'nattypes.cc',
399 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000400 'optionsfile.cc',
401 'optionsfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000402 'profiler.cc',
403 'profiler.h',
404 'proxyserver.cc',
405 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000406 'referencecountedsingletonfactory.h',
407 'rollingaccumulator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000408 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000409 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000410 'sslconfig.h',
411 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000412 'testbase64.h',
413 'testclient.cc',
414 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000415 'transformadapter.cc',
416 'transformadapter.h',
417 'versionparsing.cc',
418 'versionparsing.h',
419 'virtualsocketserver.cc',
420 'virtualsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000421 'window.h',
kjellanderc8587ad2016-04-05 05:23:26 -0700422 'windowpicker.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700423 'windowpickerfactory.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000424 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000425 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000426 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000427 'dependencies': [
428 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
429 ],
430 }, {
431 'include_dirs': [
432 '<(json_root)',
433 ],
434 'defines': [
435 # When defined changes the include path for json.h to where it
436 # is expected to be when building json outside of the standalone
437 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000438 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000439 ],
440 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700441 ['OS=="linux"', {
442 'sources': [
443 'dbus.cc',
444 'dbus.h',
445 'libdbusglibsymboltable.cc',
446 'libdbusglibsymboltable.h',
447 'linuxfdwalk.c',
448 'linuxfdwalk.h',
449 ],
450 }],
451 ['os_posix==1', {
452 'sources': [
453 'latebindingsymboltable.cc',
kjellandera8a7ef62016-04-05 08:13:31 -0700454 'latebindingsymboltable.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700455 'posix.cc',
456 'posix.h',
457 ],
458 }],
459 ['OS=="mac"', {
460 'sources': [
461 'macasyncsocket.cc',
462 'macasyncsocket.h',
463 'maccocoasocketserver.h',
464 'maccocoasocketserver.mm',
465 'macsocketserver.cc',
466 'macsocketserver.h',
467 'macwindowpicker.cc',
468 'macwindowpicker.h',
469 ],
470 }],
471 ['OS=="win"', {
472 'sources': [
473 'diskcache_win32.cc',
474 'diskcache_win32.h',
475 'win32regkey.cc',
476 'win32regkey.h',
477 'win32socketinit.cc',
478 'win32socketinit.h',
479 'win32socketserver.cc',
480 'win32socketserver.h',
481 ],
482 }],
kjellander7cae30c2015-12-16 14:05:29 -0800483 ['OS=="win" and clang==1', {
484 'msvs_settings': {
485 'VCCLCompilerTool': {
486 'AdditionalOptions': [
487 # Disable warnings failing when compiling with Clang on Windows.
488 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800489 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800490 '-Wno-missing-braces',
491 ],
492 },
493 },
494 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700495 ], # conditions
496 }], # build_with_chromium==0
497 ['OS=="android"', {
498 'sources': [
499 'ifaddrs-android.cc',
500 'ifaddrs-android.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000501 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000502 'link_settings': {
503 'libraries': [
504 '-llog',
505 '-lGLESv2',
506 ],
507 },
kjellandera8a7ef62016-04-05 08:13:31 -0700508 }],
509 ['OS=="mac" or OS=="ios"', {
510 'sources': [
511 'maccocoathreadhelper.h',
512 'maccocoathreadhelper.mm',
513 'macconversion.cc',
514 'macconversion.h',
515 'macifaddrs_converter.cc',
516 'scoped_autorelease_pool.h',
517 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000518 ],
519 }],
520 ['OS=="ios"', {
521 'all_dependent_settings': {
522 'xcode_settings': {
523 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700524 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000525 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000526 '-framework Security',
527 '-framework SystemConfiguration',
528 '-framework UIKit',
529 ],
530 },
531 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000532 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700533 ['use_x11==1', {
534 'sources': [
535 'x11windowpicker.cc',
536 'x11windowpicker.h',
537 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000538 'link_settings': {
539 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000540 '-ldl',
541 '-lrt',
542 '-lXext',
543 '-lX11',
544 '-lXcomposite',
545 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000546 ],
547 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000548 }],
549 ['OS=="linux"', {
550 'link_settings': {
551 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000552 '-ldl',
553 '-lrt',
554 ],
555 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000556 }],
557 ['OS=="mac"', {
kjellandera8a7ef62016-04-05 08:13:31 -0700558 'sources': [
559 'macutils.cc',
560 'macutils.h',
561 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000562 'all_dependent_settings': {
563 'link_settings': {
564 'xcode_settings': {
565 'OTHER_LDFLAGS': [
566 '-framework Cocoa',
567 '-framework Foundation',
568 '-framework IOKit',
569 '-framework Security',
570 '-framework SystemConfiguration',
571 ],
572 },
573 },
574 },
575 'conditions': [
576 ['target_arch=="ia32"', {
577 'all_dependent_settings': {
578 'link_settings': {
579 'xcode_settings': {
580 'OTHER_LDFLAGS': [
581 '-framework Carbon',
582 ],
583 },
584 },
585 },
586 }],
587 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000588 }],
589 ['OS=="win"', {
kjellandera8a7ef62016-04-05 08:13:31 -0700590 'sources': [
591 'win32.cc',
592 'win32.h',
593 'win32filesystem.cc',
594 'win32filesystem.h',
595 'win32securityerrors.cc',
596 'win32window.cc',
597 'win32window.h',
598 'win32windowpicker.cc',
599 'win32windowpicker.h',
600 'winfirewall.cc',
601 'winfirewall.h',
602 'winping.cc',
603 'winping.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800604 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000605 'link_settings': {
606 'libraries': [
607 '-lcrypt32.lib',
608 '-liphlpapi.lib',
609 '-lsecur32.lib',
610 ],
611 },
612 # Suppress warnings about WIN32_LEAN_AND_MEAN.
613 'msvs_disabled_warnings': [4005, 4703],
614 'defines': [
615 '_CRT_NONSTDC_NO_DEPRECATE',
616 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000617 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700618 ['os_posix==1', {
619 'sources': [
620 'ifaddrs_converter.cc',
621 'ifaddrs_converter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000622 'unixfilesystem.cc',
623 'unixfilesystem.h',
624 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000625 'configurations': {
626 'Debug_Base': {
627 'defines': [
628 # Chromium's build/common.gypi defines this for all posix
629 # _except_ for ios & mac. We want it there as well, e.g.
630 # because ASSERT and friends trigger off of it.
631 '_DEBUG',
632 ],
633 },
634 }
635 }],
636 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
637 'defines': [
638 'CARBON_DEPRECATED=YES',
639 ],
640 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700641 ['OS=="linux" or OS=="android"', {
642 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000643 'linux.cc',
644 'linux.h',
645 ],
646 }],
torbjorng07d09362015-09-22 11:58:04 -0700647 ['build_ssl==1', {
648 'dependencies': [
649 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
650 ],
651 }, {
652 'include_dirs': [
653 '<(ssl_root)',
654 ],
655 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000656 ],
657 },
kjellander988d31e2016-02-05 00:23:50 -0800658 {
659 'target_name': 'gtest_prod',
660 'type': 'static_library',
661 'sources': [
662 'gtest_prod_util.h',
663 ],
664 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000665 ],
666}