Bug 914479 - Build changes for AudioToolbox MP3 backend on OSX r=khuey

This commit is contained in:
Edwin Flores 2013-09-14 13:14:41 +12:00
Родитель 9d5a05fc6c
Коммит fa767c75ca
5 изменённых файлов: 57 добавлений и 0 удалений

Просмотреть файл

@ -5454,6 +5454,22 @@ if test -n "$MOZ_MEDIA_PLUGINS"; then
AC_DEFINE(MOZ_MEDIA_PLUGINS)
fi
dnl ========================================================
dnl = Disable platform MP3 decoder on OSX
dnl ========================================================
if test "$MOZ_WIDGET_TOOLKIT" = "cocoa"; then
MOZ_APPLEMEDIA=1
fi
MOZ_ARG_DISABLE_BOOL(apple-media,
[ --disable-apple-media Disable support for Apple AudioToolbox/VideoToolbox],
MOZ_APPLEMEDIA=,
MOZ_APPLEMEDIA=1)
if test -n "$MOZ_APPLEMEDIA"; then
AC_DEFINE(MOZ_APPLEMEDIA)
fi
dnl ========================================================
dnl = Enable getUserMedia support
dnl ========================================================
@ -8751,6 +8767,7 @@ AC_SUBST(MOZ_DASH)
AC_SUBST(MOZ_WMF)
AC_SUBST(MOZ_DIRECTSHOW)
AC_SUBST(MOZ_MEDIA_PLUGINS)
AC_SUBST(MOZ_APPLEMEDIA)
AC_SUBST(MOZ_OMX_PLUGIN)
AC_SUBST(MOZ_VP8_ERROR_CONCEALMENT)
AC_SUBST(MOZ_VP8_ENCODER)

Просмотреть файл

@ -0,0 +1,7 @@
# 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/.
LDFLAGS += \
-framework AudioToolbox \
$(NULL)

Просмотреть файл

@ -0,0 +1,24 @@
# -*- 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/.
MODULE = 'content'
EXPORTS += [
'AppleDecoder.h',
'AppleMP3Reader.h',
]
CPP_SOURCES += [
'AppleDecoder.cpp',
'AppleMP3Reader.cpp',
]
LIBRARY_NAME = 'gkconapplemedia_s'
FAIL_ON_WARNINGS = True
LIBXUL_LIBRARY = True

Просмотреть файл

@ -37,6 +37,9 @@ if CONFIG['MOZ_MEDIA_PLUGINS']:
if CONFIG['MOZ_WMF']:
PARALLEL_DIRS += ['wmf']
if CONFIG['MOZ_APPLEMEDIA']:
PARALLEL_DIRS += ['apple']
PARALLEL_DIRS += ['webrtc']
if CONFIG['MOZ_OMX_DECODER']:

Просмотреть файл

@ -167,6 +167,12 @@ SHARED_LIBRARY_LIBS += \
$(NULL)
endif
ifdef MOZ_APPLEMEDIA
SHARED_LIBRARY_LIBS += \
$(DEPTH)/content/media/apple/$(LIB_PREFIX)gkconapplemedia_s.$(LIB_SUFFIX) \
$(NULL)
endif
ifdef MOZ_WAVE
SHARED_LIBRARY_LIBS += \
$(DEPTH)/content/media/wave/$(LIB_PREFIX)gkconwave_s.$(LIB_SUFFIX) \