Bug 780432 - Add experimental --enable-pulseaudio configure option. r=kinetik,khuey

--HG--
extra : rebase_source : 9bf00787997d4ed465427e6570c5d937c1cb9ff4
This commit is contained in:
Jan Beich 2012-08-08 10:26:04 +12:00
parent 025a3fd016
commit 9d6fc2f877
5 changed files with 34 additions and 0 deletions

View File

@ -595,6 +595,7 @@ psap.h
Pt.h
pthread.h
pthread_np.h
pulse/pulseaudio.h
pwd.h
Python.h
QDOffscreen.h

View File

@ -5550,6 +5550,26 @@ if test -n "$MOZ_SYDNEYAUDIO" -a "$OS_TARGET" = "Linux"; then
AC_MSG_ERROR([Need alsa for Ogg, Wave or WebM decoding on Linux. Disable with --disable-ogg --disable-wave --disable-webm. (On Ubuntu, you might try installing the package libasound2-dev.)])])
fi
dnl ========================================================
dnl = Enable PulseAudio
dnl ========================================================
MOZ_ARG_ENABLE_BOOL(pulseaudio,
[ --enable-pulseaudio Enable PulseAudio support (experimental)],
MOZ_PULSEAUDIO=1,
MOZ_PULSEAUDIO=)
if test -n "$MOZ_PULSEAUDIO"; then
AC_DEFINE(MOZ_CUBEB)
PKG_CHECK_MODULES(MOZ_PULSEAUDIO, libpulse, ,
[echo "$MOZ_PULSEAUDIO_PKG_ERRORS"
AC_MSG_ERROR([pulseaudio audio backend requires libpulse package])])
fi
AC_SUBST(MOZ_PULSEAUDIO)
AC_SUBST(MOZ_PULSEAUDIO_CFLAGS)
AC_SUBST(MOZ_PULSEAUDIO_LIBS)
dnl ========================================================
dnl = Enable GStreamer
dnl ========================================================

View File

@ -595,6 +595,7 @@ psap.h
Pt.h
pthread.h
pthread_np.h
pulse/pulseaudio.h
pwd.h
Python.h
QDOffscreen.h

View File

@ -42,4 +42,10 @@ CSRCS = \
$(NULL)
endif
ifdef MOZ_PULSEAUDIO
CSRCS = \
cubeb_pulse.c \
$(NULL)
endif
include $(topsrcdir)/config/rules.mk

View File

@ -376,6 +376,12 @@ EXTRA_DSO_LDOPTS += $(MOZ_ALSA_LIBS)
endif
endif
ifdef MOZ_PULSEAUDIO
ifdef MOZ_CUBEB
EXTRA_DSO_LDOPTS += $(MOZ_PULSEAUDIO_LIBS)
endif
endif
ifdef HAVE_CLOCK_MONOTONIC
EXTRA_DSO_LDOPTS += $(REALTIME_LIBS)
endif