blob: 23d8ffe1651343a881dc4d85c5dcf0f0e1cf93b3 [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 }],
tkchin42f580e2015-11-26 23:18:23 -080025 # TODO(tkchin): Mac support. There are a bunch of problems right now because
26 # of some settings pulled down from Chromium.
27 ['OS=="ios"', {
28 'targets': [
29 {
30 'target_name': 'rtc_base_objc',
31 'type': 'static_library',
32 'dependencies': [
33 'rtc_base',
34 ],
35 'sources': [
hjonaa32c3e2015-12-13 19:58:11 -080036 'objc/NSString+StdString.h',
37 'objc/NSString+StdString.mm',
hayscedd8fef2015-12-08 11:08:39 -080038 'objc/RTCDispatcher.h',
39 'objc/RTCDispatcher.m',
tkchin42f580e2015-11-26 23:18:23 -080040 'objc/RTCLogging.h',
hayscedd8fef2015-12-08 11:08:39 -080041 'objc/RTCLogging.mm',
tkchind1fb26d2016-02-03 01:51:18 -080042 'objc/RTCMacros.h',
Jon Hjelleda99da82016-01-20 13:40:30 -080043 'objc/RTCSSLAdapter.h',
44 'objc/RTCSSLAdapter.mm',
tkchind1fb26d2016-02-03 01:51:18 -080045 'objc/RTCTracing.h',
46 'objc/RTCTracing.mm',
tkchin42f580e2015-11-26 23:18:23 -080047 ],
hjonaa32c3e2015-12-13 19:58:11 -080048 'conditions': [
49 ['OS=="ios"', {
50 'sources': [
51 'objc/RTCCameraPreviewView.h',
52 'objc/RTCCameraPreviewView.m',
53 ],
54 'all_dependent_settings': {
55 'xcode_settings': {
56 'OTHER_LDFLAGS': [
57 '-framework AVFoundation',
58 ],
59 },
60 },
61 }],
62 ],
tkchin42f580e2015-11-26 23:18:23 -080063 'xcode_settings': {
64 'CLANG_ENABLE_OBJC_ARC': 'YES',
65 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
66 },
67 }
68 ],
69 }], # OS=="ios"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000070 ],
71 'targets': [
72 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000073 # The subset of rtc_base approved for use outside of libjingle.
74 'target_name': 'rtc_base_approved',
75 'type': 'static_library',
76 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010077 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020078 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070079 'bitbuffer.cc',
80 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020081 'buffer.cc',
82 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020083 'bufferqueue.cc',
84 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070085 'bytebuffer.cc',
86 'bytebuffer.h',
87 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000088 'checks.cc',
89 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070090 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020091 'criticalsection.cc',
92 'criticalsection.h',
kwiberg45fd9fe2015-12-16 01:09:16 -080093 'deprecation.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000094 'event.cc',
95 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000096 'event_tracer.cc',
97 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000098 'exp_filter.cc',
99 'exp_filter.h',
Tommi23edcff2015-05-25 10:45:43 +0200100 'logging.cc',
101 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000102 'md5.cc',
103 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000104 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000105 'md5digest.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',
Peter Boström2ee24392015-06-22 07:57:16 +0200114 'ratetracker.cc',
115 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -0800116 'refcount.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +0000117 'safe_conversions.h',
118 'safe_conversions_impl.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',
161 ],
jbroman5584bf42016-01-12 09:46:55 -0800162 'export_dependent_settings': [
163 'rtc_base_approved',
164 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000165 'defines': [
166 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700167 'SSL_USE_OPENSSL',
168 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000169 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000170 ],
171 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000172 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000173 'asyncfile.cc',
174 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000175 'asyncinvoker.cc',
176 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000177 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000178 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000179 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000180 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000181 'asyncresolverinterface.h',
182 'asyncsocket.cc',
183 'asyncsocket.h',
184 'asynctcpsocket.cc',
185 'asynctcpsocket.h',
186 'asyncudpsocket.cc',
187 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000188 'autodetectproxy.cc',
189 'autodetectproxy.h',
190 'bandwidthsmoother.cc',
191 'bandwidthsmoother.h',
192 'base64.cc',
193 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000194 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000195 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'common.cc',
197 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'crc32.cc',
199 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000200 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000201 'cryptstring.h',
202 'dbus.cc',
203 'dbus.h',
204 'diskcache.cc',
205 'diskcache.h',
206 'diskcache_win32.cc',
207 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700208 'filerotatingstream.cc',
209 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000210 'fileutils.cc',
211 'fileutils.h',
212 'fileutils_mock.h',
213 'firewallsocketserver.cc',
214 'firewallsocketserver.h',
215 'flags.cc',
216 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000217 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000218 'gunit_prod.h',
219 'helpers.cc',
220 'helpers.h',
221 'httpbase.cc',
222 'httpbase.h',
223 'httpclient.cc',
224 'httpclient.h',
225 'httpcommon-inl.h',
226 'httpcommon.cc',
227 'httpcommon.h',
228 'httprequest.cc',
229 'httprequest.h',
230 'httpserver.cc',
231 'httpserver.h',
232 'ifaddrs-android.cc',
233 'ifaddrs-android.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800234 'ifaddrs_converter.cc',
235 'ifaddrs_converter.h',
236 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000237 'iosfilesystem.mm',
238 'ipaddress.cc',
239 'ipaddress.h',
240 'json.cc',
241 'json.h',
242 'latebindingsymboltable.cc',
243 'latebindingsymboltable.h',
244 'libdbusglibsymboltable.cc',
245 'libdbusglibsymboltable.h',
246 'linux.cc',
247 'linux.h',
248 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000249 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000250 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700251 'logsinks.cc',
252 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000253 'macasyncsocket.cc',
254 'macasyncsocket.h',
255 'maccocoasocketserver.h',
256 'maccocoasocketserver.mm',
257 'maccocoathreadhelper.h',
258 'maccocoathreadhelper.mm',
259 'macconversion.cc',
260 'macconversion.h',
261 'macsocketserver.cc',
262 'macsocketserver.h',
263 'macutils.cc',
264 'macutils.h',
265 'macwindowpicker.cc',
266 'macwindowpicker.h',
267 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000268 'messagedigest.cc',
269 'messagedigest.h',
270 'messagehandler.cc',
271 'messagehandler.h',
272 'messagequeue.cc',
273 'messagequeue.h',
274 'multipart.cc',
275 'multipart.h',
276 'natserver.cc',
277 'natserver.h',
278 'natsocketfactory.cc',
279 'natsocketfactory.h',
280 'nattypes.cc',
281 'nattypes.h',
282 'nethelpers.cc',
283 'nethelpers.h',
284 'network.cc',
285 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700286 'networkmonitor.cc',
287 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000288 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700289 'openssl.h',
290 'openssladapter.cc',
291 'openssladapter.h',
292 'openssldigest.cc',
293 'openssldigest.h',
294 'opensslidentity.cc',
295 'opensslidentity.h',
296 'opensslstreamadapter.cc',
297 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000298 'optionsfile.cc',
299 'optionsfile.h',
300 'pathutils.cc',
301 'pathutils.h',
302 'physicalsocketserver.cc',
303 'physicalsocketserver.h',
304 'posix.cc',
305 'posix.h',
306 'profiler.cc',
307 'profiler.h',
308 'proxydetect.cc',
309 'proxydetect.h',
310 'proxyinfo.cc',
311 'proxyinfo.h',
312 'proxyserver.cc',
313 'proxyserver.h',
314 'ratelimiter.cc',
315 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000316 'referencecountedsingletonfactory.h',
317 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200318 'rtccertificate.cc',
319 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000320 'scoped_autorelease_pool.h',
321 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000322 'scopedptrcollection.h',
323 'sec_buffer.h',
324 'sha1.cc',
325 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000326 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000327 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000328 'sharedexclusivelock.cc',
329 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000330 'signalthread.cc',
331 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000332 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000333 'sigslot.h',
334 'sigslotrepeater.h',
335 'socket.h',
336 'socketadapters.cc',
337 'socketadapters.h',
338 'socketaddress.cc',
339 'socketaddress.h',
340 'socketaddresspair.cc',
341 'socketaddresspair.h',
342 'socketfactory.h',
343 'socketpool.cc',
344 'socketpool.h',
345 'socketserver.h',
346 'socketstream.cc',
347 'socketstream.h',
348 'ssladapter.cc',
349 'ssladapter.h',
350 'sslconfig.h',
351 'sslfingerprint.cc',
352 'sslfingerprint.h',
353 'sslidentity.cc',
354 'sslidentity.h',
355 'sslroots.h',
356 'sslsocketfactory.cc',
357 'sslsocketfactory.h',
358 'sslstreamadapter.cc',
359 'sslstreamadapter.h',
360 'sslstreamadapterhelper.cc',
361 'sslstreamadapterhelper.h',
362 'stream.cc',
363 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000364 'task.cc',
365 'task.h',
366 'taskparent.cc',
367 'taskparent.h',
368 'taskrunner.cc',
369 'taskrunner.h',
370 'testclient.cc',
371 'testclient.h',
372 'thread.cc',
373 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000374 'timing.cc',
375 'timing.h',
376 'transformadapter.cc',
377 'transformadapter.h',
378 'unixfilesystem.cc',
379 'unixfilesystem.h',
380 'urlencode.cc',
381 'urlencode.h',
382 'versionparsing.cc',
383 'versionparsing.h',
384 'virtualsocketserver.cc',
385 'virtualsocketserver.h',
386 'win32.cc',
387 'win32.h',
388 'win32filesystem.cc',
389 'win32filesystem.h',
390 'win32regkey.cc',
391 'win32regkey.h',
392 'win32securityerrors.cc',
393 'win32socketinit.cc',
394 'win32socketinit.h',
395 'win32socketserver.cc',
396 'win32socketserver.h',
397 'win32window.cc',
398 'win32window.h',
399 'win32windowpicker.cc',
400 'win32windowpicker.h',
401 'window.h',
402 'windowpicker.h',
403 'windowpickerfactory.h',
404 'winfirewall.cc',
405 'winfirewall.h',
406 'winping.cc',
407 'winping.h',
408 'worker.cc',
409 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000410 'x11windowpicker.cc',
411 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000412 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000413 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000414 # these flags.
415 'cflags!': [
416 '-Wextra',
417 '-Wall',
418 ],
419 'cflags_cc!': [
420 '-Wnon-virtual-dtor',
421 ],
422 'direct_dependent_settings': {
423 'cflags_cc!': [
424 '-Wnon-virtual-dtor',
425 ],
426 'defines': [
427 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700428 'SSL_USE_OPENSSL',
429 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000430 ],
431 },
432 'include_dirs': [
433 '../../third_party/jsoncpp/overrides/include',
434 '../../third_party/jsoncpp/source/include',
435 ],
436 'conditions': [
437 ['build_with_chromium==1', {
438 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700439 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000440 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000441 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700442 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700443 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700444 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000445 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000446 'bandwidthsmoother.cc',
447 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000448 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000449 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000450 'dbus.cc',
451 'dbus.h',
452 'diskcache_win32.cc',
453 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000454 'fileutils_mock.h',
455 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000456 'httpserver.cc',
457 'httpserver.h',
458 'json.cc',
459 'json.h',
460 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000461 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000462 'libdbusglibsymboltable.cc',
463 'libdbusglibsymboltable.h',
464 'linuxfdwalk.c',
465 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000466 'x11windowpicker.cc',
467 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000468 'logging.cc',
469 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700470 'logsinks.cc',
471 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000472 'macasyncsocket.cc',
473 'macasyncsocket.h',
474 'maccocoasocketserver.h',
475 'maccocoasocketserver.mm',
476 'macsocketserver.cc',
477 'macsocketserver.h',
478 'macwindowpicker.cc',
479 'macwindowpicker.h',
480 'mathutils.h',
481 'multipart.cc',
482 'multipart.h',
483 'natserver.cc',
484 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000485 'natsocketfactory.cc',
486 'natsocketfactory.h',
487 'nattypes.cc',
488 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000489 'optionsfile.cc',
490 'optionsfile.h',
491 'posix.cc',
492 'posix.h',
493 'profiler.cc',
494 'profiler.h',
495 'proxyserver.cc',
496 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000497 'referencecountedsingletonfactory.h',
498 'rollingaccumulator.h',
499 'safe_conversions.h',
500 'safe_conversions_impl.h',
501 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000502 'sec_buffer.h',
503 'sharedexclusivelock.cc',
504 'sharedexclusivelock.h',
505 'sslconfig.h',
506 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000507 'testbase64.h',
508 'testclient.cc',
509 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000510 'transformadapter.cc',
511 'transformadapter.h',
512 'versionparsing.cc',
513 'versionparsing.h',
514 'virtualsocketserver.cc',
515 'virtualsocketserver.h',
516 'win32regkey.cc',
517 'win32regkey.h',
518 'win32socketinit.cc',
519 'win32socketinit.h',
520 'win32socketserver.cc',
521 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000522 'window.h',
523 'windowpickerfactory.h',
524 'windowpicker.h',
525 ],
526 'defines': [
527 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000528 ],
529 'direct_dependent_settings': {
530 'defines': [
531 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000532 ],
533 },
534 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000535 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000536 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000537 'dependencies': [
538 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
539 ],
540 }, {
541 'include_dirs': [
542 '<(json_root)',
543 ],
544 'defines': [
545 # When defined changes the include path for json.h to where it
546 # is expected to be when building json outside of the standalone
547 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000548 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000549 ],
550 }],
kjellander7cae30c2015-12-16 14:05:29 -0800551 ['OS=="win" and clang==1', {
552 'msvs_settings': {
553 'VCCLCompilerTool': {
554 'AdditionalOptions': [
555 # Disable warnings failing when compiling with Clang on Windows.
556 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800557 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800558 '-Wno-missing-braces',
559 ],
560 },
561 },
562 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000563 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000564 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000565 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000566 'link_settings': {
567 'libraries': [
568 '-llog',
569 '-lGLESv2',
570 ],
571 },
572 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000573 'sources!': [
574 'ifaddrs-android.cc',
575 'ifaddrs-android.h',
576 ],
577 }],
578 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200579 'sources/': [
580 ['include', 'macconversion.*'],
581 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000582 'all_dependent_settings': {
583 'xcode_settings': {
584 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700585 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000586 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000587 '-framework Security',
588 '-framework SystemConfiguration',
589 '-framework UIKit',
590 ],
591 },
592 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000593 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000594 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000595 'link_settings': {
596 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000597 '-ldl',
598 '-lrt',
599 '-lXext',
600 '-lX11',
601 '-lXcomposite',
602 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000603 ],
604 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000605 }, {
606 'sources!': [
607 'x11windowpicker.cc',
608 'x11windowpicker.h',
609 ],
610 }],
611 ['OS=="linux"', {
612 'link_settings': {
613 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000614 '-ldl',
615 '-lrt',
616 ],
617 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000618 }, {
619 'sources!': [
620 'dbus.cc',
621 'dbus.h',
622 'libdbusglibsymboltable.cc',
623 'libdbusglibsymboltable.h',
624 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000625 ],
626 }],
627 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000628 'all_dependent_settings': {
629 'link_settings': {
630 'xcode_settings': {
631 'OTHER_LDFLAGS': [
632 '-framework Cocoa',
633 '-framework Foundation',
634 '-framework IOKit',
635 '-framework Security',
636 '-framework SystemConfiguration',
637 ],
638 },
639 },
640 },
641 'conditions': [
642 ['target_arch=="ia32"', {
643 'all_dependent_settings': {
644 'link_settings': {
645 'xcode_settings': {
646 'OTHER_LDFLAGS': [
647 '-framework Carbon',
648 ],
649 },
650 },
651 },
652 }],
653 ],
654 }, {
655 'sources!': [
656 'macasyncsocket.cc',
657 'macasyncsocket.h',
658 'maccocoasocketserver.h',
659 'maccocoasocketserver.mm',
660 'macconversion.cc',
661 'macconversion.h',
662 'macsocketserver.cc',
663 'macsocketserver.h',
664 'macutils.cc',
665 'macutils.h',
666 'macwindowpicker.cc',
667 'macwindowpicker.h',
668 ],
669 }],
670 ['OS=="win"', {
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800671 'sources!': [
672 'ifaddrs_converter.cc',
673 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000674 'link_settings': {
675 'libraries': [
676 '-lcrypt32.lib',
677 '-liphlpapi.lib',
678 '-lsecur32.lib',
679 ],
680 },
681 # Suppress warnings about WIN32_LEAN_AND_MEAN.
682 'msvs_disabled_warnings': [4005, 4703],
683 'defines': [
684 '_CRT_NONSTDC_NO_DEPRECATE',
685 ],
686 }, {
687 'sources/': [
688 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
689 ],
690 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000691 'winping.cc',
692 'winping.h',
693 'winfirewall.cc',
694 'winfirewall.h',
695 ],
696 }],
697 ['os_posix==0', {
698 'sources!': [
699 'latebindingsymboltable.cc',
700 'latebindingsymboltable.h',
701 'posix.cc',
702 'posix.h',
703 'unixfilesystem.cc',
704 'unixfilesystem.h',
705 ],
706 }, {
707 'configurations': {
708 'Debug_Base': {
709 'defines': [
710 # Chromium's build/common.gypi defines this for all posix
711 # _except_ for ios & mac. We want it there as well, e.g.
712 # because ASSERT and friends trigger off of it.
713 '_DEBUG',
714 ],
715 },
716 }
717 }],
718 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
719 'defines': [
720 'CARBON_DEPRECATED=YES',
721 ],
722 }],
723 ['OS!="ios" and OS!="mac"', {
724 'sources!': [
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800725 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000726 'scoped_autorelease_pool.mm',
727 ],
728 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000729 ['OS!="linux" and OS!="android"', {
730 'sources!': [
731 'linux.cc',
732 'linux.h',
733 ],
734 }],
torbjorng07d09362015-09-22 11:58:04 -0700735 ['build_ssl==1', {
736 'dependencies': [
737 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
738 ],
739 }, {
740 'include_dirs': [
741 '<(ssl_root)',
742 ],
743 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000744 ],
745 },
kjellander988d31e2016-02-05 00:23:50 -0800746 {
747 'target_name': 'gtest_prod',
748 'type': 'static_library',
749 'sources': [
750 'gtest_prod_util.h',
751 ],
752 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000753 ],
754}