Mercurial > games > semicongine
diff config.nims @ 777:754835bf175e
add: changing rendering system, not finished yet, also upgrading to Nim 2
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 07 Aug 2023 00:23:00 +0700 |
parents | a432a4a99110 |
children | 857cd931d24b |
line wrap: on
line diff
--- a/config.nims Sun Jul 23 19:53:10 2023 +0700 +++ b/config.nims Mon Aug 07 00:23:00 2023 +0700 @@ -37,7 +37,7 @@ rmDir(outdir) mkDir(outdir) let resourcedir = joinPath(projectDir(), RESOURCEROOT) - if existsDir(resourcedir): + if dirExists(resourcedir): let outdir_resources = joinPath(outdir, RESOURCEROOT) if BUNDLETYPE == "dir": cpDir(resourcedir, outdir_resources) @@ -66,6 +66,11 @@ if file.endsWith(".nim"): exec(&"nim build -d:release {file}") +task test_all, "Run all test programs": + for file in listFiles("tests"): + if file.endsWith(".nim"): + exec(&"nim build --run {file}") + task clean, "remove all build files": exec(&"rm -rf {BUILDBASE}")