build_libs.sh
543 字节
#!/bin/bash
mkdir -p objs
root=$PWD
if [ ! -d "$root/3rdparty/speex/.git" ]; then
cd ..
git submodule update --init
cd trunk
fi
if [ "$1" == "-f" ]; then
rm -rf objs/libs
fi
if [ ! -d "$root/objs/libs/include/speex" ]; then
cd 3rdparty/speex && ./autogen.sh && ./configure --prefix=$root/objs/libs --enable-shared=no && make && make install
cd $root
fi
if [ ! -d "$root/objs/libs/include/fdk-aac" ]; then
cd 3rdparty/fdk-aac && ./autogen.sh && ./configure --prefix=$root/objs/libs --enable-shared=no && make && make install
fi