40 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-04-21 12:51:45 +10:00
# 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
2024-01-21 10:52:29 +01:00
version=1.3.275.0
2020-07-24 18:35:06 +10:00
release=1
2023-11-11 19:30:34 +01:00
source=(https://github.com/KhronosGroup/SPIRV-Tools/archive/vulkan-sdk-$version/SPIRV-Tools-v$version.tar.gz)
2019-04-21 12:51:45 +10:00
build() {
PKGMK_SPIRV_TOOLS+=" \
2023-05-01 23:43:02 +10:00
-G Ninja \
2023-11-11 19:30:34 +01:00
-S SPIRV-Tools-vulkan-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 \
2023-02-25 15:29:31 +01:00
-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
2019-08-30 19:21:51 +10:00
rm -r $PKG/usr/{bin,include}
2019-04-21 12:51:45 +10:00
}