blob: fdb28ff200aa598d7c5756dd8a9c1322fb26c21e [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 }],
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': [
32 'checks.cc',
33 'checks.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000034 'event.cc',
35 'event.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000036 'exp_filter.cc',
37 'exp_filter.h',
38 'md5.cc',
39 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000040 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000041 'md5digest.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000042 'platform_file.cc',
43 'platform_file.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000044 'safe_conversions.h',
45 'safe_conversions_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000046 'stringencode.cc',
47 'stringencode.h',
48 'stringutils.cc',
49 'stringutils.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000050 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000051 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000052 'thread_checker.h',
53 'thread_checker_impl.cc',
54 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000055 'timeutils.cc',
56 'timeutils.h',
57 ],
58 },
59 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000060 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000061 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000062 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000063 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000064 'rtc_base_approved',
65 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000066 'defines': [
67 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000068 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000069 ],
70 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +000071 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000072 'asyncfile.cc',
73 'asyncfile.h',
74 'asynchttprequest.cc',
75 'asynchttprequest.h',
76 'asyncinvoker.cc',
77 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000078 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000079 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000080 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000081 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000082 'asyncresolverinterface.h',
83 'asyncsocket.cc',
84 'asyncsocket.h',
85 'asynctcpsocket.cc',
86 'asynctcpsocket.h',
87 'asyncudpsocket.cc',
88 'asyncudpsocket.h',
89 'atomicops.h',
90 'autodetectproxy.cc',
91 'autodetectproxy.h',
92 'bandwidthsmoother.cc',
93 'bandwidthsmoother.h',
94 'base64.cc',
95 'base64.h',
96 'basicdefs.h',
97 'basictypes.h',
98 'bind.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +000099 'bind.h.pump',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000100 'buffer.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000101 'buffer.h',
102 'bytebuffer.cc',
103 'bytebuffer.h',
104 'byteorder.h',
105 'callback.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000106 'callback.h.pump',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000107 'constructormagic.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000108 'common.cc',
109 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000110 'cpumonitor.cc',
111 'cpumonitor.h',
112 'crc32.cc',
113 'crc32.h',
114 'criticalsection.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000115 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000116 'cryptstring.h',
117 'dbus.cc',
118 'dbus.h',
119 'diskcache.cc',
120 'diskcache.h',
121 'diskcache_win32.cc',
122 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000123 'filelock.cc',
124 'filelock.h',
125 'fileutils.cc',
126 'fileutils.h',
127 'fileutils_mock.h',
128 'firewallsocketserver.cc',
129 'firewallsocketserver.h',
130 'flags.cc',
131 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000132 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000133 'gunit_prod.h',
134 'helpers.cc',
135 'helpers.h',
136 'httpbase.cc',
137 'httpbase.h',
138 'httpclient.cc',
139 'httpclient.h',
140 'httpcommon-inl.h',
141 'httpcommon.cc',
142 'httpcommon.h',
143 'httprequest.cc',
144 'httprequest.h',
145 'httpserver.cc',
146 'httpserver.h',
147 'ifaddrs-android.cc',
148 'ifaddrs-android.h',
149 'iosfilesystem.mm',
150 'ipaddress.cc',
151 'ipaddress.h',
152 'json.cc',
153 'json.h',
154 'latebindingsymboltable.cc',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000155 'latebindingsymboltable.cc.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000156 'latebindingsymboltable.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000157 'latebindingsymboltable.h.def',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000158 'libdbusglibsymboltable.cc',
159 'libdbusglibsymboltable.h',
160 'linux.cc',
161 'linux.h',
162 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000163 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000164 'linked_ptr.h',
165 'logging.cc',
166 'logging.h',
167 'macasyncsocket.cc',
168 'macasyncsocket.h',
169 'maccocoasocketserver.h',
170 'maccocoasocketserver.mm',
171 'maccocoathreadhelper.h',
172 'maccocoathreadhelper.mm',
173 'macconversion.cc',
174 'macconversion.h',
175 'macsocketserver.cc',
176 'macsocketserver.h',
177 'macutils.cc',
178 'macutils.h',
179 'macwindowpicker.cc',
180 'macwindowpicker.h',
181 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000182 'messagedigest.cc',
183 'messagedigest.h',
184 'messagehandler.cc',
185 'messagehandler.h',
186 'messagequeue.cc',
187 'messagequeue.h',
188 'multipart.cc',
189 'multipart.h',
190 'natserver.cc',
191 'natserver.h',
192 'natsocketfactory.cc',
193 'natsocketfactory.h',
194 'nattypes.cc',
195 'nattypes.h',
196 'nethelpers.cc',
197 'nethelpers.h',
198 'network.cc',
199 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000200 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000201 'optionsfile.cc',
202 'optionsfile.h',
203 'pathutils.cc',
204 'pathutils.h',
205 'physicalsocketserver.cc',
206 'physicalsocketserver.h',
207 'posix.cc',
208 'posix.h',
209 'profiler.cc',
210 'profiler.h',
211 'proxydetect.cc',
212 'proxydetect.h',
213 'proxyinfo.cc',
214 'proxyinfo.h',
215 'proxyserver.cc',
216 'proxyserver.h',
217 'ratelimiter.cc',
218 'ratelimiter.h',
219 'ratetracker.cc',
220 'ratetracker.h',
221 'refcount.h',
222 'referencecountedsingletonfactory.h',
223 'rollingaccumulator.h',
224 'schanneladapter.cc',
225 'schanneladapter.h',
226 'scoped_autorelease_pool.h',
227 'scoped_autorelease_pool.mm',
228 'scoped_ptr.h',
229 'scoped_ref_ptr.h',
230 'scopedptrcollection.h',
231 'sec_buffer.h',
232 'sha1.cc',
233 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000234 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000235 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000236 'sharedexclusivelock.cc',
237 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000238 'signalthread.cc',
239 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000240 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000241 'sigslot.h',
242 'sigslotrepeater.h',
243 'socket.h',
244 'socketadapters.cc',
245 'socketadapters.h',
246 'socketaddress.cc',
247 'socketaddress.h',
248 'socketaddresspair.cc',
249 'socketaddresspair.h',
250 'socketfactory.h',
251 'socketpool.cc',
252 'socketpool.h',
253 'socketserver.h',
254 'socketstream.cc',
255 'socketstream.h',
256 'ssladapter.cc',
257 'ssladapter.h',
258 'sslconfig.h',
259 'sslfingerprint.cc',
260 'sslfingerprint.h',
261 'sslidentity.cc',
262 'sslidentity.h',
263 'sslroots.h',
264 'sslsocketfactory.cc',
265 'sslsocketfactory.h',
266 'sslstreamadapter.cc',
267 'sslstreamadapter.h',
268 'sslstreamadapterhelper.cc',
269 'sslstreamadapterhelper.h',
270 'stream.cc',
271 'stream.h',
272 'stringdigest.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000273 'systeminfo.cc',
274 'systeminfo.h',
275 'task.cc',
276 'task.h',
277 'taskparent.cc',
278 'taskparent.h',
279 'taskrunner.cc',
280 'taskrunner.h',
281 'testclient.cc',
282 'testclient.h',
283 'thread.cc',
284 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000285 'timing.cc',
286 'timing.h',
287 'transformadapter.cc',
288 'transformadapter.h',
289 'unixfilesystem.cc',
290 'unixfilesystem.h',
291 'urlencode.cc',
292 'urlencode.h',
293 'versionparsing.cc',
294 'versionparsing.h',
295 'virtualsocketserver.cc',
296 'virtualsocketserver.h',
297 'win32.cc',
298 'win32.h',
299 'win32filesystem.cc',
300 'win32filesystem.h',
301 'win32regkey.cc',
302 'win32regkey.h',
303 'win32securityerrors.cc',
304 'win32socketinit.cc',
305 'win32socketinit.h',
306 'win32socketserver.cc',
307 'win32socketserver.h',
308 'win32window.cc',
309 'win32window.h',
310 'win32windowpicker.cc',
311 'win32windowpicker.h',
312 'window.h',
313 'windowpicker.h',
314 'windowpickerfactory.h',
315 'winfirewall.cc',
316 'winfirewall.h',
317 'winping.cc',
318 'winping.h',
319 'worker.cc',
320 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000321 'x11windowpicker.cc',
322 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000323 '../overrides/webrtc/base/basictypes.h',
324 '../overrides/webrtc/base/constructormagic.h',
325 '../overrides/webrtc/base/logging.cc',
326 '../overrides/webrtc/base/logging.h',
327 '../overrides/webrtc/base/win32socketinit.cc',
328 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000329 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000330 # these flags.
331 'cflags!': [
332 '-Wextra',
333 '-Wall',
334 ],
335 'cflags_cc!': [
336 '-Wnon-virtual-dtor',
337 ],
338 'direct_dependent_settings': {
339 'cflags_cc!': [
340 '-Wnon-virtual-dtor',
341 ],
342 'defines': [
343 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000344 ],
345 },
346 'include_dirs': [
347 '../../third_party/jsoncpp/overrides/include',
348 '../../third_party/jsoncpp/source/include',
349 ],
350 'conditions': [
351 ['build_with_chromium==1', {
352 'include_dirs': [
353 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000354 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000355 ],
356 'sources!': [
357 'asyncinvoker.cc',
358 'asyncinvoker.h',
359 'asyncinvoker-inl.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000360 'atomicops.h',
361 'bandwidthsmoother.cc',
362 'bandwidthsmoother.h',
363 'basictypes.h',
364 'bind.h',
365 'bind.h.pump',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000366 'callback.h',
367 'callback.h.pump',
368 'constructormagic.h',
369 'dbus.cc',
370 'dbus.h',
371 'diskcache_win32.cc',
372 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000373 'filelock.cc',
374 'filelock.h',
375 'fileutils_mock.h',
376 'genericslot.h',
377 'genericslot.h.pump',
378 'httpserver.cc',
379 'httpserver.h',
380 'json.cc',
381 'json.h',
382 'latebindingsymboltable.cc',
383 'latebindingsymboltable.cc.def',
384 'latebindingsymboltable.h',
385 'latebindingsymboltable.h.def',
386 'libdbusglibsymboltable.cc',
387 'libdbusglibsymboltable.h',
388 'linuxfdwalk.c',
389 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000390 'x11windowpicker.cc',
391 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000392 'logging.cc',
393 'logging.h',
394 'macasyncsocket.cc',
395 'macasyncsocket.h',
396 'maccocoasocketserver.h',
397 'maccocoasocketserver.mm',
398 'macsocketserver.cc',
399 'macsocketserver.h',
400 'macwindowpicker.cc',
401 'macwindowpicker.h',
402 'mathutils.h',
403 'multipart.cc',
404 'multipart.h',
405 'natserver.cc',
406 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000407 'natsocketfactory.cc',
408 'natsocketfactory.h',
409 'nattypes.cc',
410 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000411 'optionsfile.cc',
412 'optionsfile.h',
413 'posix.cc',
414 'posix.h',
415 'profiler.cc',
416 'profiler.h',
417 'proxyserver.cc',
418 'proxyserver.h',
419 'refcount.h',
420 'referencecountedsingletonfactory.h',
421 'rollingaccumulator.h',
422 'safe_conversions.h',
423 'safe_conversions_impl.h',
424 'scopedptrcollection.h',
425 'scoped_ref_ptr.h',
426 'sec_buffer.h',
427 'sharedexclusivelock.cc',
428 'sharedexclusivelock.h',
429 'sslconfig.h',
430 'sslroots.h',
431 'stringdigest.h',
432 'testbase64.h',
433 'testclient.cc',
434 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000435 'transformadapter.cc',
436 'transformadapter.h',
437 'versionparsing.cc',
438 'versionparsing.h',
439 'virtualsocketserver.cc',
440 'virtualsocketserver.h',
441 'win32regkey.cc',
442 'win32regkey.h',
443 'win32socketinit.cc',
444 'win32socketinit.h',
445 'win32socketserver.cc',
446 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000447 'window.h',
448 'windowpickerfactory.h',
449 'windowpicker.h',
450 ],
451 'defines': [
452 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000453 ],
454 'direct_dependent_settings': {
455 'defines': [
456 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000457 ],
458 },
459 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000460 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000461 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000462 'dependencies': [
463 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
464 ],
465 }, {
466 'include_dirs': [
467 '<(json_root)',
468 ],
469 'defines': [
470 # When defined changes the include path for json.h to where it
471 # is expected to be when building json outside of the standalone
472 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000473 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000474 ],
475 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000476 ],
477 'sources!': [
478 '../overrides/webrtc/base/basictypes.h',
479 '../overrides/webrtc/base/constructormagic.h',
480 '../overrides/webrtc/base/win32socketinit.cc',
481 '../overrides/webrtc/base/logging.cc',
482 '../overrides/webrtc/base/logging.h',
483 ],
484 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000485 ['use_openssl==1', {
486 'defines': [
487 'SSL_USE_OPENSSL',
488 'HAVE_OPENSSL_SSL_H',
489 ],
490 'direct_dependent_settings': {
491 'defines': [
492 'SSL_USE_OPENSSL',
493 'HAVE_OPENSSL_SSL_H',
494 ],
495 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000496 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000497 'openssl.h',
498 'openssladapter.cc',
499 'openssladapter.h',
500 'openssldigest.cc',
501 'openssldigest.h',
502 'opensslidentity.cc',
503 'opensslidentity.h',
504 'opensslstreamadapter.cc',
505 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000506 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000507 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000508 ['build_ssl==1', {
509 'dependencies': [
510 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
511 ],
512 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000513 'include_dirs': [
514 '<(ssl_root)',
515 ],
516 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000517 ],
518 }, {
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000519 'sources': [
520 'nssidentity.cc',
521 'nssidentity.h',
522 'nssstreamadapter.cc',
523 'nssstreamadapter.h',
524 ],
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000525 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000526 ['use_legacy_ssl_defaults!=1', {
tpsiaki@google.com67eabc02014-09-10 18:06:47 +0000527 'defines': [
528 'SSL_USE_NSS',
529 'HAVE_NSS_SSL_H',
530 'SSL_USE_NSS_RNG',
531 ],
532 'direct_dependent_settings': {
533 'defines': [
534 'SSL_USE_NSS',
535 'HAVE_NSS_SSL_H',
536 'SSL_USE_NSS_RNG',
537 ],
538 },
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000539 }],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000540 ['build_ssl==1', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000541 'conditions': [
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000542 # On some platforms, the rest of NSS is bundled. On others,
543 # it's pulled from the system.
544 ['OS == "mac" or OS == "ios" or OS == "win"', {
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000545 'dependencies': [
546 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000547 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
548 '<(DEPTH)/third_party/nss/nss.gyp:nss',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000549 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000550 }],
551 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
552 'dependencies': [
553 '<(DEPTH)/build/linux/system.gyp:ssl',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000554 ],
555 }],
556 ],
henrike@webrtc.org33a0e2d2014-10-27 18:13:40 +0000557 }, {
558 'include_dirs': [
559 '<(ssl_root)',
560 ],
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000561 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000562 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000563 }],
564 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000565 'link_settings': {
566 'libraries': [
567 '-llog',
568 '-lGLESv2',
569 ],
570 },
571 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000572 'sources!': [
573 'ifaddrs-android.cc',
574 'ifaddrs-android.h',
575 ],
576 }],
577 ['OS=="ios"', {
578 'all_dependent_settings': {
579 'xcode_settings': {
580 'OTHER_LDFLAGS': [
581 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000582 '-framework Security',
583 '-framework SystemConfiguration',
584 '-framework UIKit',
585 ],
586 },
587 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000588 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000589 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000590 'link_settings': {
591 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000592 '-ldl',
593 '-lrt',
594 '-lXext',
595 '-lX11',
596 '-lXcomposite',
597 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000598 ],
599 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000600 }, {
601 'sources!': [
602 'x11windowpicker.cc',
603 'x11windowpicker.h',
604 ],
605 }],
606 ['OS=="linux"', {
607 'link_settings': {
608 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000609 '-ldl',
610 '-lrt',
611 ],
612 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000613 }, {
614 'sources!': [
615 'dbus.cc',
616 'dbus.h',
617 'libdbusglibsymboltable.cc',
618 'libdbusglibsymboltable.h',
619 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000620 ],
621 }],
622 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000623 'all_dependent_settings': {
624 'link_settings': {
625 'xcode_settings': {
626 'OTHER_LDFLAGS': [
627 '-framework Cocoa',
628 '-framework Foundation',
629 '-framework IOKit',
630 '-framework Security',
631 '-framework SystemConfiguration',
632 ],
633 },
634 },
635 },
636 'conditions': [
637 ['target_arch=="ia32"', {
638 'all_dependent_settings': {
639 'link_settings': {
640 'xcode_settings': {
641 'OTHER_LDFLAGS': [
642 '-framework Carbon',
643 ],
644 },
645 },
646 },
647 }],
648 ],
649 }, {
650 'sources!': [
651 'macasyncsocket.cc',
652 'macasyncsocket.h',
653 'maccocoasocketserver.h',
654 'maccocoasocketserver.mm',
655 'macconversion.cc',
656 'macconversion.h',
657 'macsocketserver.cc',
658 'macsocketserver.h',
659 'macutils.cc',
660 'macutils.h',
661 'macwindowpicker.cc',
662 'macwindowpicker.h',
663 ],
664 }],
665 ['OS=="win"', {
666 'link_settings': {
667 'libraries': [
668 '-lcrypt32.lib',
669 '-liphlpapi.lib',
670 '-lsecur32.lib',
671 ],
672 },
673 # Suppress warnings about WIN32_LEAN_AND_MEAN.
674 'msvs_disabled_warnings': [4005, 4703],
675 'defines': [
676 '_CRT_NONSTDC_NO_DEPRECATE',
677 ],
678 }, {
679 'sources/': [
680 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
681 ],
682 'sources!': [
683 'schanneladapter.cc',
684 'schanneladapter.h',
685 'winping.cc',
686 'winping.h',
687 'winfirewall.cc',
688 'winfirewall.h',
689 ],
690 }],
691 ['os_posix==0', {
692 'sources!': [
693 'latebindingsymboltable.cc',
694 'latebindingsymboltable.h',
695 'posix.cc',
696 'posix.h',
697 'unixfilesystem.cc',
698 'unixfilesystem.h',
699 ],
700 }, {
701 'configurations': {
702 'Debug_Base': {
703 'defines': [
704 # Chromium's build/common.gypi defines this for all posix
705 # _except_ for ios & mac. We want it there as well, e.g.
706 # because ASSERT and friends trigger off of it.
707 '_DEBUG',
708 ],
709 },
710 }
711 }],
712 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
713 'defines': [
714 'CARBON_DEPRECATED=YES',
715 ],
716 }],
717 ['OS!="ios" and OS!="mac"', {
718 'sources!': [
719 'scoped_autorelease_pool.mm',
720 ],
721 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000722 ['OS!="linux" and OS!="android"', {
723 'sources!': [
724 'linux.cc',
725 'linux.h',
726 ],
727 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000728 ],
729 },
730 ],
731}