40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Description: API and commands for processing SPIR-V modules
|
|
# URL: https://www.khronos.org/vulkan/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: spirv-tools
|
|
|
|
name=spirv-tools-32
|
|
version=1.3.261.1
|
|
release=1
|
|
source=(https://github.com/KhronosGroup/SPIRV-Tools/archive/sdk-$version/SPIRV-Tools-v$version.tar.gz)
|
|
|
|
build() {
|
|
PKGMK_SPIRV_TOOLS+=" \
|
|
-G Ninja \
|
|
-S SPIRV-Tools-sdk-$version \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib32 \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D SPIRV_WERROR=OFF \
|
|
-D SPIRV-Headers_SOURCE_DIR=/usr \
|
|
-D SPIRV_TOOLS_BUILD_STATIC=OFF \
|
|
-Wno-dev"
|
|
|
|
cmake -B build-static $PKGMK_SPIRV_TOOLS \
|
|
-D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
|
|
-D BUILD_SHARED_LIBS=OFF
|
|
cmake --build build-static
|
|
|
|
cmake -B build-shared $PKGMK_SPIRV_TOOLS \
|
|
-D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
|
|
-D BUILD_SHARED_LIBS=ON
|
|
cmake --build build-shared
|
|
|
|
DESTDIR=$PKG cmake --build build-static --target install
|
|
DESTDIR=$PKG cmake --build build-shared --target install
|
|
|
|
rm -r $PKG/usr/{bin,include}
|
|
}
|