blob: bf397665e04094b0c21b14462bc1835833a00ec7 [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',
tkchin42f580e2015-11-26 23:18:23 -080039 'objc/RTCLogging.h',
hayscedd8fef2015-12-08 11:08:39 -080040 'objc/RTCLogging.mm',
tkchind1fb26d2016-02-03 01:51:18 -080041 'objc/RTCMacros.h',
Jon Hjelleda99da82016-01-20 13:40:30 -080042 'objc/RTCSSLAdapter.h',
43 'objc/RTCSSLAdapter.mm',
tkchind1fb26d2016-02-03 01:51:18 -080044 'objc/RTCTracing.h',
45 'objc/RTCTracing.mm',
tkchin42f580e2015-11-26 23:18:23 -080046 ],
hjonaa32c3e2015-12-13 19:58:11 -080047 'conditions': [
48 ['OS=="ios"', {
49 'sources': [
50 'objc/RTCCameraPreviewView.h',
51 'objc/RTCCameraPreviewView.m',
52 ],
53 'all_dependent_settings': {
54 'xcode_settings': {
55 'OTHER_LDFLAGS': [
56 '-framework AVFoundation',
57 ],
58 },
59 },
60 }],
61 ],
tkchin42f580e2015-11-26 23:18:23 -080062 }
63 ],
64 }], # OS=="ios"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000065 ],
66 'targets': [
67 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000068 # The subset of rtc_base approved for use outside of libjingle.
69 'target_name': 'rtc_base_approved',
70 'type': 'static_library',
71 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010072 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020073 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070074 'bitbuffer.cc',
75 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020076 'buffer.cc',
77 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020078 'bufferqueue.cc',
79 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070080 'bytebuffer.cc',
81 'bytebuffer.h',
82 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000083 'checks.cc',
84 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070085 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020086 'criticalsection.cc',
87 'criticalsection.h',
kwiberg45fd9fe2015-12-16 01:09:16 -080088 'deprecation.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000089 'event.cc',
90 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000091 'event_tracer.cc',
92 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000093 'exp_filter.cc',
94 'exp_filter.h',
Tommi23edcff2015-05-25 10:45:43 +020095 'logging.cc',
96 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000097 'md5.cc',
98 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000099 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000100 'md5digest.h',
Karl Wibergbe579832015-11-10 22:34:18 +0100101 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000102 'platform_file.cc',
103 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +0200104 'platform_thread.cc',
105 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -0800106 'platform_thread_types.h',
terelius84e78f92015-12-10 01:50:55 -0800107 'random.cc',
108 'random.h',
tkchinf75d0082016-02-23 22:49:42 -0800109 'rate_statistics.cc',
110 'rate_statistics.h',
Peter Boström2ee24392015-06-22 07:57:16 +0200111 'ratetracker.cc',
112 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -0800113 'refcount.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +0000114 'safe_conversions.h',
115 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +0200116 'scoped_ptr.h',
tommi04af8392016-02-14 08:11:10 -0800117 'scoped_ref_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000118 'stringencode.cc',
119 'stringencode.h',
120 'stringutils.cc',
121 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -0700122 'systeminfo.cc',
123 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000124 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000125 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000126 'thread_checker.h',
127 'thread_checker_impl.cc',
128 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000129 'timeutils.cc',
130 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000131 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700132 ],
133 'conditions': [
134 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100135 'dependencies': [
136 '<(DEPTH)/base/base.gyp:base',
137 ],
Noah Richards915590e2015-04-22 15:43:08 -0700138 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700139 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700140 ],
Peter Boström11e02292015-11-25 21:36:14 +0100141 'sources': [
142 '../../webrtc_overrides/webrtc/base/logging.cc',
143 '../../webrtc_overrides/webrtc/base/logging.h',
144 ],
Noah Richards915590e2015-04-22 15:43:08 -0700145 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +0200146 'logging.cc',
147 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700148 ],
Noah Richards915590e2015-04-22 15:43:08 -0700149 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000150 ],
151 },
152 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000153 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000154 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000155 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000156 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000157 'rtc_base_approved',
158 ],
jbroman5584bf42016-01-12 09:46:55 -0800159 'export_dependent_settings': [
160 'rtc_base_approved',
161 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000162 'defines': [
163 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700164 'SSL_USE_OPENSSL',
165 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000166 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000167 ],
168 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000169 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000170 'asyncfile.cc',
171 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000172 'asyncinvoker.cc',
173 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000174 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000175 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000176 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000177 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000178 'asyncresolverinterface.h',
179 'asyncsocket.cc',
180 'asyncsocket.h',
181 'asynctcpsocket.cc',
182 'asynctcpsocket.h',
183 'asyncudpsocket.cc',
184 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000185 'autodetectproxy.cc',
186 'autodetectproxy.h',
187 'bandwidthsmoother.cc',
188 'bandwidthsmoother.h',
189 'base64.cc',
190 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000191 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000192 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000193 'common.cc',
194 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000195 'crc32.cc',
196 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000197 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'cryptstring.h',
199 'dbus.cc',
200 'dbus.h',
201 'diskcache.cc',
202 'diskcache.h',
203 'diskcache_win32.cc',
204 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700205 'filerotatingstream.cc',
206 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000207 'fileutils.cc',
208 'fileutils.h',
209 'fileutils_mock.h',
210 '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',
227 'httpserver.cc',
228 'httpserver.h',
229 'ifaddrs-android.cc',
230 'ifaddrs-android.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800231 'ifaddrs_converter.cc',
232 'ifaddrs_converter.h',
233 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000234 'iosfilesystem.mm',
235 'ipaddress.cc',
236 'ipaddress.h',
237 'json.cc',
238 'json.h',
239 'latebindingsymboltable.cc',
240 'latebindingsymboltable.h',
241 'libdbusglibsymboltable.cc',
242 'libdbusglibsymboltable.h',
243 'linux.cc',
244 'linux.h',
245 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000246 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000247 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700248 'logsinks.cc',
249 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000250 'macasyncsocket.cc',
251 'macasyncsocket.h',
252 'maccocoasocketserver.h',
253 'maccocoasocketserver.mm',
254 'maccocoathreadhelper.h',
255 'maccocoathreadhelper.mm',
256 'macconversion.cc',
257 'macconversion.h',
258 'macsocketserver.cc',
259 'macsocketserver.h',
260 'macutils.cc',
261 'macutils.h',
262 'macwindowpicker.cc',
263 'macwindowpicker.h',
264 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000265 'messagedigest.cc',
266 'messagedigest.h',
267 'messagehandler.cc',
268 'messagehandler.h',
269 'messagequeue.cc',
270 'messagequeue.h',
271 'multipart.cc',
272 'multipart.h',
273 'natserver.cc',
274 'natserver.h',
275 'natsocketfactory.cc',
276 'natsocketfactory.h',
277 'nattypes.cc',
278 'nattypes.h',
279 'nethelpers.cc',
280 'nethelpers.h',
281 'network.cc',
282 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700283 'networkmonitor.cc',
284 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000285 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700286 'openssl.h',
287 'openssladapter.cc',
288 'openssladapter.h',
289 'openssldigest.cc',
290 'openssldigest.h',
291 'opensslidentity.cc',
292 'opensslidentity.h',
293 'opensslstreamadapter.cc',
294 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000295 'optionsfile.cc',
296 'optionsfile.h',
297 'pathutils.cc',
298 'pathutils.h',
299 'physicalsocketserver.cc',
300 'physicalsocketserver.h',
301 'posix.cc',
302 'posix.h',
303 'profiler.cc',
304 'profiler.h',
305 'proxydetect.cc',
306 'proxydetect.h',
307 'proxyinfo.cc',
308 'proxyinfo.h',
309 'proxyserver.cc',
310 'proxyserver.h',
311 'ratelimiter.cc',
312 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000313 'referencecountedsingletonfactory.h',
314 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200315 'rtccertificate.cc',
316 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000317 'scoped_autorelease_pool.h',
318 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000319 'scopedptrcollection.h',
320 'sec_buffer.h',
321 'sha1.cc',
322 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000323 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000324 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000325 'sharedexclusivelock.cc',
326 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000327 'signalthread.cc',
328 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000329 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000330 'sigslot.h',
331 'sigslotrepeater.h',
332 'socket.h',
333 'socketadapters.cc',
334 'socketadapters.h',
335 'socketaddress.cc',
336 'socketaddress.h',
337 'socketaddresspair.cc',
338 'socketaddresspair.h',
339 'socketfactory.h',
340 'socketpool.cc',
341 'socketpool.h',
342 'socketserver.h',
343 'socketstream.cc',
344 'socketstream.h',
345 'ssladapter.cc',
346 'ssladapter.h',
347 'sslconfig.h',
348 'sslfingerprint.cc',
349 'sslfingerprint.h',
350 'sslidentity.cc',
351 'sslidentity.h',
352 'sslroots.h',
353 'sslsocketfactory.cc',
354 'sslsocketfactory.h',
355 'sslstreamadapter.cc',
356 'sslstreamadapter.h',
357 'sslstreamadapterhelper.cc',
358 'sslstreamadapterhelper.h',
359 'stream.cc',
360 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000361 'task.cc',
362 'task.h',
363 'taskparent.cc',
364 'taskparent.h',
365 'taskrunner.cc',
366 'taskrunner.h',
367 'testclient.cc',
368 'testclient.h',
369 'thread.cc',
370 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000371 'timing.cc',
372 'timing.h',
373 'transformadapter.cc',
374 'transformadapter.h',
375 'unixfilesystem.cc',
376 'unixfilesystem.h',
377 'urlencode.cc',
378 'urlencode.h',
379 'versionparsing.cc',
380 'versionparsing.h',
381 'virtualsocketserver.cc',
382 'virtualsocketserver.h',
383 'win32.cc',
384 'win32.h',
385 'win32filesystem.cc',
386 'win32filesystem.h',
387 'win32regkey.cc',
388 'win32regkey.h',
389 'win32securityerrors.cc',
390 'win32socketinit.cc',
391 'win32socketinit.h',
392 'win32socketserver.cc',
393 'win32socketserver.h',
394 'win32window.cc',
395 'win32window.h',
396 'win32windowpicker.cc',
397 'win32windowpicker.h',
398 'window.h',
399 'windowpicker.h',
400 'windowpickerfactory.h',
401 'winfirewall.cc',
402 'winfirewall.h',
403 'winping.cc',
404 'winping.h',
405 'worker.cc',
406 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000407 'x11windowpicker.cc',
408 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000409 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000410 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000411 # these flags.
412 'cflags!': [
413 '-Wextra',
414 '-Wall',
415 ],
416 'cflags_cc!': [
417 '-Wnon-virtual-dtor',
418 ],
419 'direct_dependent_settings': {
420 'cflags_cc!': [
421 '-Wnon-virtual-dtor',
422 ],
423 'defines': [
424 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700425 'SSL_USE_OPENSSL',
426 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000427 ],
428 },
429 'include_dirs': [
430 '../../third_party/jsoncpp/overrides/include',
431 '../../third_party/jsoncpp/source/include',
432 ],
433 'conditions': [
434 ['build_with_chromium==1', {
435 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700436 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000437 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000438 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700439 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700440 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700441 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000442 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000443 'bandwidthsmoother.cc',
444 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000445 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000446 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000447 'dbus.cc',
448 'dbus.h',
449 'diskcache_win32.cc',
450 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000451 'fileutils_mock.h',
452 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000453 'httpserver.cc',
454 'httpserver.h',
455 'json.cc',
456 'json.h',
457 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000458 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000459 'libdbusglibsymboltable.cc',
460 'libdbusglibsymboltable.h',
461 'linuxfdwalk.c',
462 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000463 'x11windowpicker.cc',
464 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000465 'logging.cc',
466 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700467 'logsinks.cc',
468 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000469 'macasyncsocket.cc',
470 'macasyncsocket.h',
471 'maccocoasocketserver.h',
472 'maccocoasocketserver.mm',
473 'macsocketserver.cc',
474 'macsocketserver.h',
475 'macwindowpicker.cc',
476 'macwindowpicker.h',
477 'mathutils.h',
478 'multipart.cc',
479 'multipart.h',
480 'natserver.cc',
481 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000482 'natsocketfactory.cc',
483 'natsocketfactory.h',
484 'nattypes.cc',
485 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000486 'optionsfile.cc',
487 'optionsfile.h',
488 'posix.cc',
489 'posix.h',
490 'profiler.cc',
491 'profiler.h',
492 'proxyserver.cc',
493 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000494 'referencecountedsingletonfactory.h',
495 'rollingaccumulator.h',
496 'safe_conversions.h',
497 'safe_conversions_impl.h',
498 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000499 'sec_buffer.h',
500 'sharedexclusivelock.cc',
501 'sharedexclusivelock.h',
502 'sslconfig.h',
503 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000504 'testbase64.h',
505 'testclient.cc',
506 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000507 'transformadapter.cc',
508 'transformadapter.h',
509 'versionparsing.cc',
510 'versionparsing.h',
511 'virtualsocketserver.cc',
512 'virtualsocketserver.h',
513 'win32regkey.cc',
514 'win32regkey.h',
515 'win32socketinit.cc',
516 'win32socketinit.h',
517 'win32socketserver.cc',
518 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000519 'window.h',
520 'windowpickerfactory.h',
521 'windowpicker.h',
522 ],
523 'defines': [
524 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000525 ],
526 'direct_dependent_settings': {
527 'defines': [
528 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000529 ],
530 },
531 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000532 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000533 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000534 'dependencies': [
535 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
536 ],
537 }, {
538 'include_dirs': [
539 '<(json_root)',
540 ],
541 'defines': [
542 # When defined changes the include path for json.h to where it
543 # is expected to be when building json outside of the standalone
544 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000545 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000546 ],
547 }],
kjellander7cae30c2015-12-16 14:05:29 -0800548 ['OS=="win" and clang==1', {
549 'msvs_settings': {
550 'VCCLCompilerTool': {
551 'AdditionalOptions': [
552 # Disable warnings failing when compiling with Clang on Windows.
553 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800554 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800555 '-Wno-missing-braces',
556 ],
557 },
558 },
559 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000560 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000561 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000562 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000563 'link_settings': {
564 'libraries': [
565 '-llog',
566 '-lGLESv2',
567 ],
568 },
569 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000570 'sources!': [
571 'ifaddrs-android.cc',
572 'ifaddrs-android.h',
573 ],
574 }],
575 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200576 'sources/': [
577 ['include', 'macconversion.*'],
578 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000579 'all_dependent_settings': {
580 'xcode_settings': {
581 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700582 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000583 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000584 '-framework Security',
585 '-framework SystemConfiguration',
586 '-framework UIKit',
587 ],
588 },
589 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000590 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000591 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000592 'link_settings': {
593 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000594 '-ldl',
595 '-lrt',
596 '-lXext',
597 '-lX11',
598 '-lXcomposite',
599 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000600 ],
601 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000602 }, {
603 'sources!': [
604 'x11windowpicker.cc',
605 'x11windowpicker.h',
606 ],
607 }],
608 ['OS=="linux"', {
609 'link_settings': {
610 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000611 '-ldl',
612 '-lrt',
613 ],
614 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000615 }, {
616 'sources!': [
617 'dbus.cc',
618 'dbus.h',
619 'libdbusglibsymboltable.cc',
620 'libdbusglibsymboltable.h',
621 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000622 ],
623 }],
624 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000625 'all_dependent_settings': {
626 'link_settings': {
627 'xcode_settings': {
628 'OTHER_LDFLAGS': [
629 '-framework Cocoa',
630 '-framework Foundation',
631 '-framework IOKit',
632 '-framework Security',
633 '-framework SystemConfiguration',
634 ],
635 },
636 },
637 },
638 'conditions': [
639 ['target_arch=="ia32"', {
640 'all_dependent_settings': {
641 'link_settings': {
642 'xcode_settings': {
643 'OTHER_LDFLAGS': [
644 '-framework Carbon',
645 ],
646 },
647 },
648 },
649 }],
650 ],
651 }, {
652 'sources!': [
653 'macasyncsocket.cc',
654 'macasyncsocket.h',
655 'maccocoasocketserver.h',
656 'maccocoasocketserver.mm',
657 'macconversion.cc',
658 'macconversion.h',
659 'macsocketserver.cc',
660 'macsocketserver.h',
661 'macutils.cc',
662 'macutils.h',
663 'macwindowpicker.cc',
664 'macwindowpicker.h',
665 ],
666 }],
667 ['OS=="win"', {
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800668 'sources!': [
669 'ifaddrs_converter.cc',
670 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000671 'link_settings': {
672 'libraries': [
673 '-lcrypt32.lib',
674 '-liphlpapi.lib',
675 '-lsecur32.lib',
676 ],
677 },
678 # Suppress warnings about WIN32_LEAN_AND_MEAN.
679 'msvs_disabled_warnings': [4005, 4703],
680 'defines': [
681 '_CRT_NONSTDC_NO_DEPRECATE',
682 ],
683 }, {
684 'sources/': [
685 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
686 ],
687 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000688 'winping.cc',
689 'winping.h',
690 'winfirewall.cc',
691 'winfirewall.h',
692 ],
693 }],
694 ['os_posix==0', {
695 'sources!': [
696 'latebindingsymboltable.cc',
697 'latebindingsymboltable.h',
698 'posix.cc',
699 'posix.h',
700 'unixfilesystem.cc',
701 'unixfilesystem.h',
702 ],
703 }, {
704 'configurations': {
705 'Debug_Base': {
706 'defines': [
707 # Chromium's build/common.gypi defines this for all posix
708 # _except_ for ios & mac. We want it there as well, e.g.
709 # because ASSERT and friends trigger off of it.
710 '_DEBUG',
711 ],
712 },
713 }
714 }],
715 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
716 'defines': [
717 'CARBON_DEPRECATED=YES',
718 ],
719 }],
720 ['OS!="ios" and OS!="mac"', {
721 'sources!': [
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800722 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000723 'scoped_autorelease_pool.mm',
724 ],
725 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000726 ['OS!="linux" and OS!="android"', {
727 'sources!': [
728 'linux.cc',
729 'linux.h',
730 ],
731 }],
torbjorng07d09362015-09-22 11:58:04 -0700732 ['build_ssl==1', {
733 'dependencies': [
734 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
735 ],
736 }, {
737 'include_dirs': [
738 '<(ssl_root)',
739 ],
740 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000741 ],
742 },
kjellander988d31e2016-02-05 00:23:50 -0800743 {
744 'target_name': 'gtest_prod',
745 'type': 'static_library',
746 'sources': [
747 'gtest_prod_util.h',
748 ],
749 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000750 ],
751}