2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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/.
|
|
|
|
|
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']:
|
2014-04-02 17:58:19 +00:00
|
|
|
EXPORTS += ['AudioOutputObserver.h',
|
2014-06-27 12:23:55 +00:00
|
|
|
'MediaEngineWebRTC.h']
|
2013-11-18 02:31:46 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2014-10-13 03:37:37 +00:00
|
|
|
'MediaEngineCameraVideoSource.cpp',
|
2013-10-17 20:48:30 +00:00
|
|
|
'MediaEngineTabVideoSource.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'MediaEngineWebRTCAudio.cpp',
|
2013-10-23 23:00:23 +00:00
|
|
|
'MediaEngineWebRTCVideo.cpp',
|
2015-02-20 22:06:26 +00:00
|
|
|
'MediaTrackConstraints.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',
|
|
|
|
'/dom/camera',
|
2014-02-20 20:31:53 +00:00
|
|
|
'/media/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',
|
|
|
|
]
|
2014-10-13 03:37:37 +00:00
|
|
|
# Gonk camera source.
|
|
|
|
if CONFIG['MOZ_B2G_CAMERA']:
|
2014-12-18 04:42:00 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'GonkCameraImage.h',
|
|
|
|
'MediaEngineGonkVideoSource.h',
|
|
|
|
]
|
2014-10-13 03:37:37 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2014-12-18 04:42:00 +00:00
|
|
|
'GonkCameraImage.cpp',
|
2014-10-13 03:37:37 +00:00
|
|
|
'MediaEngineGonkVideoSource.cpp',
|
|
|
|
]
|
2013-11-11 08:04:06 +00:00
|
|
|
|
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',
|
2014-05-01 10:50:00 +00:00
|
|
|
'PeerIdentity.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'PeerIdentity.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']:
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wno-error=attributes'
|
|
|
|
]
|
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-11 08:04:06 +00:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
DEFINES['NOMINMAX'] = True
|
2014-06-15 18:57:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-wd4275', # non dll-interface class used as base for dll-interface class
|
|
|
|
]
|
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|