25 lines
414 B
Bash
25 lines
414 B
Bash
#!/bin/bash -e
|
|
|
|
. ../../include/path.sh
|
|
|
|
if [ "$1" == "build" ]; then
|
|
true
|
|
elif [ "$1" == "clean" ]; then
|
|
rm -rf _build$ndk_suffix
|
|
exit 0
|
|
else
|
|
exit 255
|
|
fi
|
|
|
|
[ -f waf ] || ./bootstrap.py
|
|
|
|
PKG_CONFIG="pkg-config --static" \
|
|
./waf configure \
|
|
--disable-iconv --lua=52 \
|
|
--enable-libmpv-shared \
|
|
--disable-manpage-build \
|
|
-o "`pwd`/_build$ndk_suffix"
|
|
|
|
./waf build -j$cores
|
|
./waf install --destdir="$prefix_dir"
|