v4k-git-backup/tools/MAKE_glslcc.bat

24 lines
672 B
Batchfile
Raw Normal View History

2023-11-05 15:30:11 +00:00
#!/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
# 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