blob: 66035dfbb5211da8f2eb9cefb39ab16302d49991 [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',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000093 'timeutils.cc',
94 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000095 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070096 ],
97 'conditions': [
98 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +010099 'dependencies': [
100 '<(DEPTH)/base/base.gyp:base',
101 ],
Noah Richards915590e2015-04-22 15:43:08 -0700102 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700103 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700104 ],
Peter Boström11e02292015-11-25 21:36:14 +0100105 'sources': [
106 '../../webrtc_overrides/webrtc/base/logging.cc',
107 '../../webrtc_overrides/webrtc/base/logging.h',
108 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700109 }, {
110 'sources': [
Tommi23edcff2015-05-25 10:45:43 +0200111 'logging.cc',
112 'logging.h',
Tommi09ca02e2016-04-24 17:32:48 +0200113 'logging_mac.mm',
Noah Richards915590e2015-04-22 15:43:08 -0700114 ],
tommic06b1332016-05-14 11:31:40 -0700115 }],
tommi09c60da2016-05-24 11:40:35 -0700116 ['OS=="mac" and build_with_chromium==0', {
117 'all_dependent_settings': {
118 'xcode_settings': {
119 'OTHER_LDFLAGS': [
120 # needed for logging_mac.mm
121 '-framework Foundation',
122 ],
123 },
124 },
125 }], # OS=="mac" and build_with_chromium==0
126 ],
127 },
128 {
129 'target_name': 'rtc_task_queue',
130 'type': 'static_library',
131 'dependencies': [
132 'rtc_base_approved',
133 ],
134 'sources': [
135 'task_queue.h',
136 'task_queue_posix.h',
137 ],
138 'conditions': [
Tommi0bcbbd32016-05-15 13:42:45 +0200139 ['build_libevent==1', {
140 'dependencies': [
141 '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent',
142 ],
tommic06b1332016-05-14 11:31:40 -0700143 }],
phoglundff274392016-05-17 03:44:28 -0700144 ['enable_libevent==1', {
145 'sources': [
146 'task_queue_libevent.cc',
147 'task_queue_posix.cc',
148 ],
149 }, {
150 # If not libevent, fall back to the other task queues.
151 'conditions': [
152 ['OS=="mac" or OS=="ios"', {
153 'sources': [
154 'task_queue_gcd.cc',
155 'task_queue_posix.cc',
156 ],
157 }],
158 ['OS=="win"', {
159 'sources': [ 'task_queue_win.cc' ],
160 }]
161 ],
Noah Richards915590e2015-04-22 15:43:08 -0700162 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000163 ],
164 },
165 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000166 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000167 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000168 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000169 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000170 'rtc_base_approved',
171 ],
jbroman5584bf42016-01-12 09:46:55 -0800172 'export_dependent_settings': [
173 'rtc_base_approved',
174 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000175 'defines': [
176 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700177 'SSL_USE_OPENSSL',
178 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000179 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000180 ],
181 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000182 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000183 'asyncfile.cc',
184 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000185 'asyncinvoker.cc',
186 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000187 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000188 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000189 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000190 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000191 'asyncresolverinterface.h',
192 'asyncsocket.cc',
193 'asyncsocket.h',
194 'asynctcpsocket.cc',
195 'asynctcpsocket.h',
196 'asyncudpsocket.cc',
197 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'autodetectproxy.cc',
199 'autodetectproxy.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 'base64.cc',
201 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000202 'common.cc',
203 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'crc32.cc',
205 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000206 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000207 'cryptstring.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000208 'diskcache.cc',
209 'diskcache.h',
tkchin93411912015-07-22 12:12:17 -0700210 'filerotatingstream.cc',
211 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000212 'fileutils.cc',
213 'fileutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000214 'firewallsocketserver.cc',
215 'firewallsocketserver.h',
216 'flags.cc',
217 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000218 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000219 'gunit_prod.h',
220 'helpers.cc',
221 'helpers.h',
222 'httpbase.cc',
223 'httpbase.h',
224 'httpclient.cc',
225 'httpclient.h',
226 'httpcommon-inl.h',
227 'httpcommon.cc',
228 'httpcommon.h',
229 'httprequest.cc',
230 'httprequest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000231 'iosfilesystem.mm',
232 'ipaddress.cc',
233 'ipaddress.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000234 'linked_ptr.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000235 'messagedigest.cc',
236 'messagedigest.h',
237 'messagehandler.cc',
238 'messagehandler.h',
239 'messagequeue.cc',
240 'messagequeue.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000241 'nethelpers.cc',
242 'nethelpers.h',
243 'network.cc',
244 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700245 'networkmonitor.cc',
246 'networkmonitor.h',
danilchapbebf54c2016-04-28 01:32:48 -0700247 'nullsocketserver.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000248 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700249 'openssl.h',
250 'openssladapter.cc',
251 'openssladapter.h',
252 'openssldigest.cc',
253 'openssldigest.h',
254 'opensslidentity.cc',
255 'opensslidentity.h',
256 'opensslstreamadapter.cc',
257 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000258 'pathutils.cc',
259 'pathutils.h',
260 'physicalsocketserver.cc',
261 'physicalsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000262 'proxydetect.cc',
263 'proxydetect.h',
264 'proxyinfo.cc',
265 'proxyinfo.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000266 'ratelimiter.cc',
267 'ratelimiter.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200268 'rtccertificate.cc',
269 'rtccertificate.h',
Henrik Boströmda3a1da2016-04-15 17:55:21 +0200270 'rtccertificategenerator.cc',
271 'rtccertificategenerator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000272 'sha1.cc',
273 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000274 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000275 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000276 'sharedexclusivelock.cc',
277 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000278 'signalthread.cc',
279 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000280 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000281 'sigslot.h',
282 'sigslotrepeater.h',
283 'socket.h',
284 'socketadapters.cc',
285 'socketadapters.h',
286 'socketaddress.cc',
287 'socketaddress.h',
288 'socketaddresspair.cc',
289 'socketaddresspair.h',
290 'socketfactory.h',
291 'socketpool.cc',
292 'socketpool.h',
293 'socketserver.h',
294 'socketstream.cc',
295 'socketstream.h',
296 'ssladapter.cc',
297 'ssladapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000298 'sslfingerprint.cc',
299 'sslfingerprint.h',
300 'sslidentity.cc',
301 'sslidentity.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000302 'sslsocketfactory.cc',
303 'sslsocketfactory.h',
304 'sslstreamadapter.cc',
305 'sslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000306 'stream.cc',
307 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000308 'task.cc',
309 'task.h',
310 'taskparent.cc',
311 'taskparent.h',
312 'taskrunner.cc',
313 'taskrunner.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000314 'thread.cc',
315 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000316 'timing.cc',
317 'timing.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000318 'urlencode.cc',
319 'urlencode.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000320 'worker.cc',
321 'worker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000322 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000323 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000324 # these flags.
325 'cflags!': [
326 '-Wextra',
327 '-Wall',
328 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000329 'direct_dependent_settings': {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000330 'defines': [
331 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700332 'SSL_USE_OPENSSL',
333 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000334 ],
335 },
336 'include_dirs': [
337 '../../third_party/jsoncpp/overrides/include',
338 '../../third_party/jsoncpp/source/include',
339 ],
340 'conditions': [
341 ['build_with_chromium==1', {
342 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700343 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000344 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000345 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700346 'conditions': [
347 ['OS=="win"', {
348 'sources': [
349 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
350 ],
351 }],
henrikg9dff0ba2015-10-02 10:07:50 -0700352 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700353 'defines': [
354 'NO_MAIN_THREAD_WRAPPING',
355 ],
356 'direct_dependent_settings': {
357 'defines': [
358 'NO_MAIN_THREAD_WRAPPING',
359 ],
360 },
361 }, {
362 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000363 'bandwidthsmoother.cc',
364 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000365 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000366 'fileutils_mock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000367 'httpserver.cc',
368 'httpserver.h',
369 'json.cc',
370 'json.h',
tkchin93411912015-07-22 12:12:17 -0700371 'logsinks.cc',
372 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000373 'mathutils.h',
374 'multipart.cc',
375 'multipart.h',
376 'natserver.cc',
377 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000378 'natsocketfactory.cc',
379 'natsocketfactory.h',
380 'nattypes.cc',
381 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000382 'optionsfile.cc',
383 'optionsfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000384 'profiler.cc',
385 'profiler.h',
386 'proxyserver.cc',
387 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000388 'referencecountedsingletonfactory.h',
389 'rollingaccumulator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000390 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000391 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000392 'sslconfig.h',
393 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000394 'testbase64.h',
395 'testclient.cc',
396 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000397 'transformadapter.cc',
398 'transformadapter.h',
399 'versionparsing.cc',
400 'versionparsing.h',
401 'virtualsocketserver.cc',
402 'virtualsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000403 'window.h',
kjellanderc8587ad2016-04-05 05:23:26 -0700404 'windowpicker.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700405 'windowpickerfactory.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000406 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000407 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000408 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000409 'dependencies': [
410 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
411 ],
412 }, {
413 'include_dirs': [
414 '<(json_root)',
415 ],
416 'defines': [
417 # When defined changes the include path for json.h to where it
418 # is expected to be when building json outside of the standalone
419 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000420 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000421 ],
422 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700423 ['OS=="linux"', {
424 'sources': [
425 'dbus.cc',
426 'dbus.h',
427 'libdbusglibsymboltable.cc',
428 'libdbusglibsymboltable.h',
429 'linuxfdwalk.c',
430 'linuxfdwalk.h',
431 ],
432 }],
433 ['os_posix==1', {
434 'sources': [
435 'latebindingsymboltable.cc',
kjellandera8a7ef62016-04-05 08:13:31 -0700436 'latebindingsymboltable.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700437 'posix.cc',
438 'posix.h',
439 ],
440 }],
441 ['OS=="mac"', {
442 'sources': [
443 'macasyncsocket.cc',
444 'macasyncsocket.h',
445 'maccocoasocketserver.h',
446 'maccocoasocketserver.mm',
447 'macsocketserver.cc',
448 'macsocketserver.h',
449 'macwindowpicker.cc',
450 'macwindowpicker.h',
451 ],
452 }],
453 ['OS=="win"', {
454 'sources': [
455 'diskcache_win32.cc',
456 'diskcache_win32.h',
457 'win32regkey.cc',
458 'win32regkey.h',
459 'win32socketinit.cc',
460 'win32socketinit.h',
461 'win32socketserver.cc',
462 'win32socketserver.h',
463 ],
464 }],
kjellander7cae30c2015-12-16 14:05:29 -0800465 ['OS=="win" and clang==1', {
466 'msvs_settings': {
467 'VCCLCompilerTool': {
468 'AdditionalOptions': [
469 # Disable warnings failing when compiling with Clang on Windows.
470 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800471 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800472 '-Wno-missing-braces',
473 ],
474 },
475 },
476 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700477 ], # conditions
478 }], # build_with_chromium==0
479 ['OS=="android"', {
480 'sources': [
481 'ifaddrs-android.cc',
482 'ifaddrs-android.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000483 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000484 'link_settings': {
485 'libraries': [
486 '-llog',
487 '-lGLESv2',
488 ],
489 },
kjellandera8a7ef62016-04-05 08:13:31 -0700490 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200491 ['(OS=="mac" or OS=="ios") and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700492 'sources': [
493 'maccocoathreadhelper.h',
494 'maccocoathreadhelper.mm',
495 'macconversion.cc',
496 'macconversion.h',
497 'macifaddrs_converter.cc',
498 'scoped_autorelease_pool.h',
499 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000500 ],
501 }],
502 ['OS=="ios"', {
503 'all_dependent_settings': {
504 'xcode_settings': {
505 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700506 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000507 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000508 '-framework Security',
509 '-framework SystemConfiguration',
510 '-framework UIKit',
511 ],
512 },
513 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000514 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700515 ['use_x11==1', {
516 'sources': [
517 'x11windowpicker.cc',
518 'x11windowpicker.h',
519 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 'link_settings': {
521 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000522 '-ldl',
523 '-lrt',
524 '-lXext',
525 '-lX11',
526 '-lXcomposite',
527 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000528 ],
529 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000530 }],
531 ['OS=="linux"', {
532 'link_settings': {
533 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000534 '-ldl',
535 '-lrt',
536 ],
537 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000538 }],
539 ['OS=="mac"', {
kjellandera8a7ef62016-04-05 08:13:31 -0700540 'sources': [
541 'macutils.cc',
542 'macutils.h',
543 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000544 'all_dependent_settings': {
545 'link_settings': {
546 'xcode_settings': {
547 'OTHER_LDFLAGS': [
548 '-framework Cocoa',
549 '-framework Foundation',
550 '-framework IOKit',
551 '-framework Security',
552 '-framework SystemConfiguration',
553 ],
554 },
555 },
556 },
557 'conditions': [
558 ['target_arch=="ia32"', {
559 'all_dependent_settings': {
560 'link_settings': {
561 'xcode_settings': {
562 'OTHER_LDFLAGS': [
563 '-framework Carbon',
564 ],
565 },
566 },
567 },
568 }],
569 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000570 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200571 ['OS=="win" and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700572 'sources': [
573 'win32.cc',
574 'win32.h',
575 'win32filesystem.cc',
576 'win32filesystem.h',
577 'win32securityerrors.cc',
578 'win32window.cc',
579 'win32window.h',
580 'win32windowpicker.cc',
581 'win32windowpicker.h',
582 'winfirewall.cc',
583 'winfirewall.h',
584 'winping.cc',
585 'winping.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800586 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000587 'link_settings': {
588 'libraries': [
589 '-lcrypt32.lib',
590 '-liphlpapi.lib',
591 '-lsecur32.lib',
592 ],
593 },
594 # Suppress warnings about WIN32_LEAN_AND_MEAN.
595 'msvs_disabled_warnings': [4005, 4703],
596 'defines': [
597 '_CRT_NONSTDC_NO_DEPRECATE',
598 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000599 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700600 ['os_posix==1', {
601 'sources': [
602 'ifaddrs_converter.cc',
603 'ifaddrs_converter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000604 'unixfilesystem.cc',
605 'unixfilesystem.h',
606 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000607 'configurations': {
608 'Debug_Base': {
609 'defines': [
610 # Chromium's build/common.gypi defines this for all posix
611 # _except_ for ios & mac. We want it there as well, e.g.
612 # because ASSERT and friends trigger off of it.
613 '_DEBUG',
614 ],
615 },
616 }
617 }],
618 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
619 'defines': [
620 'CARBON_DEPRECATED=YES',
621 ],
622 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700623 ['OS=="linux" or OS=="android"', {
624 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000625 'linux.cc',
626 'linux.h',
627 ],
628 }],
torbjorng07d09362015-09-22 11:58:04 -0700629 ['build_ssl==1', {
630 'dependencies': [
631 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
632 ],
633 }, {
634 'include_dirs': [
635 '<(ssl_root)',
636 ],
637 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000638 ],
639 },
kjellander988d31e2016-02-05 00:23:50 -0800640 {
641 'target_name': 'gtest_prod',
642 'type': 'static_library',
643 'sources': [
644 'gtest_prod_util.h',
645 ],
646 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000647 ],
648}