2022-08-12 12:29:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SCRIPT_REPO="https://github.com/oneapi-src/oneVPL.git"
|
2023-06-21 11:43:28 +00:00
|
|
|
SCRIPT_COMMIT="e12ace9761bb52786409e830f619916b86e87fc5"
|
2022-08-12 12:29:44 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
[[ $TARGET == *arm64 ]] && return -1
|
|
|
|
[[ $ADDINS_STR == *4.4* ]] && return -1
|
|
|
|
[[ $ADDINS_STR == *5.0* ]] && return -1
|
|
|
|
[[ $ADDINS_STR == *5.1* ]] && return -1
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2022-08-12 12:29:44 +00:00
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
|
|
|
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
|
2022-08-17 18:50:30 +00:00
|
|
|
-DCMAKE_INSTALL_BINDIR="$FFBUILD_PREFIX"/bin -DCMAKE_INSTALL_LIBDIR="$FFBUILD_PREFIX"/lib \
|
2022-08-12 12:29:44 +00:00
|
|
|
-DBUILD_DISPATCHER=ON -DBUILD_DEV=ON \
|
|
|
|
-DBUILD_PREVIEW=OFF -DBUILD_TOOLS=OFF -DBUILD_TOOLS_ONEVPL_EXPERIMENTAL=OFF -DINSTALL_EXAMPLE_CODE=OFF \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF ..
|
|
|
|
|
|
|
|
ninja -j$(nproc)
|
|
|
|
ninja install
|
|
|
|
|
|
|
|
rm -rf "$FFBUILD_PREFIX"/{etc,share}
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
2022-10-23 20:05:38 +00:00
|
|
|
echo --enable-libvpl
|
2022-08-12 12:29:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
[[ $ADDINS_STR == *4.4* ]] && return 0
|
|
|
|
[[ $ADDINS_STR == *5.0* ]] && return 0
|
|
|
|
[[ $ADDINS_STR == *5.1* ]] && return 0
|
|
|
|
|
|
|
|
echo --disable-libvpl
|
|
|
|
}
|