Browse Source

libpulseaudio: add api level build hack for aaudio

android-5
Tom Yan 6 years ago
committed by Fredrik Fornwall
parent
commit
2e841e93ba
  1. 5
      packages/libpulseaudio/build.sh

5
packages/libpulseaudio/build.sh

@ -17,8 +17,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-neon-opt
--disable-memfd
--disable-gsettings
--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_API_LEVEL=26
termux_step_pre_configure () {
mkdir $TERMUX_PKG_SRCDIR/src/modules/sles
@ -26,6 +28,7 @@ termux_step_pre_configure () {
mkdir $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
CFLAGS+=" -D__ANDROID_API__=21"
LDFLAGS+=" -llog -landroid-glob"
}

Loading…
Cancel
Save