blob: 032281e42d88f41345f597425f64d9398f6e7e0b [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
132 ],
133 },
134 {
135 'target_name': 'rtc_task_queue',
136 'type': 'static_library',
137 'dependencies': [
138 'rtc_base_approved',
139 ],
140 'sources': [
perkj9c16fe82016-07-12 15:04:07 -0700141 'sequenced_task_checker.h',
142 'sequenced_task_checker_impl.cc',
143 'sequenced_task_checker_impl.h',
tommi09c60da2016-05-24 11:40:35 -0700144 'task_queue.h',
145 'task_queue_posix.h',
146 ],
147 'conditions': [
Tommi0bcbbd32016-05-15 13:42:45 +0200148 ['build_libevent==1', {
149 'dependencies': [
150 '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent',
151 ],
tommic06b1332016-05-14 11:31:40 -0700152 }],
phoglundff274392016-05-17 03:44:28 -0700153 ['enable_libevent==1', {
154 'sources': [
155 'task_queue_libevent.cc',
156 'task_queue_posix.cc',
157 ],
Per33b9c8f2016-07-15 08:25:42 +0200158 'defines': [ 'WEBRTC_BUILD_LIBEVENT' ],
159 'all_dependent_settings': {
160 'defines': [ 'WEBRTC_BUILD_LIBEVENT' ]
161 },
phoglundff274392016-05-17 03:44:28 -0700162 }, {
163 # If not libevent, fall back to the other task queues.
164 'conditions': [
165 ['OS=="mac" or OS=="ios"', {
166 'sources': [
167 'task_queue_gcd.cc',
168 'task_queue_posix.cc',
169 ],
170 }],
171 ['OS=="win"', {
172 'sources': [ 'task_queue_win.cc' ],
173 }]
174 ],
Noah Richards915590e2015-04-22 15:43:08 -0700175 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000176 ],
177 },
178 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000179 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000180 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000181 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000182 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000183 'rtc_base_approved',
184 ],
jbroman5584bf42016-01-12 09:46:55 -0800185 'export_dependent_settings': [
186 'rtc_base_approved',
187 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000188 'defines': [
189 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700190 'SSL_USE_OPENSSL',
191 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000192 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000193 ],
194 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000195 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'asyncfile.cc',
197 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'asyncinvoker.cc',
199 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000200 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000201 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000202 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000203 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'asyncresolverinterface.h',
205 'asyncsocket.cc',
206 'asyncsocket.h',
207 'asynctcpsocket.cc',
208 'asynctcpsocket.h',
209 'asyncudpsocket.cc',
210 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000211 'autodetectproxy.cc',
212 'autodetectproxy.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000213 'base64.cc',
214 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000215 'common.cc',
216 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000217 'crc32.cc',
218 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000219 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000220 'cryptstring.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000221 'diskcache.cc',
222 'diskcache.h',
tkchin93411912015-07-22 12:12:17 -0700223 'filerotatingstream.cc',
224 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000225 'fileutils.cc',
226 'fileutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000227 'firewallsocketserver.cc',
228 'firewallsocketserver.h',
229 'flags.cc',
230 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000231 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000232 'gunit_prod.h',
233 'helpers.cc',
234 'helpers.h',
235 'httpbase.cc',
236 'httpbase.h',
237 'httpclient.cc',
238 'httpclient.h',
239 'httpcommon-inl.h',
240 'httpcommon.cc',
241 'httpcommon.h',
242 'httprequest.cc',
243 'httprequest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000244 'iosfilesystem.mm',
245 'ipaddress.cc',
246 'ipaddress.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000247 'linked_ptr.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000248 'messagedigest.cc',
249 'messagedigest.h',
250 'messagehandler.cc',
251 'messagehandler.h',
252 'messagequeue.cc',
253 'messagequeue.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000254 'nethelpers.cc',
255 'nethelpers.h',
256 'network.cc',
257 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700258 'networkmonitor.cc',
259 'networkmonitor.h',
danilchapbebf54c2016-04-28 01:32:48 -0700260 'nullsocketserver.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000261 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700262 'openssl.h',
263 'openssladapter.cc',
264 'openssladapter.h',
265 'openssldigest.cc',
266 'openssldigest.h',
267 'opensslidentity.cc',
268 'opensslidentity.h',
269 'opensslstreamadapter.cc',
270 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000271 'pathutils.cc',
272 'pathutils.h',
273 'physicalsocketserver.cc',
274 'physicalsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000275 'proxydetect.cc',
276 'proxydetect.h',
277 'proxyinfo.cc',
278 'proxyinfo.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000279 'ratelimiter.cc',
280 'ratelimiter.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200281 'rtccertificate.cc',
282 'rtccertificate.h',
Henrik Boströmda3a1da2016-04-15 17:55:21 +0200283 'rtccertificategenerator.cc',
284 'rtccertificategenerator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000285 'sha1.cc',
286 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000287 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000288 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000289 'sharedexclusivelock.cc',
290 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000291 'signalthread.cc',
292 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000293 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000294 'sigslot.h',
295 'sigslotrepeater.h',
296 'socket.h',
297 'socketadapters.cc',
298 'socketadapters.h',
299 'socketaddress.cc',
300 'socketaddress.h',
301 'socketaddresspair.cc',
302 'socketaddresspair.h',
303 'socketfactory.h',
304 'socketpool.cc',
305 'socketpool.h',
306 'socketserver.h',
307 'socketstream.cc',
308 'socketstream.h',
309 'ssladapter.cc',
310 'ssladapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000311 'sslfingerprint.cc',
312 'sslfingerprint.h',
313 'sslidentity.cc',
314 'sslidentity.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000315 'sslsocketfactory.cc',
316 'sslsocketfactory.h',
317 'sslstreamadapter.cc',
318 'sslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000319 'stream.cc',
320 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000321 'task.cc',
322 'task.h',
323 'taskparent.cc',
324 'taskparent.h',
325 'taskrunner.cc',
326 'taskrunner.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000327 'thread.cc',
328 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000329 'timing.cc',
330 'timing.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000331 'urlencode.cc',
332 'urlencode.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000333 'worker.cc',
334 'worker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000335 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000336 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000337 # these flags.
338 'cflags!': [
339 '-Wextra',
340 '-Wall',
341 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000342 'direct_dependent_settings': {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000343 'defines': [
344 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700345 'SSL_USE_OPENSSL',
346 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000347 ],
348 },
349 'include_dirs': [
350 '../../third_party/jsoncpp/overrides/include',
351 '../../third_party/jsoncpp/source/include',
352 ],
353 'conditions': [
354 ['build_with_chromium==1', {
355 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700356 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000357 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000358 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700359 'conditions': [
360 ['OS=="win"', {
361 'sources': [
362 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
363 ],
364 }],
henrikg9dff0ba2015-10-02 10:07:50 -0700365 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700366 'defines': [
367 'NO_MAIN_THREAD_WRAPPING',
368 ],
369 'direct_dependent_settings': {
370 'defines': [
371 'NO_MAIN_THREAD_WRAPPING',
372 ],
373 },
374 }, {
375 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000376 'bandwidthsmoother.cc',
377 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000378 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000379 'fileutils_mock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000380 'httpserver.cc',
381 'httpserver.h',
382 'json.cc',
383 'json.h',
tkchin93411912015-07-22 12:12:17 -0700384 'logsinks.cc',
385 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 'mathutils.h',
387 'multipart.cc',
388 'multipart.h',
389 'natserver.cc',
390 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000391 'natsocketfactory.cc',
392 'natsocketfactory.h',
393 'nattypes.cc',
394 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000395 'optionsfile.cc',
396 'optionsfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000397 'profiler.cc',
398 'profiler.h',
399 'proxyserver.cc',
400 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000401 'referencecountedsingletonfactory.h',
402 'rollingaccumulator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000403 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000404 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000405 'sslconfig.h',
406 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000407 'testbase64.h',
408 'testclient.cc',
409 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000410 'transformadapter.cc',
411 'transformadapter.h',
412 'versionparsing.cc',
413 'versionparsing.h',
414 'virtualsocketserver.cc',
415 'virtualsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000416 'window.h',
kjellanderc8587ad2016-04-05 05:23:26 -0700417 'windowpicker.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700418 'windowpickerfactory.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000419 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000420 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000421 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000422 'dependencies': [
423 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
424 ],
425 }, {
426 'include_dirs': [
427 '<(json_root)',
428 ],
429 'defines': [
430 # When defined changes the include path for json.h to where it
431 # is expected to be when building json outside of the standalone
432 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000433 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000434 ],
435 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700436 ['OS=="linux"', {
437 'sources': [
438 'dbus.cc',
439 'dbus.h',
440 'libdbusglibsymboltable.cc',
441 'libdbusglibsymboltable.h',
442 'linuxfdwalk.c',
443 'linuxfdwalk.h',
444 ],
445 }],
446 ['os_posix==1', {
447 'sources': [
448 'latebindingsymboltable.cc',
kjellandera8a7ef62016-04-05 08:13:31 -0700449 'latebindingsymboltable.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700450 'posix.cc',
451 'posix.h',
452 ],
453 }],
454 ['OS=="mac"', {
455 'sources': [
456 'macasyncsocket.cc',
457 'macasyncsocket.h',
458 'maccocoasocketserver.h',
459 'maccocoasocketserver.mm',
460 'macsocketserver.cc',
461 'macsocketserver.h',
462 'macwindowpicker.cc',
463 'macwindowpicker.h',
464 ],
465 }],
466 ['OS=="win"', {
467 'sources': [
468 'diskcache_win32.cc',
469 'diskcache_win32.h',
470 'win32regkey.cc',
471 'win32regkey.h',
472 'win32socketinit.cc',
473 'win32socketinit.h',
474 'win32socketserver.cc',
475 'win32socketserver.h',
476 ],
477 }],
kjellander7cae30c2015-12-16 14:05:29 -0800478 ['OS=="win" and clang==1', {
479 'msvs_settings': {
480 'VCCLCompilerTool': {
481 'AdditionalOptions': [
482 # Disable warnings failing when compiling with Clang on Windows.
483 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800484 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800485 '-Wno-missing-braces',
486 ],
487 },
488 },
489 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700490 ], # conditions
491 }], # build_with_chromium==0
492 ['OS=="android"', {
493 'sources': [
494 'ifaddrs-android.cc',
495 'ifaddrs-android.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000496 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000497 'link_settings': {
498 'libraries': [
499 '-llog',
500 '-lGLESv2',
501 ],
502 },
kjellandera8a7ef62016-04-05 08:13:31 -0700503 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200504 ['(OS=="mac" or OS=="ios") and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700505 'sources': [
506 'maccocoathreadhelper.h',
507 'maccocoathreadhelper.mm',
508 'macconversion.cc',
509 'macconversion.h',
510 'macifaddrs_converter.cc',
511 'scoped_autorelease_pool.h',
512 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000513 ],
514 }],
515 ['OS=="ios"', {
516 'all_dependent_settings': {
517 'xcode_settings': {
518 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700519 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000521 '-framework Security',
522 '-framework SystemConfiguration',
523 '-framework UIKit',
524 ],
525 },
526 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000527 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700528 ['use_x11==1', {
529 'sources': [
530 'x11windowpicker.cc',
531 'x11windowpicker.h',
532 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000533 'link_settings': {
534 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000535 '-ldl',
536 '-lrt',
537 '-lXext',
538 '-lX11',
539 '-lXcomposite',
540 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000541 ],
542 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000543 }],
544 ['OS=="linux"', {
545 'link_settings': {
546 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000547 '-ldl',
548 '-lrt',
549 ],
550 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000551 }],
552 ['OS=="mac"', {
kjellandera8a7ef62016-04-05 08:13:31 -0700553 'sources': [
554 'macutils.cc',
555 'macutils.h',
556 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000557 'all_dependent_settings': {
558 'link_settings': {
559 'xcode_settings': {
560 'OTHER_LDFLAGS': [
561 '-framework Cocoa',
562 '-framework Foundation',
563 '-framework IOKit',
564 '-framework Security',
565 '-framework SystemConfiguration',
566 ],
567 },
568 },
569 },
570 'conditions': [
571 ['target_arch=="ia32"', {
572 'all_dependent_settings': {
573 'link_settings': {
574 'xcode_settings': {
575 'OTHER_LDFLAGS': [
576 '-framework Carbon',
577 ],
578 },
579 },
580 },
581 }],
582 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000583 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200584 ['OS=="win" and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700585 'sources': [
586 'win32.cc',
587 'win32.h',
588 'win32filesystem.cc',
589 'win32filesystem.h',
590 'win32securityerrors.cc',
591 'win32window.cc',
592 'win32window.h',
593 'win32windowpicker.cc',
594 'win32windowpicker.h',
595 'winfirewall.cc',
596 'winfirewall.h',
597 'winping.cc',
598 'winping.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800599 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000600 'link_settings': {
601 'libraries': [
602 '-lcrypt32.lib',
603 '-liphlpapi.lib',
604 '-lsecur32.lib',
605 ],
606 },
607 # Suppress warnings about WIN32_LEAN_AND_MEAN.
608 'msvs_disabled_warnings': [4005, 4703],
609 'defines': [
610 '_CRT_NONSTDC_NO_DEPRECATE',
611 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000612 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700613 ['os_posix==1', {
614 'sources': [
615 'ifaddrs_converter.cc',
616 'ifaddrs_converter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000617 'unixfilesystem.cc',
618 'unixfilesystem.h',
619 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000620 'configurations': {
621 'Debug_Base': {
622 'defines': [
623 # Chromium's build/common.gypi defines this for all posix
624 # _except_ for ios & mac. We want it there as well, e.g.
625 # because ASSERT and friends trigger off of it.
626 '_DEBUG',
627 ],
628 },
629 }
630 }],
631 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
632 'defines': [
633 'CARBON_DEPRECATED=YES',
634 ],
635 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700636 ['OS=="linux" or OS=="android"', {
637 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000638 'linux.cc',
639 'linux.h',
640 ],
641 }],
torbjorng07d09362015-09-22 11:58:04 -0700642 ['build_ssl==1', {
643 'dependencies': [
644 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
645 ],
646 }, {
647 'include_dirs': [
648 '<(ssl_root)',
649 ],
650 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000651 ],
652 },
kjellander988d31e2016-02-05 00:23:50 -0800653 {
654 'target_name': 'gtest_prod',
655 'type': 'static_library',
656 'sources': [
657 'gtest_prod_util.h',
658 ],
659 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000660 ],
661}