blob: e160f778aa2a04fa194524a2ff34134db34ea07e [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': [
kjellandera8a7ef62016-04-05 08:13:31 -070012 ['os_posix==1 and OS!="mac" and OS!="ios"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000013 '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 }],
25 ],
26 'targets': [
27 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000028 # The subset of rtc_base approved for use outside of libjingle.
29 'target_name': 'rtc_base_approved',
30 'type': 'static_library',
31 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010032 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020033 'atomicops.h',
Tommicc4fdde2016-04-22 19:34:59 +020034 'bind.h',
Noah Richards915590e2015-04-22 15:43:08 -070035 'bitbuffer.cc',
36 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020037 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020038 'bufferqueue.cc',
39 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070040 'bytebuffer.cc',
41 'bytebuffer.h',
42 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000043 'checks.cc',
44 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070045 'constructormagic.h',
tommiebfbab52016-03-19 11:36:18 -070046 'copyonwritebuffer.cc',
47 'copyonwritebuffer.h',
Tommi494f2092015-04-27 17:39:23 +020048 'criticalsection.cc',
49 'criticalsection.h',
kwiberg45fd9fe2015-12-16 01:09:16 -080050 'deprecation.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000051 'event.cc',
52 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000053 'event_tracer.cc',
54 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000055 'exp_filter.cc',
56 'exp_filter.h',
Taylor Brandstetter5d97a9a2016-06-10 14:17:27 -070057 'location.h',
58 'location.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000059 'md5.cc',
60 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000061 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000062 'md5digest.h',
philipel5ab4c6d2016-03-08 03:36:15 -080063 'mod_ops.h',
skvlad98bb6642016-04-07 15:36:45 -070064 'onetimeevent.h',
Karl Wibergbe579832015-11-10 22:34:18 +010065 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000066 'platform_file.cc',
67 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +020068 'platform_thread.cc',
69 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -080070 'platform_thread_types.h',
Peter Boström02bafc62016-07-01 12:45:15 +020071 'race_checker.cc',
72 'race_checker.h',
terelius84e78f92015-12-10 01:50:55 -080073 'random.cc',
74 'random.h',
tkchinf75d0082016-02-23 22:49:42 -080075 'rate_statistics.cc',
76 'rate_statistics.h',
sprangcd349d92016-07-13 09:11:28 -070077 'rate_limiter.cc',
78 'rate_limiter.h',
Peter Boström2ee24392015-06-22 07:57:16 +020079 'ratetracker.cc',
80 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -080081 'refcount.h',
Tommid44c0772016-03-11 17:12:32 -080082 'safe_conversions.h',
83 'safe_conversions_impl.h',
tommi04af8392016-02-14 08:11:10 -080084 'scoped_ref_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000085 'stringencode.cc',
86 'stringencode.h',
87 'stringutils.cc',
88 'stringutils.h',
terelius85fa7d52016-03-24 01:51:52 -070089 'swap_queue.h',
tommiefefda62015-08-20 05:04:09 -070090 'systeminfo.cc',
91 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000092 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000093 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000094 'thread_checker.h',
95 'thread_checker_impl.cc',
96 'thread_checker_impl.h',
nisse191b3592016-06-22 08:36:53 -070097 'timestampaligner.cc',
98 'timestampaligner.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000099 'timeutils.cc',
100 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000101 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700102 ],
103 'conditions': [
104 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100105 'dependencies': [
106 '<(DEPTH)/base/base.gyp:base',
107 ],
Noah Richards915590e2015-04-22 15:43:08 -0700108 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700109 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700110 ],
Peter Boström11e02292015-11-25 21:36:14 +0100111 'sources': [
112 '../../webrtc_overrides/webrtc/base/logging.cc',
113 '../../webrtc_overrides/webrtc/base/logging.h',
114 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700115 }, {
116 'sources': [
Tommi23edcff2015-05-25 10:45:43 +0200117 'logging.cc',
118 'logging.h',
Tommi09ca02e2016-04-24 17:32:48 +0200119 'logging_mac.mm',
Noah Richards915590e2015-04-22 15:43:08 -0700120 ],
tommic06b1332016-05-14 11:31:40 -0700121 }],
tommi09c60da2016-05-24 11:40:35 -0700122 ['OS=="mac" and build_with_chromium==0', {
123 'all_dependent_settings': {
124 'xcode_settings': {
125 'OTHER_LDFLAGS': [
126 # needed for logging_mac.mm
127 '-framework Foundation',
128 ],
129 },
130 },
131 }], # OS=="mac" and build_with_chromium==0
aleloi16f55a12016-08-23 08:08:23 -0700132 ['OS=="android"', {
133 'link_settings': {
134 'libraries': [
135 '-llog',
136 ],
137 },
138 }],
tommi09c60da2016-05-24 11:40:35 -0700139 ],
140 },
141 {
142 'target_name': 'rtc_task_queue',
143 'type': 'static_library',
144 'dependencies': [
145 'rtc_base_approved',
146 ],
147 'sources': [
perkj9c16fe82016-07-12 15:04:07 -0700148 'sequenced_task_checker.h',
149 'sequenced_task_checker_impl.cc',
150 'sequenced_task_checker_impl.h',
tommi09c60da2016-05-24 11:40:35 -0700151 'task_queue.h',
152 'task_queue_posix.h',
153 ],
154 'conditions': [
Tommi0bcbbd32016-05-15 13:42:45 +0200155 ['build_libevent==1', {
156 'dependencies': [
157 '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent',
158 ],
tommic06b1332016-05-14 11:31:40 -0700159 }],
phoglundff274392016-05-17 03:44:28 -0700160 ['enable_libevent==1', {
161 'sources': [
162 'task_queue_libevent.cc',
163 'task_queue_posix.cc',
164 ],
Per33b9c8f2016-07-15 08:25:42 +0200165 'defines': [ 'WEBRTC_BUILD_LIBEVENT' ],
166 'all_dependent_settings': {
167 'defines': [ 'WEBRTC_BUILD_LIBEVENT' ]
168 },
phoglundff274392016-05-17 03:44:28 -0700169 }, {
170 # If not libevent, fall back to the other task queues.
171 'conditions': [
172 ['OS=="mac" or OS=="ios"', {
173 'sources': [
174 'task_queue_gcd.cc',
175 'task_queue_posix.cc',
176 ],
177 }],
178 ['OS=="win"', {
179 'sources': [ 'task_queue_win.cc' ],
180 }]
181 ],
Noah Richards915590e2015-04-22 15:43:08 -0700182 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000183 ],
184 },
185 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000186 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000187 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000188 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000189 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000190 'rtc_base_approved',
191 ],
jbroman5584bf42016-01-12 09:46:55 -0800192 'export_dependent_settings': [
193 'rtc_base_approved',
194 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000195 'defines': [
196 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700197 'SSL_USE_OPENSSL',
198 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000199 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 ],
201 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000202 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000203 'asyncfile.cc',
204 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000205 'asyncinvoker.cc',
206 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000207 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000208 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000209 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000210 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000211 'asyncresolverinterface.h',
212 'asyncsocket.cc',
213 'asyncsocket.h',
214 'asynctcpsocket.cc',
215 'asynctcpsocket.h',
216 'asyncudpsocket.cc',
217 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000218 'autodetectproxy.cc',
219 'autodetectproxy.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000220 'base64.cc',
221 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000222 'common.cc',
223 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000224 'crc32.cc',
225 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000226 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000227 'cryptstring.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000228 'diskcache.cc',
229 'diskcache.h',
tkchin93411912015-07-22 12:12:17 -0700230 'filerotatingstream.cc',
231 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000232 'fileutils.cc',
233 'fileutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000234 'firewallsocketserver.cc',
235 'firewallsocketserver.h',
236 'flags.cc',
237 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000238 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000239 'gunit_prod.h',
240 'helpers.cc',
241 'helpers.h',
242 'httpbase.cc',
243 'httpbase.h',
244 'httpclient.cc',
245 'httpclient.h',
246 'httpcommon-inl.h',
247 'httpcommon.cc',
248 'httpcommon.h',
249 'httprequest.cc',
250 'httprequest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000251 'iosfilesystem.mm',
252 'ipaddress.cc',
253 'ipaddress.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000254 'linked_ptr.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000255 'messagedigest.cc',
256 'messagedigest.h',
257 'messagehandler.cc',
258 'messagehandler.h',
259 'messagequeue.cc',
260 'messagequeue.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000261 'nethelpers.cc',
262 'nethelpers.h',
263 'network.cc',
264 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700265 'networkmonitor.cc',
266 'networkmonitor.h',
danilchapbebf54c2016-04-28 01:32:48 -0700267 'nullsocketserver.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000268 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700269 'openssl.h',
270 'openssladapter.cc',
271 'openssladapter.h',
272 'openssldigest.cc',
273 'openssldigest.h',
274 'opensslidentity.cc',
275 'opensslidentity.h',
276 'opensslstreamadapter.cc',
277 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000278 'pathutils.cc',
279 'pathutils.h',
280 'physicalsocketserver.cc',
281 'physicalsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000282 'proxydetect.cc',
283 'proxydetect.h',
284 'proxyinfo.cc',
285 'proxyinfo.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000286 'ratelimiter.cc',
287 'ratelimiter.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200288 'rtccertificate.cc',
289 'rtccertificate.h',
Henrik Boströmda3a1da2016-04-15 17:55:21 +0200290 'rtccertificategenerator.cc',
291 'rtccertificategenerator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000292 'sha1.cc',
293 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000294 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000295 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000296 'sharedexclusivelock.cc',
297 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000298 'signalthread.cc',
299 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000300 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000301 'sigslot.h',
302 'sigslotrepeater.h',
303 'socket.h',
304 'socketadapters.cc',
305 'socketadapters.h',
306 'socketaddress.cc',
307 'socketaddress.h',
308 'socketaddresspair.cc',
309 'socketaddresspair.h',
310 'socketfactory.h',
311 'socketpool.cc',
312 'socketpool.h',
313 'socketserver.h',
314 'socketstream.cc',
315 'socketstream.h',
316 'ssladapter.cc',
317 'ssladapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000318 'sslfingerprint.cc',
319 'sslfingerprint.h',
320 'sslidentity.cc',
321 'sslidentity.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000322 'sslsocketfactory.cc',
323 'sslsocketfactory.h',
324 'sslstreamadapter.cc',
325 'sslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000326 'stream.cc',
327 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000328 'task.cc',
329 'task.h',
330 'taskparent.cc',
331 'taskparent.h',
332 'taskrunner.cc',
333 'taskrunner.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000334 'thread.cc',
335 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000336 'timing.cc',
337 'timing.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000338 'urlencode.cc',
339 'urlencode.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000340 'worker.cc',
341 'worker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000342 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000343 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000344 # these flags.
345 'cflags!': [
346 '-Wextra',
347 '-Wall',
348 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000349 'direct_dependent_settings': {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000350 'defines': [
351 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700352 'SSL_USE_OPENSSL',
353 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000354 ],
355 },
356 'include_dirs': [
357 '../../third_party/jsoncpp/overrides/include',
358 '../../third_party/jsoncpp/source/include',
359 ],
360 'conditions': [
361 ['build_with_chromium==1', {
362 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700363 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000364 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000365 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700366 'conditions': [
367 ['OS=="win"', {
368 'sources': [
369 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
370 ],
371 }],
henrikg9dff0ba2015-10-02 10:07:50 -0700372 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700373 'defines': [
374 'NO_MAIN_THREAD_WRAPPING',
375 ],
376 'direct_dependent_settings': {
377 'defines': [
378 'NO_MAIN_THREAD_WRAPPING',
379 ],
380 },
381 }, {
382 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000383 'bandwidthsmoother.cc',
384 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000385 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 'fileutils_mock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000387 'httpserver.cc',
388 'httpserver.h',
389 'json.cc',
390 'json.h',
tkchin93411912015-07-22 12:12:17 -0700391 'logsinks.cc',
392 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000393 'mathutils.h',
394 'multipart.cc',
395 'multipart.h',
396 'natserver.cc',
397 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000398 'natsocketfactory.cc',
399 'natsocketfactory.h',
400 'nattypes.cc',
401 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000402 'optionsfile.cc',
403 'optionsfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000404 'profiler.cc',
405 'profiler.h',
406 'proxyserver.cc',
407 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000408 'referencecountedsingletonfactory.h',
409 'rollingaccumulator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000410 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000411 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000412 'sslconfig.h',
413 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000414 'testbase64.h',
415 'testclient.cc',
416 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000417 'transformadapter.cc',
418 'transformadapter.h',
419 'versionparsing.cc',
420 'versionparsing.h',
421 'virtualsocketserver.cc',
422 'virtualsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000423 'window.h',
kjellanderc8587ad2016-04-05 05:23:26 -0700424 'windowpicker.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700425 'windowpickerfactory.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000426 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000427 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000428 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000429 'dependencies': [
430 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
431 ],
432 }, {
433 'include_dirs': [
434 '<(json_root)',
435 ],
436 'defines': [
437 # When defined changes the include path for json.h to where it
438 # is expected to be when building json outside of the standalone
439 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000440 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000441 ],
442 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700443 ['OS=="linux"', {
444 'sources': [
445 'dbus.cc',
446 'dbus.h',
447 'libdbusglibsymboltable.cc',
448 'libdbusglibsymboltable.h',
449 'linuxfdwalk.c',
450 'linuxfdwalk.h',
451 ],
452 }],
453 ['os_posix==1', {
454 'sources': [
455 'latebindingsymboltable.cc',
kjellandera8a7ef62016-04-05 08:13:31 -0700456 'latebindingsymboltable.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700457 'posix.cc',
458 'posix.h',
459 ],
460 }],
461 ['OS=="mac"', {
462 'sources': [
463 'macasyncsocket.cc',
464 'macasyncsocket.h',
465 'maccocoasocketserver.h',
466 'maccocoasocketserver.mm',
467 'macsocketserver.cc',
468 'macsocketserver.h',
469 'macwindowpicker.cc',
470 'macwindowpicker.h',
471 ],
472 }],
473 ['OS=="win"', {
474 'sources': [
475 'diskcache_win32.cc',
476 'diskcache_win32.h',
477 'win32regkey.cc',
478 'win32regkey.h',
479 'win32socketinit.cc',
480 'win32socketinit.h',
481 'win32socketserver.cc',
482 'win32socketserver.h',
483 ],
484 }],
kjellander7cae30c2015-12-16 14:05:29 -0800485 ['OS=="win" and clang==1', {
486 'msvs_settings': {
487 'VCCLCompilerTool': {
488 'AdditionalOptions': [
489 # Disable warnings failing when compiling with Clang on Windows.
490 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800491 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800492 '-Wno-missing-braces',
493 ],
494 },
495 },
496 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700497 ], # conditions
498 }], # build_with_chromium==0
499 ['OS=="android"', {
500 'sources': [
501 'ifaddrs-android.cc',
502 'ifaddrs-android.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000503 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000504 'link_settings': {
505 'libraries': [
506 '-llog',
507 '-lGLESv2',
508 ],
509 },
kjellandera8a7ef62016-04-05 08:13:31 -0700510 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200511 ['(OS=="mac" or OS=="ios") and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700512 'sources': [
513 'maccocoathreadhelper.h',
514 'maccocoathreadhelper.mm',
515 'macconversion.cc',
516 'macconversion.h',
517 'macifaddrs_converter.cc',
518 'scoped_autorelease_pool.h',
519 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 ],
521 }],
522 ['OS=="ios"', {
523 'all_dependent_settings': {
524 'xcode_settings': {
525 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700526 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000527 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000528 '-framework Security',
529 '-framework SystemConfiguration',
530 '-framework UIKit',
531 ],
532 },
533 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000534 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700535 ['use_x11==1', {
536 'sources': [
537 'x11windowpicker.cc',
538 'x11windowpicker.h',
539 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000540 'link_settings': {
541 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000542 '-ldl',
543 '-lrt',
544 '-lXext',
545 '-lX11',
546 '-lXcomposite',
547 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000548 ],
549 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000550 }],
551 ['OS=="linux"', {
552 'link_settings': {
553 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000554 '-ldl',
555 '-lrt',
556 ],
557 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000558 }],
559 ['OS=="mac"', {
kjellandera8a7ef62016-04-05 08:13:31 -0700560 'sources': [
561 'macutils.cc',
562 'macutils.h',
563 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000564 'all_dependent_settings': {
565 'link_settings': {
566 'xcode_settings': {
567 'OTHER_LDFLAGS': [
568 '-framework Cocoa',
569 '-framework Foundation',
570 '-framework IOKit',
571 '-framework Security',
572 '-framework SystemConfiguration',
573 ],
574 },
575 },
576 },
577 'conditions': [
578 ['target_arch=="ia32"', {
579 'all_dependent_settings': {
580 'link_settings': {
581 'xcode_settings': {
582 'OTHER_LDFLAGS': [
583 '-framework Carbon',
584 ],
585 },
586 },
587 },
588 }],
589 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000590 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200591 ['OS=="win" and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700592 'sources': [
593 'win32.cc',
594 'win32.h',
595 'win32filesystem.cc',
596 'win32filesystem.h',
597 'win32securityerrors.cc',
598 'win32window.cc',
599 'win32window.h',
600 'win32windowpicker.cc',
601 'win32windowpicker.h',
602 'winfirewall.cc',
603 'winfirewall.h',
604 'winping.cc',
605 'winping.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800606 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000607 'link_settings': {
608 'libraries': [
609 '-lcrypt32.lib',
610 '-liphlpapi.lib',
611 '-lsecur32.lib',
612 ],
613 },
614 # Suppress warnings about WIN32_LEAN_AND_MEAN.
615 'msvs_disabled_warnings': [4005, 4703],
616 'defines': [
617 '_CRT_NONSTDC_NO_DEPRECATE',
618 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000619 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700620 ['os_posix==1', {
621 'sources': [
622 'ifaddrs_converter.cc',
623 'ifaddrs_converter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000624 'unixfilesystem.cc',
625 'unixfilesystem.h',
626 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000627 'configurations': {
628 'Debug_Base': {
629 'defines': [
630 # Chromium's build/common.gypi defines this for all posix
631 # _except_ for ios & mac. We want it there as well, e.g.
632 # because ASSERT and friends trigger off of it.
633 '_DEBUG',
634 ],
635 },
636 }
637 }],
638 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
639 'defines': [
640 'CARBON_DEPRECATED=YES',
641 ],
642 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700643 ['OS=="linux" or OS=="android"', {
644 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000645 'linux.cc',
646 'linux.h',
647 ],
648 }],
torbjorng07d09362015-09-22 11:58:04 -0700649 ['build_ssl==1', {
650 'dependencies': [
651 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
652 ],
653 }, {
654 'include_dirs': [
655 '<(ssl_root)',
656 ],
657 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000658 ],
659 },
kjellander988d31e2016-02-05 00:23:50 -0800660 {
661 'target_name': 'gtest_prod',
662 'type': 'static_library',
663 'sources': [
664 'gtest_prod_util.h',
665 ],
666 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000667 ],
668}