mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 914479 - Build changes for AudioToolbox MP3 backend on OSX r=khuey
This commit is contained in:
parent
3a4f5a6745
commit
1f922149e3
17
configure.in
17
configure.in
@ -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)
|
||||
|
7
content/media/apple/Makefile.in
Normal file
7
content/media/apple/Makefile.in
Normal file
@ -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)
|
24
content/media/apple/moz.build
Normal file
24
content/media/apple/moz.build
Normal file
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user