2013-05-17 03:50:58 -07: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/.
|
|
|
|
|
2014-01-02 07:39:24 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['fmp4_muxer']
|
2014-01-02 07:39:24 -08:00
|
|
|
|
2013-05-17 03:50:58 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'ContainerWriter.h',
|
2013-10-24 19:59:52 -07:00
|
|
|
'EncodedFrameContainer.h',
|
2013-06-04 23:29:12 -07:00
|
|
|
'MediaEncoder.h',
|
2013-05-17 04:16:36 -07:00
|
|
|
'TrackEncoder.h',
|
2013-10-24 19:59:52 -07:00
|
|
|
'TrackMetadataBase.h',
|
2013-05-17 03:50:58 -07:00
|
|
|
]
|
2013-05-17 04:16:36 -07:00
|
|
|
|
2013-11-17 18:31:46 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-06-04 23:29:12 -07:00
|
|
|
'MediaEncoder.cpp',
|
2013-05-17 04:16:36 -07:00
|
|
|
'TrackEncoder.cpp',
|
|
|
|
]
|
|
|
|
|
2014-01-14 22:21:14 -08:00
|
|
|
if CONFIG['MOZ_OMX_ENCODER']:
|
|
|
|
EXPORTS += ['OmxTrackEncoder.h']
|
|
|
|
UNIFIED_SOURCES += ['OmxTrackEncoder.cpp']
|
|
|
|
|
2013-05-17 04:18:08 -07:00
|
|
|
if CONFIG['MOZ_OPUS']:
|
|
|
|
EXPORTS += ['OpusTrackEncoder.h']
|
2013-11-17 18:31:46 -08:00
|
|
|
UNIFIED_SOURCES += ['OpusTrackEncoder.cpp']
|
2013-06-17 12:21:01 -07:00
|
|
|
|
2014-01-14 22:21:14 -08:00
|
|
|
if CONFIG['MOZ_WEBM_ENCODER']:
|
|
|
|
EXPORTS += ['VorbisTrackEncoder.h',
|
|
|
|
'VP8TrackEncoder.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += ['VorbisTrackEncoder.cpp',
|
|
|
|
'VP8TrackEncoder.cpp',
|
|
|
|
]
|
2014-02-21 00:35:13 -08:00
|
|
|
LOCAL_INCLUDES += ['/media/libyuv/include']
|
2014-01-17 11:29:41 -08:00
|
|
|
|
2013-08-21 23:55:59 -07:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2014-07-22 16:37:51 -07:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-01-17 11:30:02 -08:00
|
|
|
|
2014-03-13 16:31:18 -07: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 11:30:02 -08:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|