blob: 4152448048647f5e64ac243db164613a492e8b98 [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',
Peter Boström2ee24392015-06-22 07:57:16 +0200109 'ratetracker.cc',
110 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -0800111 'refcount.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +0000112 'safe_conversions.h',
113 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +0200114 'scoped_ptr.h',
tommi04af8392016-02-14 08:11:10 -0800115 'scoped_ref_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000116 'stringencode.cc',
117 'stringencode.h',
118 'stringutils.cc',
119 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -0700120 'systeminfo.cc',
121 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000122 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000123 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000124 'thread_checker.h',
125 'thread_checker_impl.cc',
126 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000127 'timeutils.cc',
128 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000129 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700130 ],
131 'conditions': [
132 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100133 'dependencies': [
134 '<(DEPTH)/base/base.gyp:base',
135 ],
Noah Richards915590e2015-04-22 15:43:08 -0700136 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700137 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700138 ],
Peter Boström11e02292015-11-25 21:36:14 +0100139 'sources': [
140 '../../webrtc_overrides/webrtc/base/logging.cc',
141 '../../webrtc_overrides/webrtc/base/logging.h',
142 ],
Noah Richards915590e2015-04-22 15:43:08 -0700143 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +0200144 'logging.cc',
145 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700146 ],
Noah Richards915590e2015-04-22 15:43:08 -0700147 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000148 ],
149 },
150 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000151 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000152 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000153 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000154 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000155 'rtc_base_approved',
156 ],
jbroman5584bf42016-01-12 09:46:55 -0800157 'export_dependent_settings': [
158 'rtc_base_approved',
159 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000160 'defines': [
161 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700162 'SSL_USE_OPENSSL',
163 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000164 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000165 ],
166 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000167 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000168 'asyncfile.cc',
169 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000170 'asyncinvoker.cc',
171 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000172 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000173 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000174 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000175 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000176 'asyncresolverinterface.h',
177 'asyncsocket.cc',
178 'asyncsocket.h',
179 'asynctcpsocket.cc',
180 'asynctcpsocket.h',
181 'asyncudpsocket.cc',
182 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000183 'autodetectproxy.cc',
184 'autodetectproxy.h',
185 'bandwidthsmoother.cc',
186 'bandwidthsmoother.h',
187 'base64.cc',
188 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000189 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000190 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000191 'common.cc',
192 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000193 'crc32.cc',
194 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000195 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'cryptstring.h',
197 'dbus.cc',
198 'dbus.h',
199 'diskcache.cc',
200 'diskcache.h',
201 'diskcache_win32.cc',
202 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700203 'filerotatingstream.cc',
204 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000205 'fileutils.cc',
206 'fileutils.h',
207 'fileutils_mock.h',
208 'firewallsocketserver.cc',
209 'firewallsocketserver.h',
210 'flags.cc',
211 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000212 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000213 'gunit_prod.h',
214 'helpers.cc',
215 'helpers.h',
216 'httpbase.cc',
217 'httpbase.h',
218 'httpclient.cc',
219 'httpclient.h',
220 'httpcommon-inl.h',
221 'httpcommon.cc',
222 'httpcommon.h',
223 'httprequest.cc',
224 'httprequest.h',
225 'httpserver.cc',
226 'httpserver.h',
227 'ifaddrs-android.cc',
228 'ifaddrs-android.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800229 'ifaddrs_converter.cc',
230 'ifaddrs_converter.h',
231 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000232 'iosfilesystem.mm',
233 'ipaddress.cc',
234 'ipaddress.h',
235 'json.cc',
236 'json.h',
237 'latebindingsymboltable.cc',
238 'latebindingsymboltable.h',
239 'libdbusglibsymboltable.cc',
240 'libdbusglibsymboltable.h',
241 'linux.cc',
242 'linux.h',
243 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000244 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000245 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700246 'logsinks.cc',
247 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000248 'macasyncsocket.cc',
249 'macasyncsocket.h',
250 'maccocoasocketserver.h',
251 'maccocoasocketserver.mm',
252 'maccocoathreadhelper.h',
253 'maccocoathreadhelper.mm',
254 'macconversion.cc',
255 'macconversion.h',
256 'macsocketserver.cc',
257 'macsocketserver.h',
258 'macutils.cc',
259 'macutils.h',
260 'macwindowpicker.cc',
261 'macwindowpicker.h',
262 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000263 'messagedigest.cc',
264 'messagedigest.h',
265 'messagehandler.cc',
266 'messagehandler.h',
267 'messagequeue.cc',
268 'messagequeue.h',
269 'multipart.cc',
270 'multipart.h',
271 'natserver.cc',
272 'natserver.h',
273 'natsocketfactory.cc',
274 'natsocketfactory.h',
275 'nattypes.cc',
276 'nattypes.h',
277 'nethelpers.cc',
278 'nethelpers.h',
279 'network.cc',
280 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700281 'networkmonitor.cc',
282 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000283 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700284 'openssl.h',
285 'openssladapter.cc',
286 'openssladapter.h',
287 'openssldigest.cc',
288 'openssldigest.h',
289 'opensslidentity.cc',
290 'opensslidentity.h',
291 'opensslstreamadapter.cc',
292 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000293 'optionsfile.cc',
294 'optionsfile.h',
295 'pathutils.cc',
296 'pathutils.h',
297 'physicalsocketserver.cc',
298 'physicalsocketserver.h',
299 'posix.cc',
300 'posix.h',
301 'profiler.cc',
302 'profiler.h',
303 'proxydetect.cc',
304 'proxydetect.h',
305 'proxyinfo.cc',
306 'proxyinfo.h',
307 'proxyserver.cc',
308 'proxyserver.h',
309 'ratelimiter.cc',
310 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000311 'referencecountedsingletonfactory.h',
312 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200313 'rtccertificate.cc',
314 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000315 'scoped_autorelease_pool.h',
316 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000317 'scopedptrcollection.h',
318 'sec_buffer.h',
319 'sha1.cc',
320 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000321 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000322 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000323 'sharedexclusivelock.cc',
324 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000325 'signalthread.cc',
326 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000327 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000328 'sigslot.h',
329 'sigslotrepeater.h',
330 'socket.h',
331 'socketadapters.cc',
332 'socketadapters.h',
333 'socketaddress.cc',
334 'socketaddress.h',
335 'socketaddresspair.cc',
336 'socketaddresspair.h',
337 'socketfactory.h',
338 'socketpool.cc',
339 'socketpool.h',
340 'socketserver.h',
341 'socketstream.cc',
342 'socketstream.h',
343 'ssladapter.cc',
344 'ssladapter.h',
345 'sslconfig.h',
346 'sslfingerprint.cc',
347 'sslfingerprint.h',
348 'sslidentity.cc',
349 'sslidentity.h',
350 'sslroots.h',
351 'sslsocketfactory.cc',
352 'sslsocketfactory.h',
353 'sslstreamadapter.cc',
354 'sslstreamadapter.h',
355 'sslstreamadapterhelper.cc',
356 'sslstreamadapterhelper.h',
357 'stream.cc',
358 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000359 'task.cc',
360 'task.h',
361 'taskparent.cc',
362 'taskparent.h',
363 'taskrunner.cc',
364 'taskrunner.h',
365 'testclient.cc',
366 'testclient.h',
367 'thread.cc',
368 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000369 'timing.cc',
370 'timing.h',
371 'transformadapter.cc',
372 'transformadapter.h',
373 'unixfilesystem.cc',
374 'unixfilesystem.h',
375 'urlencode.cc',
376 'urlencode.h',
377 'versionparsing.cc',
378 'versionparsing.h',
379 'virtualsocketserver.cc',
380 'virtualsocketserver.h',
381 'win32.cc',
382 'win32.h',
383 'win32filesystem.cc',
384 'win32filesystem.h',
385 'win32regkey.cc',
386 'win32regkey.h',
387 'win32securityerrors.cc',
388 'win32socketinit.cc',
389 'win32socketinit.h',
390 'win32socketserver.cc',
391 'win32socketserver.h',
392 'win32window.cc',
393 'win32window.h',
394 'win32windowpicker.cc',
395 'win32windowpicker.h',
396 'window.h',
397 'windowpicker.h',
398 'windowpickerfactory.h',
399 'winfirewall.cc',
400 'winfirewall.h',
401 'winping.cc',
402 'winping.h',
403 'worker.cc',
404 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000405 'x11windowpicker.cc',
406 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000407 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000408 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000409 # these flags.
410 'cflags!': [
411 '-Wextra',
412 '-Wall',
413 ],
414 'cflags_cc!': [
415 '-Wnon-virtual-dtor',
416 ],
417 'direct_dependent_settings': {
418 'cflags_cc!': [
419 '-Wnon-virtual-dtor',
420 ],
421 'defines': [
422 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700423 'SSL_USE_OPENSSL',
424 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000425 ],
426 },
427 'include_dirs': [
428 '../../third_party/jsoncpp/overrides/include',
429 '../../third_party/jsoncpp/source/include',
430 ],
431 'conditions': [
432 ['build_with_chromium==1', {
433 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700434 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000435 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000436 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700437 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700438 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700439 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000440 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000441 'bandwidthsmoother.cc',
442 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000443 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000444 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000445 'dbus.cc',
446 'dbus.h',
447 'diskcache_win32.cc',
448 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000449 'fileutils_mock.h',
450 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000451 'httpserver.cc',
452 'httpserver.h',
453 'json.cc',
454 'json.h',
455 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000456 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000457 'libdbusglibsymboltable.cc',
458 'libdbusglibsymboltable.h',
459 'linuxfdwalk.c',
460 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000461 'x11windowpicker.cc',
462 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000463 'logging.cc',
464 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700465 'logsinks.cc',
466 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000467 'macasyncsocket.cc',
468 'macasyncsocket.h',
469 'maccocoasocketserver.h',
470 'maccocoasocketserver.mm',
471 'macsocketserver.cc',
472 'macsocketserver.h',
473 'macwindowpicker.cc',
474 'macwindowpicker.h',
475 'mathutils.h',
476 'multipart.cc',
477 'multipart.h',
478 'natserver.cc',
479 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000480 'natsocketfactory.cc',
481 'natsocketfactory.h',
482 'nattypes.cc',
483 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000484 'optionsfile.cc',
485 'optionsfile.h',
486 'posix.cc',
487 'posix.h',
488 'profiler.cc',
489 'profiler.h',
490 'proxyserver.cc',
491 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000492 'referencecountedsingletonfactory.h',
493 'rollingaccumulator.h',
494 'safe_conversions.h',
495 'safe_conversions_impl.h',
496 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000497 'sec_buffer.h',
498 'sharedexclusivelock.cc',
499 'sharedexclusivelock.h',
500 'sslconfig.h',
501 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000502 'testbase64.h',
503 'testclient.cc',
504 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000505 'transformadapter.cc',
506 'transformadapter.h',
507 'versionparsing.cc',
508 'versionparsing.h',
509 'virtualsocketserver.cc',
510 'virtualsocketserver.h',
511 'win32regkey.cc',
512 'win32regkey.h',
513 'win32socketinit.cc',
514 'win32socketinit.h',
515 'win32socketserver.cc',
516 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000517 'window.h',
518 'windowpickerfactory.h',
519 'windowpicker.h',
520 ],
521 'defines': [
522 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000523 ],
524 'direct_dependent_settings': {
525 'defines': [
526 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000527 ],
528 },
529 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000530 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000531 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000532 'dependencies': [
533 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
534 ],
535 }, {
536 'include_dirs': [
537 '<(json_root)',
538 ],
539 'defines': [
540 # When defined changes the include path for json.h to where it
541 # is expected to be when building json outside of the standalone
542 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000543 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000544 ],
545 }],
kjellander7cae30c2015-12-16 14:05:29 -0800546 ['OS=="win" and clang==1', {
547 'msvs_settings': {
548 'VCCLCompilerTool': {
549 'AdditionalOptions': [
550 # Disable warnings failing when compiling with Clang on Windows.
551 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800552 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800553 '-Wno-missing-braces',
554 ],
555 },
556 },
557 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000558 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000559 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000560 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000561 'link_settings': {
562 'libraries': [
563 '-llog',
564 '-lGLESv2',
565 ],
566 },
567 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000568 'sources!': [
569 'ifaddrs-android.cc',
570 'ifaddrs-android.h',
571 ],
572 }],
573 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200574 'sources/': [
575 ['include', 'macconversion.*'],
576 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000577 'all_dependent_settings': {
578 'xcode_settings': {
579 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700580 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000581 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000582 '-framework Security',
583 '-framework SystemConfiguration',
584 '-framework UIKit',
585 ],
586 },
587 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000588 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000589 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000590 'link_settings': {
591 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000592 '-ldl',
593 '-lrt',
594 '-lXext',
595 '-lX11',
596 '-lXcomposite',
597 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000598 ],
599 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000600 }, {
601 'sources!': [
602 'x11windowpicker.cc',
603 'x11windowpicker.h',
604 ],
605 }],
606 ['OS=="linux"', {
607 'link_settings': {
608 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000609 '-ldl',
610 '-lrt',
611 ],
612 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000613 }, {
614 'sources!': [
615 'dbus.cc',
616 'dbus.h',
617 'libdbusglibsymboltable.cc',
618 'libdbusglibsymboltable.h',
619 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000620 ],
621 }],
622 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000623 'all_dependent_settings': {
624 'link_settings': {
625 'xcode_settings': {
626 'OTHER_LDFLAGS': [
627 '-framework Cocoa',
628 '-framework Foundation',
629 '-framework IOKit',
630 '-framework Security',
631 '-framework SystemConfiguration',
632 ],
633 },
634 },
635 },
636 'conditions': [
637 ['target_arch=="ia32"', {
638 'all_dependent_settings': {
639 'link_settings': {
640 'xcode_settings': {
641 'OTHER_LDFLAGS': [
642 '-framework Carbon',
643 ],
644 },
645 },
646 },
647 }],
648 ],
649 }, {
650 'sources!': [
651 'macasyncsocket.cc',
652 'macasyncsocket.h',
653 'maccocoasocketserver.h',
654 'maccocoasocketserver.mm',
655 'macconversion.cc',
656 'macconversion.h',
657 'macsocketserver.cc',
658 'macsocketserver.h',
659 'macutils.cc',
660 'macutils.h',
661 'macwindowpicker.cc',
662 'macwindowpicker.h',
663 ],
664 }],
665 ['OS=="win"', {
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800666 'sources!': [
667 'ifaddrs_converter.cc',
668 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000669 'link_settings': {
670 'libraries': [
671 '-lcrypt32.lib',
672 '-liphlpapi.lib',
673 '-lsecur32.lib',
674 ],
675 },
676 # Suppress warnings about WIN32_LEAN_AND_MEAN.
677 'msvs_disabled_warnings': [4005, 4703],
678 'defines': [
679 '_CRT_NONSTDC_NO_DEPRECATE',
680 ],
681 }, {
682 'sources/': [
683 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
684 ],
685 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000686 'winping.cc',
687 'winping.h',
688 'winfirewall.cc',
689 'winfirewall.h',
690 ],
691 }],
692 ['os_posix==0', {
693 'sources!': [
694 'latebindingsymboltable.cc',
695 'latebindingsymboltable.h',
696 'posix.cc',
697 'posix.h',
698 'unixfilesystem.cc',
699 'unixfilesystem.h',
700 ],
701 }, {
702 'configurations': {
703 'Debug_Base': {
704 'defines': [
705 # Chromium's build/common.gypi defines this for all posix
706 # _except_ for ios & mac. We want it there as well, e.g.
707 # because ASSERT and friends trigger off of it.
708 '_DEBUG',
709 ],
710 },
711 }
712 }],
713 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
714 'defines': [
715 'CARBON_DEPRECATED=YES',
716 ],
717 }],
718 ['OS!="ios" and OS!="mac"', {
719 'sources!': [
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800720 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000721 'scoped_autorelease_pool.mm',
722 ],
723 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000724 ['OS!="linux" and OS!="android"', {
725 'sources!': [
726 'linux.cc',
727 'linux.h',
728 ],
729 }],
torbjorng07d09362015-09-22 11:58:04 -0700730 ['build_ssl==1', {
731 'dependencies': [
732 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
733 ],
734 }, {
735 'include_dirs': [
736 '<(ssl_root)',
737 ],
738 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000739 ],
740 },
kjellander988d31e2016-02-05 00:23:50 -0800741 {
742 'target_name': 'gtest_prod',
743 'type': 'static_library',
744 'sources': [
745 'gtest_prod_util.h',
746 ],
747 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000748 ],
749}