2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:19 +00:00
|
|
|
# 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/.
|
|
|
|
|
2015-04-11 00:10:00 +00:00
|
|
|
with Files('*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'WebRTC: Audio/Video')
|
|
|
|
|
|
|
|
with Files('PeerIdentity.*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'WebRTC: Signaling')
|
|
|
|
|
2013-10-17 20:48:30 +00:00
|
|
|
XPIDL_MODULE = 'content_webrtc'
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'MediaEngine.h',
|
2014-10-13 03:37:37 +00:00
|
|
|
'MediaEngineCameraVideoSource.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'MediaEngineDefault.h',
|
2014-04-18 19:16:08 +00:00
|
|
|
'MediaTrackConstraints.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBRTC']:
|
2015-11-18 20:03:25 +00:00
|
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
DEFINES['WEBRTC_WIN'] = True
|
|
|
|
else:
|
|
|
|
DEFINES['WEBRTC_POSIX'] = True
|
2014-04-02 17:58:19 +00:00
|
|
|
EXPORTS += ['AudioOutputObserver.h',
|
2015-08-31 12:51:29 +00:00
|
|
|
'MediaEngineRemoteVideoSource.h',
|
2014-06-27 12:23:55 +00:00
|
|
|
'MediaEngineWebRTC.h']
|
2015-07-08 19:27:45 +00:00
|
|
|
EXPORTS.mozilla.dom += [ 'RTCIdentityProviderRegistrar.h' ]
|
2013-11-18 02:31:46 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2014-10-13 03:37:37 +00:00
|
|
|
'MediaEngineCameraVideoSource.cpp',
|
2015-08-31 12:51:29 +00:00
|
|
|
'MediaEngineRemoteVideoSource.cpp',
|
2013-10-17 20:48:30 +00:00
|
|
|
'MediaEngineTabVideoSource.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'MediaEngineWebRTCAudio.cpp',
|
2015-07-08 19:27:45 +00:00
|
|
|
'RTCCertificate.cpp',
|
|
|
|
'RTCIdentityProviderRegistrar.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
2013-11-18 02:31:46 +00:00
|
|
|
# MediaEngineWebRTC.cpp needs to be built separately.
|
|
|
|
SOURCES += [
|
|
|
|
'MediaEngineWebRTC.cpp',
|
|
|
|
]
|
2013-11-11 08:04:06 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
2017-02-24 19:01:56 +00:00
|
|
|
'/media/libyuv/libyuv/include',
|
2013-11-11 08:04:06 +00:00
|
|
|
'/media/webrtc/signaling/src/common',
|
|
|
|
'/media/webrtc/signaling/src/common/browser_logging',
|
|
|
|
'/media/webrtc/trunk',
|
|
|
|
]
|
|
|
|
|
2013-10-17 20:48:30 +00:00
|
|
|
XPIDL_SOURCES += [
|
2013-11-11 08:04:06 +00:00
|
|
|
'nsITabSource.idl'
|
2013-10-17 20:48:30 +00:00
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2013-11-18 02:31:46 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'MediaEngineDefault.cpp',
|
2016-07-28 16:03:40 +00:00
|
|
|
'MediaTrackConstraints.cpp',
|
2014-05-01 10:50:00 +00:00
|
|
|
'PeerIdentity.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'PeerIdentity.h',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
2015-07-06 17:40:04 +00:00
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'RTCCertificate.h',
|
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-12-23 08:22:50 +00:00
|
|
|
# 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']:
|
2015-08-31 12:51:29 +00:00
|
|
|
CXXFLAGS += [
|
2016-05-11 07:00:01 +00:00
|
|
|
'-Wno-error=attributes',
|
|
|
|
'-Wno-error=shadow',
|
2015-08-31 12:51:29 +00:00
|
|
|
]
|
2014-12-23 08:22:50 +00:00
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-06-15 18:57:30 +00:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
2015-08-31 12:51:29 +00:00
|
|
|
CXXFLAGS += [
|
|
|
|
'-wd4275', # non dll-interface class used as base for dll-interface class
|
2016-03-14 23:05:06 +00:00
|
|
|
'-wd4312', # This is intended as a temporary hack to support building with VS2015
|
|
|
|
# 'reinterpret_cast': conversion from 'DWORD' to 'HANDLE' of greater size
|
2015-08-31 12:51:29 +00:00
|
|
|
]
|
|
|
|
DEFINES['__PRETTY_FUNCTION__'] = '__FUNCSIG__'
|