2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:19 +04: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 03:10:00 +03:00
|
|
|
with Files('*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'WebRTC: Audio/Video')
|
|
|
|
|
|
|
|
with Files('PeerIdentity.*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'WebRTC: Signaling')
|
|
|
|
|
2013-10-18 00:48:30 +04:00
|
|
|
XPIDL_MODULE = 'content_webrtc'
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'MediaEngine.h',
|
2014-10-13 07:37:37 +04:00
|
|
|
'MediaEngineCameraVideoSource.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'MediaEngineDefault.h',
|
2014-04-18 23:16:08 +04:00
|
|
|
'MediaTrackConstraints.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBRTC']:
|
2014-04-02 21:58:19 +04:00
|
|
|
EXPORTS += ['AudioOutputObserver.h',
|
2014-06-27 16:23:55 +04:00
|
|
|
'MediaEngineWebRTC.h']
|
2015-07-08 22:27:45 +03:00
|
|
|
EXPORTS.mozilla.dom += [ 'RTCIdentityProviderRegistrar.h' ]
|
2013-11-18 06:31:46 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2014-10-13 07:37:37 +04:00
|
|
|
'MediaEngineCameraVideoSource.cpp',
|
2013-10-18 00:48:30 +04:00
|
|
|
'MediaEngineTabVideoSource.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'MediaEngineWebRTCAudio.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'MediaEngineWebRTCVideo.cpp',
|
2015-02-21 01:06:26 +03:00
|
|
|
'MediaTrackConstraints.cpp',
|
2015-07-08 22:27:45 +03:00
|
|
|
'RTCCertificate.cpp',
|
|
|
|
'RTCIdentityProviderRegistrar.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-11-18 06:31:46 +04:00
|
|
|
# MediaEngineWebRTC.cpp needs to be built separately.
|
|
|
|
SOURCES += [
|
|
|
|
'MediaEngineWebRTC.cpp',
|
|
|
|
]
|
2013-11-11 12:04:06 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
|
|
|
'/dom/camera',
|
2014-02-21 00:31:53 +04:00
|
|
|
'/media/libyuv/include',
|
2013-11-11 12:04:06 +04:00
|
|
|
'/media/webrtc/signaling/src/common',
|
|
|
|
'/media/webrtc/signaling/src/common/browser_logging',
|
|
|
|
'/media/webrtc/trunk',
|
|
|
|
]
|
2014-10-13 07:37:37 +04:00
|
|
|
# Gonk camera source.
|
2015-03-11 02:39:49 +03:00
|
|
|
if CONFIG['MOZ_B2G_CAMERA'] and CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2014-12-18 07:42:00 +03:00
|
|
|
EXPORTS += [
|
|
|
|
'GonkCameraImage.h',
|
|
|
|
'MediaEngineGonkVideoSource.h',
|
|
|
|
]
|
2014-10-13 07:37:37 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2014-12-18 07:42:00 +03:00
|
|
|
'GonkCameraImage.cpp',
|
2014-10-13 07:37:37 +04:00
|
|
|
'MediaEngineGonkVideoSource.cpp',
|
|
|
|
]
|
2013-11-11 12:04:06 +04:00
|
|
|
|
2013-10-18 00:48:30 +04:00
|
|
|
XPIDL_SOURCES += [
|
2013-11-11 12:04:06 +04:00
|
|
|
'nsITabSource.idl'
|
2013-10-18 00:48:30 +04:00
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2013-11-18 06:31:46 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'MediaEngineDefault.cpp',
|
2014-05-01 14:50:00 +04:00
|
|
|
'PeerIdentity.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'PeerIdentity.h',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2015-07-06 20:40:04 +03:00
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'RTCCertificate.h',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-12-23 11:22:50 +03: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']:
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wno-error=attributes'
|
|
|
|
]
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-06-15 22:57:30 +04:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-wd4275', # non dll-interface class used as base for dll-interface class
|
|
|
|
]
|