mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-14 16:01:07 +00:00
6157bf3cae
- Add new Windows support - Use CMake/CTest instead of Make + shell scripts - Use --parallel in CTest - Fix CTest on Windows - Cleanups in test_shaders.py - Force specific commit for SPIRV-Headers - Fix Inf/NaN odd-ball case by moving to ASM
26 lines
569 B
Bash
Executable File
26 lines
569 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PROFILE=Release
|
|
if [ ! -z $1 ]; then
|
|
PROFILE=$1
|
|
fi
|
|
|
|
if [ ! -z $2 ]; then
|
|
NPROC="--parallel $2"
|
|
fi
|
|
|
|
echo "Building glslang."
|
|
mkdir -p external/glslang-build
|
|
cd external/glslang-build
|
|
cmake ../glslang -DCMAKE_BUILD_TYPE=$PROFILE -DCMAKE_INSTALL_PREFIX=output
|
|
cmake --build . --target install ${NPROC}
|
|
cd ../..
|
|
|
|
echo "Building SPIRV-Tools."
|
|
mkdir -p external/spirv-tools-build
|
|
cd external/spirv-tools-build
|
|
cmake ../spirv-tools -DCMAKE_BUILD_TYPE=$PROFILE -DSPIRV_WERROR=OFF -DCMAKE_INSTALL_PREFIX=output
|
|
cmake --build . --target install ${NPROC}
|
|
cd ../..
|
|
|