comparison config.nims @ 53:4c3891eb9ef9

add: improve build on windows
author Sam <sam@basx.dev>
date Thu, 19 Jan 2023 22:49:12 +0700
parents 9e81f06a5c57
children a24c6b87ae83
comparison
equal deleted inserted replaced
52:5ab7fb4d9ee9 53:4c3891eb9ef9
106 exec(&"rm -rf {BUILDBASE}") 106 exec(&"rm -rf {BUILDBASE}")
107 107
108 task publish, "publish all build": 108 task publish, "publish all build":
109 exec("rsync -rv build/ basx.dev:/var/www/public.basx.dev/semicongine") 109 exec("rsync -rv build/ basx.dev:/var/www/public.basx.dev/semicongine")
110 110
111 for file in listFiles("build/debug/linux"):
112 exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/")
113 for file in listFiles("build/release/linux"):
114 exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/linux/")
115 for file in listFiles("build/debug/windows"):
116 exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/windows/")
117 for file in listFiles("build/release/windows"):
118 exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/windows/")
119
111 task glslangValidator, "Download glslangValidator (required for linux compilation)": 120 task glslangValidator, "Download glslangValidator (required for linux compilation)":
112 let dirname="/tmp/glslang_download" 121 let dirname="/tmp/glslang_download"
113 exec &"mkdir -p {dirname}" 122 exec &"mkdir -p {dirname}"
114 exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip" 123 exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip"
115 exec &"cd {dirname} && unzip *.zip" 124 exec &"cd {dirname} && unzip *.zip"