add glslcc tool

main
Dominik Madarász 2023-08-11 00:39:57 +02:00
parent e30c8bb190
commit a706369557
2 changed files with 24 additions and 0 deletions

BIN
tools/glslcc.exe 100644

Binary file not shown.

View File

@ -0,0 +1,24 @@
#!/bin/bash 2>nul || goto :windows
# linux + osx -----------------------------------------------------------------
cd `dirname $0`
git clone https://github.com/septag/glslcc && mkdir glslcc/.build
cd glslcc/.build
cmake -B . -DCMAKE_BUILD_TYPE=Release .
make -j 8
rem cp -f glslcc/.build/src/Release/glslcc.exe .
cd ".."
exit
:windows -----------------------------------------------------------------------
@echo off
cd "%~dp0"
git clone https://github.com/septag/glslcc && md glslcc\.build && pushd glslcc\.build
cmake .. -B . -DCMAKE_BUILD_TYPE=Release && (make || msbuild glslcc.sln -m -p:Configuration=Release)
popd
xcopy /y glslcc\.build\src\Release\glslcc.exe