derle.sh 522 B

123456789101112131415161718192021
  1. cd $SRC
  2. mv SPIRV-Headers-85b7e00c7d785962ffe851a177c84353d037dcb6 SPIRV-Headers
  3. #cd SPIRV-Tools-$surum
  4. #mkdir build ; cd build
  5. BLD_SPIRV_TOOLS=" \
  6. -S SPIRV-Tools-$surum \
  7. -D CMAKE_INSTALL_PREFIX=/usr \
  8. -D CMAKE_INSTALL_LIBDIR=lib \
  9. -D CMAKE_BUILD_TYPE=Release \
  10. -D SPIRV_WERROR=OFF \
  11. -DBUILD_SHARED_LIBS=ON \
  12. -DSPIRV_TOOLS_BUILD_STATIC=OFF \
  13. -D SPIRV-Headers_SOURCE_DIR=/usr \
  14. -D PYTHON_EXECUTABLE=/usr/bin/python3 \
  15. -DSPIRV-Headers_SOURCE_DIR="${SRC}"/SPIRV-Headers \
  16. -G Ninja \
  17. -Wno-dev"
  18. cmake . $BLD_SPIRV_TOOLS
  19. ninja