Bug 889652 - Add support for building with pulseaudio support on gonk, r=glandium,kinetik

This commit is contained in:
Michael Wu 2013-07-17 15:01:42 -04:00
parent 7ce9380afb
commit d81ca7a3d9
2 changed files with 11 additions and 3 deletions

View File

@ -5826,9 +5826,14 @@ 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])])
if test -z "$gonkdir"; then
PKG_CHECK_MODULES(MOZ_PULSEAUDIO, libpulse, ,
[echo "$MOZ_PULSEAUDIO_PKG_ERRORS"
AC_MSG_ERROR([pulseaudio audio backend requires libpulse development package])])
else
MOZ_PULSEAUDIO_CFLAGS="-I$gonkdir/external/pulseaudio/pulseaudio/src"
MOZ_PULSEAUDIO_LIBS="-lpulse"
fi
fi
AC_SUBST(MOZ_PULSEAUDIO)

View File

@ -65,6 +65,9 @@ DISABLED_CSRCS += \
cubeb_pulse.c \
$(NULL)
DEFINES += -DUSE_PULSE
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
DEFINES += -DDISABLE_LIBPULSE_DLOPEN
endif
endif
include $(topsrcdir)/config/rules.mk