2022-07-01 20:17:33 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2018-present Frank Hartung (supervisedthinking (@) gmail.com)
|
|
|
|
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="vulkan-loader"
|
2023-12-25 15:04:14 +00:00
|
|
|
PKG_VERSION="1.3.274"
|
2022-07-01 20:17:33 +00:00
|
|
|
PKG_LICENSE="Apache-2.0"
|
|
|
|
PKG_SITE="https://github.com/KhronosGroup/Vulkan-Loader"
|
|
|
|
PKG_URL="https://github.com/KhronosGroup/Vulkan-Loader/archive/v${PKG_VERSION}.tar.gz"
|
2023-03-31 14:47:18 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain Python3:host vulkan-headers libxcb libX11 libXrandr wayland"
|
2022-07-01 20:17:33 +00:00
|
|
|
PKG_LONGDESC="Vulkan Installable Client Driver (ICD) Loader."
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2023-11-17 10:30:04 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET="-DBUILD_TESTS=OFF \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release"
|
2022-07-01 20:17:33 +00:00
|
|
|
|
|
|
|
# GAS / GNU Assembler is only supported by aarch64 & x86_64
|
2022-12-31 13:43:45 +00:00
|
|
|
HOST_ARCH=$(uname -m)
|
|
|
|
case ${HOST_ARCH} in
|
|
|
|
arm|aarch64)
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_GAS=OFF"
|
|
|
|
;;
|
|
|
|
esac
|
2022-07-01 20:17:33 +00:00
|
|
|
|
|
|
|
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_WSI_XCB_SUPPORT=ON \
|
|
|
|
-DBUILD_WSI_XLIB_SUPPORT=ON \
|
|
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=OFF"
|
|
|
|
elif [ "${DISPLAYSERVER}" = "wl" ]; then
|
2023-02-08 23:08:18 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_WSI_XCB_SUPPORT=ON \
|
|
|
|
-DBUILD_WSI_XLIB_SUPPORT=ON \
|
2022-07-01 20:17:33 +00:00
|
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=ON"
|
|
|
|
else
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_WSI_XCB_SUPPORT=OFF \
|
|
|
|
-DBUILD_WSI_XLIB_SUPPORT=OFF \
|
|
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=OFF"
|
|
|
|
fi
|
|
|
|
}
|