third_party_alsa-lib/ohos_build_config.sh
zenglifeng 39280c6f22 Porting the third-party library alsa-lib
Signed-off-by: zenglifeng <zenglifeng2@huawei.com>
2022-05-18 11:17:05 +08:00

27 lines
525 B
Bash
Executable File

#!/bin/bash
# Allen Riemann
set -e
ALSA_LIB_PATH=$1
modules=
alisp=
prefix=
libdir="/lib"
configdir="/etc/audio/alsa/share"
args="--disable-aload --prefix=$prefix --libdir=$libdir --with-configdir=$configdir"
export LC_ALL=C
cd ${ALSA_LIB_PATH}
touch ltconfig
libtoolize --force --copy --automake
aclocal $ACLOCAL_FLAGS
autoheader
automake --foreign --copy --add-missing
touch depcomp # seems to be missing for old automake
autoconf
echo "./configure $args"
${ALSA_LIB_PATH}/configure $args || exit 1
cd -
cat <<!EOF
!EOF