2013-05-17 10:50:58 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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/.
|
|
|
|
|
2015-04-08 22:21:00 +00:00
|
|
|
with Files('*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Video/Audio: Recording')
|
|
|
|
|
2014-01-02 15:39:24 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['fmp4_muxer']
|
2014-01-02 15:39:24 +00:00
|
|
|
|
2013-05-17 10:50:58 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'ContainerWriter.h',
|
2013-10-25 02:59:52 +00:00
|
|
|
'EncodedFrameContainer.h',
|
2013-06-05 06:29:12 +00:00
|
|
|
'MediaEncoder.h',
|
2014-11-28 09:20:00 +00:00
|
|
|
'OpusTrackEncoder.h',
|
2013-05-17 11:16:36 +00:00
|
|
|
'TrackEncoder.h',
|
2013-10-25 02:59:52 +00:00
|
|
|
'TrackMetadataBase.h',
|
2013-05-17 10:50:58 +00:00
|
|
|
]
|
2013-05-17 11:16:36 +00:00
|
|
|
|
2013-11-18 02:31:46 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-06-05 06:29:12 +00:00
|
|
|
'MediaEncoder.cpp',
|
2014-11-28 09:20:00 +00:00
|
|
|
'OpusTrackEncoder.cpp',
|
2013-05-17 11:16:36 +00:00
|
|
|
'TrackEncoder.cpp',
|
|
|
|
]
|
|
|
|
|
2014-01-15 06:21:14 +00:00
|
|
|
if CONFIG['MOZ_OMX_ENCODER']:
|
|
|
|
EXPORTS += ['OmxTrackEncoder.h']
|
|
|
|
UNIFIED_SOURCES += ['OmxTrackEncoder.cpp']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBM_ENCODER']:
|
|
|
|
EXPORTS += ['VorbisTrackEncoder.h',
|
|
|
|
'VP8TrackEncoder.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += ['VorbisTrackEncoder.cpp',
|
|
|
|
'VP8TrackEncoder.cpp',
|
|
|
|
]
|
2014-02-21 08:35:13 +00:00
|
|
|
LOCAL_INCLUDES += ['/media/libyuv/include']
|
2014-01-17 19:29:41 +00:00
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-01-17 19:30:02 +00:00
|
|
|
|
2014-03-13 23:31:18 +00:00
|
|
|
# These includes are from Android JB, for use of MediaCodec.
|
|
|
|
LOCAL_INCLUDES += ['/ipc/chromium/src']
|
2015-11-04 05:28:42 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['ANDROID_VERSION'] > '15':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'%' + '%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
|
|
|
'frameworks/av/include/media',
|
|
|
|
'frameworks/native/include',
|
|
|
|
'frameworks/native/opengl/include',
|
|
|
|
]
|
|
|
|
|
2014-03-13 23:31:18 +00:00
|
|
|
]
|
|
|
|
|
2014-01-17 19:30:02 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2014-11-25 00:43:19 +00:00
|
|
|
|
|
|
|
# Suppress some GCC warnings being treated as errors:
|
|
|
|
# - about attributes on forward declarations for types that are already
|
|
|
|
# defined, which complains about an important MOZ_EXPORT for android::AString
|
|
|
|
if CONFIG['GNU_CC']:
|
|
|
|
CXXFLAGS += ['-Wno-error=attributes']
|