blob: cb1eac48432ebfafe4b685ba03400930a99601aa [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',
Jon Hjelle6140fcc2016-02-24 16:33:12 -080039 'objc/RTCFileLogger.h',
40 'objc/RTCFileLogger.mm',
tkchin42f580e2015-11-26 23:18:23 -080041 'objc/RTCLogging.h',
hayscedd8fef2015-12-08 11:08:39 -080042 'objc/RTCLogging.mm',
tkchind1fb26d2016-02-03 01:51:18 -080043 'objc/RTCMacros.h',
Jon Hjelleda99da82016-01-20 13:40:30 -080044 'objc/RTCSSLAdapter.h',
45 'objc/RTCSSLAdapter.mm',
tkchind1fb26d2016-02-03 01:51:18 -080046 'objc/RTCTracing.h',
47 'objc/RTCTracing.mm',
tkchin42f580e2015-11-26 23:18:23 -080048 ],
hjonaa32c3e2015-12-13 19:58:11 -080049 'conditions': [
50 ['OS=="ios"', {
51 'sources': [
52 'objc/RTCCameraPreviewView.h',
53 'objc/RTCCameraPreviewView.m',
54 ],
55 'all_dependent_settings': {
56 'xcode_settings': {
57 'OTHER_LDFLAGS': [
58 '-framework AVFoundation',
59 ],
60 },
61 },
62 }],
63 ],
tkchin42f580e2015-11-26 23:18:23 -080064 }
65 ],
66 }], # OS=="ios"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000067 ],
68 'targets': [
69 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000070 # The subset of rtc_base approved for use outside of libjingle.
71 'target_name': 'rtc_base_approved',
72 'type': 'static_library',
73 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010074 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020075 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070076 'bitbuffer.cc',
77 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020078 'buffer.cc',
79 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020080 'bufferqueue.cc',
81 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070082 'bytebuffer.cc',
83 'bytebuffer.h',
84 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000085 'checks.cc',
86 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070087 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020088 'criticalsection.cc',
89 'criticalsection.h',
kwiberg45fd9fe2015-12-16 01:09:16 -080090 'deprecation.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000091 'event.cc',
92 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000093 'event_tracer.cc',
94 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000095 'exp_filter.cc',
96 'exp_filter.h',
Tommi23edcff2015-05-25 10:45:43 +020097 'logging.cc',
98 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000099 'md5.cc',
100 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000101 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000102 'md5digest.h',
Karl Wibergbe579832015-11-10 22:34:18 +0100103 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000104 'platform_file.cc',
105 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +0200106 'platform_thread.cc',
107 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -0800108 'platform_thread_types.h',
terelius84e78f92015-12-10 01:50:55 -0800109 'random.cc',
110 'random.h',
tkchinf75d0082016-02-23 22:49:42 -0800111 'rate_statistics.cc',
112 'rate_statistics.h',
Peter Boström2ee24392015-06-22 07:57:16 +0200113 'ratetracker.cc',
114 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -0800115 'refcount.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',
tommi04af8392016-02-14 08:11:10 -0800119 'scoped_ref_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000120 'stringencode.cc',
121 'stringencode.h',
122 'stringutils.cc',
123 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -0700124 'systeminfo.cc',
125 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000126 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000127 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000128 'thread_checker.h',
129 'thread_checker_impl.cc',
130 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000131 'timeutils.cc',
132 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000133 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700134 ],
135 'conditions': [
136 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100137 'dependencies': [
138 '<(DEPTH)/base/base.gyp:base',
139 ],
Noah Richards915590e2015-04-22 15:43:08 -0700140 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700141 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700142 ],
Peter Boström11e02292015-11-25 21:36:14 +0100143 'sources': [
144 '../../webrtc_overrides/webrtc/base/logging.cc',
145 '../../webrtc_overrides/webrtc/base/logging.h',
146 ],
Noah Richards915590e2015-04-22 15:43:08 -0700147 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +0200148 'logging.cc',
149 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700150 ],
Noah Richards915590e2015-04-22 15:43:08 -0700151 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000152 ],
153 },
154 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000155 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000156 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000157 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000158 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000159 'rtc_base_approved',
160 ],
jbroman5584bf42016-01-12 09:46:55 -0800161 'export_dependent_settings': [
162 'rtc_base_approved',
163 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000164 'defines': [
165 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700166 'SSL_USE_OPENSSL',
167 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000168 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000169 ],
170 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000171 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000172 'asyncfile.cc',
173 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000174 'asyncinvoker.cc',
175 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000176 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000177 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000178 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000179 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000180 'asyncresolverinterface.h',
181 'asyncsocket.cc',
182 'asyncsocket.h',
183 'asynctcpsocket.cc',
184 'asynctcpsocket.h',
185 'asyncudpsocket.cc',
186 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000187 'autodetectproxy.cc',
188 'autodetectproxy.h',
189 'bandwidthsmoother.cc',
190 'bandwidthsmoother.h',
191 'base64.cc',
192 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000193 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000194 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000195 'common.cc',
196 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000197 'crc32.cc',
198 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000199 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 'cryptstring.h',
201 'dbus.cc',
202 'dbus.h',
203 'diskcache.cc',
204 'diskcache.h',
205 'diskcache_win32.cc',
206 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700207 'filerotatingstream.cc',
208 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000209 'fileutils.cc',
210 'fileutils.h',
211 'fileutils_mock.h',
212 'firewallsocketserver.cc',
213 'firewallsocketserver.h',
214 'flags.cc',
215 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000216 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000217 'gunit_prod.h',
218 'helpers.cc',
219 'helpers.h',
220 'httpbase.cc',
221 'httpbase.h',
222 'httpclient.cc',
223 'httpclient.h',
224 'httpcommon-inl.h',
225 'httpcommon.cc',
226 'httpcommon.h',
227 'httprequest.cc',
228 'httprequest.h',
229 'httpserver.cc',
230 'httpserver.h',
231 'ifaddrs-android.cc',
232 'ifaddrs-android.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800233 'ifaddrs_converter.cc',
234 'ifaddrs_converter.h',
235 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000236 'iosfilesystem.mm',
237 'ipaddress.cc',
238 'ipaddress.h',
239 'json.cc',
240 'json.h',
241 'latebindingsymboltable.cc',
242 'latebindingsymboltable.h',
243 'libdbusglibsymboltable.cc',
244 'libdbusglibsymboltable.h',
245 'linux.cc',
246 'linux.h',
247 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000248 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000249 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700250 'logsinks.cc',
251 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000252 'macasyncsocket.cc',
253 'macasyncsocket.h',
254 'maccocoasocketserver.h',
255 'maccocoasocketserver.mm',
256 'maccocoathreadhelper.h',
257 'maccocoathreadhelper.mm',
258 'macconversion.cc',
259 'macconversion.h',
260 'macsocketserver.cc',
261 'macsocketserver.h',
262 'macutils.cc',
263 'macutils.h',
264 'macwindowpicker.cc',
265 'macwindowpicker.h',
266 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000267 'messagedigest.cc',
268 'messagedigest.h',
269 'messagehandler.cc',
270 'messagehandler.h',
271 'messagequeue.cc',
272 'messagequeue.h',
273 'multipart.cc',
274 'multipart.h',
275 'natserver.cc',
276 'natserver.h',
277 'natsocketfactory.cc',
278 'natsocketfactory.h',
279 'nattypes.cc',
280 'nattypes.h',
281 'nethelpers.cc',
282 'nethelpers.h',
283 'network.cc',
284 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700285 'networkmonitor.cc',
286 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000287 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700288 'openssl.h',
289 'openssladapter.cc',
290 'openssladapter.h',
291 'openssldigest.cc',
292 'openssldigest.h',
293 'opensslidentity.cc',
294 'opensslidentity.h',
295 'opensslstreamadapter.cc',
296 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000297 'optionsfile.cc',
298 'optionsfile.h',
299 'pathutils.cc',
300 'pathutils.h',
301 'physicalsocketserver.cc',
302 'physicalsocketserver.h',
303 'posix.cc',
304 'posix.h',
305 'profiler.cc',
306 'profiler.h',
307 'proxydetect.cc',
308 'proxydetect.h',
309 'proxyinfo.cc',
310 'proxyinfo.h',
311 'proxyserver.cc',
312 'proxyserver.h',
313 'ratelimiter.cc',
314 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000315 '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 'scopedptrcollection.h',
322 'sec_buffer.h',
323 'sha1.cc',
324 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000325 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000326 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000327 'sharedexclusivelock.cc',
328 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000329 'signalthread.cc',
330 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000331 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000332 'sigslot.h',
333 'sigslotrepeater.h',
334 'socket.h',
335 'socketadapters.cc',
336 'socketadapters.h',
337 'socketaddress.cc',
338 'socketaddress.h',
339 'socketaddresspair.cc',
340 'socketaddresspair.h',
341 'socketfactory.h',
342 'socketpool.cc',
343 'socketpool.h',
344 'socketserver.h',
345 'socketstream.cc',
346 'socketstream.h',
347 'ssladapter.cc',
348 'ssladapter.h',
349 'sslconfig.h',
350 'sslfingerprint.cc',
351 'sslfingerprint.h',
352 'sslidentity.cc',
353 'sslidentity.h',
354 'sslroots.h',
355 'sslsocketfactory.cc',
356 'sslsocketfactory.h',
357 'sslstreamadapter.cc',
358 'sslstreamadapter.h',
359 'sslstreamadapterhelper.cc',
360 'sslstreamadapterhelper.h',
361 'stream.cc',
362 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000363 'task.cc',
364 'task.h',
365 'taskparent.cc',
366 'taskparent.h',
367 'taskrunner.cc',
368 'taskrunner.h',
369 'testclient.cc',
370 'testclient.h',
371 'thread.cc',
372 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000373 'timing.cc',
374 'timing.h',
375 'transformadapter.cc',
376 'transformadapter.h',
377 'unixfilesystem.cc',
378 'unixfilesystem.h',
379 'urlencode.cc',
380 'urlencode.h',
381 'versionparsing.cc',
382 'versionparsing.h',
383 'virtualsocketserver.cc',
384 'virtualsocketserver.h',
385 'win32.cc',
386 'win32.h',
387 'win32filesystem.cc',
388 'win32filesystem.h',
389 'win32regkey.cc',
390 'win32regkey.h',
391 'win32securityerrors.cc',
392 'win32socketinit.cc',
393 'win32socketinit.h',
394 'win32socketserver.cc',
395 'win32socketserver.h',
396 'win32window.cc',
397 'win32window.h',
398 'win32windowpicker.cc',
399 'win32windowpicker.h',
400 'window.h',
401 'windowpicker.h',
402 'windowpickerfactory.h',
403 'winfirewall.cc',
404 'winfirewall.h',
405 'winping.cc',
406 'winping.h',
407 'worker.cc',
408 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000409 'x11windowpicker.cc',
410 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000411 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000412 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000413 # these flags.
414 'cflags!': [
415 '-Wextra',
416 '-Wall',
417 ],
418 'cflags_cc!': [
419 '-Wnon-virtual-dtor',
420 ],
421 'direct_dependent_settings': {
422 'cflags_cc!': [
423 '-Wnon-virtual-dtor',
424 ],
425 'defines': [
426 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700427 'SSL_USE_OPENSSL',
428 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000429 ],
430 },
431 'include_dirs': [
432 '../../third_party/jsoncpp/overrides/include',
433 '../../third_party/jsoncpp/source/include',
434 ],
435 'conditions': [
436 ['build_with_chromium==1', {
437 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700438 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000439 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000440 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700441 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700442 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700443 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000444 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000445 'bandwidthsmoother.cc',
446 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000447 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000448 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000449 'dbus.cc',
450 'dbus.h',
451 'diskcache_win32.cc',
452 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000453 'fileutils_mock.h',
454 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000455 'httpserver.cc',
456 'httpserver.h',
457 'json.cc',
458 'json.h',
459 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000460 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000461 'libdbusglibsymboltable.cc',
462 'libdbusglibsymboltable.h',
463 'linuxfdwalk.c',
464 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000465 'x11windowpicker.cc',
466 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000467 'logging.cc',
468 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700469 'logsinks.cc',
470 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000471 'macasyncsocket.cc',
472 'macasyncsocket.h',
473 'maccocoasocketserver.h',
474 'maccocoasocketserver.mm',
475 'macsocketserver.cc',
476 'macsocketserver.h',
477 'macwindowpicker.cc',
478 'macwindowpicker.h',
479 'mathutils.h',
480 'multipart.cc',
481 'multipart.h',
482 'natserver.cc',
483 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000484 'natsocketfactory.cc',
485 'natsocketfactory.h',
486 'nattypes.cc',
487 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000488 'optionsfile.cc',
489 'optionsfile.h',
490 'posix.cc',
491 'posix.h',
492 'profiler.cc',
493 'profiler.h',
494 'proxyserver.cc',
495 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000496 'referencecountedsingletonfactory.h',
497 'rollingaccumulator.h',
498 'safe_conversions.h',
499 'safe_conversions_impl.h',
500 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000501 'sec_buffer.h',
502 'sharedexclusivelock.cc',
503 'sharedexclusivelock.h',
504 'sslconfig.h',
505 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000506 'testbase64.h',
507 'testclient.cc',
508 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000509 'transformadapter.cc',
510 'transformadapter.h',
511 'versionparsing.cc',
512 'versionparsing.h',
513 'virtualsocketserver.cc',
514 'virtualsocketserver.h',
515 'win32regkey.cc',
516 'win32regkey.h',
517 'win32socketinit.cc',
518 'win32socketinit.h',
519 'win32socketserver.cc',
520 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000521 'window.h',
522 'windowpickerfactory.h',
523 'windowpicker.h',
524 ],
525 'defines': [
526 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000527 ],
528 'direct_dependent_settings': {
529 'defines': [
530 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000531 ],
532 },
533 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000534 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000535 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000536 'dependencies': [
537 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
538 ],
539 }, {
540 'include_dirs': [
541 '<(json_root)',
542 ],
543 'defines': [
544 # When defined changes the include path for json.h to where it
545 # is expected to be when building json outside of the standalone
546 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000547 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000548 ],
549 }],
kjellander7cae30c2015-12-16 14:05:29 -0800550 ['OS=="win" and clang==1', {
551 'msvs_settings': {
552 'VCCLCompilerTool': {
553 'AdditionalOptions': [
554 # Disable warnings failing when compiling with Clang on Windows.
555 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800556 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800557 '-Wno-missing-braces',
558 ],
559 },
560 },
561 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000562 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000563 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000564 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000565 'link_settings': {
566 'libraries': [
567 '-llog',
568 '-lGLESv2',
569 ],
570 },
571 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000572 'sources!': [
573 'ifaddrs-android.cc',
574 'ifaddrs-android.h',
575 ],
576 }],
577 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200578 'sources/': [
579 ['include', 'macconversion.*'],
580 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000581 'all_dependent_settings': {
582 'xcode_settings': {
583 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700584 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000585 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000586 '-framework Security',
587 '-framework SystemConfiguration',
588 '-framework UIKit',
589 ],
590 },
591 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000592 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000593 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000594 'link_settings': {
595 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000596 '-ldl',
597 '-lrt',
598 '-lXext',
599 '-lX11',
600 '-lXcomposite',
601 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000602 ],
603 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000604 }, {
605 'sources!': [
606 'x11windowpicker.cc',
607 'x11windowpicker.h',
608 ],
609 }],
610 ['OS=="linux"', {
611 'link_settings': {
612 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000613 '-ldl',
614 '-lrt',
615 ],
616 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000617 }, {
618 'sources!': [
619 'dbus.cc',
620 'dbus.h',
621 'libdbusglibsymboltable.cc',
622 'libdbusglibsymboltable.h',
623 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000624 ],
625 }],
626 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000627 'all_dependent_settings': {
628 'link_settings': {
629 'xcode_settings': {
630 'OTHER_LDFLAGS': [
631 '-framework Cocoa',
632 '-framework Foundation',
633 '-framework IOKit',
634 '-framework Security',
635 '-framework SystemConfiguration',
636 ],
637 },
638 },
639 },
640 'conditions': [
641 ['target_arch=="ia32"', {
642 'all_dependent_settings': {
643 'link_settings': {
644 'xcode_settings': {
645 'OTHER_LDFLAGS': [
646 '-framework Carbon',
647 ],
648 },
649 },
650 },
651 }],
652 ],
653 }, {
654 'sources!': [
655 'macasyncsocket.cc',
656 'macasyncsocket.h',
657 'maccocoasocketserver.h',
658 'maccocoasocketserver.mm',
659 'macconversion.cc',
660 'macconversion.h',
661 'macsocketserver.cc',
662 'macsocketserver.h',
663 'macutils.cc',
664 'macutils.h',
665 'macwindowpicker.cc',
666 'macwindowpicker.h',
667 ],
668 }],
669 ['OS=="win"', {
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800670 'sources!': [
671 'ifaddrs_converter.cc',
672 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000673 'link_settings': {
674 'libraries': [
675 '-lcrypt32.lib',
676 '-liphlpapi.lib',
677 '-lsecur32.lib',
678 ],
679 },
680 # Suppress warnings about WIN32_LEAN_AND_MEAN.
681 'msvs_disabled_warnings': [4005, 4703],
682 'defines': [
683 '_CRT_NONSTDC_NO_DEPRECATE',
684 ],
685 }, {
686 'sources/': [
687 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
688 ],
689 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000690 'winping.cc',
691 'winping.h',
692 'winfirewall.cc',
693 'winfirewall.h',
694 ],
695 }],
696 ['os_posix==0', {
697 'sources!': [
698 'latebindingsymboltable.cc',
699 'latebindingsymboltable.h',
700 'posix.cc',
701 'posix.h',
702 'unixfilesystem.cc',
703 'unixfilesystem.h',
704 ],
705 }, {
706 'configurations': {
707 'Debug_Base': {
708 'defines': [
709 # Chromium's build/common.gypi defines this for all posix
710 # _except_ for ios & mac. We want it there as well, e.g.
711 # because ASSERT and friends trigger off of it.
712 '_DEBUG',
713 ],
714 },
715 }
716 }],
717 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
718 'defines': [
719 'CARBON_DEPRECATED=YES',
720 ],
721 }],
722 ['OS!="ios" and OS!="mac"', {
723 'sources!': [
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800724 'macifaddrs_converter.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000725 'scoped_autorelease_pool.mm',
726 ],
727 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000728 ['OS!="linux" and OS!="android"', {
729 'sources!': [
730 'linux.cc',
731 'linux.h',
732 ],
733 }],
torbjorng07d09362015-09-22 11:58:04 -0700734 ['build_ssl==1', {
735 'dependencies': [
736 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
737 ],
738 }, {
739 'include_dirs': [
740 '<(ssl_root)',
741 ],
742 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000743 ],
744 },
kjellander988d31e2016-02-05 00:23:50 -0800745 {
746 'target_name': 'gtest_prod',
747 'type': 'static_library',
748 'sources': [
749 'gtest_prod_util.h',
750 ],
751 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000752 ],
753}