2013-11-20 21:04:32 +00: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/.
|
|
|
|
|
|
|
|
EXPORTS += [
|
2013-11-20 21:04:33 +00:00
|
|
|
'MP4Decoder.h',
|
|
|
|
'MP4Reader.h',
|
|
|
|
'PlatformDecoderModule.h',
|
2014-11-04 13:14:00 +00:00
|
|
|
'SharedDecoderManager.h',
|
2013-11-20 21:04:32 +00:00
|
|
|
]
|
|
|
|
|
2014-05-13 04:18:31 +00:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'BlankDecoderModule.cpp',
|
2014-09-24 22:41:48 +00:00
|
|
|
'MP4Decoder.cpp',
|
2014-05-22 02:42:39 +00:00
|
|
|
'PlatformDecoderModule.cpp',
|
2014-11-04 13:14:00 +00:00
|
|
|
'SharedDecoderManager.cpp',
|
2014-05-22 02:42:39 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
SOURCES += [
|
2013-11-20 21:04:33 +00:00
|
|
|
'MP4Reader.cpp',
|
2013-11-20 21:04:32 +00:00
|
|
|
]
|
|
|
|
|
2013-11-22 15:36:02 +00:00
|
|
|
if CONFIG['MOZ_WMF']:
|
2014-07-30 06:53:34 +00:00
|
|
|
DIRS += [ 'wmf' ];
|
2013-11-22 15:36:02 +00:00
|
|
|
|
2014-08-08 02:44:04 +00:00
|
|
|
if CONFIG['MOZ_EME']:
|
|
|
|
DIRS += ['eme']
|
2014-10-21 13:53:01 +00:00
|
|
|
|
2014-03-21 06:35:14 +00:00
|
|
|
if CONFIG['MOZ_FFMPEG']:
|
2014-07-30 06:53:34 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'ffmpeg/FFmpegRuntimeLinker.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'ffmpeg/FFmpegLog.cpp',
|
|
|
|
'ffmpeg/FFmpegRuntimeLinker.cpp',
|
|
|
|
]
|
|
|
|
DIRS += [
|
|
|
|
'ffmpeg/libav53',
|
|
|
|
'ffmpeg/libav54',
|
|
|
|
'ffmpeg/libav55',
|
|
|
|
]
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'ffmpeg',
|
|
|
|
]
|
2014-03-21 06:35:14 +00:00
|
|
|
|
2014-07-24 20:47:00 +00:00
|
|
|
if CONFIG['MOZ_APPLEMEDIA']:
|
|
|
|
EXPORTS += [
|
|
|
|
'apple/AppleDecoderModule.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
2014-07-24 23:30:00 +00:00
|
|
|
'apple/AppleATDecoder.cpp',
|
2014-07-24 20:47:00 +00:00
|
|
|
'apple/AppleCMLinker.cpp',
|
|
|
|
'apple/AppleDecoderModule.cpp',
|
2014-09-18 01:26:16 +00:00
|
|
|
'apple/AppleVDADecoder.cpp',
|
|
|
|
'apple/AppleVDALinker.cpp',
|
2014-07-24 20:47:00 +00:00
|
|
|
'apple/AppleVTDecoder.cpp',
|
|
|
|
'apple/AppleVTLinker.cpp',
|
|
|
|
]
|
2014-08-05 22:25:33 +00:00
|
|
|
OS_LIBS += [
|
2014-07-24 23:30:00 +00:00
|
|
|
'-framework AudioToolbox',
|
|
|
|
]
|
2014-07-24 20:47:00 +00:00
|
|
|
|
2014-08-07 10:23:45 +00:00
|
|
|
if CONFIG['ANDROID_VERSION'] >= '18'and CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
DEFINES['MOZ_GONK_MEDIACODEC'] = True
|
|
|
|
DIRS += ['gonk']
|
|
|
|
|
2014-08-05 07:56:04 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-10-21 13:53:01 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
EXPORTS += [
|
|
|
|
'android/AndroidDecoderModule.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'android/AndroidDecoderModule.cpp',
|
|
|
|
]
|
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-20 21:04:32 +00:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
2014-07-31 14:41:48 +00:00
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
DEFINES['NOMINMAX'] = True
|