Bug 815748 - Build system changes for Windows Media Foundation HTML5 media backend. r=khuey

This commit is contained in:
Chris Pearce 2012-12-18 21:38:19 +13:00
parent 947aea3167
commit 28ac969099
2 changed files with 28 additions and 0 deletions

View File

@ -4244,6 +4244,7 @@ MOZ_MEDIA=
MOZ_OPUS=1
MOZ_WEBM=1
MOZ_DASH=1
MOZ_WMF=
MOZ_WEBRTC=1
MOZ_PEERCONNECTION=
MOZ_SRTP=
@ -5419,6 +5420,29 @@ if test -n "$MOZ_DASH"; then
fi
fi;
dnl ========================================================
dnl = Windows Media Foundation support
dnl ========================================================
if test "$OS_ARCH" = "WINNT"; then
dnl Enable Windows Media Foundation support by default.
dnl Note our minimum SDK version is Windows 7 SDK, so we are (currently)
dnl guaranteed to have a recent-enough SDK to build WMF.
MOZ_WMF=1
fi
MOZ_ARG_DISABLE_BOOL(wmf,
[ --disable-wmf Disable support for Windows Media Foundation],
MOZ_WMF=,
MOZ_WMF=1)
if test -n "$MOZ_WMF"; then
AC_DEFINE(MOZ_WMF)
MOZ_SYDNEYAUDIO=1
MOZ_CUBEB=1
MOZ_MEDIA=1
fi;
dnl ========================================================
dnl = Enable media plugin support
dnl ========================================================
@ -8831,6 +8855,7 @@ AC_SUBST(MOZ_TREMOR)
AC_SUBST(MOZ_OPUS)
AC_SUBST(MOZ_WEBM)
AC_SUBST(MOZ_DASH)
AC_SUBST(MOZ_WMF)
AC_SUBST(MOZ_MEDIA_PLUGINS)
AC_SUBST(MOZ_OMX_PLUGIN)
AC_SUBST(MOZ_VP8_ERROR_CONCEALMENT)

View File

@ -150,6 +150,9 @@ pref("media.cache_size", 512000);
// Master HTML5 media volume scale.
pref("media.volume_scale", "1.0");
#ifdef MOZ_WMF
pref("media.windows-media-foundation.enabled", false);
#endif
#ifdef MOZ_RAW
pref("media.raw.enabled", true);
#endif