1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
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.
10 'includes': [ '../build/common.gypi', ],
12 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
16 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
20 'pkg-config': 'pkg-config'
28 # Temporary target until Chromium's
29 # src/third_party/libjingle/libjingle.gyp is updated to use rtc_base.
30 # TODO(kjellander): Remove when r7140 is rolled into Chromium's DEPS.
31 'target_name': 'webrtc_base',
38 # The subset of rtc_base approved for use outside of libjingle.
39 'target_name': 'rtc_base_approved',
40 'type': 'static_library',
53 'thread_annotations.h',
59 'target_name': 'rtc_base',
60 'type': 'static_library',
67 'USE_WEBRTC_DEV_BRANCH',
72 'asynchttprequest.cc',
77 'asyncpacketsocket.h',
78 'asyncresolverinterface.h',
88 'bandwidthsmoother.cc',
89 'bandwidthsmoother.h',
102 'constructormagic.h',
115 'diskcache_win32.cc',
124 'firewallsocketserver.cc',
125 'firewallsocketserver.h',
142 'ifaddrs-android.cc',
149 'latebindingsymboltable.cc',
150 'latebindingsymboltable.cc.def',
151 'latebindingsymboltable.h',
152 'latebindingsymboltable.h.def',
153 'libdbusglibsymboltable.cc',
154 'libdbusglibsymboltable.h',
164 'maccocoasocketserver.h',
165 'maccocoasocketserver.mm',
166 'maccocoathreadhelper.h',
167 'maccocoathreadhelper.mm',
170 'macsocketserver.cc',
174 'macwindowpicker.cc',
187 'natsocketfactory.cc',
188 'natsocketfactory.h',
195 'nullsocketserver.h',
200 'physicalsocketserver.cc',
201 'physicalsocketserver.h',
217 'referencecountedsingletonfactory.h',
218 'rollingaccumulator.h',
219 'safe_conversions.h',
220 'safe_conversions_impl.h',
221 'schanneladapter.cc',
223 'scoped_autorelease_pool.h',
224 'scoped_autorelease_pool.mm',
227 'scopedptrcollection.h',
232 'sharedexclusivelock.cc',
233 'sharedexclusivelock.h',
243 'socketaddresspair.cc',
244 'socketaddresspair.h',
259 'sslsocketfactory.cc',
260 'sslsocketfactory.h',
261 'sslstreamadapter.cc',
262 'sslstreamadapter.h',
263 'sslstreamadapterhelper.cc',
264 'sslstreamadapterhelper.h',
281 'thread_checker_impl.cc',
282 'thread_checker_impl.h',
285 'transformadapter.cc',
286 'transformadapter.h',
293 'virtualsocketserver.cc',
294 'virtualsocketserver.h',
297 'win32filesystem.cc',
301 'win32securityerrors.cc',
302 'win32socketinit.cc',
304 'win32socketserver.cc',
305 'win32socketserver.h',
308 'win32windowpicker.cc',
309 'win32windowpicker.h',
312 'windowpickerfactory.h',
319 'x11windowpicker.cc',
321 '../overrides/webrtc/base/basictypes.h',
322 '../overrides/webrtc/base/constructormagic.h',
323 '../overrides/webrtc/base/logging.cc',
324 '../overrides/webrtc/base/logging.h',
325 '../overrides/webrtc/base/win32socketinit.cc',
327 # TODO(henrike): issue 3307, make rtc_base build without disabling
334 '-Wnon-virtual-dtor',
336 'direct_dependent_settings': {
338 '-Wnon-virtual-dtor',
341 'FEATURE_ENABLE_SSL',
345 '../../third_party/jsoncpp/overrides/include',
346 '../../third_party/jsoncpp/source/include',
349 ['build_with_chromium==1', {
352 '../../boringssl/src/include',
357 'asyncinvoker-inl.h',
358 'asyncresolverinterface.h',
360 'bandwidthsmoother.cc',
361 'bandwidthsmoother.h',
368 'constructormagic.h',
371 'diskcache_win32.cc',
377 'genericslot.h.pump',
382 'latebindingsymboltable.cc',
383 'latebindingsymboltable.cc.def',
384 'latebindingsymboltable.h',
385 'latebindingsymboltable.h.def',
386 'libdbusglibsymboltable.cc',
387 'libdbusglibsymboltable.h',
390 'x11windowpicker.cc',
396 'maccocoasocketserver.h',
397 'maccocoasocketserver.mm',
398 'macsocketserver.cc',
400 'macwindowpicker.cc',
407 'natsocketfactory.cc',
408 'natsocketfactory.h',
420 'referencecountedsingletonfactory.h',
421 'rollingaccumulator.h',
422 'safe_conversions.h',
423 'safe_conversions_impl.h',
424 'scopedptrcollection.h',
427 'sharedexclusivelock.cc',
428 'sharedexclusivelock.h',
435 'transformadapter.cc',
436 'transformadapter.h',
439 'virtualsocketserver.cc',
440 'virtualsocketserver.h',
443 'win32socketinit.cc',
445 'win32socketserver.cc',
446 'win32socketserver.h',
448 'windowpickerfactory.h',
452 'NO_MAIN_THREAD_WRAPPING',
454 'direct_dependent_settings': {
456 'NO_MAIN_THREAD_WRAPPING',
463 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
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
473 'WEBRTC_EXTERNAL_JSON',
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',
488 'HAVE_OPENSSL_SSL_H',
490 'direct_dependent_settings': {
493 'HAVE_OPENSSL_SSL_H',
502 'opensslidentity.cc',
504 'opensslstreamadapter.cc',
505 'opensslstreamadapter.h',
510 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
522 'nssstreamadapter.cc',
523 'nssstreamadapter.h',
526 ['use_legacy_ssl_defaults!=1', {
532 'direct_dependent_settings': {
540 ['OS=="mac" or OS=="ios" or OS=="win"', {
544 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
545 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
546 '<(DEPTH)/third_party/nss/nss.gyp:nss',
557 ['OS == "android"', {
561 'direct_dependent_settings': {
574 ['use_legacy_ssl_defaults!=1', {
579 'direct_dependent_settings': {
588 'ifaddrs-android.cc',
593 'all_dependent_settings': {
596 '-framework Foundation',
597 '-framework Security',
598 '-framework SystemConfiguration',
617 'x11windowpicker.cc',
632 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
636 '<!@(<(pkg-config) --cflags nss)',
639 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
647 'libdbusglibsymboltable.cc',
648 'libdbusglibsymboltable.h',
653 'all_dependent_settings': {
658 '-framework Foundation',
660 '-framework Security',
661 '-framework SystemConfiguration',
667 ['target_arch=="ia32"', {
668 'all_dependent_settings': {
683 'maccocoasocketserver.h',
684 'maccocoasocketserver.mm',
687 'macsocketserver.cc',
691 'macwindowpicker.cc',
703 # Suppress warnings about WIN32_LEAN_AND_MEAN.
704 'msvs_disabled_warnings': [4005, 4703],
706 '_CRT_NONSTDC_NO_DEPRECATE',
710 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
713 'schanneladapter.cc',
723 'latebindingsymboltable.cc',
724 'latebindingsymboltable.h',
734 # Chromium's build/common.gypi defines this for all posix
735 # _except_ for ios & mac. We want it there as well, e.g.
736 # because ASSERT and friends trigger off of it.
742 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
744 'CARBON_DEPRECATED=YES',
747 ['OS!="ios" and OS!="mac"', {
749 'scoped_autorelease_pool.mm',
752 ['OS!="linux" and OS!="android"', {
758 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
762 '<(DEPTH)/build/linux/system.gyp:ssl',