libpulseaudio: add api level build hack for aaudio

This commit is contained in:
Tom Yan 2018-08-15 09:55:39 +08:00 committed by Fredrik Fornwall
parent 6b1d24adf0
commit 6f5cbc2154

View File

@ -17,8 +17,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-neon-opt
--disable-memfd --disable-memfd
--disable-gsettings --disable-gsettings
--bindir=$TERMUX_PREFIX/libexec --bindir=$TERMUX_PREFIX/libexec
ax_cv_PTHREAD_PRIO_INHERIT=no" ax_cv_PTHREAD_PRIO_INHERIT=no
ac_cv_func_posix_madvise=no"
TERMUX_PKG_CONFFILES="etc/pulse/client.conf etc/pulse/daemon.conf etc/pulse/default.pa etc/pulse/system.pa" TERMUX_PKG_CONFFILES="etc/pulse/client.conf etc/pulse/daemon.conf etc/pulse/default.pa etc/pulse/system.pa"
TERMUX_PKG_API_LEVEL=26
termux_step_pre_configure () { termux_step_pre_configure () {
mkdir $TERMUX_PKG_SRCDIR/src/modules/sles mkdir $TERMUX_PKG_SRCDIR/src/modules/sles
@ -26,6 +28,7 @@ termux_step_pre_configure () {
mkdir $TERMUX_PKG_SRCDIR/src/modules/aaudio mkdir $TERMUX_PKG_SRCDIR/src/modules/aaudio
cp $TERMUX_PKG_BUILDER_DIR/module-aaudio-sink.c $TERMUX_PKG_SRCDIR/src/modules/aaudio cp $TERMUX_PKG_BUILDER_DIR/module-aaudio-sink.c $TERMUX_PKG_SRCDIR/src/modules/aaudio
intltoolize --automake --copy --force intltoolize --automake --copy --force
CFLAGS+=" -D__ANDROID_API__=21"
LDFLAGS+=" -llog -landroid-glob" LDFLAGS+=" -llog -landroid-glob"
} }