blob: 7026599161f5f9a59b511a3d3b3d920a41fb0dd5 [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',
57 'md5.cc',
58 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000059 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000060 'md5digest.h',
philipel5ab4c6d2016-03-08 03:36:15 -080061 'mod_ops.h',
skvlad98bb6642016-04-07 15:36:45 -070062 'onetimeevent.h',
Karl Wibergbe579832015-11-10 22:34:18 +010063 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000064 'platform_file.cc',
65 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +020066 'platform_thread.cc',
67 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -080068 'platform_thread_types.h',
terelius84e78f92015-12-10 01:50:55 -080069 'random.cc',
70 'random.h',
tkchinf75d0082016-02-23 22:49:42 -080071 'rate_statistics.cc',
72 'rate_statistics.h',
Peter Boström2ee24392015-06-22 07:57:16 +020073 'ratetracker.cc',
74 'ratetracker.h',
tommi04af8392016-02-14 08:11:10 -080075 'refcount.h',
Tommid44c0772016-03-11 17:12:32 -080076 'safe_conversions.h',
77 'safe_conversions_impl.h',
tommi04af8392016-02-14 08:11:10 -080078 'scoped_ref_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000079 'stringencode.cc',
80 'stringencode.h',
81 'stringutils.cc',
82 'stringutils.h',
terelius85fa7d52016-03-24 01:51:52 -070083 'swap_queue.h',
tommiefefda62015-08-20 05:04:09 -070084 'systeminfo.cc',
85 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000086 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000087 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000088 'thread_checker.h',
89 'thread_checker_impl.cc',
90 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000091 'timeutils.cc',
92 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000093 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070094 ],
95 'conditions': [
96 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +010097 'dependencies': [
98 '<(DEPTH)/base/base.gyp:base',
99 ],
Noah Richards915590e2015-04-22 15:43:08 -0700100 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700101 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700102 ],
Peter Boström11e02292015-11-25 21:36:14 +0100103 'sources': [
104 '../../webrtc_overrides/webrtc/base/logging.cc',
105 '../../webrtc_overrides/webrtc/base/logging.h',
106 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700107 }, {
108 'sources': [
Tommi23edcff2015-05-25 10:45:43 +0200109 'logging.cc',
110 'logging.h',
Tommi09ca02e2016-04-24 17:32:48 +0200111 'logging_mac.mm',
Noah Richards915590e2015-04-22 15:43:08 -0700112 ],
tommic06b1332016-05-14 11:31:40 -0700113 }],
tommi09c60da2016-05-24 11:40:35 -0700114 ['OS=="mac" and build_with_chromium==0', {
115 'all_dependent_settings': {
116 'xcode_settings': {
117 'OTHER_LDFLAGS': [
118 # needed for logging_mac.mm
119 '-framework Foundation',
120 ],
121 },
122 },
123 }], # OS=="mac" and build_with_chromium==0
124 ],
125 },
126 {
127 'target_name': 'rtc_task_queue',
128 'type': 'static_library',
129 'dependencies': [
130 'rtc_base_approved',
131 ],
132 'sources': [
133 'task_queue.h',
134 'task_queue_posix.h',
135 ],
136 'conditions': [
Tommi0bcbbd32016-05-15 13:42:45 +0200137 ['build_libevent==1', {
138 'dependencies': [
139 '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent',
140 ],
tommic06b1332016-05-14 11:31:40 -0700141 }],
phoglundff274392016-05-17 03:44:28 -0700142 ['enable_libevent==1', {
143 'sources': [
144 'task_queue_libevent.cc',
145 'task_queue_posix.cc',
146 ],
147 }, {
148 # If not libevent, fall back to the other task queues.
149 'conditions': [
150 ['OS=="mac" or OS=="ios"', {
151 'sources': [
152 'task_queue_gcd.cc',
153 'task_queue_posix.cc',
154 ],
155 }],
156 ['OS=="win"', {
157 'sources': [ 'task_queue_win.cc' ],
158 }]
159 ],
Noah Richards915590e2015-04-22 15:43:08 -0700160 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000161 ],
162 },
163 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000164 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000165 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000166 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000167 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000168 'rtc_base_approved',
169 ],
jbroman5584bf42016-01-12 09:46:55 -0800170 'export_dependent_settings': [
171 'rtc_base_approved',
172 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000173 'defines': [
174 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700175 'SSL_USE_OPENSSL',
176 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000177 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000178 ],
179 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000180 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000181 'asyncfile.cc',
182 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000183 'asyncinvoker.cc',
184 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000185 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000186 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000187 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000188 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000189 'asyncresolverinterface.h',
190 'asyncsocket.cc',
191 'asyncsocket.h',
192 'asynctcpsocket.cc',
193 'asynctcpsocket.h',
194 'asyncudpsocket.cc',
195 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'autodetectproxy.cc',
197 'autodetectproxy.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000198 'base64.cc',
199 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 'common.cc',
201 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000202 'crc32.cc',
203 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000204 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000205 'cryptstring.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000206 'diskcache.cc',
207 'diskcache.h',
tkchin93411912015-07-22 12:12:17 -0700208 'filerotatingstream.cc',
209 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000210 'fileutils.cc',
211 'fileutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000212 'firewallsocketserver.cc',
213 'firewallsocketserver.h',
214 'flags.cc',
215 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000216 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000217 'gunit_prod.h',
218 'helpers.cc',
219 'helpers.h',
220 'httpbase.cc',
221 'httpbase.h',
222 'httpclient.cc',
223 'httpclient.h',
224 'httpcommon-inl.h',
225 'httpcommon.cc',
226 'httpcommon.h',
227 'httprequest.cc',
228 'httprequest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000229 'iosfilesystem.mm',
230 'ipaddress.cc',
231 'ipaddress.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000232 'linked_ptr.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000233 'messagedigest.cc',
234 'messagedigest.h',
235 'messagehandler.cc',
236 'messagehandler.h',
237 'messagequeue.cc',
238 'messagequeue.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000239 'nethelpers.cc',
240 'nethelpers.h',
241 'network.cc',
242 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700243 'networkmonitor.cc',
244 'networkmonitor.h',
danilchapbebf54c2016-04-28 01:32:48 -0700245 'nullsocketserver.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000246 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700247 'openssl.h',
248 'openssladapter.cc',
249 'openssladapter.h',
250 'openssldigest.cc',
251 'openssldigest.h',
252 'opensslidentity.cc',
253 'opensslidentity.h',
254 'opensslstreamadapter.cc',
255 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000256 'pathutils.cc',
257 'pathutils.h',
258 'physicalsocketserver.cc',
259 'physicalsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000260 'proxydetect.cc',
261 'proxydetect.h',
262 'proxyinfo.cc',
263 'proxyinfo.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000264 'ratelimiter.cc',
265 'ratelimiter.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200266 'rtccertificate.cc',
267 'rtccertificate.h',
Henrik Boströmda3a1da2016-04-15 17:55:21 +0200268 'rtccertificategenerator.cc',
269 'rtccertificategenerator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000270 'sha1.cc',
271 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000272 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000273 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000274 'sharedexclusivelock.cc',
275 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000276 'signalthread.cc',
277 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000278 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000279 'sigslot.h',
280 'sigslotrepeater.h',
281 'socket.h',
282 'socketadapters.cc',
283 'socketadapters.h',
284 'socketaddress.cc',
285 'socketaddress.h',
286 'socketaddresspair.cc',
287 'socketaddresspair.h',
288 'socketfactory.h',
289 'socketpool.cc',
290 'socketpool.h',
291 'socketserver.h',
292 'socketstream.cc',
293 'socketstream.h',
294 'ssladapter.cc',
295 'ssladapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000296 'sslfingerprint.cc',
297 'sslfingerprint.h',
298 'sslidentity.cc',
299 'sslidentity.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000300 'sslsocketfactory.cc',
301 'sslsocketfactory.h',
302 'sslstreamadapter.cc',
303 'sslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000304 'stream.cc',
305 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000306 'task.cc',
307 'task.h',
308 'taskparent.cc',
309 'taskparent.h',
310 'taskrunner.cc',
311 'taskrunner.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000312 'thread.cc',
313 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000314 'timing.cc',
315 'timing.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000316 'urlencode.cc',
317 'urlencode.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000318 'worker.cc',
319 'worker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000320 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000321 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000322 # these flags.
323 'cflags!': [
324 '-Wextra',
325 '-Wall',
326 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000327 'direct_dependent_settings': {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000328 'defines': [
329 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700330 'SSL_USE_OPENSSL',
331 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000332 ],
333 },
334 'include_dirs': [
335 '../../third_party/jsoncpp/overrides/include',
336 '../../third_party/jsoncpp/source/include',
337 ],
338 'conditions': [
339 ['build_with_chromium==1', {
340 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700341 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000342 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000343 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700344 'conditions': [
345 ['OS=="win"', {
346 'sources': [
347 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
348 ],
349 }],
henrikg9dff0ba2015-10-02 10:07:50 -0700350 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700351 'defines': [
352 'NO_MAIN_THREAD_WRAPPING',
353 ],
354 'direct_dependent_settings': {
355 'defines': [
356 'NO_MAIN_THREAD_WRAPPING',
357 ],
358 },
359 }, {
360 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000361 'bandwidthsmoother.cc',
362 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000363 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000364 'fileutils_mock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000365 'httpserver.cc',
366 'httpserver.h',
367 'json.cc',
368 'json.h',
tkchin93411912015-07-22 12:12:17 -0700369 'logsinks.cc',
370 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000371 'mathutils.h',
372 'multipart.cc',
373 'multipart.h',
374 'natserver.cc',
375 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000376 'natsocketfactory.cc',
377 'natsocketfactory.h',
378 'nattypes.cc',
379 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000380 'optionsfile.cc',
381 'optionsfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000382 'profiler.cc',
383 'profiler.h',
384 'proxyserver.cc',
385 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000386 'referencecountedsingletonfactory.h',
387 'rollingaccumulator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000388 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000389 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000390 'sslconfig.h',
391 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000392 'testbase64.h',
393 'testclient.cc',
394 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000395 'transformadapter.cc',
396 'transformadapter.h',
397 'versionparsing.cc',
398 'versionparsing.h',
399 'virtualsocketserver.cc',
400 'virtualsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000401 'window.h',
kjellanderc8587ad2016-04-05 05:23:26 -0700402 'windowpicker.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700403 'windowpickerfactory.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000404 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000405 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000406 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000407 'dependencies': [
408 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
409 ],
410 }, {
411 'include_dirs': [
412 '<(json_root)',
413 ],
414 'defines': [
415 # When defined changes the include path for json.h to where it
416 # is expected to be when building json outside of the standalone
417 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000418 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000419 ],
420 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700421 ['OS=="linux"', {
422 'sources': [
423 'dbus.cc',
424 'dbus.h',
425 'libdbusglibsymboltable.cc',
426 'libdbusglibsymboltable.h',
427 'linuxfdwalk.c',
428 'linuxfdwalk.h',
429 ],
430 }],
431 ['os_posix==1', {
432 'sources': [
433 'latebindingsymboltable.cc',
kjellandera8a7ef62016-04-05 08:13:31 -0700434 'latebindingsymboltable.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700435 'posix.cc',
436 'posix.h',
437 ],
438 }],
439 ['OS=="mac"', {
440 'sources': [
441 'macasyncsocket.cc',
442 'macasyncsocket.h',
443 'maccocoasocketserver.h',
444 'maccocoasocketserver.mm',
445 'macsocketserver.cc',
446 'macsocketserver.h',
447 'macwindowpicker.cc',
448 'macwindowpicker.h',
449 ],
450 }],
451 ['OS=="win"', {
452 'sources': [
453 'diskcache_win32.cc',
454 'diskcache_win32.h',
455 'win32regkey.cc',
456 'win32regkey.h',
457 'win32socketinit.cc',
458 'win32socketinit.h',
459 'win32socketserver.cc',
460 'win32socketserver.h',
461 ],
462 }],
kjellander7cae30c2015-12-16 14:05:29 -0800463 ['OS=="win" and clang==1', {
464 'msvs_settings': {
465 'VCCLCompilerTool': {
466 'AdditionalOptions': [
467 # Disable warnings failing when compiling with Clang on Windows.
468 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800469 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800470 '-Wno-missing-braces',
471 ],
472 },
473 },
474 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700475 ], # conditions
476 }], # build_with_chromium==0
477 ['OS=="android"', {
478 'sources': [
479 'ifaddrs-android.cc',
480 'ifaddrs-android.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000481 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000482 'link_settings': {
483 'libraries': [
484 '-llog',
485 '-lGLESv2',
486 ],
487 },
kjellandera8a7ef62016-04-05 08:13:31 -0700488 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200489 ['(OS=="mac" or OS=="ios") and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700490 'sources': [
491 'maccocoathreadhelper.h',
492 'maccocoathreadhelper.mm',
493 'macconversion.cc',
494 'macconversion.h',
495 'macifaddrs_converter.cc',
496 'scoped_autorelease_pool.h',
497 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000498 ],
499 }],
500 ['OS=="ios"', {
501 'all_dependent_settings': {
502 'xcode_settings': {
503 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700504 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000505 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000506 '-framework Security',
507 '-framework SystemConfiguration',
508 '-framework UIKit',
509 ],
510 },
511 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000512 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700513 ['use_x11==1', {
514 'sources': [
515 'x11windowpicker.cc',
516 'x11windowpicker.h',
517 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000518 'link_settings': {
519 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 '-ldl',
521 '-lrt',
522 '-lXext',
523 '-lX11',
524 '-lXcomposite',
525 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000526 ],
527 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000528 }],
529 ['OS=="linux"', {
530 'link_settings': {
531 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000532 '-ldl',
533 '-lrt',
534 ],
535 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000536 }],
537 ['OS=="mac"', {
kjellandera8a7ef62016-04-05 08:13:31 -0700538 'sources': [
539 'macutils.cc',
540 'macutils.h',
541 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000542 'all_dependent_settings': {
543 'link_settings': {
544 'xcode_settings': {
545 'OTHER_LDFLAGS': [
546 '-framework Cocoa',
547 '-framework Foundation',
548 '-framework IOKit',
549 '-framework Security',
550 '-framework SystemConfiguration',
551 ],
552 },
553 },
554 },
555 'conditions': [
556 ['target_arch=="ia32"', {
557 'all_dependent_settings': {
558 'link_settings': {
559 'xcode_settings': {
560 'OTHER_LDFLAGS': [
561 '-framework Carbon',
562 ],
563 },
564 },
565 },
566 }],
567 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000568 }],
kjellander@webrtc.org03d45b02016-05-20 09:52:43 +0200569 ['OS=="win" and nacl_untrusted_build==0', {
kjellandera8a7ef62016-04-05 08:13:31 -0700570 'sources': [
571 'win32.cc',
572 'win32.h',
573 'win32filesystem.cc',
574 'win32filesystem.h',
575 'win32securityerrors.cc',
576 'win32window.cc',
577 'win32window.h',
578 'win32windowpicker.cc',
579 'win32windowpicker.h',
580 'winfirewall.cc',
581 'winfirewall.h',
582 'winping.cc',
583 'winping.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800584 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000585 'link_settings': {
586 'libraries': [
587 '-lcrypt32.lib',
588 '-liphlpapi.lib',
589 '-lsecur32.lib',
590 ],
591 },
592 # Suppress warnings about WIN32_LEAN_AND_MEAN.
593 'msvs_disabled_warnings': [4005, 4703],
594 'defines': [
595 '_CRT_NONSTDC_NO_DEPRECATE',
596 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000597 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700598 ['os_posix==1', {
599 'sources': [
600 'ifaddrs_converter.cc',
601 'ifaddrs_converter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000602 'unixfilesystem.cc',
603 'unixfilesystem.h',
604 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000605 'configurations': {
606 'Debug_Base': {
607 'defines': [
608 # Chromium's build/common.gypi defines this for all posix
609 # _except_ for ios & mac. We want it there as well, e.g.
610 # because ASSERT and friends trigger off of it.
611 '_DEBUG',
612 ],
613 },
614 }
615 }],
616 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
617 'defines': [
618 'CARBON_DEPRECATED=YES',
619 ],
620 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700621 ['OS=="linux" or OS=="android"', {
622 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000623 'linux.cc',
624 'linux.h',
625 ],
626 }],
torbjorng07d09362015-09-22 11:58:04 -0700627 ['build_ssl==1', {
628 'dependencies': [
629 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
630 ],
631 }, {
632 'include_dirs': [
633 '<(ssl_root)',
634 ],
635 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000636 ],
637 },
kjellander988d31e2016-02-05 00:23:50 -0800638 {
639 'target_name': 'gtest_prod',
640 'type': 'static_library',
641 'sources': [
642 'gtest_prod_util.h',
643 ],
644 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000645 ],
646}