content/media/omx/moz.build

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rwxr-xr-x

Integrate suggestion from review to improve consistency with existing code.

     1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     2 # vim: set filetype=python:
     3 # This Source Code Form is subject to the terms of the Mozilla Public
     4 # License, v. 2.0. If a copy of the MPL was not distributed with this
     5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     7 EXPORTS += [
     8     'AudioOffloadPlayerBase.h',
     9     'MediaOmxDecoder.h',
    10     'MediaOmxReader.h',
    11 ]
    13 SOURCES += [
    14     'MediaOmxDecoder.cpp',
    15     'MediaOmxReader.cpp',
    16     'OMXCodecProxy.cpp',
    17     'OmxDecoder.cpp',
    18 ]
    20 if CONFIG['MOZ_AUDIO_OFFLOAD']:
    21     EXPORTS += [
    22         'AudioOffloadPlayer.h',
    23         'AudioOutput.h',
    24         'AudioSink.h',
    25     ]
    26     SOURCES += [
    27         'AudioOffloadPlayer.cpp',
    28         'AudioOutput.cpp',
    29     ]
    31 if CONFIG['MOZ_OMX_ENCODER']:
    32     EXPORTS += [
    33         'OMXCodecWrapper.h',
    34     ]
    35     SOURCES += [
    36         'OMXCodecDescriptorUtil.cpp',
    37         'OMXCodecWrapper.cpp',
    38     ]
    40 if 'rtsp' in CONFIG['NECKO_PROTOCOLS']:
    41     EXPORTS += [
    42         'RtspOmxDecoder.h',
    43         'RtspOmxReader.h',
    44     ]
    45     SOURCES += [
    46         'RtspOmxDecoder.cpp',
    47         'RtspOmxReader.cpp',
    48     ]
    50 include('/ipc/chromium/chromium-config.mozbuild')
    52 FINAL_LIBRARY = 'gklayout'
    53 LOCAL_INCLUDES += [
    54     '/content/base/src',
    55     '/content/html/content/src',
    56     '/ipc/chromium/src',
    57     'mediaresourcemanager',
    58 ]
    60 CXXFLAGS += [
    61     '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
    62         'dalvik/libnativehelper/include/nativehelper',
    63         'frameworks/av/include/media',
    64         'frameworks/base/include',
    65         'frameworks/base/include/binder',
    66         'frameworks/base/include/utils',
    67         'frameworks/base/include/media',
    68         'frameworks/base/include/media/stagefright/openmax',
    69         'frameworks/base/media/libstagefright/include',
    70         'frameworks/native/opengl/include',
    71         'frameworks/native/include',
    72         'hardware/libhardware/include/',
    73     ]
    74 ]

mercurial