2025-02-04 18:30:49 +01:00

35 lines
665 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/drobilla/sord.git"
SCRIPT_COMMIT="e6d863bba95e3a41db1c331e85684ba0c68c1ab7"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
mkdir build && cd build
local myconf=(
--prefix="$FFBUILD_PREFIX"
--buildtype=release
--default-library=static
-Ddocs=disabled
-Dtools=disabled
-Dtests=disabled
)
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--cross-file=/cross.meson
)
else
echo "Unknown target"
return -1
fi
meson "${myconf[@]}" ..
ninja -j"$(nproc)"
ninja install
}