content/media/encoder/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/media/encoder/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,54 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
    1.11 +    PARALLEL_DIRS += ['fmp4_muxer']
    1.12 +
    1.13 +EXPORTS += [
    1.14 +    'ContainerWriter.h',
    1.15 +    'EncodedFrameContainer.h',
    1.16 +    'MediaEncoder.h',
    1.17 +    'TrackEncoder.h',
    1.18 +    'TrackMetadataBase.h',
    1.19 +]
    1.20 +
    1.21 +UNIFIED_SOURCES += [
    1.22 +    'MediaEncoder.cpp',
    1.23 +    'TrackEncoder.cpp',
    1.24 +]
    1.25 +
    1.26 +if CONFIG['MOZ_OMX_ENCODER']:
    1.27 +    EXPORTS += ['OmxTrackEncoder.h']
    1.28 +    UNIFIED_SOURCES += ['OmxTrackEncoder.cpp']
    1.29 +
    1.30 +if CONFIG['MOZ_OPUS']:
    1.31 +    EXPORTS += ['OpusTrackEncoder.h']
    1.32 +    UNIFIED_SOURCES += ['OpusTrackEncoder.cpp']
    1.33 +
    1.34 +if CONFIG['MOZ_WEBM_ENCODER']:
    1.35 +    EXPORTS += ['VorbisTrackEncoder.h',
    1.36 +                'VP8TrackEncoder.h',
    1.37 +    ]
    1.38 +    UNIFIED_SOURCES += ['VorbisTrackEncoder.cpp',
    1.39 +                        'VP8TrackEncoder.cpp',
    1.40 +    ]
    1.41 +    LOCAL_INCLUDES += ['/media/libyuv/include']
    1.42 +
    1.43 +FAIL_ON_WARNINGS = True
    1.44 +
    1.45 +FINAL_LIBRARY = 'gklayout'
    1.46 +
    1.47 +# These includes are from Android JB, for use of MediaCodec.
    1.48 +LOCAL_INCLUDES += ['/ipc/chromium/src']
    1.49 +CXXFLAGS += [
    1.50 +    '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
    1.51 +        'frameworks/native/opengl/include',
    1.52 +        'frameworks/native/include',
    1.53 +        'frameworks/av/include/media',
    1.54 +    ]
    1.55 +]
    1.56 +
    1.57 +include('/ipc/chromium/chromium-config.mozbuild')

mercurial