blob: a6b2b1cd4aec4cc348dc47363c7f6e432b13f479 [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 }],
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',
56 ],
57 'all_dependent_settings': {
58 'xcode_settings': {
59 'OTHER_LDFLAGS': [
60 '-framework AVFoundation',
61 ],
62 },
63 },
64 }],
65 ],
tkchin42f580e2015-11-26 23:18:23 -080066 }
67 ],
68 }], # OS=="ios"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000069 ],
70 'targets': [
71 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000072 # The subset of rtc_base approved for use outside of libjingle.
73 'target_name': 'rtc_base_approved',
74 'type': 'static_library',
75 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010076 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020077 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070078 'bitbuffer.cc',
79 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020080 'buffer.cc',
81 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020082 'bufferqueue.cc',
83 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070084 'bytebuffer.cc',
85 'bytebuffer.h',
86 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000087 'checks.cc',
88 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070089 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020090 'criticalsection.cc',
91 'criticalsection.h',
kwiberg45fd9fe2015-12-16 01:09:16 -080092 'deprecation.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000093 'event.cc',
94 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000095 'event_tracer.cc',
96 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000097 'exp_filter.cc',
98 'exp_filter.h',
Tommi23edcff2015-05-25 10:45:43 +020099 'logging.cc',
100 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000101 'md5.cc',
102 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000103 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000104 'md5digest.h',
Karl Wibergbe579832015-11-10 22:34:18 +0100105 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000106 'platform_file.cc',
107 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +0200108 'platform_thread.cc',
109 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -0800110 'platform_thread_types.h',
terelius84e78f92015-12-10 01:50:55 -0800111 'random.cc',
112 'random.h',
tkchinf75d0082016-02-23 22:49:42 -0800113 'rate_statistics.cc',
114 'rate_statistics.h',
Peter Boström2ee24392015-06-22 07:57:16 +0200115 'ratetracker.cc',
116 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -0800117 'refcount.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +0000118 'safe_conversions.h',
119 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +0200120 'scoped_ptr.h',
tommi04af8392016-02-14 08:11:10 -0800121 'scoped_ref_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000122 'stringencode.cc',
123 'stringencode.h',
124 'stringutils.cc',
125 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -0700126 'systeminfo.cc',
127 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000128 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000129 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000130 'thread_checker.h',
131 'thread_checker_impl.cc',
132 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000133 'timeutils.cc',
134 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000135 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700136 ],
137 'conditions': [
138 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100139 'dependencies': [
140 '<(DEPTH)/base/base.gyp:base',
141 ],
Noah Richards915590e2015-04-22 15:43:08 -0700142 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700143 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700144 ],
Peter Boström11e02292015-11-25 21:36:14 +0100145 'sources': [
146 '../../webrtc_overrides/webrtc/base/logging.cc',
147 '../../webrtc_overrides/webrtc/base/logging.h',
148 ],
Noah Richards915590e2015-04-22 15:43:08 -0700149 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +0200150 'logging.cc',
151 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700152 ],
Noah Richards915590e2015-04-22 15:43:08 -0700153 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000154 ],
155 },
156 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000157 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000158 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000159 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000160 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000161 'rtc_base_approved',
162 ],
jbroman5584bf42016-01-12 09:46:55 -0800163 'export_dependent_settings': [
164 'rtc_base_approved',
165 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000166 'defines': [
167 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700168 'SSL_USE_OPENSSL',
169 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000170 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000171 ],
172 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000173 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000174 'asyncfile.cc',
175 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000176 'asyncinvoker.cc',
177 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000178 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000179 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000180 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000181 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000182 'asyncresolverinterface.h',
183 'asyncsocket.cc',
184 'asyncsocket.h',
185 'asynctcpsocket.cc',
186 'asynctcpsocket.h',
187 'asyncudpsocket.cc',
188 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000189 'autodetectproxy.cc',
190 'autodetectproxy.h',
191 'bandwidthsmoother.cc',
192 'bandwidthsmoother.h',
193 'base64.cc',
194 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000195 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000197 'common.cc',
198 'common.h',
jbauch13041cf2016-02-25 06:16:52 -0800199 'copyonwritebuffer.cc',
200 'copyonwritebuffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000201 'crc32.cc',
202 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000203 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'cryptstring.h',
205 'dbus.cc',
206 'dbus.h',
207 'diskcache.cc',
208 'diskcache.h',
209 'diskcache_win32.cc',
210 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700211 'filerotatingstream.cc',
212 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000213 'fileutils.cc',
214 'fileutils.h',
215 'fileutils_mock.h',
216 'firewallsocketserver.cc',
217 'firewallsocketserver.h',
218 'flags.cc',
219 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000220 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000221 'gunit_prod.h',
222 'helpers.cc',
223 'helpers.h',
224 'httpbase.cc',
225 'httpbase.h',
226 'httpclient.cc',
227 'httpclient.h',
228 'httpcommon-inl.h',
229 'httpcommon.cc',
230 'httpcommon.h',
231 'httprequest.cc',
232 'httprequest.h',
233 'httpserver.cc',
234 'httpserver.h',
235 'ifaddrs-android.cc',
236 'ifaddrs-android.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800237 'ifaddrs_converter.cc',
238 'ifaddrs_converter.h',
239 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000240 'iosfilesystem.mm',
241 'ipaddress.cc',
242 'ipaddress.h',
243 'json.cc',
244 'json.h',
245 'latebindingsymboltable.cc',
246 'latebindingsymboltable.h',
247 'libdbusglibsymboltable.cc',
248 'libdbusglibsymboltable.h',
249 'linux.cc',
250 'linux.h',
251 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000252 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000253 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700254 'logsinks.cc',
255 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000256 'macasyncsocket.cc',
257 'macasyncsocket.h',
258 'maccocoasocketserver.h',
259 'maccocoasocketserver.mm',
260 'maccocoathreadhelper.h',
261 'maccocoathreadhelper.mm',
262 'macconversion.cc',
263 'macconversion.h',
264 'macsocketserver.cc',
265 'macsocketserver.h',
266 'macutils.cc',
267 'macutils.h',
268 'macwindowpicker.cc',
269 'macwindowpicker.h',
270 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000271 'messagedigest.cc',
272 'messagedigest.h',
273 'messagehandler.cc',
274 'messagehandler.h',
275 'messagequeue.cc',
276 'messagequeue.h',
277 'multipart.cc',
278 'multipart.h',
279 'natserver.cc',
280 'natserver.h',
281 'natsocketfactory.cc',
282 'natsocketfactory.h',
283 'nattypes.cc',
284 'nattypes.h',
285 'nethelpers.cc',
286 'nethelpers.h',
287 'network.cc',
288 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700289 'networkmonitor.cc',
290 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000291 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700292 'openssl.h',
293 'openssladapter.cc',
294 'openssladapter.h',
295 'openssldigest.cc',
296 'openssldigest.h',
297 'opensslidentity.cc',
298 'opensslidentity.h',
299 'opensslstreamadapter.cc',
300 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000301 'optionsfile.cc',
302 'optionsfile.h',
303 'pathutils.cc',
304 'pathutils.h',
305 'physicalsocketserver.cc',
306 'physicalsocketserver.h',
307 'posix.cc',
308 'posix.h',
309 'profiler.cc',
310 'profiler.h',
311 'proxydetect.cc',
312 'proxydetect.h',
313 'proxyinfo.cc',
314 'proxyinfo.h',
315 'proxyserver.cc',
316 'proxyserver.h',
317 'ratelimiter.cc',
318 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000319 'referencecountedsingletonfactory.h',
320 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200321 'rtccertificate.cc',
322 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000323 'scoped_autorelease_pool.h',
324 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000325 'scopedptrcollection.h',
326 'sec_buffer.h',
327 'sha1.cc',
328 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000329 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000330 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000331 'sharedexclusivelock.cc',
332 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000333 'signalthread.cc',
334 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000335 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000336 'sigslot.h',
337 'sigslotrepeater.h',
338 'socket.h',
339 'socketadapters.cc',
340 'socketadapters.h',
341 'socketaddress.cc',
342 'socketaddress.h',
343 'socketaddresspair.cc',
344 'socketaddresspair.h',
345 'socketfactory.h',
346 'socketpool.cc',
347 'socketpool.h',
348 'socketserver.h',
349 'socketstream.cc',
350 'socketstream.h',
351 'ssladapter.cc',
352 'ssladapter.h',
353 'sslconfig.h',
354 'sslfingerprint.cc',
355 'sslfingerprint.h',
356 'sslidentity.cc',
357 'sslidentity.h',
358 'sslroots.h',
359 'sslsocketfactory.cc',
360 'sslsocketfactory.h',
361 'sslstreamadapter.cc',
362 'sslstreamadapter.h',
363 'sslstreamadapterhelper.cc',
364 'sslstreamadapterhelper.h',
365 'stream.cc',
366 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000367 'task.cc',
368 'task.h',
369 'taskparent.cc',
370 'taskparent.h',
371 'taskrunner.cc',
372 'taskrunner.h',
373 'testclient.cc',
374 'testclient.h',
375 'thread.cc',
376 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000377 'timing.cc',
378 'timing.h',
379 'transformadapter.cc',
380 'transformadapter.h',
381 'unixfilesystem.cc',
382 'unixfilesystem.h',
383 'urlencode.cc',
384 'urlencode.h',
385 'versionparsing.cc',
386 'versionparsing.h',
387 'virtualsocketserver.cc',
388 'virtualsocketserver.h',
389 'win32.cc',
390 'win32.h',
391 'win32filesystem.cc',
392 'win32filesystem.h',
393 'win32regkey.cc',
394 'win32regkey.h',
395 'win32securityerrors.cc',
396 'win32socketinit.cc',
397 'win32socketinit.h',
398 'win32socketserver.cc',
399 'win32socketserver.h',
400 'win32window.cc',
401 'win32window.h',
402 'win32windowpicker.cc',
403 'win32windowpicker.h',
404 'window.h',
405 'windowpicker.h',
406 'windowpickerfactory.h',
407 'winfirewall.cc',
408 'winfirewall.h',
409 'winping.cc',
410 'winping.h',
411 'worker.cc',
412 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000413 'x11windowpicker.cc',
414 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000415 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000416 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000417 # these flags.
418 'cflags!': [
419 '-Wextra',
420 '-Wall',
421 ],
422 'cflags_cc!': [
423 '-Wnon-virtual-dtor',
424 ],
425 'direct_dependent_settings': {
426 'cflags_cc!': [
427 '-Wnon-virtual-dtor',
428 ],
429 'defines': [
430 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700431 'SSL_USE_OPENSSL',
432 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000433 ],
434 },
435 'include_dirs': [
436 '../../third_party/jsoncpp/overrides/include',
437 '../../third_party/jsoncpp/source/include',
438 ],
439 'conditions': [
440 ['build_with_chromium==1', {
441 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700442 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000443 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000444 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700445 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700446 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700447 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000448 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000449 'bandwidthsmoother.cc',
450 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000451 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000452 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000453 'dbus.cc',
454 'dbus.h',
455 'diskcache_win32.cc',
456 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000457 'fileutils_mock.h',
458 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000459 'httpserver.cc',
460 'httpserver.h',
461 'json.cc',
462 'json.h',
463 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000464 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000465 'libdbusglibsymboltable.cc',
466 'libdbusglibsymboltable.h',
467 'linuxfdwalk.c',
468 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000469 'x11windowpicker.cc',
470 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000471 'logging.cc',
472 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700473 'logsinks.cc',
474 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000475 'macasyncsocket.cc',
476 'macasyncsocket.h',
477 'maccocoasocketserver.h',
478 'maccocoasocketserver.mm',
479 'macsocketserver.cc',
480 'macsocketserver.h',
481 'macwindowpicker.cc',
482 'macwindowpicker.h',
483 'mathutils.h',
484 'multipart.cc',
485 'multipart.h',
486 'natserver.cc',
487 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000488 'natsocketfactory.cc',
489 'natsocketfactory.h',
490 'nattypes.cc',
491 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000492 'optionsfile.cc',
493 'optionsfile.h',
494 'posix.cc',
495 'posix.h',
496 'profiler.cc',
497 'profiler.h',
498 'proxyserver.cc',
499 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000500 'referencecountedsingletonfactory.h',
501 'rollingaccumulator.h',
502 'safe_conversions.h',
503 'safe_conversions_impl.h',
504 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000505 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000506 'sslconfig.h',
507 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000508 'testbase64.h',
509 'testclient.cc',
510 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000511 'transformadapter.cc',
512 'transformadapter.h',
513 'versionparsing.cc',
514 'versionparsing.h',
515 'virtualsocketserver.cc',
516 'virtualsocketserver.h',
517 'win32regkey.cc',
518 'win32regkey.h',
519 'win32socketinit.cc',
520 'win32socketinit.h',
521 'win32socketserver.cc',
522 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000523 'window.h',
524 'windowpickerfactory.h',
525 'windowpicker.h',
526 ],
527 'defines': [
528 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000529 ],
530 'direct_dependent_settings': {
531 'defines': [
532 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000533 ],
534 },
535 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000536 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000537 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000538 'dependencies': [
539 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
540 ],
541 }, {
542 'include_dirs': [
543 '<(json_root)',
544 ],
545 'defines': [
546 # When defined changes the include path for json.h to where it
547 # is expected to be when building json outside of the standalone
548 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000549 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000550 ],
551 }],
kjellander7cae30c2015-12-16 14:05:29 -0800552 ['OS=="win" and clang==1', {
553 'msvs_settings': {
554 'VCCLCompilerTool': {
555 'AdditionalOptions': [
556 # Disable warnings failing when compiling with Clang on Windows.
557 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800558 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800559 '-Wno-missing-braces',
560 ],
561 },
562 },
563 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000564 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000565 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000566 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000567 'link_settings': {
568 'libraries': [
569 '-llog',
570 '-lGLESv2',
571 ],
572 },
573 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000574 'sources!': [
575 'ifaddrs-android.cc',
576 'ifaddrs-android.h',
577 ],
578 }],
579 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200580 'sources/': [
581 ['include', 'macconversion.*'],
582 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000583 'all_dependent_settings': {
584 'xcode_settings': {
585 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700586 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000587 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000588 '-framework Security',
589 '-framework SystemConfiguration',
590 '-framework UIKit',
591 ],
592 },
593 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000594 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000595 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000596 'link_settings': {
597 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000598 '-ldl',
599 '-lrt',
600 '-lXext',
601 '-lX11',
602 '-lXcomposite',
603 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000604 ],
605 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000606 }, {
607 'sources!': [
608 'x11windowpicker.cc',
609 'x11windowpicker.h',
610 ],
611 }],
612 ['OS=="linux"', {
613 'link_settings': {
614 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000615 '-ldl',
616 '-lrt',
617 ],
618 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000619 }, {
620 'sources!': [
621 'dbus.cc',
622 'dbus.h',
623 'libdbusglibsymboltable.cc',
624 'libdbusglibsymboltable.h',
625 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000626 ],
627 }],
628 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000629 'all_dependent_settings': {
630 'link_settings': {
631 'xcode_settings': {
632 'OTHER_LDFLAGS': [
633 '-framework Cocoa',
634 '-framework Foundation',
635 '-framework IOKit',
636 '-framework Security',
637 '-framework SystemConfiguration',
638 ],
639 },
640 },
641 },
642 'conditions': [
643 ['target_arch=="ia32"', {
644 'all_dependent_settings': {
645 'link_settings': {
646 'xcode_settings': {
647 'OTHER_LDFLAGS': [
648 '-framework Carbon',
649 ],
650 },
651 },
652 },
653 }],
654 ],
655 }, {
656 'sources!': [
657 'macasyncsocket.cc',
658 'macasyncsocket.h',
659 'maccocoasocketserver.h',
660 'maccocoasocketserver.mm',
661 'macconversion.cc',
662 'macconversion.h',
663 'macsocketserver.cc',
664 'macsocketserver.h',
665 'macutils.cc',
666 'macutils.h',
667 'macwindowpicker.cc',
668 'macwindowpicker.h',
669 ],
670 }],
671 ['OS=="win"', {
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800672 'sources!': [
673 'ifaddrs_converter.cc',
674 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000675 'link_settings': {
676 'libraries': [
677 '-lcrypt32.lib',
678 '-liphlpapi.lib',
679 '-lsecur32.lib',
680 ],
681 },
682 # Suppress warnings about WIN32_LEAN_AND_MEAN.
683 'msvs_disabled_warnings': [4005, 4703],
684 'defines': [
685 '_CRT_NONSTDC_NO_DEPRECATE',
686 ],
687 }, {
688 'sources/': [
689 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
690 ],
691 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000692 'winping.cc',
693 'winping.h',
694 'winfirewall.cc',
695 'winfirewall.h',
696 ],
697 }],
698 ['os_posix==0', {
699 'sources!': [
700 'latebindingsymboltable.cc',
701 'latebindingsymboltable.h',
702 'posix.cc',
703 'posix.h',
704 'unixfilesystem.cc',
705 'unixfilesystem.h',
706 ],
707 }, {
708 'configurations': {
709 'Debug_Base': {
710 'defines': [
711 # Chromium's build/common.gypi defines this for all posix
712 # _except_ for ios & mac. We want it there as well, e.g.
713 # because ASSERT and friends trigger off of it.
714 '_DEBUG',
715 ],
716 },
717 }
718 }],
719 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
720 'defines': [
721 'CARBON_DEPRECATED=YES',
722 ],
723 }],
724 ['OS!="ios" and OS!="mac"', {
725 'sources!': [
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800726 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000727 'scoped_autorelease_pool.mm',
728 ],
729 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000730 ['OS!="linux" and OS!="android"', {
731 'sources!': [
732 'linux.cc',
733 'linux.h',
734 ],
735 }],
torbjorng07d09362015-09-22 11:58:04 -0700736 ['build_ssl==1', {
737 'dependencies': [
738 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
739 ],
740 }, {
741 'include_dirs': [
742 '<(ssl_root)',
743 ],
744 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000745 ],
746 },
kjellander988d31e2016-02-05 00:23:50 -0800747 {
748 'target_name': 'gtest_prod',
749 'type': 'static_library',
750 'sources': [
751 'gtest_prod_util.h',
752 ],
753 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000754 ],
755}