blob: 3ae76dbe45ad49b9bfbf6f8507d3d5113fc862d1 [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',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +0000116 'safe_conversions.h',
117 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +0200118 'scoped_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000119 'stringencode.cc',
120 'stringencode.h',
121 'stringutils.cc',
122 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -0700123 'systeminfo.cc',
124 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000125 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000126 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000127 'thread_checker.h',
128 'thread_checker_impl.cc',
129 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000130 'timeutils.cc',
131 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000132 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700133 ],
134 'conditions': [
135 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100136 'dependencies': [
137 '<(DEPTH)/base/base.gyp:base',
138 ],
Noah Richards915590e2015-04-22 15:43:08 -0700139 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700140 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700141 ],
Peter Boström11e02292015-11-25 21:36:14 +0100142 'sources': [
143 '../../webrtc_overrides/webrtc/base/logging.cc',
144 '../../webrtc_overrides/webrtc/base/logging.h',
145 ],
Noah Richards915590e2015-04-22 15:43:08 -0700146 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +0200147 'logging.cc',
148 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700149 ],
Noah Richards915590e2015-04-22 15:43:08 -0700150 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000151 ],
152 },
153 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000154 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000155 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000156 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000157 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000158 'rtc_base_approved',
159 ],
jbroman5584bf42016-01-12 09:46:55 -0800160 'export_dependent_settings': [
161 'rtc_base_approved',
162 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000163 'defines': [
164 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700165 'SSL_USE_OPENSSL',
166 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000167 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000168 ],
169 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000170 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000171 'asyncfile.cc',
172 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000173 'asyncinvoker.cc',
174 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000175 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000176 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000177 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000178 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000179 'asyncresolverinterface.h',
180 'asyncsocket.cc',
181 'asyncsocket.h',
182 'asynctcpsocket.cc',
183 'asynctcpsocket.h',
184 'asyncudpsocket.cc',
185 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000186 'autodetectproxy.cc',
187 'autodetectproxy.h',
188 'bandwidthsmoother.cc',
189 'bandwidthsmoother.h',
190 'base64.cc',
191 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000192 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000193 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000194 'common.cc',
195 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'crc32.cc',
197 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000198 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000199 'cryptstring.h',
200 'dbus.cc',
201 'dbus.h',
202 'diskcache.cc',
203 'diskcache.h',
204 'diskcache_win32.cc',
205 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700206 'filerotatingstream.cc',
207 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000208 'fileutils.cc',
209 'fileutils.h',
210 'fileutils_mock.h',
211 'firewallsocketserver.cc',
212 'firewallsocketserver.h',
213 'flags.cc',
214 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000215 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000216 'gunit_prod.h',
217 'helpers.cc',
218 'helpers.h',
219 'httpbase.cc',
220 'httpbase.h',
221 'httpclient.cc',
222 'httpclient.h',
223 'httpcommon-inl.h',
224 'httpcommon.cc',
225 'httpcommon.h',
226 'httprequest.cc',
227 'httprequest.h',
228 'httpserver.cc',
229 'httpserver.h',
230 'ifaddrs-android.cc',
231 'ifaddrs-android.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800232 'ifaddrs_converter.cc',
233 'ifaddrs_converter.h',
234 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000235 'iosfilesystem.mm',
236 'ipaddress.cc',
237 'ipaddress.h',
238 'json.cc',
239 'json.h',
240 'latebindingsymboltable.cc',
241 'latebindingsymboltable.h',
242 'libdbusglibsymboltable.cc',
243 'libdbusglibsymboltable.h',
244 'linux.cc',
245 'linux.h',
246 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000247 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000248 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700249 'logsinks.cc',
250 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000251 'macasyncsocket.cc',
252 'macasyncsocket.h',
253 'maccocoasocketserver.h',
254 'maccocoasocketserver.mm',
255 'maccocoathreadhelper.h',
256 'maccocoathreadhelper.mm',
257 'macconversion.cc',
258 'macconversion.h',
259 'macsocketserver.cc',
260 'macsocketserver.h',
261 'macutils.cc',
262 'macutils.h',
263 'macwindowpicker.cc',
264 'macwindowpicker.h',
265 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000266 'messagedigest.cc',
267 'messagedigest.h',
268 'messagehandler.cc',
269 'messagehandler.h',
270 'messagequeue.cc',
271 'messagequeue.h',
272 'multipart.cc',
273 'multipart.h',
274 'natserver.cc',
275 'natserver.h',
276 'natsocketfactory.cc',
277 'natsocketfactory.h',
278 'nattypes.cc',
279 'nattypes.h',
280 'nethelpers.cc',
281 'nethelpers.h',
282 'network.cc',
283 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700284 'networkmonitor.cc',
285 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000286 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700287 'openssl.h',
288 'openssladapter.cc',
289 'openssladapter.h',
290 'openssldigest.cc',
291 'openssldigest.h',
292 'opensslidentity.cc',
293 'opensslidentity.h',
294 'opensslstreamadapter.cc',
295 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000296 'optionsfile.cc',
297 'optionsfile.h',
298 'pathutils.cc',
299 'pathutils.h',
300 'physicalsocketserver.cc',
301 'physicalsocketserver.h',
302 'posix.cc',
303 'posix.h',
304 'profiler.cc',
305 'profiler.h',
306 'proxydetect.cc',
307 'proxydetect.h',
308 'proxyinfo.cc',
309 'proxyinfo.h',
310 'proxyserver.cc',
311 'proxyserver.h',
312 'ratelimiter.cc',
313 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000314 'refcount.h',
315 'referencecountedsingletonfactory.h',
316 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200317 'rtccertificate.cc',
318 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000319 'scoped_autorelease_pool.h',
320 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000321 'scoped_ref_ptr.h',
322 '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 'atomicops.h',
447 'bandwidthsmoother.cc',
448 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000449 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000450 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000451 'dbus.cc',
452 'dbus.h',
453 'diskcache_win32.cc',
454 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000455 'fileutils_mock.h',
456 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000457 'httpserver.cc',
458 'httpserver.h',
459 'json.cc',
460 'json.h',
461 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000462 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000463 'libdbusglibsymboltable.cc',
464 'libdbusglibsymboltable.h',
465 'linuxfdwalk.c',
466 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000467 'x11windowpicker.cc',
468 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000469 'logging.cc',
470 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700471 'logsinks.cc',
472 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000473 'macasyncsocket.cc',
474 'macasyncsocket.h',
475 'maccocoasocketserver.h',
476 'maccocoasocketserver.mm',
477 'macsocketserver.cc',
478 'macsocketserver.h',
479 'macwindowpicker.cc',
480 'macwindowpicker.h',
481 'mathutils.h',
482 'multipart.cc',
483 'multipart.h',
484 'natserver.cc',
485 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000486 'natsocketfactory.cc',
487 'natsocketfactory.h',
488 'nattypes.cc',
489 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000490 'optionsfile.cc',
491 'optionsfile.h',
492 'posix.cc',
493 'posix.h',
494 'profiler.cc',
495 'profiler.h',
496 'proxyserver.cc',
497 'proxyserver.h',
498 'refcount.h',
499 'referencecountedsingletonfactory.h',
500 'rollingaccumulator.h',
501 'safe_conversions.h',
502 'safe_conversions_impl.h',
503 'scopedptrcollection.h',
504 'scoped_ref_ptr.h',
505 'sec_buffer.h',
506 'sharedexclusivelock.cc',
507 'sharedexclusivelock.h',
508 'sslconfig.h',
509 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000510 'testbase64.h',
511 'testclient.cc',
512 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000513 'transformadapter.cc',
514 'transformadapter.h',
515 'versionparsing.cc',
516 'versionparsing.h',
517 'virtualsocketserver.cc',
518 'virtualsocketserver.h',
519 'win32regkey.cc',
520 'win32regkey.h',
521 'win32socketinit.cc',
522 'win32socketinit.h',
523 'win32socketserver.cc',
524 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000525 'window.h',
526 'windowpickerfactory.h',
527 'windowpicker.h',
528 ],
529 'defines': [
530 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000531 ],
532 'direct_dependent_settings': {
533 'defines': [
534 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000535 ],
536 },
537 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000538 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000539 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000540 'dependencies': [
541 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
542 ],
543 }, {
544 'include_dirs': [
545 '<(json_root)',
546 ],
547 'defines': [
548 # When defined changes the include path for json.h to where it
549 # is expected to be when building json outside of the standalone
550 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000551 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000552 ],
553 }],
kjellander7cae30c2015-12-16 14:05:29 -0800554 ['OS=="win" and clang==1', {
555 'msvs_settings': {
556 'VCCLCompilerTool': {
557 'AdditionalOptions': [
558 # Disable warnings failing when compiling with Clang on Windows.
559 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800560 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800561 '-Wno-missing-braces',
562 ],
563 },
564 },
565 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000566 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000567 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000568 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000569 'link_settings': {
570 'libraries': [
571 '-llog',
572 '-lGLESv2',
573 ],
574 },
575 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000576 'sources!': [
577 'ifaddrs-android.cc',
578 'ifaddrs-android.h',
579 ],
580 }],
581 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200582 'sources/': [
583 ['include', 'macconversion.*'],
584 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000585 'all_dependent_settings': {
586 'xcode_settings': {
587 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700588 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000589 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000590 '-framework Security',
591 '-framework SystemConfiguration',
592 '-framework UIKit',
593 ],
594 },
595 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000596 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000597 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000598 'link_settings': {
599 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000600 '-ldl',
601 '-lrt',
602 '-lXext',
603 '-lX11',
604 '-lXcomposite',
605 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000606 ],
607 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000608 }, {
609 'sources!': [
610 'x11windowpicker.cc',
611 'x11windowpicker.h',
612 ],
613 }],
614 ['OS=="linux"', {
615 'link_settings': {
616 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000617 '-ldl',
618 '-lrt',
619 ],
620 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000621 }, {
622 'sources!': [
623 'dbus.cc',
624 'dbus.h',
625 'libdbusglibsymboltable.cc',
626 'libdbusglibsymboltable.h',
627 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000628 ],
629 }],
630 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000631 'all_dependent_settings': {
632 'link_settings': {
633 'xcode_settings': {
634 'OTHER_LDFLAGS': [
635 '-framework Cocoa',
636 '-framework Foundation',
637 '-framework IOKit',
638 '-framework Security',
639 '-framework SystemConfiguration',
640 ],
641 },
642 },
643 },
644 'conditions': [
645 ['target_arch=="ia32"', {
646 'all_dependent_settings': {
647 'link_settings': {
648 'xcode_settings': {
649 'OTHER_LDFLAGS': [
650 '-framework Carbon',
651 ],
652 },
653 },
654 },
655 }],
656 ],
657 }, {
658 'sources!': [
659 'macasyncsocket.cc',
660 'macasyncsocket.h',
661 'maccocoasocketserver.h',
662 'maccocoasocketserver.mm',
663 'macconversion.cc',
664 'macconversion.h',
665 'macsocketserver.cc',
666 'macsocketserver.h',
667 'macutils.cc',
668 'macutils.h',
669 'macwindowpicker.cc',
670 'macwindowpicker.h',
671 ],
672 }],
673 ['OS=="win"', {
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800674 'sources!': [
675 'ifaddrs_converter.cc',
676 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000677 'link_settings': {
678 'libraries': [
679 '-lcrypt32.lib',
680 '-liphlpapi.lib',
681 '-lsecur32.lib',
682 ],
683 },
684 # Suppress warnings about WIN32_LEAN_AND_MEAN.
685 'msvs_disabled_warnings': [4005, 4703],
686 'defines': [
687 '_CRT_NONSTDC_NO_DEPRECATE',
688 ],
689 }, {
690 'sources/': [
691 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
692 ],
693 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000694 'winping.cc',
695 'winping.h',
696 'winfirewall.cc',
697 'winfirewall.h',
698 ],
699 }],
700 ['os_posix==0', {
701 'sources!': [
702 'latebindingsymboltable.cc',
703 'latebindingsymboltable.h',
704 'posix.cc',
705 'posix.h',
706 'unixfilesystem.cc',
707 'unixfilesystem.h',
708 ],
709 }, {
710 'configurations': {
711 'Debug_Base': {
712 'defines': [
713 # Chromium's build/common.gypi defines this for all posix
714 # _except_ for ios & mac. We want it there as well, e.g.
715 # because ASSERT and friends trigger off of it.
716 '_DEBUG',
717 ],
718 },
719 }
720 }],
721 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
722 'defines': [
723 'CARBON_DEPRECATED=YES',
724 ],
725 }],
726 ['OS!="ios" and OS!="mac"', {
727 'sources!': [
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800728 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000729 'scoped_autorelease_pool.mm',
730 ],
731 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000732 ['OS!="linux" and OS!="android"', {
733 'sources!': [
734 'linux.cc',
735 'linux.h',
736 ],
737 }],
torbjorng07d09362015-09-22 11:58:04 -0700738 ['build_ssl==1', {
739 'dependencies': [
740 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
741 ],
742 }, {
743 'include_dirs': [
744 '<(ssl_root)',
745 ],
746 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000747 ],
748 },
kjellander988d31e2016-02-05 00:23:50 -0800749 {
750 'target_name': 'gtest_prod',
751 'type': 'static_library',
752 'sources': [
753 'gtest_prod_util.h',
754 ],
755 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000756 ],
757}