derle.sh 733 B

1234567891011121314151617181920212223
  1. cd $SRC
  2. mkdir -p $isim-$surum/third_party/spirv-headers
  3. mv SPIRV-Headers-85b7e00c7d785962ffe851a177c84353d037dcb6/* $isim-$surum/third_party/spirv-headers
  4. # de-vendor libs and git sürüm pasif
  5. sed '/examples/d;/third_party/d' -i $isim-$surum/CMakeLists.txt
  6. sed '/build-version/d' -i $isim-$surum/glslc/CMakeLists.txt
  7. cat <<- EOF > $isim-$surum/glslc/src/build-version.inc
  8. "${surum}\\n"
  9. "2021.1\\n"
  10. "11.2.0\\n"
  11. EOF
  12. cmake -S $isim-$surum -B build -G Ninja \
  13. -D CMAKE_INSTALL_PREFIX=/usr \
  14. -D CMAKE_INSTALL_LIBDIR=lib \
  15. -D CMAKE_BUILD_TYPE=Release \
  16. -D SHADERC_SKIP_TESTS=ON \
  17. -D glslang_SOURCE_DIR:PATH='/usr/include/glslang' \
  18. -D SPIRV-Headers_SOURCE_DIR:PATH="$SRC/$isim-$surum/third_party/spirv-headers"
  19. cmake --build build -j2