2024-09-04 01:12:57 +02:00

35 lines
665 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/drobilla/serd.git"
SCRIPT_COMMIT="ebe0b8697bca69abb7e7be1c731da4d54b10e462"
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
}