Mercurial > games > semicongine
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 35:7f99b21a8777 | 36:2979b69eef55 |
|---|---|
| 102 exec(&"rm -rf {BUILDBASE}") | 102 exec(&"rm -rf {BUILDBASE}") |
| 103 | 103 |
| 104 task publish, "publish all build": | 104 task publish, "publish all build": |
| 105 exec("rsync -rv build/ basx.dev:/var/www/public.basx.dev/zamikongine") | 105 exec("rsync -rv build/ basx.dev:/var/www/public.basx.dev/zamikongine") |
| 106 | 106 |
| 107 task glslangValidator, "Download glslangValidator (required for linux compilation)": | |
| 108 let dirname="/tmp/glslang_download" | |
| 109 exec &"mkdir -p {dirname}" | |
| 110 exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip" | |
| 111 exec &"cd {dirname} && unzip *.zip" | |
| 112 exec &"mv {dirname}/bin/glslangValidator examples/" | |
| 113 exec &"rm -rf {dirname}" | |
| 114 | |
| 115 task glslangValidator_exe, "Download glslangValidator.exe (required for windows compilation)": | |
| 116 let dirname="/tmp/glslang_download" | |
| 117 exec &"mkdir -p {dirname}" | |
| 118 exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-windows-x64-Release.zip" | |
| 119 exec &"cd {dirname} && unzip *.zip" | |
| 120 exec &"mv {dirname}/bin/glslangValidator.exe examples/" | |
| 121 exec &"rm -rf {dirname}" | |
| 107 | 122 |
| 108 if getCommand() in ["c", "compile", "r", "dump", "check"]: | 123 if getCommand() in ["c", "compile", "r", "dump", "check"]: |
| 109 compilerFlags() | 124 compilerFlags() |
