summaryrefslogtreecommitdiffstats
path: root/scripts/test-libmpv
blob: 276e74abe7352f6e5949490dd4e9237b4e9bd531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# This script returns whether libmpv is to be built.

set -e

BUILD="$(pwd)"

USER_OPTS="$@"
if test -f "$BUILD"/mpv_options ; then
    grep -Eqe '--enable-libmpv|-Dlibmpv=true' "$BUILD"/mpv_options && exit 0
fi
exit 1