38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
# Description: API and commands for processing SPIR-V modules
|
|
# URL: https://www.khronos.org/vulkan/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: spirv-headers
|
|
|
|
name=spirv-tools
|
|
version=2019.5
|
|
commit=67f4838659f475d618c120e13d1a196d7e00ba4b
|
|
release=1
|
|
source=(
|
|
#https://github.com/KhronosGroup/SPIRV-Tools/archive/v$version/SPIRV-Tools-v$version.tar.gz
|
|
https://github.com/KhronosGroup/SPIRV-Tools/archive/$commit.tar.gz#/$name-$commit.tar.gz
|
|
)
|
|
|
|
build() {
|
|
# cd SPIRV-Tools-$version
|
|
# cd SPIRV-Tools-$commit
|
|
|
|
local config="
|
|
-SSPIRV-Tools-$commit \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DSPIRV_WERROR=OFF \
|
|
-DSPIRV-Headers_SOURCE_DIR=/usr \
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
|
|
-GNinja"
|
|
|
|
cmake -Bbuild-static $config -DBUILD_SHARED_LIBS=OFF
|
|
cmake --build build-static
|
|
|
|
cmake -Bbuild-shared $config -DBUILD_SHARED_LIBS=ON
|
|
cmake --build build-static
|
|
|
|
DESTDIR=$PKG cmake --build build-static --target install
|
|
DESTDIR=$PKG cmake --build build-shared --target install
|
|
}
|