blob: 9fdb304ef185d2f34d7157dd63c09f8b3f4555e9 [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',
terelius84e78f92015-12-10 01:50:55 -080071 'random.cc',
72 'random.h',
tkchinf75d0082016-02-23 22:49:42 -080073 'rate_statistics.cc',
74 'rate_statistics.h',
Peter Boström2ee24392015-06-22 07:57:16 +020075 'ratetracker.cc',
76 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -080077 'refcount.h',
Tommid44c0772016-03-11 17:12:32 -080078 'safe_conversions.h',
79 'safe_conversions_impl.h',
tommi04af8392016-02-14 08:11:10 -080080 'scoped_ref_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000081 'stringencode.cc',
82 'stringencode.h',
83 'stringutils.cc',
84 'stringutils.h',
terelius85fa7d52016-03-24 01:51:52 -070085 'swap_queue.h',
tommiefefda62015-08-20 05:04:09 -070086 'systeminfo.cc',
87 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000088 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000089 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000090 'thread_checker.h',
91 'thread_checker_impl.cc',
92 'thread_checker_impl.h',
nisse191b3592016-06-22 08:36:53 -070093 'timestampaligner.cc',
94 'timestampaligner.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000095 'timeutils.cc',
96 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000097 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070098 ],
99 'conditions': [
100 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100101 'dependencies': [
102 '<(DEPTH)/base/base.gyp:base',
103 ],
Noah Richards915590e2015-04-22 15:43:08 -0700104 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700105 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700106 ],
Peter Boström11e02292015-11-25 21:36:14 +0100107 'sources': [
108 '../../webrtc_overrides/webrtc/base/logging.cc',
109 '../../webrtc_overrides/webrtc/base/logging.h',
110 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700111 }, {
112 'sources': [
Tommi23edcff2015-05-25 10:45:43 +0200113 'logging.cc',
114 'logging.h',
Tommi09ca02e2016-04-24 17:32:48 +0200115 'logging_mac.mm',
Noah Richards915590e2015-04-22 15:43:08 -0700116 ],
tommic06b1332016-05-14 11:31:40 -0700117 }],
tommi09c60da2016-05-24 11:40:35 -0700118 ['OS=="mac" and build_with_chromium==0', {
119 'all_dependent_settings': {
120 'xcode_settings': {
121 'OTHER_LDFLAGS': [
122 # needed for logging_mac.mm
123 '-framework Foundation',
124 ],
125 },
126 },
127 }], # OS=="mac" and build_with_chromium==0
128 ],
129 },
130 {
131 'target_name': 'rtc_task_queue',
132 'type': 'static_library',
133 'dependencies': [
134 'rtc_base_approved',
135 ],
136 'sources': [
137 'task_queue.h',
138 'task_queue_posix.h',
139 ],
140 'conditions': [
Tommi0bcbbd32016-05-15 13:42:45 +0200141 ['build_libevent==1', {
142 'dependencies': [
143 '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent',
144 ],
tommic06b1332016-05-14 11:31:40 -0700145 }],
phoglundff274392016-05-17 03:44:28 -0700146 ['enable_libevent==1', {
147 'sources': [
148 'task_queue_libevent.cc',
149 'task_queue_posix.cc',
150 ],
151 }, {
152 # If not libevent, fall back to the other task queues.
153 'conditions': [
154 ['OS=="mac" or OS=="ios"', {
155 'sources': [
156 'task_queue_gcd.cc',
157 'task_queue_posix.cc',
158 ],
159 }],
160 ['OS=="win"', {
161 'sources': [ 'task_queue_win.cc' ],
162 }]
163 ],
Noah Richards915590e2015-04-22 15:43:08 -0700164 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000165 ],
166 },
167 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000168 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000169 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000170 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000171 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000172 'rtc_base_approved',
173 ],
jbroman5584bf42016-01-12 09:46:55 -0800174 'export_dependent_settings': [
175 'rtc_base_approved',
176 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000177 'defines': [
178 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700179 'SSL_USE_OPENSSL',
180 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000181 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000182 ],
183 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000184 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000185 'asyncfile.cc',
186 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000187 'asyncinvoker.cc',
188 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000189 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000190 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000191 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000192 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000193 'asyncresolverinterface.h',
194 'asyncsocket.cc',
195 'asyncsocket.h',
196 'asynctcpsocket.cc',
197 'asynctcpsocket.h',
198 'asyncudpsocket.cc',
199 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 'autodetectproxy.cc',
201 'autodetectproxy.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000202 'base64.cc',
203 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'common.cc',
205 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000206 'crc32.cc',
207 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000208 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000209 'cryptstring.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000210 'diskcache.cc',
211 'diskcache.h',
tkchin93411912015-07-22 12:12:17 -0700212 'filerotatingstream.cc',
213 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000214 'fileutils.cc',
215 'fileutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000216 'firewallsocketserver.cc',
217 'firewallsocketserver.h',
218 'flags.cc',
219 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000220 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000221 'gunit_prod.h',
222 'helpers.cc',
223 'helpers.h',
224 'httpbase.cc',
225 'httpbase.h',
226 'httpclient.cc',
227 'httpclient.h',
228 'httpcommon-inl.h',
229 'httpcommon.cc',
230 'httpcommon.h',
231 'httprequest.cc',
232 'httprequest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000233 'iosfilesystem.mm',
234 'ipaddress.cc',
235 'ipaddress.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000236 'linked_ptr.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000237 'messagedigest.cc',
238 'messagedigest.h',
239 'messagehandler.cc',
240 'messagehandler.h',
241 'messagequeue.cc',
242 'messagequeue.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000243 'nethelpers.cc',
244 'nethelpers.h',
245 'network.cc',
246 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700247 'networkmonitor.cc',
248 'networkmonitor.h',
danilchapbebf54c2016-04-28 01:32:48 -0700249 'nullsocketserver.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000250 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700251 'openssl.h',
252 'openssladapter.cc',
253 'openssladapter.h',
254 'openssldigest.cc',
255 'openssldigest.h',
256 'opensslidentity.cc',
257 'opensslidentity.h',
258 'opensslstreamadapter.cc',
259 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000260 'pathutils.cc',
261 'pathutils.h',
262 'physicalsocketserver.cc',
263 'physicalsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000264 'proxydetect.cc',
265 'proxydetect.h',
266 'proxyinfo.cc',
267 'proxyinfo.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000268 'ratelimiter.cc',
269 'ratelimiter.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200270 'rtccertificate.cc',
271 'rtccertificate.h',
Henrik Boströmda3a1da2016-04-15 17:55:21 +0200272 'rtccertificategenerator.cc',
273 'rtccertificategenerator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000274 'sha1.cc',
275 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000276 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000277 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000278 'sharedexclusivelock.cc',
279 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000280 'signalthread.cc',
281 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000282 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000283 'sigslot.h',
284 'sigslotrepeater.h',
285 'socket.h',
286 'socketadapters.cc',
287 'socketadapters.h',
288 'socketaddress.cc',
289 'socketaddress.h',
290 'socketaddresspair.cc',
291 'socketaddresspair.h',
292 'socketfactory.h',
293 'socketpool.cc',
294 'socketpool.h',
295 'socketserver.h',
296 'socketstream.cc',
297 'socketstream.h',
298 'ssladapter.cc',
299 'ssladapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000300 'sslfingerprint.cc',
301 'sslfingerprint.h',
302 'sslidentity.cc',
303 'sslidentity.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000304 'sslsocketfactory.cc',
305 'sslsocketfactory.h',
306 'sslstreamadapter.cc',
307 'sslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000308 'stream.cc',
309 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000310 'task.cc',
311 'task.h',
312 'taskparent.cc',
313 'taskparent.h',
314 'taskrunner.cc',
315 'taskrunner.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000316 'thread.cc',
317 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000318 'timing.cc',
319 'timing.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000320 'urlencode.cc',
321 'urlencode.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000322 'worker.cc',
323 'worker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000324 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000325 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000326 # these flags.
327 'cflags!': [
328 '-Wextra',
329 '-Wall',
330 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000331 'direct_dependent_settings': {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000332 'defines': [
333 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700334 'SSL_USE_OPENSSL',
335 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000336 ],
337 },
338 'include_dirs': [
339 '../../third_party/jsoncpp/overrides/include',
340 '../../third_party/jsoncpp/source/include',
341 ],
342 'conditions': [
343 ['build_with_chromium==1', {
344 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700345 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000346 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000347 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700348 'conditions': [
349 ['OS=="win"', {
350 'sources': [
351 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
352 ],
353 }],
henrikg9dff0ba2015-10-02 10:07:50 -0700354 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700355 'defines': [
356 'NO_MAIN_THREAD_WRAPPING',
357 ],
358 'direct_dependent_settings': {
359 'defines': [
360 'NO_MAIN_THREAD_WRAPPING',
361 ],
362 },
363 }, {
364 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000365 'bandwidthsmoother.cc',
366 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000367 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000368 'fileutils_mock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000369 'httpserver.cc',
370 'httpserver.h',
371 'json.cc',
372 'json.h',
tkchin93411912015-07-22 12:12:17 -0700373 'logsinks.cc',
374 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000375 'mathutils.h',
376 'multipart.cc',
377 'multipart.h',
378 'natserver.cc',
379 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000380 'natsocketfactory.cc',
381 'natsocketfactory.h',
382 'nattypes.cc',
383 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000384 'optionsfile.cc',
385 'optionsfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 'profiler.cc',
387 'profiler.h',
388 'proxyserver.cc',
389 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000390 'referencecountedsingletonfactory.h',
391 'rollingaccumulator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000392 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000393 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000394 'sslconfig.h',
395 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000396 'testbase64.h',
397 'testclient.cc',
398 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000399 'transformadapter.cc',
400 'transformadapter.h',
401 'versionparsing.cc',
402 'versionparsing.h',
403 'virtualsocketserver.cc',
404 'virtualsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000405 'window.h',
kjellanderc8587ad2016-04-05 05:23:26 -0700406 'windowpicker.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700407 'windowpickerfactory.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000408 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000409 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000410 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000411 'dependencies': [
412 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
413 ],
414 }, {
415 'include_dirs': [
416 '<(json_root)',
417 ],
418 'defines': [
419 # When defined changes the include path for json.h to where it
420 # is expected to be when building json outside of the standalone
421 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000422 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000423 ],
424 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700425 ['OS=="linux"', {
426 'sources': [
427 'dbus.cc',
428 'dbus.h',
429 'libdbusglibsymboltable.cc',
430 'libdbusglibsymboltable.h',
431 'linuxfdwalk.c',
432 'linuxfdwalk.h',
433 ],
434 }],
435 ['os_posix==1', {
436 'sources': [
437 'latebindingsymboltable.cc',
kjellandera8a7ef62016-04-05 08:13:31 -0700438 'latebindingsymboltable.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700439 'posix.cc',
440 'posix.h',
441 ],
442 }],
443 ['OS=="mac"', {
444 'sources': [
445 'macasyncsocket.cc',
446 'macasyncsocket.h',
447 'maccocoasocketserver.h',
448 'maccocoasocketserver.mm',
449 'macsocketserver.cc',
450 'macsocketserver.h',
451 'macwindowpicker.cc',
452 'macwindowpicker.h',
453 ],
454 }],
455 ['OS=="win"', {
456 'sources': [
457 'diskcache_win32.cc',
458 'diskcache_win32.h',
459 'win32regkey.cc',
460 'win32regkey.h',
461 'win32socketinit.cc',
462 'win32socketinit.h',
463 'win32socketserver.cc',
464 'win32socketserver.h',
465 ],
466 }],
kjellander7cae30c2015-12-16 14:05:29 -0800467 ['OS=="win" and clang==1', {
468 'msvs_settings': {
469 'VCCLCompilerTool': {
470 'AdditionalOptions': [
471 # Disable warnings failing when compiling with Clang on Windows.
472 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800473 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800474 '-Wno-missing-braces',
475 ],
476 },
477 },
478 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700479 ], # conditions
480 }], # build_with_chromium==0
481 ['OS=="android"', {
482 'sources': [
483 'ifaddrs-android.cc',
484 'ifaddrs-android.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000485 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000486 'link_settings': {
487 'libraries': [
488 '-llog',
489 '-lGLESv2',
490 ],
491 },
kjellandera8a7ef62016-04-05 08:13:31 -0700492 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200493 ['(OS=="mac" or OS=="ios") and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700494 'sources': [
495 'maccocoathreadhelper.h',
496 'maccocoathreadhelper.mm',
497 'macconversion.cc',
498 'macconversion.h',
499 'macifaddrs_converter.cc',
500 'scoped_autorelease_pool.h',
501 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000502 ],
503 }],
504 ['OS=="ios"', {
505 'all_dependent_settings': {
506 'xcode_settings': {
507 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700508 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000509 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000510 '-framework Security',
511 '-framework SystemConfiguration',
512 '-framework UIKit',
513 ],
514 },
515 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000516 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700517 ['use_x11==1', {
518 'sources': [
519 'x11windowpicker.cc',
520 'x11windowpicker.h',
521 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000522 'link_settings': {
523 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000524 '-ldl',
525 '-lrt',
526 '-lXext',
527 '-lX11',
528 '-lXcomposite',
529 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000530 ],
531 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000532 }],
533 ['OS=="linux"', {
534 'link_settings': {
535 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000536 '-ldl',
537 '-lrt',
538 ],
539 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000540 }],
541 ['OS=="mac"', {
kjellandera8a7ef62016-04-05 08:13:31 -0700542 'sources': [
543 'macutils.cc',
544 'macutils.h',
545 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000546 'all_dependent_settings': {
547 'link_settings': {
548 'xcode_settings': {
549 'OTHER_LDFLAGS': [
550 '-framework Cocoa',
551 '-framework Foundation',
552 '-framework IOKit',
553 '-framework Security',
554 '-framework SystemConfiguration',
555 ],
556 },
557 },
558 },
559 'conditions': [
560 ['target_arch=="ia32"', {
561 'all_dependent_settings': {
562 'link_settings': {
563 'xcode_settings': {
564 'OTHER_LDFLAGS': [
565 '-framework Carbon',
566 ],
567 },
568 },
569 },
570 }],
571 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000572 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200573 ['OS=="win" and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700574 'sources': [
575 'win32.cc',
576 'win32.h',
577 'win32filesystem.cc',
578 'win32filesystem.h',
579 'win32securityerrors.cc',
580 'win32window.cc',
581 'win32window.h',
582 'win32windowpicker.cc',
583 'win32windowpicker.h',
584 'winfirewall.cc',
585 'winfirewall.h',
586 'winping.cc',
587 'winping.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800588 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000589 'link_settings': {
590 'libraries': [
591 '-lcrypt32.lib',
592 '-liphlpapi.lib',
593 '-lsecur32.lib',
594 ],
595 },
596 # Suppress warnings about WIN32_LEAN_AND_MEAN.
597 'msvs_disabled_warnings': [4005, 4703],
598 'defines': [
599 '_CRT_NONSTDC_NO_DEPRECATE',
600 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000601 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700602 ['os_posix==1', {
603 'sources': [
604 'ifaddrs_converter.cc',
605 'ifaddrs_converter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000606 'unixfilesystem.cc',
607 'unixfilesystem.h',
608 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000609 'configurations': {
610 'Debug_Base': {
611 'defines': [
612 # Chromium's build/common.gypi defines this for all posix
613 # _except_ for ios & mac. We want it there as well, e.g.
614 # because ASSERT and friends trigger off of it.
615 '_DEBUG',
616 ],
617 },
618 }
619 }],
620 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
621 'defines': [
622 'CARBON_DEPRECATED=YES',
623 ],
624 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700625 ['OS=="linux" or OS=="android"', {
626 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000627 'linux.cc',
628 'linux.h',
629 ],
630 }],
torbjorng07d09362015-09-22 11:58:04 -0700631 ['build_ssl==1', {
632 'dependencies': [
633 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
634 ],
635 }, {
636 'include_dirs': [
637 '<(ssl_root)',
638 ],
639 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000640 ],
641 },
kjellander988d31e2016-02-05 00:23:50 -0800642 {
643 'target_name': 'gtest_prod',
644 'type': 'static_library',
645 'sources': [
646 'gtest_prod_util.h',
647 ],
648 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000649 ],
650}