Re-Organize Vulkan build order a bit
This commit is contained in:
parent
176e853bbe
commit
1cd3f207c5
4 changed files with 1 additions and 0 deletions
60
scripts.d/50-vulkan/60-libplacebo.sh
Executable file
60
scripts.d/50-vulkan/60-libplacebo.sh
Executable file
|
@ -0,0 +1,60 @@
|
|||
#!/bin/bash
|
||||
|
||||
PLACEBO_REPO="https://code.videolan.org/videolan/libplacebo.git"
|
||||
PLACEBO_COMMIT="e91a59f055a2d4025b587fa9e9cf91a6ba934377"
|
||||
|
||||
ffbuild_enabled() {
|
||||
[[ $ADDINS_STR == *4.4* ]] && return -1
|
||||
return 0
|
||||
}
|
||||
|
||||
ffbuild_dockerbuild() {
|
||||
git-mini-clone "$PLACEBO_REPO" "$PLACEBO_COMMIT" placebo
|
||||
cd placebo
|
||||
|
||||
mkdir build && cd build
|
||||
|
||||
local myconf=(
|
||||
--prefix="$FFBUILD_PREFIX"
|
||||
--buildtype=release
|
||||
--default-library=static
|
||||
-Dvulkan=enabled
|
||||
-Dvulkan-link=false
|
||||
-Dvulkan-registry="$FFBUILD_PREFIX"/share/vulkan/registry/vk.xml
|
||||
-Dglslang=enabled
|
||||
-Ddemos=false
|
||||
-Dtests=false
|
||||
-Dbench=false
|
||||
-Dfuzz=false
|
||||
)
|
||||
|
||||
if [[ $TARGET == win* ]]; then
|
||||
myconf+=(
|
||||
-Dd3d11=enabled
|
||||
)
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
echo "Libs.private: -lstdc++" >> "$FFBUILD_PREFIX"/lib/pkgconfig/libplacebo.pc
|
||||
}
|
||||
|
||||
ffbuild_configure() {
|
||||
echo --enable-libplacebo
|
||||
}
|
||||
|
||||
ffbuild_unconfigure() {
|
||||
[[ $ADDINS_STR == *4.4* ]] && return 0
|
||||
echo --disable-libplacebo
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue