comparison config.nims @ 62:7153eadb07eb

fix: some formatting, bug when opening on windows.
author Sam <sam@basx.dev>
date Wed, 25 Jan 2023 23:56:59 +0700
parents be3ab2619c33
children f67496a189cb
comparison
equal deleted inserted replaced
61:0f04ba283558 62:7153eadb07eb
114 exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/windows/") 114 exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/windows/")
115 for file in listFiles("build/release/windows"): 115 for file in listFiles("build/release/windows"):
116 exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/windows/") 116 exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/windows/")
117 117
118 task glslangValidator, "Download glslangValidator (required for linux compilation)": 118 task glslangValidator, "Download glslangValidator (required for linux compilation)":
119 let dirname="/tmp/glslang_download" 119 let dirname = "/tmp/glslang_download"
120 exec &"mkdir -p {dirname}" 120 exec &"mkdir -p {dirname}"
121 exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip" 121 exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip"
122 exec &"cd {dirname} && unzip *.zip" 122 exec &"cd {dirname} && unzip *.zip"
123 exec &"mv {dirname}/bin/glslangValidator examples/" 123 exec &"mv {dirname}/bin/glslangValidator examples/"
124 exec &"rm -rf {dirname}" 124 exec &"rm -rf {dirname}"
125 125
126 task glslangValidator_exe, "Download glslangValidator.exe (required for windows compilation)": 126 task glslangValidator_exe, "Download glslangValidator.exe (required for windows compilation)":
127 let dirname="/tmp/glslang_download" 127 let dirname = "/tmp/glslang_download"
128 exec &"mkdir -p {dirname}" 128 exec &"mkdir -p {dirname}"
129 exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-windows-x64-Release.zip" 129 exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-windows-x64-Release.zip"
130 exec &"cd {dirname} && unzip *.zip" 130 exec &"cd {dirname} && unzip *.zip"
131 exec &"mv {dirname}/bin/glslangValidator.exe examples/" 131 exec &"mv {dirname}/bin/glslangValidator.exe examples/"
132 exec &"rm -rf {dirname}" 132 exec &"rm -rf {dirname}"
133 133
134 task run_all , "Run all binaries": 134 task run_all, "Run all binaries":
135 for file in listFiles("build/debug/linux"): 135 for file in listFiles("build/debug/linux"):
136 exec file 136 exec file
137 for file in listFiles("build/release/linux"): 137 for file in listFiles("build/release/linux"):
138 exec file 138 exec file
139 for file in listFiles("build/debug/windows"): 139 for file in listFiles("build/debug/windows"):