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

36 lines
689 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/lv2/lv2.git"
SCRIPT_COMMIT="3e1e609d89fb1954bd497ae8021a3b6c0aad31f6"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
mkdir build && cd build
local myconf=(
--prefix="$FFBUILD_PREFIX"
--buildtype=release
--default-library=static
-Ddocs=disabled
-Dplugins=disabled
-Dtests=disabled
-Donline_docs=false
)
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
}