diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /dom/media/webrtc/moz.build | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/media/webrtc/moz.build')
-rw-r--r-- | dom/media/webrtc/moz.build | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/dom/media/webrtc/moz.build b/dom/media/webrtc/moz.build new file mode 100644 index 000000000..66def8719 --- /dev/null +++ b/dom/media/webrtc/moz.build @@ -0,0 +1,88 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +with Files('*'): + BUG_COMPONENT = ('Core', 'WebRTC: Audio/Video') + +with Files('PeerIdentity.*'): + BUG_COMPONENT = ('Core', 'WebRTC: Signaling') + +XPIDL_MODULE = 'content_webrtc' + +EXPORTS += [ + 'MediaEngine.h', + 'MediaEngineCameraVideoSource.h', + 'MediaEngineDefault.h', + 'MediaTrackConstraints.h', +] + +if CONFIG['MOZ_WEBRTC']: + if CONFIG['OS_TARGET'] == 'WINNT': + DEFINES['WEBRTC_WIN'] = True + else: + DEFINES['WEBRTC_POSIX'] = True + EXPORTS += ['AudioOutputObserver.h', + 'MediaEngineRemoteVideoSource.h', + 'MediaEngineWebRTC.h'] + EXPORTS.mozilla.dom += [ 'RTCIdentityProviderRegistrar.h' ] + UNIFIED_SOURCES += [ + 'MediaEngineCameraVideoSource.cpp', + 'MediaEngineRemoteVideoSource.cpp', + 'MediaEngineTabVideoSource.cpp', + 'MediaEngineWebRTCAudio.cpp', + 'RTCCertificate.cpp', + 'RTCIdentityProviderRegistrar.cpp', + ] + # MediaEngineWebRTC.cpp needs to be built separately. + SOURCES += [ + 'MediaEngineWebRTC.cpp', + ] + LOCAL_INCLUDES += [ + '/dom/base', + '/media/libyuv/include', + '/media/webrtc/signaling/src/common', + '/media/webrtc/signaling/src/common/browser_logging', + '/media/webrtc/trunk', + ] + +XPIDL_SOURCES += [ + 'nsITabSource.idl' +] + +UNIFIED_SOURCES += [ + 'MediaEngineDefault.cpp', + 'MediaTrackConstraints.cpp', + 'PeerIdentity.cpp', +] + +EXPORTS.mozilla += [ + 'PeerIdentity.h', +] +EXPORTS.mozilla.dom += [ + 'RTCCertificate.h', +] + +include('/ipc/chromium/chromium-config.mozbuild') + +# Suppress some GCC/clang warnings being treated as errors: +# - about attributes on forward declarations for types that are already +# defined, which complains about important MOZ_EXPORT attributes for +# android API types +if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']: + CXXFLAGS += [ + '-Wno-error=attributes', + '-Wno-error=shadow', + ] + +FINAL_LIBRARY = 'xul' + +if CONFIG['_MSC_VER']: + CXXFLAGS += [ + '-wd4275', # non dll-interface class used as base for dll-interface class + '-wd4312', # This is intended as a temporary hack to support building with VS2015 + # 'reinterpret_cast': conversion from 'DWORD' to 'HANDLE' of greater size + ] + DEFINES['__PRETTY_FUNCTION__'] = '__FUNCSIG__' |