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