blob: 4564504aabf01390c1a12829b73a7145b53f0744 [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',
tommic06b1332016-05-14 11:31:40 -070086 'task_queue.h',
87 'task_queue_libevent.cc',
88 'task_queue_gcd.cc',
89 'task_queue_posix.cc',
90 'task_queue_posix.h',
91 'task_queue_win.cc',
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',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000097 'timeutils.cc',
98 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000099 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700100 ],
101 'conditions': [
102 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100103 'dependencies': [
104 '<(DEPTH)/base/base.gyp:base',
105 ],
Noah Richards915590e2015-04-22 15:43:08 -0700106 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700107 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700108 ],
Peter Boström11e02292015-11-25 21:36:14 +0100109 'sources': [
110 '../../webrtc_overrides/webrtc/base/logging.cc',
111 '../../webrtc_overrides/webrtc/base/logging.h',
112 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700113 }, {
114 'sources': [
Tommi23edcff2015-05-25 10:45:43 +0200115 'logging.cc',
116 'logging.h',
Tommi09ca02e2016-04-24 17:32:48 +0200117 'logging_mac.mm',
Noah Richards915590e2015-04-22 15:43:08 -0700118 ],
tommic06b1332016-05-14 11:31:40 -0700119 }],
Tommi0bcbbd32016-05-15 13:42:45 +0200120 ['build_libevent==1', {
121 'dependencies': [
122 '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent',
123 ],
124 }, {
tommic06b1332016-05-14 11:31:40 -0700125 'sources!': [ 'task_queue_libevent.cc' ],
126 'conditions': [
127 ['OS=="linux" or OS=="android"', {
128 'sources!': [ 'task_queue_posix.cc' ],
129 }],
130 ],
131 }],
132 ['build_libevent==1 or OS=="linux" or OS=="android" or OS=="win"', {
133 'sources!': [ 'task_queue_gcd.cc' ],
Noah Richards915590e2015-04-22 15:43:08 -0700134 }],
Tommi09ca02e2016-04-24 17:32:48 +0200135 ['OS=="mac" and build_with_chromium==0', {
136 'all_dependent_settings': {
137 'xcode_settings': {
138 'OTHER_LDFLAGS': [
139 # needed for logging_mac.mm
140 '-framework Foundation',
141 ],
142 },
143 },
144 }], # OS=="mac" and build_with_chromium==0
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000145 ],
146 },
147 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000148 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000149 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000150 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000151 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000152 'rtc_base_approved',
153 ],
jbroman5584bf42016-01-12 09:46:55 -0800154 'export_dependent_settings': [
155 'rtc_base_approved',
156 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000157 'defines': [
158 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700159 'SSL_USE_OPENSSL',
160 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000161 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000162 ],
163 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000164 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000165 'asyncfile.cc',
166 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000167 'asyncinvoker.cc',
168 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000169 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000170 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000171 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000172 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000173 'asyncresolverinterface.h',
174 'asyncsocket.cc',
175 'asyncsocket.h',
176 'asynctcpsocket.cc',
177 'asynctcpsocket.h',
178 'asyncudpsocket.cc',
179 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000180 'autodetectproxy.cc',
181 'autodetectproxy.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000182 'base64.cc',
183 'base64.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000184 'common.cc',
185 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000186 'crc32.cc',
187 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000188 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000189 'cryptstring.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000190 'diskcache.cc',
191 'diskcache.h',
tkchin93411912015-07-22 12:12:17 -0700192 'filerotatingstream.cc',
193 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000194 'fileutils.cc',
195 'fileutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000196 'firewallsocketserver.cc',
197 'firewallsocketserver.h',
198 'flags.cc',
199 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000200 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000201 'gunit_prod.h',
202 'helpers.cc',
203 'helpers.h',
204 'httpbase.cc',
205 'httpbase.h',
206 'httpclient.cc',
207 'httpclient.h',
208 'httpcommon-inl.h',
209 'httpcommon.cc',
210 'httpcommon.h',
211 'httprequest.cc',
212 'httprequest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000213 'iosfilesystem.mm',
214 'ipaddress.cc',
215 'ipaddress.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000216 'linked_ptr.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000217 'messagedigest.cc',
218 'messagedigest.h',
219 'messagehandler.cc',
220 'messagehandler.h',
221 'messagequeue.cc',
222 'messagequeue.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000223 'nethelpers.cc',
224 'nethelpers.h',
225 'network.cc',
226 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700227 'networkmonitor.cc',
228 'networkmonitor.h',
danilchapbebf54c2016-04-28 01:32:48 -0700229 'nullsocketserver.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000230 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700231 'openssl.h',
232 'openssladapter.cc',
233 'openssladapter.h',
234 'openssldigest.cc',
235 'openssldigest.h',
236 'opensslidentity.cc',
237 'opensslidentity.h',
238 'opensslstreamadapter.cc',
239 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000240 'pathutils.cc',
241 'pathutils.h',
242 'physicalsocketserver.cc',
243 'physicalsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000244 'proxydetect.cc',
245 'proxydetect.h',
246 'proxyinfo.cc',
247 'proxyinfo.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000248 'ratelimiter.cc',
249 'ratelimiter.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200250 'rtccertificate.cc',
251 'rtccertificate.h',
Henrik Boströmda3a1da2016-04-15 17:55:21 +0200252 'rtccertificategenerator.cc',
253 'rtccertificategenerator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000254 'sha1.cc',
255 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000256 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000257 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000258 'sharedexclusivelock.cc',
259 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000260 'signalthread.cc',
261 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000262 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000263 'sigslot.h',
264 'sigslotrepeater.h',
265 'socket.h',
266 'socketadapters.cc',
267 'socketadapters.h',
268 'socketaddress.cc',
269 'socketaddress.h',
270 'socketaddresspair.cc',
271 'socketaddresspair.h',
272 'socketfactory.h',
273 'socketpool.cc',
274 'socketpool.h',
275 'socketserver.h',
276 'socketstream.cc',
277 'socketstream.h',
278 'ssladapter.cc',
279 'ssladapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000280 'sslfingerprint.cc',
281 'sslfingerprint.h',
282 'sslidentity.cc',
283 'sslidentity.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000284 'sslsocketfactory.cc',
285 'sslsocketfactory.h',
286 'sslstreamadapter.cc',
287 'sslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000288 'stream.cc',
289 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000290 'task.cc',
291 'task.h',
292 'taskparent.cc',
293 'taskparent.h',
294 'taskrunner.cc',
295 'taskrunner.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000296 'thread.cc',
297 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000298 'timing.cc',
299 'timing.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000300 'urlencode.cc',
301 'urlencode.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000302 'worker.cc',
303 'worker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000304 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000305 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000306 # these flags.
307 'cflags!': [
308 '-Wextra',
309 '-Wall',
310 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000311 'direct_dependent_settings': {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000312 'defines': [
313 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700314 'SSL_USE_OPENSSL',
315 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000316 ],
317 },
318 'include_dirs': [
319 '../../third_party/jsoncpp/overrides/include',
320 '../../third_party/jsoncpp/source/include',
321 ],
322 'conditions': [
323 ['build_with_chromium==1', {
324 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700325 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000326 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000327 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700328 'conditions': [
329 ['OS=="win"', {
330 'sources': [
331 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
332 ],
333 }],
henrikg9dff0ba2015-10-02 10:07:50 -0700334 ],
kjellandera8a7ef62016-04-05 08:13:31 -0700335 'defines': [
336 'NO_MAIN_THREAD_WRAPPING',
337 ],
338 'direct_dependent_settings': {
339 'defines': [
340 'NO_MAIN_THREAD_WRAPPING',
341 ],
342 },
343 }, {
344 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000345 'bandwidthsmoother.cc',
346 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000347 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000348 'fileutils_mock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000349 'httpserver.cc',
350 'httpserver.h',
351 'json.cc',
352 'json.h',
tkchin93411912015-07-22 12:12:17 -0700353 'logsinks.cc',
354 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000355 'mathutils.h',
356 'multipart.cc',
357 'multipart.h',
358 'natserver.cc',
359 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000360 'natsocketfactory.cc',
361 'natsocketfactory.h',
362 'nattypes.cc',
363 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000364 'optionsfile.cc',
365 'optionsfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000366 'profiler.cc',
367 'profiler.h',
368 'proxyserver.cc',
369 'proxyserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000370 'referencecountedsingletonfactory.h',
371 'rollingaccumulator.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000372 'scopedptrcollection.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000373 'sec_buffer.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000374 'sslconfig.h',
375 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000376 'testbase64.h',
377 'testclient.cc',
378 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000379 'transformadapter.cc',
380 'transformadapter.h',
381 'versionparsing.cc',
382 'versionparsing.h',
383 'virtualsocketserver.cc',
384 'virtualsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000385 'window.h',
kjellanderc8587ad2016-04-05 05:23:26 -0700386 'windowpicker.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700387 'windowpickerfactory.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000388 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000389 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000390 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000391 'dependencies': [
392 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
393 ],
394 }, {
395 'include_dirs': [
396 '<(json_root)',
397 ],
398 'defines': [
399 # When defined changes the include path for json.h to where it
400 # is expected to be when building json outside of the standalone
401 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000402 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000403 ],
404 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700405 ['OS=="linux"', {
406 'sources': [
407 'dbus.cc',
408 'dbus.h',
409 'libdbusglibsymboltable.cc',
410 'libdbusglibsymboltable.h',
411 'linuxfdwalk.c',
412 'linuxfdwalk.h',
413 ],
414 }],
415 ['os_posix==1', {
416 'sources': [
417 'latebindingsymboltable.cc',
kjellandera8a7ef62016-04-05 08:13:31 -0700418 'latebindingsymboltable.h',
kjellandera8a7ef62016-04-05 08:13:31 -0700419 'posix.cc',
420 'posix.h',
421 ],
422 }],
423 ['OS=="mac"', {
424 'sources': [
425 'macasyncsocket.cc',
426 'macasyncsocket.h',
427 'maccocoasocketserver.h',
428 'maccocoasocketserver.mm',
429 'macsocketserver.cc',
430 'macsocketserver.h',
431 'macwindowpicker.cc',
432 'macwindowpicker.h',
433 ],
434 }],
435 ['OS=="win"', {
436 'sources': [
437 'diskcache_win32.cc',
438 'diskcache_win32.h',
439 'win32regkey.cc',
440 'win32regkey.h',
441 'win32socketinit.cc',
442 'win32socketinit.h',
443 'win32socketserver.cc',
444 'win32socketserver.h',
445 ],
446 }],
kjellander7cae30c2015-12-16 14:05:29 -0800447 ['OS=="win" and clang==1', {
448 'msvs_settings': {
449 'VCCLCompilerTool': {
450 'AdditionalOptions': [
451 # Disable warnings failing when compiling with Clang on Windows.
452 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
kjellander3c85cad2016-01-19 04:47:17 -0800453 '-Wno-sign-compare',
kjellander7cae30c2015-12-16 14:05:29 -0800454 '-Wno-missing-braces',
455 ],
456 },
457 },
458 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700459 ], # conditions
460 }], # build_with_chromium==0
461 ['OS=="android"', {
462 'sources': [
463 'ifaddrs-android.cc',
464 'ifaddrs-android.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000465 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000466 'link_settings': {
467 'libraries': [
468 '-llog',
469 '-lGLESv2',
470 ],
471 },
kjellandera8a7ef62016-04-05 08:13:31 -0700472 }],
473 ['OS=="mac" or OS=="ios"', {
474 'sources': [
475 'maccocoathreadhelper.h',
476 'maccocoathreadhelper.mm',
477 'macconversion.cc',
478 'macconversion.h',
479 'macifaddrs_converter.cc',
480 'scoped_autorelease_pool.h',
481 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000482 ],
483 }],
484 ['OS=="ios"', {
485 'all_dependent_settings': {
486 'xcode_settings': {
487 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700488 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000489 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000490 '-framework Security',
491 '-framework SystemConfiguration',
492 '-framework UIKit',
493 ],
494 },
495 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000496 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700497 ['use_x11==1', {
498 'sources': [
499 'x11windowpicker.cc',
500 'x11windowpicker.h',
501 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000502 'link_settings': {
503 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000504 '-ldl',
505 '-lrt',
506 '-lXext',
507 '-lX11',
508 '-lXcomposite',
509 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000510 ],
511 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000512 }],
513 ['OS=="linux"', {
514 'link_settings': {
515 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000516 '-ldl',
517 '-lrt',
518 ],
519 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 }],
521 ['OS=="mac"', {
kjellandera8a7ef62016-04-05 08:13:31 -0700522 'sources': [
523 'macutils.cc',
524 'macutils.h',
525 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000526 'all_dependent_settings': {
527 'link_settings': {
528 'xcode_settings': {
529 'OTHER_LDFLAGS': [
530 '-framework Cocoa',
531 '-framework Foundation',
532 '-framework IOKit',
533 '-framework Security',
534 '-framework SystemConfiguration',
535 ],
536 },
537 },
538 },
539 'conditions': [
540 ['target_arch=="ia32"', {
541 'all_dependent_settings': {
542 'link_settings': {
543 'xcode_settings': {
544 'OTHER_LDFLAGS': [
545 '-framework Carbon',
546 ],
547 },
548 },
549 },
550 }],
551 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000552 }],
553 ['OS=="win"', {
kjellandera8a7ef62016-04-05 08:13:31 -0700554 'sources': [
555 'win32.cc',
556 'win32.h',
557 'win32filesystem.cc',
558 'win32filesystem.h',
559 'win32securityerrors.cc',
560 'win32window.cc',
561 'win32window.h',
562 'win32windowpicker.cc',
563 'win32windowpicker.h',
564 'winfirewall.cc',
565 'winfirewall.h',
566 'winping.cc',
567 'winping.h',
Guo-wei Shieh9faf1542015-12-28 14:06:55 -0800568 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000569 'link_settings': {
570 'libraries': [
571 '-lcrypt32.lib',
572 '-liphlpapi.lib',
573 '-lsecur32.lib',
574 ],
575 },
576 # Suppress warnings about WIN32_LEAN_AND_MEAN.
577 'msvs_disabled_warnings': [4005, 4703],
578 'defines': [
579 '_CRT_NONSTDC_NO_DEPRECATE',
580 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000581 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700582 ['os_posix==1', {
583 'sources': [
584 'ifaddrs_converter.cc',
585 'ifaddrs_converter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000586 'unixfilesystem.cc',
587 'unixfilesystem.h',
588 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000589 'configurations': {
590 'Debug_Base': {
591 'defines': [
592 # Chromium's build/common.gypi defines this for all posix
593 # _except_ for ios & mac. We want it there as well, e.g.
594 # because ASSERT and friends trigger off of it.
595 '_DEBUG',
596 ],
597 },
598 }
599 }],
600 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
601 'defines': [
602 'CARBON_DEPRECATED=YES',
603 ],
604 }],
kjellandera8a7ef62016-04-05 08:13:31 -0700605 ['OS=="linux" or OS=="android"', {
606 'sources': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000607 'linux.cc',
608 'linux.h',
609 ],
610 }],
torbjorng07d09362015-09-22 11:58:04 -0700611 ['build_ssl==1', {
612 'dependencies': [
613 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
614 ],
615 }, {
616 'include_dirs': [
617 '<(ssl_root)',
618 ],
619 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000620 ],
621 },
kjellander988d31e2016-02-05 00:23:50 -0800622 {
623 'target_name': 'gtest_prod',
624 'type': 'static_library',
625 'sources': [
626 'gtest_prod_util.h',
627 ],
628 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000629 ],
630}