blob: 9ba6afc39ef4870af6bbc3f6f44ef6de4e93bb8a [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': [
12 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
13 '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 }],
tkchin42f580e2015-11-26 23:18:23 -080025 # TODO(tkchin): Mac support. There are a bunch of problems right now because
26 # of some settings pulled down from Chromium.
27 ['OS=="ios"', {
28 'targets': [
29 {
30 'target_name': 'rtc_base_objc',
31 'type': 'static_library',
32 'dependencies': [
33 'rtc_base',
34 ],
35 'sources': [
hjonaa32c3e2015-12-13 19:58:11 -080036 'objc/NSString+StdString.h',
37 'objc/NSString+StdString.mm',
hayscedd8fef2015-12-08 11:08:39 -080038 'objc/RTCDispatcher.h',
39 'objc/RTCDispatcher.m',
tkchin42f580e2015-11-26 23:18:23 -080040 'objc/RTCLogging.h',
hayscedd8fef2015-12-08 11:08:39 -080041 'objc/RTCLogging.mm',
tkchin42f580e2015-11-26 23:18:23 -080042 ],
hjonaa32c3e2015-12-13 19:58:11 -080043 'conditions': [
44 ['OS=="ios"', {
45 'sources': [
46 'objc/RTCCameraPreviewView.h',
47 'objc/RTCCameraPreviewView.m',
48 ],
49 'all_dependent_settings': {
50 'xcode_settings': {
51 'OTHER_LDFLAGS': [
52 '-framework AVFoundation',
53 ],
54 },
55 },
56 }],
57 ],
tkchin42f580e2015-11-26 23:18:23 -080058 'xcode_settings': {
59 'CLANG_ENABLE_OBJC_ARC': 'YES',
60 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
61 },
62 }
63 ],
64 }], # OS=="ios"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000065 ],
66 'targets': [
67 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000068 # The subset of rtc_base approved for use outside of libjingle.
69 'target_name': 'rtc_base_approved',
70 'type': 'static_library',
71 'sources': [
Karl Wiberge2a83ee2015-10-26 19:51:29 +010072 'array_view.h',
Peter Boströmff019b02015-04-30 14:16:07 +020073 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070074 'bitbuffer.cc',
75 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020076 'buffer.cc',
77 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020078 'bufferqueue.cc',
79 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070080 'bytebuffer.cc',
81 'bytebuffer.h',
82 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000083 'checks.cc',
84 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070085 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020086 'criticalsection.cc',
87 'criticalsection.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000088 'event.cc',
89 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000090 'event_tracer.cc',
91 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000092 'exp_filter.cc',
93 'exp_filter.h',
Tommi23edcff2015-05-25 10:45:43 +020094 'logging.cc',
95 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000096 'md5.cc',
97 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000098 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000099 'md5digest.h',
Karl Wibergbe579832015-11-10 22:34:18 +0100100 'optional.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000101 'platform_file.cc',
102 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +0200103 'platform_thread.cc',
104 'platform_thread.h',
pbos12411ef2015-11-23 14:47:56 -0800105 'platform_thread_types.h',
terelius84e78f92015-12-10 01:50:55 -0800106 'random.cc',
107 'random.h',
Peter Boström2ee24392015-06-22 07:57:16 +0200108 'ratetracker.cc',
109 'ratetracker.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +0000110 'safe_conversions.h',
111 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +0200112 'scoped_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000113 'stringencode.cc',
114 'stringencode.h',
115 'stringutils.cc',
116 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -0700117 'systeminfo.cc',
118 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +0000119 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +0000120 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +0000121 'thread_checker.h',
122 'thread_checker_impl.cc',
123 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000124 'timeutils.cc',
125 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +0000126 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -0700127 ],
128 'conditions': [
129 ['build_with_chromium==1', {
Peter Boström11e02292015-11-25 21:36:14 +0100130 'dependencies': [
131 '<(DEPTH)/base/base.gyp:base',
132 ],
Noah Richards915590e2015-04-22 15:43:08 -0700133 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700134 '../../webrtc_overrides',
Noah Richards915590e2015-04-22 15:43:08 -0700135 ],
Peter Boström11e02292015-11-25 21:36:14 +0100136 'sources': [
137 '../../webrtc_overrides/webrtc/base/logging.cc',
138 '../../webrtc_overrides/webrtc/base/logging.h',
139 ],
Noah Richards915590e2015-04-22 15:43:08 -0700140 'sources!': [
Tommi23edcff2015-05-25 10:45:43 +0200141 'logging.cc',
142 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -0700143 ],
Noah Richards915590e2015-04-22 15:43:08 -0700144 }],
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 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000154 'defines': [
155 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700156 'SSL_USE_OPENSSL',
157 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000158 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000159 ],
160 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000161 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000162 'asyncfile.cc',
163 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000164 'asyncinvoker.cc',
165 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000166 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000167 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000168 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000169 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000170 'asyncresolverinterface.h',
171 'asyncsocket.cc',
172 'asyncsocket.h',
173 'asynctcpsocket.cc',
174 'asynctcpsocket.h',
175 'asyncudpsocket.cc',
176 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000177 'autodetectproxy.cc',
178 'autodetectproxy.h',
179 'bandwidthsmoother.cc',
180 'bandwidthsmoother.h',
181 'base64.cc',
182 'base64.h',
183 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000184 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000185 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000186 'common.cc',
187 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000188 'crc32.cc',
189 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000190 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000191 'cryptstring.h',
192 'dbus.cc',
193 'dbus.h',
194 'diskcache.cc',
195 'diskcache.h',
196 'diskcache_win32.cc',
197 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700198 'filerotatingstream.cc',
199 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 'fileutils.cc',
201 'fileutils.h',
202 'fileutils_mock.h',
203 'firewallsocketserver.cc',
204 'firewallsocketserver.h',
205 'flags.cc',
206 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000207 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000208 'gunit_prod.h',
209 'helpers.cc',
210 'helpers.h',
211 'httpbase.cc',
212 'httpbase.h',
213 'httpclient.cc',
214 'httpclient.h',
215 'httpcommon-inl.h',
216 'httpcommon.cc',
217 'httpcommon.h',
218 'httprequest.cc',
219 'httprequest.h',
220 'httpserver.cc',
221 'httpserver.h',
222 'ifaddrs-android.cc',
223 'ifaddrs-android.h',
224 'iosfilesystem.mm',
225 'ipaddress.cc',
226 'ipaddress.h',
227 'json.cc',
228 'json.h',
229 'latebindingsymboltable.cc',
230 'latebindingsymboltable.h',
231 'libdbusglibsymboltable.cc',
232 'libdbusglibsymboltable.h',
233 'linux.cc',
234 'linux.h',
235 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000236 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000237 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700238 'logsinks.cc',
239 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000240 'macasyncsocket.cc',
241 'macasyncsocket.h',
242 'maccocoasocketserver.h',
243 'maccocoasocketserver.mm',
244 'maccocoathreadhelper.h',
245 'maccocoathreadhelper.mm',
246 'macconversion.cc',
247 'macconversion.h',
248 'macsocketserver.cc',
249 'macsocketserver.h',
250 'macutils.cc',
251 'macutils.h',
252 'macwindowpicker.cc',
253 'macwindowpicker.h',
254 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000255 'messagedigest.cc',
256 'messagedigest.h',
257 'messagehandler.cc',
258 'messagehandler.h',
259 'messagequeue.cc',
260 'messagequeue.h',
261 'multipart.cc',
262 'multipart.h',
263 'natserver.cc',
264 'natserver.h',
265 'natsocketfactory.cc',
266 'natsocketfactory.h',
267 'nattypes.cc',
268 'nattypes.h',
269 'nethelpers.cc',
270 'nethelpers.h',
271 'network.cc',
272 'network.h',
honghaiz023f3ef2015-10-19 09:39:32 -0700273 'networkmonitor.cc',
274 'networkmonitor.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000275 'nullsocketserver.h',
torbjorng07d09362015-09-22 11:58:04 -0700276 'openssl.h',
277 'openssladapter.cc',
278 'openssladapter.h',
279 'openssldigest.cc',
280 'openssldigest.h',
281 'opensslidentity.cc',
282 'opensslidentity.h',
283 'opensslstreamadapter.cc',
284 'opensslstreamadapter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000285 'optionsfile.cc',
286 'optionsfile.h',
287 'pathutils.cc',
288 'pathutils.h',
289 'physicalsocketserver.cc',
290 'physicalsocketserver.h',
291 'posix.cc',
292 'posix.h',
293 'profiler.cc',
294 'profiler.h',
295 'proxydetect.cc',
296 'proxydetect.h',
297 'proxyinfo.cc',
298 'proxyinfo.h',
299 'proxyserver.cc',
300 'proxyserver.h',
301 'ratelimiter.cc',
302 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000303 'refcount.h',
304 'referencecountedsingletonfactory.h',
305 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200306 'rtccertificate.cc',
307 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000308 'scoped_autorelease_pool.h',
309 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000310 'scoped_ref_ptr.h',
311 'scopedptrcollection.h',
312 'sec_buffer.h',
313 'sha1.cc',
314 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000315 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000316 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000317 'sharedexclusivelock.cc',
318 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000319 'signalthread.cc',
320 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000321 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000322 'sigslot.h',
323 'sigslotrepeater.h',
324 'socket.h',
325 'socketadapters.cc',
326 'socketadapters.h',
327 'socketaddress.cc',
328 'socketaddress.h',
329 'socketaddresspair.cc',
330 'socketaddresspair.h',
331 'socketfactory.h',
332 'socketpool.cc',
333 'socketpool.h',
334 'socketserver.h',
335 'socketstream.cc',
336 'socketstream.h',
337 'ssladapter.cc',
338 'ssladapter.h',
339 'sslconfig.h',
340 'sslfingerprint.cc',
341 'sslfingerprint.h',
342 'sslidentity.cc',
343 'sslidentity.h',
344 'sslroots.h',
345 'sslsocketfactory.cc',
346 'sslsocketfactory.h',
347 'sslstreamadapter.cc',
348 'sslstreamadapter.h',
349 'sslstreamadapterhelper.cc',
350 'sslstreamadapterhelper.h',
351 'stream.cc',
352 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000353 'task.cc',
354 'task.h',
355 'taskparent.cc',
356 'taskparent.h',
357 'taskrunner.cc',
358 'taskrunner.h',
359 'testclient.cc',
360 'testclient.h',
361 'thread.cc',
362 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000363 'timing.cc',
364 'timing.h',
365 'transformadapter.cc',
366 'transformadapter.h',
367 'unixfilesystem.cc',
368 'unixfilesystem.h',
369 'urlencode.cc',
370 'urlencode.h',
371 'versionparsing.cc',
372 'versionparsing.h',
373 'virtualsocketserver.cc',
374 'virtualsocketserver.h',
375 'win32.cc',
376 'win32.h',
377 'win32filesystem.cc',
378 'win32filesystem.h',
379 'win32regkey.cc',
380 'win32regkey.h',
381 'win32securityerrors.cc',
382 'win32socketinit.cc',
383 'win32socketinit.h',
384 'win32socketserver.cc',
385 'win32socketserver.h',
386 'win32window.cc',
387 'win32window.h',
388 'win32windowpicker.cc',
389 'win32windowpicker.h',
390 'window.h',
391 'windowpicker.h',
392 'windowpickerfactory.h',
393 'winfirewall.cc',
394 'winfirewall.h',
395 'winping.cc',
396 'winping.h',
397 'worker.cc',
398 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000399 'x11windowpicker.cc',
400 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000401 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000402 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000403 # these flags.
404 'cflags!': [
405 '-Wextra',
406 '-Wall',
407 ],
408 'cflags_cc!': [
409 '-Wnon-virtual-dtor',
410 ],
411 'direct_dependent_settings': {
412 'cflags_cc!': [
413 '-Wnon-virtual-dtor',
414 ],
415 'defines': [
416 'FEATURE_ENABLE_SSL',
torbjorng07d09362015-09-22 11:58:04 -0700417 'SSL_USE_OPENSSL',
418 'HAVE_OPENSSL_SSL_H',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000419 ],
420 },
421 'include_dirs': [
422 '../../third_party/jsoncpp/overrides/include',
423 '../../third_party/jsoncpp/source/include',
424 ],
425 'conditions': [
426 ['build_with_chromium==1', {
427 'include_dirs': [
henrikgee2bf412015-09-30 03:48:52 -0700428 '../../webrtc_overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000429 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000430 ],
henrikg9dff0ba2015-10-02 10:07:50 -0700431 'sources': [
henrikg990d57d2015-10-05 01:22:26 -0700432 '../../webrtc_overrides/webrtc/base/win32socketinit.cc',
henrikg9dff0ba2015-10-02 10:07:50 -0700433 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000434 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000435 'atomicops.h',
436 'bandwidthsmoother.cc',
437 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000438 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000439 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000440 'dbus.cc',
441 'dbus.h',
442 'diskcache_win32.cc',
443 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000444 'fileutils_mock.h',
445 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000446 'httpserver.cc',
447 'httpserver.h',
448 'json.cc',
449 'json.h',
450 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000451 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000452 'libdbusglibsymboltable.cc',
453 'libdbusglibsymboltable.h',
454 'linuxfdwalk.c',
455 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000456 'x11windowpicker.cc',
457 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000458 'logging.cc',
459 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700460 'logsinks.cc',
461 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000462 'macasyncsocket.cc',
463 'macasyncsocket.h',
464 'maccocoasocketserver.h',
465 'maccocoasocketserver.mm',
466 'macsocketserver.cc',
467 'macsocketserver.h',
468 'macwindowpicker.cc',
469 'macwindowpicker.h',
470 'mathutils.h',
471 'multipart.cc',
472 'multipart.h',
473 'natserver.cc',
474 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000475 'natsocketfactory.cc',
476 'natsocketfactory.h',
477 'nattypes.cc',
478 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000479 'optionsfile.cc',
480 'optionsfile.h',
481 'posix.cc',
482 'posix.h',
483 'profiler.cc',
484 'profiler.h',
485 'proxyserver.cc',
486 'proxyserver.h',
487 'refcount.h',
488 'referencecountedsingletonfactory.h',
489 'rollingaccumulator.h',
490 'safe_conversions.h',
491 'safe_conversions_impl.h',
492 'scopedptrcollection.h',
493 'scoped_ref_ptr.h',
494 'sec_buffer.h',
495 'sharedexclusivelock.cc',
496 'sharedexclusivelock.h',
497 'sslconfig.h',
498 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000499 'testbase64.h',
500 'testclient.cc',
501 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000502 'transformadapter.cc',
503 'transformadapter.h',
504 'versionparsing.cc',
505 'versionparsing.h',
506 'virtualsocketserver.cc',
507 'virtualsocketserver.h',
508 'win32regkey.cc',
509 'win32regkey.h',
510 'win32socketinit.cc',
511 'win32socketinit.h',
512 'win32socketserver.cc',
513 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000514 'window.h',
515 'windowpickerfactory.h',
516 'windowpicker.h',
517 ],
518 'defines': [
519 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000520 ],
521 'direct_dependent_settings': {
522 'defines': [
523 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000524 ],
525 },
526 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000527 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000528 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000529 'dependencies': [
530 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
531 ],
532 }, {
533 'include_dirs': [
534 '<(json_root)',
535 ],
536 'defines': [
537 # When defined changes the include path for json.h to where it
538 # is expected to be when building json outside of the standalone
539 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000540 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000541 ],
542 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000543 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000544 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000545 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000546 'link_settings': {
547 'libraries': [
548 '-llog',
549 '-lGLESv2',
550 ],
551 },
552 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000553 'sources!': [
554 'ifaddrs-android.cc',
555 'ifaddrs-android.h',
556 ],
557 }],
558 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200559 'sources/': [
560 ['include', 'macconversion.*'],
561 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000562 'all_dependent_settings': {
563 'xcode_settings': {
564 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700565 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000566 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000567 '-framework Security',
568 '-framework SystemConfiguration',
569 '-framework UIKit',
570 ],
571 },
572 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000573 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000574 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000575 'link_settings': {
576 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000577 '-ldl',
578 '-lrt',
579 '-lXext',
580 '-lX11',
581 '-lXcomposite',
582 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000583 ],
584 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000585 }, {
586 'sources!': [
587 'x11windowpicker.cc',
588 'x11windowpicker.h',
589 ],
590 }],
591 ['OS=="linux"', {
592 'link_settings': {
593 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000594 '-ldl',
595 '-lrt',
596 ],
597 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000598 }, {
599 'sources!': [
600 'dbus.cc',
601 'dbus.h',
602 'libdbusglibsymboltable.cc',
603 'libdbusglibsymboltable.h',
604 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000605 ],
606 }],
607 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000608 'all_dependent_settings': {
609 'link_settings': {
610 'xcode_settings': {
611 'OTHER_LDFLAGS': [
612 '-framework Cocoa',
613 '-framework Foundation',
614 '-framework IOKit',
615 '-framework Security',
616 '-framework SystemConfiguration',
617 ],
618 },
619 },
620 },
621 'conditions': [
622 ['target_arch=="ia32"', {
623 'all_dependent_settings': {
624 'link_settings': {
625 'xcode_settings': {
626 'OTHER_LDFLAGS': [
627 '-framework Carbon',
628 ],
629 },
630 },
631 },
632 }],
633 ],
634 }, {
635 'sources!': [
636 'macasyncsocket.cc',
637 'macasyncsocket.h',
638 'maccocoasocketserver.h',
639 'maccocoasocketserver.mm',
640 'macconversion.cc',
641 'macconversion.h',
642 'macsocketserver.cc',
643 'macsocketserver.h',
644 'macutils.cc',
645 'macutils.h',
646 'macwindowpicker.cc',
647 'macwindowpicker.h',
648 ],
649 }],
650 ['OS=="win"', {
651 'link_settings': {
652 'libraries': [
653 '-lcrypt32.lib',
654 '-liphlpapi.lib',
655 '-lsecur32.lib',
656 ],
657 },
658 # Suppress warnings about WIN32_LEAN_AND_MEAN.
659 'msvs_disabled_warnings': [4005, 4703],
660 'defines': [
661 '_CRT_NONSTDC_NO_DEPRECATE',
662 ],
663 }, {
664 'sources/': [
665 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
666 ],
667 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000668 'winping.cc',
669 'winping.h',
670 'winfirewall.cc',
671 'winfirewall.h',
672 ],
673 }],
674 ['os_posix==0', {
675 'sources!': [
676 'latebindingsymboltable.cc',
677 'latebindingsymboltable.h',
678 'posix.cc',
679 'posix.h',
680 'unixfilesystem.cc',
681 'unixfilesystem.h',
682 ],
683 }, {
684 'configurations': {
685 'Debug_Base': {
686 'defines': [
687 # Chromium's build/common.gypi defines this for all posix
688 # _except_ for ios & mac. We want it there as well, e.g.
689 # because ASSERT and friends trigger off of it.
690 '_DEBUG',
691 ],
692 },
693 }
694 }],
695 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
696 'defines': [
697 'CARBON_DEPRECATED=YES',
698 ],
699 }],
700 ['OS!="ios" and OS!="mac"', {
701 'sources!': [
702 'scoped_autorelease_pool.mm',
703 ],
704 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000705 ['OS!="linux" and OS!="android"', {
706 'sources!': [
707 'linux.cc',
708 'linux.h',
709 ],
710 }],
torbjorng07d09362015-09-22 11:58:04 -0700711 ['build_ssl==1', {
712 'dependencies': [
713 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
714 ],
715 }, {
716 'include_dirs': [
717 '<(ssl_root)',
718 ],
719 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000720 ],
721 },
722 ],
723}