blob: 38508ff29cc61acb3661695263d717d239cf39c8 [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 ],
158 }, {
159 # If not libevent, fall back to the other task queues.
160 'conditions': [
161 ['OS=="mac" or OS=="ios"', {
162 'sources': [
163 'task_queue_gcd.cc',
164 'task_queue_posix.cc',
165 ],
166 }],
167 ['OS=="win"', {
168 'sources': [ 'task_queue_win.cc' ],
169 }]
170 ],
Noah Richards915590e2015-04-22 15:43:08 -0700171 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000172 ],
173 },
174 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000175 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000176 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000177 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000178 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000179 'rtc_base_approved',
180 ],
jbroman5584bf42016-01-12 09:46:55 -0800181 'export_dependent_settings': [
182 'rtc_base_approved',
183 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000184 'defines': [
185 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700186 'SSL_USE_OPENSSL',
187 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000188 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000189 ],
190 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000191 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000192 'asyncfile.cc',
193 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000194 'asyncinvoker.cc',
195 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000196 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000197 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000199 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 'asyncresolverinterface.h',
201 'asyncsocket.cc',
202 'asyncsocket.h',
203 'asynctcpsocket.cc',
204 'asynctcpsocket.h',
205 'asyncudpsocket.cc',
206 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000207 'autodetectproxy.cc',
208 'autodetectproxy.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000209 'base64.cc',
210 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000211 'common.cc',
212 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000213 'crc32.cc',
214 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000215 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000216 'cryptstring.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000217 'diskcache.cc',
218 'diskcache.h',
tkchin93411912015-07-22 12:12:17 -0700219 'filerotatingstream.cc',
220 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000221 'fileutils.cc',
222 'fileutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000223 'firewallsocketserver.cc',
224 'firewallsocketserver.h',
225 'flags.cc',
226 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000227 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000228 'gunit_prod.h',
229 'helpers.cc',
230 'helpers.h',
231 'httpbase.cc',
232 'httpbase.h',
233 'httpclient.cc',
234 'httpclient.h',
235 'httpcommon-inl.h',
236 'httpcommon.cc',
237 'httpcommon.h',
238 'httprequest.cc',
239 'httprequest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000240 'iosfilesystem.mm',
241 'ipaddress.cc',
242 'ipaddress.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000243 'linked_ptr.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000244 'messagedigest.cc',
245 'messagedigest.h',
246 'messagehandler.cc',
247 'messagehandler.h',
248 'messagequeue.cc',
249 'messagequeue.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000250 'nethelpers.cc',
251 'nethelpers.h',
252 'network.cc',
253 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700254 'networkmonitor.cc',
255 'networkmonitor.h',
danilchapbebf54c2016-04-28 01:32:48 -0700256 'nullsocketserver.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000257 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700258 'openssl.h',
259 'openssladapter.cc',
260 'openssladapter.h',
261 'openssldigest.cc',
262 'openssldigest.h',
263 'opensslidentity.cc',
264 'opensslidentity.h',
265 'opensslstreamadapter.cc',
266 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000267 'pathutils.cc',
268 'pathutils.h',
269 'physicalsocketserver.cc',
270 'physicalsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000271 'proxydetect.cc',
272 'proxydetect.h',
273 'proxyinfo.cc',
274 'proxyinfo.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000275 'ratelimiter.cc',
276 'ratelimiter.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200277 'rtccertificate.cc',
278 'rtccertificate.h',
Henrik Boströmda3a1da2016-04-15 17:55:21 +0200279 'rtccertificategenerator.cc',
280 'rtccertificategenerator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000281 'sha1.cc',
282 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000283 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000284 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000285 'sharedexclusivelock.cc',
286 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000287 'signalthread.cc',
288 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000289 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000290 'sigslot.h',
291 'sigslotrepeater.h',
292 'socket.h',
293 'socketadapters.cc',
294 'socketadapters.h',
295 'socketaddress.cc',
296 'socketaddress.h',
297 'socketaddresspair.cc',
298 'socketaddresspair.h',
299 'socketfactory.h',
300 'socketpool.cc',
301 'socketpool.h',
302 'socketserver.h',
303 'socketstream.cc',
304 'socketstream.h',
305 'ssladapter.cc',
306 'ssladapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000307 'sslfingerprint.cc',
308 'sslfingerprint.h',
309 'sslidentity.cc',
310 'sslidentity.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000311 'sslsocketfactory.cc',
312 'sslsocketfactory.h',
313 'sslstreamadapter.cc',
314 'sslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000315 'stream.cc',
316 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000317 'task.cc',
318 'task.h',
319 'taskparent.cc',
320 'taskparent.h',
321 'taskrunner.cc',
322 'taskrunner.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000323 'thread.cc',
324 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000325 'timing.cc',
326 'timing.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000327 'urlencode.cc',
328 'urlencode.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000329 'worker.cc',
330 'worker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000331 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000332 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000333 # these flags.
334 'cflags!': [
335 '-Wextra',
336 '-Wall',
337 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000338 'direct_dependent_settings': {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000339 'defines': [
340 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700341 'SSL_USE_OPENSSL',
342 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000343 ],
344 },
345 'include_dirs': [
346 '../../third_party/jsoncpp/overrides/include',
347 '../../third_party/jsoncpp/source/include',
348 ],
349 'conditions': [
350 ['build_with_chromium==1', {
351 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700352 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000353 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000354 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700355 'conditions': [
356 ['OS=="win"', {
357 'sources': [
358 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
359 ],
360 }],
henrikg9dff0ba2015-10-02 10:07:50 -0700361 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700362 'defines': [
363 'NO_MAIN_THREAD_WRAPPING',
364 ],
365 'direct_dependent_settings': {
366 'defines': [
367 'NO_MAIN_THREAD_WRAPPING',
368 ],
369 },
370 }, {
371 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000372 'bandwidthsmoother.cc',
373 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000374 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000375 'fileutils_mock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000376 'httpserver.cc',
377 'httpserver.h',
378 'json.cc',
379 'json.h',
tkchin93411912015-07-22 12:12:17 -0700380 'logsinks.cc',
381 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000382 'mathutils.h',
383 'multipart.cc',
384 'multipart.h',
385 'natserver.cc',
386 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000387 'natsocketfactory.cc',
388 'natsocketfactory.h',
389 'nattypes.cc',
390 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000391 'optionsfile.cc',
392 'optionsfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000393 'profiler.cc',
394 'profiler.h',
395 'proxyserver.cc',
396 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000397 'referencecountedsingletonfactory.h',
398 'rollingaccumulator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000399 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000400 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000401 'sslconfig.h',
402 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000403 'testbase64.h',
404 'testclient.cc',
405 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000406 'transformadapter.cc',
407 'transformadapter.h',
408 'versionparsing.cc',
409 'versionparsing.h',
410 'virtualsocketserver.cc',
411 'virtualsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000412 'window.h',
kjellanderc8587ad2016-04-05 05:23:26 -0700413 'windowpicker.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700414 'windowpickerfactory.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000415 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000416 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000417 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000418 'dependencies': [
419 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
420 ],
421 }, {
422 'include_dirs': [
423 '<(json_root)',
424 ],
425 'defines': [
426 # When defined changes the include path for json.h to where it
427 # is expected to be when building json outside of the standalone
428 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000429 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000430 ],
431 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700432 ['OS=="linux"', {
433 'sources': [
434 'dbus.cc',
435 'dbus.h',
436 'libdbusglibsymboltable.cc',
437 'libdbusglibsymboltable.h',
438 'linuxfdwalk.c',
439 'linuxfdwalk.h',
440 ],
441 }],
442 ['os_posix==1', {
443 'sources': [
444 'latebindingsymboltable.cc',
kjellandera8a7ef62016-04-05 08:13:31 -0700445 'latebindingsymboltable.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700446 'posix.cc',
447 'posix.h',
448 ],
449 }],
450 ['OS=="mac"', {
451 'sources': [
452 'macasyncsocket.cc',
453 'macasyncsocket.h',
454 'maccocoasocketserver.h',
455 'maccocoasocketserver.mm',
456 'macsocketserver.cc',
457 'macsocketserver.h',
458 'macwindowpicker.cc',
459 'macwindowpicker.h',
460 ],
461 }],
462 ['OS=="win"', {
463 'sources': [
464 'diskcache_win32.cc',
465 'diskcache_win32.h',
466 'win32regkey.cc',
467 'win32regkey.h',
468 'win32socketinit.cc',
469 'win32socketinit.h',
470 'win32socketserver.cc',
471 'win32socketserver.h',
472 ],
473 }],
kjellander7cae30c2015-12-16 14:05:29 -0800474 ['OS=="win" and clang==1', {
475 'msvs_settings': {
476 'VCCLCompilerTool': {
477 'AdditionalOptions': [
478 # Disable warnings failing when compiling with Clang on Windows.
479 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800480 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800481 '-Wno-missing-braces',
482 ],
483 },
484 },
485 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700486 ], # conditions
487 }], # build_with_chromium==0
488 ['OS=="android"', {
489 'sources': [
490 'ifaddrs-android.cc',
491 'ifaddrs-android.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000492 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000493 'link_settings': {
494 'libraries': [
495 '-llog',
496 '-lGLESv2',
497 ],
498 },
kjellandera8a7ef62016-04-05 08:13:31 -0700499 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200500 ['(OS=="mac" or OS=="ios") and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700501 'sources': [
502 'maccocoathreadhelper.h',
503 'maccocoathreadhelper.mm',
504 'macconversion.cc',
505 'macconversion.h',
506 'macifaddrs_converter.cc',
507 'scoped_autorelease_pool.h',
508 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000509 ],
510 }],
511 ['OS=="ios"', {
512 'all_dependent_settings': {
513 'xcode_settings': {
514 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700515 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000516 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000517 '-framework Security',
518 '-framework SystemConfiguration',
519 '-framework UIKit',
520 ],
521 },
522 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000523 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700524 ['use_x11==1', {
525 'sources': [
526 'x11windowpicker.cc',
527 'x11windowpicker.h',
528 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000529 'link_settings': {
530 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000531 '-ldl',
532 '-lrt',
533 '-lXext',
534 '-lX11',
535 '-lXcomposite',
536 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000537 ],
538 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000539 }],
540 ['OS=="linux"', {
541 'link_settings': {
542 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000543 '-ldl',
544 '-lrt',
545 ],
546 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000547 }],
548 ['OS=="mac"', {
kjellandera8a7ef62016-04-05 08:13:31 -0700549 'sources': [
550 'macutils.cc',
551 'macutils.h',
552 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000553 'all_dependent_settings': {
554 'link_settings': {
555 'xcode_settings': {
556 'OTHER_LDFLAGS': [
557 '-framework Cocoa',
558 '-framework Foundation',
559 '-framework IOKit',
560 '-framework Security',
561 '-framework SystemConfiguration',
562 ],
563 },
564 },
565 },
566 'conditions': [
567 ['target_arch=="ia32"', {
568 'all_dependent_settings': {
569 'link_settings': {
570 'xcode_settings': {
571 'OTHER_LDFLAGS': [
572 '-framework Carbon',
573 ],
574 },
575 },
576 },
577 }],
578 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000579 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200580 ['OS=="win" and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700581 'sources': [
582 'win32.cc',
583 'win32.h',
584 'win32filesystem.cc',
585 'win32filesystem.h',
586 'win32securityerrors.cc',
587 'win32window.cc',
588 'win32window.h',
589 'win32windowpicker.cc',
590 'win32windowpicker.h',
591 'winfirewall.cc',
592 'winfirewall.h',
593 'winping.cc',
594 'winping.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800595 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000596 'link_settings': {
597 'libraries': [
598 '-lcrypt32.lib',
599 '-liphlpapi.lib',
600 '-lsecur32.lib',
601 ],
602 },
603 # Suppress warnings about WIN32_LEAN_AND_MEAN.
604 'msvs_disabled_warnings': [4005, 4703],
605 'defines': [
606 '_CRT_NONSTDC_NO_DEPRECATE',
607 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000608 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700609 ['os_posix==1', {
610 'sources': [
611 'ifaddrs_converter.cc',
612 'ifaddrs_converter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000613 'unixfilesystem.cc',
614 'unixfilesystem.h',
615 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000616 'configurations': {
617 'Debug_Base': {
618 'defines': [
619 # Chromium's build/common.gypi defines this for all posix
620 # _except_ for ios & mac. We want it there as well, e.g.
621 # because ASSERT and friends trigger off of it.
622 '_DEBUG',
623 ],
624 },
625 }
626 }],
627 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
628 'defines': [
629 'CARBON_DEPRECATED=YES',
630 ],
631 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700632 ['OS=="linux" or OS=="android"', {
633 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000634 'linux.cc',
635 'linux.h',
636 ],
637 }],
torbjorng07d09362015-09-22 11:58:04 -0700638 ['build_ssl==1', {
639 'dependencies': [
640 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
641 ],
642 }, {
643 'include_dirs': [
644 '<(ssl_root)',
645 ],
646 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000647 ],
648 },
kjellander988d31e2016-02-05 00:23:50 -0800649 {
650 'target_name': 'gtest_prod',
651 'type': 'static_library',
652 'sources': [
653 'gtest_prod_util.h',
654 ],
655 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000656 ],
657}