blob: eef8c2acbac779f541e5bb2a85d799cab4796f5f [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',
philipel5ab4c6d2016-03-08 03:36:15 -0800105 'mod_ops.h',
Karl Wibergbe579832015-11-10 22:34:18 +0100106 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000107 'platform_file.cc',
108 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +0200109 'platform_thread.cc',
110 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -0800111 'platform_thread_types.h',
terelius84e78f92015-12-10 01:50:55 -0800112 'random.cc',
113 'random.h',
tkchinf75d0082016-02-23 22:49:42 -0800114 'rate_statistics.cc',
115 'rate_statistics.h',
Peter Boström2ee24392015-06-22 07:57:16 +0200116 'ratetracker.cc',
117 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -0800118 'refcount.h',
Tommic844ca42015-08-19 10:51:18 +0200119 'scoped_ptr.h',
tommi04af8392016-02-14 08:11:10 -0800120 'scoped_ref_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000121 'stringencode.cc',
122 'stringencode.h',
123 'stringutils.cc',
124 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -0700125 'systeminfo.cc',
126 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000127 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000128 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000129 'thread_checker.h',
130 'thread_checker_impl.cc',
131 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000132 'timeutils.cc',
133 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000134 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700135 ],
136 'conditions': [
137 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100138 'dependencies': [
139 '<(DEPTH)/base/base.gyp:base',
140 ],
Noah Richards915590e2015-04-22 15:43:08 -0700141 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700142 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700143 ],
Peter Boström11e02292015-11-25 21:36:14 +0100144 'sources': [
145 '../../webrtc_overrides/webrtc/base/logging.cc',
146 '../../webrtc_overrides/webrtc/base/logging.h',
147 ],
Noah Richards915590e2015-04-22 15:43:08 -0700148 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +0200149 'logging.cc',
150 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700151 ],
Noah Richards915590e2015-04-22 15:43:08 -0700152 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000153 ],
154 },
155 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000156 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000157 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000158 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000159 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000160 'rtc_base_approved',
hbosde1c81b2016-03-08 04:46:00 -0800161 'safe_numerics',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000162 ],
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',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000502 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000503 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000504 'sslconfig.h',
505 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000506 'testbase64.h',
507 'testclient.cc',
508 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000509 'transformadapter.cc',
510 'transformadapter.h',
511 'versionparsing.cc',
512 'versionparsing.h',
513 'virtualsocketserver.cc',
514 'virtualsocketserver.h',
515 'win32regkey.cc',
516 'win32regkey.h',
517 'win32socketinit.cc',
518 'win32socketinit.h',
519 'win32socketserver.cc',
520 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000521 'window.h',
522 'windowpickerfactory.h',
523 'windowpicker.h',
524 ],
525 'defines': [
526 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000527 ],
528 'direct_dependent_settings': {
529 'defines': [
530 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000531 ],
532 },
533 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000534 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000535 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000536 'dependencies': [
537 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
538 ],
539 }, {
540 'include_dirs': [
541 '<(json_root)',
542 ],
543 'defines': [
544 # When defined changes the include path for json.h to where it
545 # is expected to be when building json outside of the standalone
546 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000547 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000548 ],
549 }],
kjellander7cae30c2015-12-16 14:05:29 -0800550 ['OS=="win" and clang==1', {
551 'msvs_settings': {
552 'VCCLCompilerTool': {
553 'AdditionalOptions': [
554 # Disable warnings failing when compiling with Clang on Windows.
555 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800556 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800557 '-Wno-missing-braces',
558 ],
559 },
560 },
561 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000562 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000563 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000564 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000565 'link_settings': {
566 'libraries': [
567 '-llog',
568 '-lGLESv2',
569 ],
570 },
571 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000572 'sources!': [
573 'ifaddrs-android.cc',
574 'ifaddrs-android.h',
575 ],
576 }],
577 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200578 'sources/': [
579 ['include', 'macconversion.*'],
580 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000581 'all_dependent_settings': {
582 'xcode_settings': {
583 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700584 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000585 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000586 '-framework Security',
587 '-framework SystemConfiguration',
588 '-framework UIKit',
589 ],
590 },
591 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000592 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000593 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000594 'link_settings': {
595 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000596 '-ldl',
597 '-lrt',
598 '-lXext',
599 '-lX11',
600 '-lXcomposite',
601 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000602 ],
603 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000604 }, {
605 'sources!': [
606 'x11windowpicker.cc',
607 'x11windowpicker.h',
608 ],
609 }],
610 ['OS=="linux"', {
611 'link_settings': {
612 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000613 '-ldl',
614 '-lrt',
615 ],
616 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000617 }, {
618 'sources!': [
619 'dbus.cc',
620 'dbus.h',
621 'libdbusglibsymboltable.cc',
622 'libdbusglibsymboltable.h',
623 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000624 ],
625 }],
626 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000627 'all_dependent_settings': {
628 'link_settings': {
629 'xcode_settings': {
630 'OTHER_LDFLAGS': [
631 '-framework Cocoa',
632 '-framework Foundation',
633 '-framework IOKit',
634 '-framework Security',
635 '-framework SystemConfiguration',
636 ],
637 },
638 },
639 },
640 'conditions': [
641 ['target_arch=="ia32"', {
642 'all_dependent_settings': {
643 'link_settings': {
644 'xcode_settings': {
645 'OTHER_LDFLAGS': [
646 '-framework Carbon',
647 ],
648 },
649 },
650 },
651 }],
652 ],
653 }, {
654 'sources!': [
655 'macasyncsocket.cc',
656 'macasyncsocket.h',
657 'maccocoasocketserver.h',
658 'maccocoasocketserver.mm',
659 'macconversion.cc',
660 'macconversion.h',
661 'macsocketserver.cc',
662 'macsocketserver.h',
663 'macutils.cc',
664 'macutils.h',
665 'macwindowpicker.cc',
666 'macwindowpicker.h',
667 ],
668 }],
669 ['OS=="win"', {
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800670 'sources!': [
671 'ifaddrs_converter.cc',
672 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000673 'link_settings': {
674 'libraries': [
675 '-lcrypt32.lib',
676 '-liphlpapi.lib',
677 '-lsecur32.lib',
678 ],
679 },
680 # Suppress warnings about WIN32_LEAN_AND_MEAN.
681 'msvs_disabled_warnings': [4005, 4703],
682 'defines': [
683 '_CRT_NONSTDC_NO_DEPRECATE',
684 ],
685 }, {
686 'sources/': [
687 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
688 ],
689 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000690 'winping.cc',
691 'winping.h',
692 'winfirewall.cc',
693 'winfirewall.h',
694 ],
695 }],
696 ['os_posix==0', {
697 'sources!': [
698 'latebindingsymboltable.cc',
699 'latebindingsymboltable.h',
700 'posix.cc',
701 'posix.h',
702 'unixfilesystem.cc',
703 'unixfilesystem.h',
704 ],
705 }, {
706 'configurations': {
707 'Debug_Base': {
708 'defines': [
709 # Chromium's build/common.gypi defines this for all posix
710 # _except_ for ios & mac. We want it there as well, e.g.
711 # because ASSERT and friends trigger off of it.
712 '_DEBUG',
713 ],
714 },
715 }
716 }],
717 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
718 'defines': [
719 'CARBON_DEPRECATED=YES',
720 ],
721 }],
722 ['OS!="ios" and OS!="mac"', {
723 'sources!': [
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800724 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000725 'scoped_autorelease_pool.mm',
726 ],
727 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000728 ['OS!="linux" and OS!="android"', {
729 'sources!': [
730 'linux.cc',
731 'linux.h',
732 ],
733 }],
torbjorng07d09362015-09-22 11:58:04 -0700734 ['build_ssl==1', {
735 'dependencies': [
736 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
737 ],
738 }, {
739 'include_dirs': [
740 '<(ssl_root)',
741 ],
742 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000743 ],
744 },
kjellander988d31e2016-02-05 00:23:50 -0800745 {
746 'target_name': 'gtest_prod',
747 'type': 'static_library',
748 'sources': [
749 'gtest_prod_util.h',
750 ],
751 },
hbosde1c81b2016-03-08 04:46:00 -0800752 {
753 # GN version: webrtc/base:safe_numerics
754 'target_name': 'safe_numerics',
755 'type': 'static_library',
756 'dependencies': [
757 'rtc_base_approved',
758 ],
759 'sources': [
760 'numerics/safe_conversions.h',
761 'numerics/safe_conversions_impl.h',
762 'numerics/safe_math.h',
763 'numerics/safe_math_impl.h',
764 ],
765 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000766 ],
767}