Mercurial > games > semicongine
diff config.nims @ 36:2979b69eef55
did: migrate rest of make functionality
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 16 Jan 2023 00:45:31 +0700 |
parents | 7f99b21a8777 |
children | c3c963e7c1a6 |
line wrap: on
line diff
--- a/config.nims Mon Jan 16 00:35:41 2023 +0700 +++ b/config.nims Mon Jan 16 00:45:31 2023 +0700 @@ -104,6 +104,21 @@ task publish, "publish all build": exec("rsync -rv build/ basx.dev:/var/www/public.basx.dev/zamikongine") +task glslangValidator, "Download glslangValidator (required for linux compilation)": + let dirname="/tmp/glslang_download" + exec &"mkdir -p {dirname}" + exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip" + exec &"cd {dirname} && unzip *.zip" + exec &"mv {dirname}/bin/glslangValidator examples/" + exec &"rm -rf {dirname}" + +task glslangValidator_exe, "Download glslangValidator.exe (required for windows compilation)": + let dirname="/tmp/glslang_download" + exec &"mkdir -p {dirname}" + exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-windows-x64-Release.zip" + exec &"cd {dirname} && unzip *.zip" + exec &"mv {dirname}/bin/glslangValidator.exe examples/" + exec &"rm -rf {dirname}" if getCommand() in ["c", "compile", "r", "dump", "check"]: compilerFlags()