Adjust build scripts after updates

This commit is contained in:
BtbN 2022-08-04 20:25:22 +02:00
parent c7a73215c6
commit 21f5e861bb
6 changed files with 79 additions and 37 deletions

View file

@ -10,15 +10,29 @@ ffbuild_enabled() {
ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" lv2
cd lv2
git submodule update --init --recursive --depth 1
local mywaf=(
mkdir build && cd build
local myconf=(
--prefix="$FFBUILD_PREFIX"
--no-plugins
--no-coverage
--buildtype=release
--default-library=static
-Ddocs=disabled
-Dplugins=disabled
-Dtests=disabled
-Donline_docs=false
)
CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
./waf -j$(nproc)
./waf install
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
}

View file

@ -34,6 +34,4 @@ ffbuild_dockerbuild() {
meson "${myconf[@]}" ..
ninja -j"$(nproc)"
ninja install
sed -i 's/Cflags:/Cflags: -DSERD_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/serd-0.pc
}

View file

@ -10,18 +10,28 @@ ffbuild_enabled() {
ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" sord
cd sord
git submodule update --init --recursive --depth 1
local mywaf=(
mkdir build && cd build
local myconf=(
--prefix="$FFBUILD_PREFIX"
--no-utils
--static
--no-shared
--buildtype=release
--default-library=static
-Ddocs=disabled
-Dtools=disabled
-Dtests=disabled
)
CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
./waf -j$(nproc)
./waf install
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--cross-file=/cross.meson
)
else
echo "Unknown target"
return -1
fi
sed -i 's/Cflags:/Cflags: -DSORD_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/sord-0.pc
meson "${myconf[@]}" ..
ninja -j"$(nproc)"
ninja install
}

View file

@ -10,17 +10,27 @@ ffbuild_enabled() {
ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" sratom
cd sratom
git submodule update --init --recursive --depth 1
local mywaf=(
mkdir build && cd build
local myconf=(
--prefix="$FFBUILD_PREFIX"
--static
--no-shared
--buildtype=release
--default-library=static
-Ddocs=disabled
-Dtests=disabled
)
CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
./waf -j$(nproc)
./waf install
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--cross-file=/cross.meson
)
else
echo "Unknown target"
return -1
fi
sed -i 's/Cflags:/Cflags: -DSRATOM_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/sratom-0.pc
meson "${myconf[@]}" ..
ninja -j"$(nproc)"
ninja install
}

View file

@ -10,22 +10,31 @@ ffbuild_enabled() {
ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" lilv
cd lilv
git submodule update --init --recursive --depth 1
local mywaf=(
mkdir build && cd build
local myconf=(
--prefix="$FFBUILD_PREFIX"
--static
--no-shared
--no-bindings
--no-utils
--no-bash-completion
--buildtype=release
--default-library=static
-Ddocs=disabled
-Dtools=disabled
-Dtests=disabled
-Dbindings_py=disabled
)
CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
./waf -j$(nproc)
./waf install
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--cross-file=/cross.meson
)
else
echo "Unknown target"
return -1
fi
sed -i 's/Cflags:/Cflags: -DLILV_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/lilv-0.pc
meson "${myconf[@]}" ..
ninja -j"$(nproc)"
ninja install
}
ffbuild_configure() {

View file

@ -11,6 +11,7 @@ ffbuild_enabled() {
ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" placebo
cd placebo
git submodule update --init --recursive
mkdir build && cd build