2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:19 -08:00
|
|
|
# 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/.
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
2014-04-08 08:29:07 -07:00
|
|
|
'AudioOffloadPlayerBase.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'MediaOmxDecoder.h',
|
|
|
|
'MediaOmxReader.h',
|
|
|
|
]
|
|
|
|
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'MediaOmxDecoder.cpp',
|
|
|
|
'MediaOmxReader.cpp',
|
2014-07-16 00:34:30 -07:00
|
|
|
'MediaStreamSource.cpp',
|
2013-06-10 05:22:05 -07:00
|
|
|
'OMXCodecProxy.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'OmxDecoder.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2014-04-08 08:29:07 -07:00
|
|
|
if CONFIG['MOZ_AUDIO_OFFLOAD']:
|
|
|
|
EXPORTS += [
|
|
|
|
'AudioOffloadPlayer.h',
|
|
|
|
'AudioOutput.h',
|
|
|
|
'AudioSink.h',
|
|
|
|
]
|
|
|
|
SOURCES += [
|
|
|
|
'AudioOffloadPlayer.cpp',
|
|
|
|
'AudioOutput.cpp',
|
|
|
|
]
|
|
|
|
|
2014-01-17 11:29:20 -08:00
|
|
|
if CONFIG['MOZ_OMX_ENCODER']:
|
2014-01-17 11:29:41 -08:00
|
|
|
EXPORTS += [
|
|
|
|
'OMXCodecWrapper.h',
|
|
|
|
]
|
2014-01-17 11:29:20 -08:00
|
|
|
SOURCES += [
|
|
|
|
'OMXCodecDescriptorUtil.cpp',
|
2014-01-17 11:29:41 -08:00
|
|
|
'OMXCodecWrapper.cpp',
|
2014-01-17 11:29:20 -08:00
|
|
|
]
|
|
|
|
|
2013-11-11 14:52:33 -08:00
|
|
|
if 'rtsp' in CONFIG['NECKO_PROTOCOLS']:
|
2013-09-23 03:12:11 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'RtspOmxDecoder.h',
|
|
|
|
'RtspOmxReader.h',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-09-23 03:12:11 -07:00
|
|
|
'RtspOmxDecoder.cpp',
|
|
|
|
'RtspOmxReader.cpp',
|
|
|
|
]
|
|
|
|
|
2014-07-10 20:01:30 -07:00
|
|
|
if int(CONFIG['ANDROID_VERSION']) >= 16:
|
|
|
|
EXPORTS += [
|
|
|
|
'MediaCodecProxy.h',
|
|
|
|
]
|
|
|
|
SOURCES += [
|
2014-07-16 00:32:21 -07:00
|
|
|
'I420ColorConverterHelper.cpp',
|
2014-07-10 20:01:30 -07:00
|
|
|
'MediaCodecProxy.cpp',
|
|
|
|
]
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'gklayout'
|
2013-11-11 00:04:06 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/content/base/src',
|
|
|
|
'/content/html/content/src',
|
|
|
|
'/ipc/chromium/src',
|
|
|
|
'mediaresourcemanager',
|
|
|
|
]
|
|
|
|
|
2014-03-10 17:12:37 -07:00
|
|
|
CXXFLAGS += [
|
|
|
|
'-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
|
|
|
'dalvik/libnativehelper/include/nativehelper',
|
|
|
|
'frameworks/av/include/media',
|
|
|
|
'frameworks/base/include',
|
|
|
|
'frameworks/base/include/binder',
|
|
|
|
'frameworks/base/include/utils',
|
|
|
|
'frameworks/base/include/media',
|
|
|
|
'frameworks/base/include/media/stagefright/openmax',
|
|
|
|
'frameworks/base/media/libstagefright/include',
|
|
|
|
'frameworks/native/opengl/include',
|
|
|
|
'frameworks/native/include',
|
2014-04-08 08:29:07 -07:00
|
|
|
'hardware/libhardware/include/',
|
2014-03-10 17:12:37 -07:00
|
|
|
]
|
|
|
|
]
|
|
|
|
|
2014-05-07 03:05:49 -07:00
|
|
|
if CONFIG['ANDROID_VERSION'] > '15':
|
|
|
|
DEFINES['MOZ_OMX_WEBM_DECODER'] = True
|