1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/media/omx/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,75 @@ 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 +EXPORTS += [ 1.11 + 'AudioOffloadPlayerBase.h', 1.12 + 'MediaOmxDecoder.h', 1.13 + 'MediaOmxReader.h', 1.14 +] 1.15 + 1.16 +SOURCES += [ 1.17 + 'MediaOmxDecoder.cpp', 1.18 + 'MediaOmxReader.cpp', 1.19 + 'OMXCodecProxy.cpp', 1.20 + 'OmxDecoder.cpp', 1.21 +] 1.22 + 1.23 +if CONFIG['MOZ_AUDIO_OFFLOAD']: 1.24 + EXPORTS += [ 1.25 + 'AudioOffloadPlayer.h', 1.26 + 'AudioOutput.h', 1.27 + 'AudioSink.h', 1.28 + ] 1.29 + SOURCES += [ 1.30 + 'AudioOffloadPlayer.cpp', 1.31 + 'AudioOutput.cpp', 1.32 + ] 1.33 + 1.34 +if CONFIG['MOZ_OMX_ENCODER']: 1.35 + EXPORTS += [ 1.36 + 'OMXCodecWrapper.h', 1.37 + ] 1.38 + SOURCES += [ 1.39 + 'OMXCodecDescriptorUtil.cpp', 1.40 + 'OMXCodecWrapper.cpp', 1.41 + ] 1.42 + 1.43 +if 'rtsp' in CONFIG['NECKO_PROTOCOLS']: 1.44 + EXPORTS += [ 1.45 + 'RtspOmxDecoder.h', 1.46 + 'RtspOmxReader.h', 1.47 + ] 1.48 + SOURCES += [ 1.49 + 'RtspOmxDecoder.cpp', 1.50 + 'RtspOmxReader.cpp', 1.51 + ] 1.52 + 1.53 +include('/ipc/chromium/chromium-config.mozbuild') 1.54 + 1.55 +FINAL_LIBRARY = 'gklayout' 1.56 +LOCAL_INCLUDES += [ 1.57 + '/content/base/src', 1.58 + '/content/html/content/src', 1.59 + '/ipc/chromium/src', 1.60 + 'mediaresourcemanager', 1.61 +] 1.62 + 1.63 +CXXFLAGS += [ 1.64 + '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [ 1.65 + 'dalvik/libnativehelper/include/nativehelper', 1.66 + 'frameworks/av/include/media', 1.67 + 'frameworks/base/include', 1.68 + 'frameworks/base/include/binder', 1.69 + 'frameworks/base/include/utils', 1.70 + 'frameworks/base/include/media', 1.71 + 'frameworks/base/include/media/stagefright/openmax', 1.72 + 'frameworks/base/media/libstagefright/include', 1.73 + 'frameworks/native/opengl/include', 1.74 + 'frameworks/native/include', 1.75 + 'hardware/libhardware/include/', 1.76 + ] 1.77 +] 1.78 +