1234567891011121314151617181920212223 |
- cd $SRC
- mkdir -p $isim-$surum/third_party/spirv-headers
- mv SPIRV-Headers-85b7e00c7d785962ffe851a177c84353d037dcb6/* $isim-$surum/third_party/spirv-headers
- # de-vendor libs and git sürüm pasif
- sed '/examples/d;/third_party/d' -i $isim-$surum/CMakeLists.txt
- sed '/build-version/d' -i $isim-$surum/glslc/CMakeLists.txt
- cat <<- EOF > $isim-$surum/glslc/src/build-version.inc
- "${surum}\\n"
- "2021.1\\n"
- "11.2.0\\n"
- EOF
- cmake -S $isim-$surum -B build -G Ninja \
- -D CMAKE_INSTALL_PREFIX=/usr \
- -D CMAKE_INSTALL_LIBDIR=lib \
- -D CMAKE_BUILD_TYPE=Release \
- -D SHADERC_SKIP_TESTS=ON \
- -D glslang_SOURCE_DIR:PATH='/usr/include/glslang' \
- -D SPIRV-Headers_SOURCE_DIR:PATH="$SRC/$isim-$surum/third_party/spirv-headers"
- cmake --build build -j2
|