2013-05-17 14:50:58 +04: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-09 01:21:00 +03:00
|
|
|
with Files('*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Video/Audio: Recording')
|
|
|
|
|
2014-01-02 19:39:24 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2014-07-29 03:57:59 +04:00
|
|
|
DIRS += ['fmp4_muxer']
|
2014-01-02 19:39:24 +04:00
|
|
|
|
2013-05-17 14:50:58 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'ContainerWriter.h',
|
2013-10-25 06:59:52 +04:00
|
|
|
'EncodedFrameContainer.h',
|
2013-06-05 10:29:12 +04:00
|
|
|
'MediaEncoder.h',
|
2014-11-28 12:20:00 +03:00
|
|
|
'OpusTrackEncoder.h',
|
2013-05-17 15:16:36 +04:00
|
|
|
'TrackEncoder.h',
|
2013-10-25 06:59:52 +04:00
|
|
|
'TrackMetadataBase.h',
|
2013-05-17 14:50:58 +04:00
|
|
|
]
|
2013-05-17 15:16:36 +04:00
|
|
|
|
2013-11-18 06:31:46 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-06-05 10:29:12 +04:00
|
|
|
'MediaEncoder.cpp',
|
2014-11-28 12:20:00 +03:00
|
|
|
'OpusTrackEncoder.cpp',
|
2013-05-17 15:16:36 +04:00
|
|
|
'TrackEncoder.cpp',
|
|
|
|
]
|
|
|
|
|
2014-01-15 10:21:14 +04: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 12:35:13 +04:00
|
|
|
LOCAL_INCLUDES += ['/media/libyuv/include']
|
2014-01-17 23:29:41 +04:00
|
|
|
|
2013-08-22 10:55:59 +04:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-01-17 23:30:02 +04:00
|
|
|
|
2014-03-14 03:31:18 +04:00
|
|
|
# These includes are from Android JB, for use of MediaCodec.
|
|
|
|
LOCAL_INCLUDES += ['/ipc/chromium/src']
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
|
|
|
'frameworks/native/opengl/include',
|
|
|
|
'frameworks/native/include',
|
|
|
|
'frameworks/av/include/media',
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
2014-01-17 23:30:02 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2014-11-25 03:43:19 +03: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']
|