comparison config.nims @ 252:f31d848ab551

did: update configs
author sam <sam@basx.dev>
date Wed, 24 May 2023 01:31:02 +0700
parents 952428f04ffc
children 93becb68cb7a
comparison
equal deleted inserted replaced
251:9289776cd61c 252:f31d848ab551
14 task build, "build": 14 task build, "build":
15 switch("path", "src") 15 switch("path", "src")
16 switch("mm", "orc") 16 switch("mm", "orc")
17 switch("experimental", "strictEffects") 17 switch("experimental", "strictEffects")
18 switch("threads", "on") 18 switch("threads", "on")
19 switch("d", "useLibzipSrc")
20 var buildType = DEBUG 19 var buildType = DEBUG
21 var platformDir = "" 20 var platformDir = ""
22 if defined(linux): 21 if defined(linux):
23 switch("define", "VK_USE_PLATFORM_XLIB_KHR") 22 switch("define", "VK_USE_PLATFORM_XLIB_KHR")
24 platformDir = LINUX 23 platformDir = LINUX
69 task clean, "remove all build files": 68 task clean, "remove all build files":
70 exec(&"rm -rf {BUILDBASE}") 69 exec(&"rm -rf {BUILDBASE}")
71 70
72 task publish, "publish all build": 71 task publish, "publish all build":
73 for file in listDirs("build/debug/linux"): 72 for file in listDirs("build/debug/linux"):
74 exec(&"rsync -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/") 73 exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/")
75 for file in listFiles("build/release/linux"): 74 for file in listDirs("build/release/linux"):
76 exec(&"rsync -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/linux/") 75 exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/linux/")
77 for file in listFiles("build/debug/windows"): 76 for file in listDirs("build/debug/windows"):
78 exec(&"rsync -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/windows/") 77 exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/windows/")
79 for file in listFiles("build/release/windows"): 78 for file in listDirs("build/release/windows"):
80 exec(&"rsync -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/windows/") 79 exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/windows/")
81 80
82 task glslangValidator, "Download glslangValidator (required for linux compilation)": 81 task glslangValidator, "Download glslangValidator (required for linux compilation)":
83 let dirname = "/tmp/glslang_download" 82 let dirname = "/tmp/glslang_download"
84 exec &"mkdir -p {dirname}" 83 exec &"mkdir -p {dirname}"
85 exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip" 84 exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip"