Mercurial > games > semicongine
changeset 1222:3c3d4d7a8ecd compiletime-tests
did: cleanup config file
author | sam <sam@basx.dev> |
---|---|
date | Wed, 17 Jul 2024 21:08:15 +0700 |
parents | 000befd9479f |
children | 55896320c8bf |
files | config.nims |
diffstat | 1 files changed, 0 insertions(+), 47 deletions(-) [+] |
line wrap: on
line diff
--- a/config.nims Wed Jul 17 21:05:47 2024 +0700 +++ b/config.nims Wed Jul 17 21:08:15 2024 +0700 @@ -4,11 +4,6 @@ import semicongine/build -# TODO: totally update this file!! - -switch("nimblePath", "nimbledeps/pkgs2") -switch("define", "nimPreviewHashRef") - task build_dev, "build dev": semicongine_build_switches(buildname = "dev") setCommand "c" @@ -55,38 +50,6 @@ exec("nim build_dev_zip --run tests/test_resources.nim") exec("nim build_dev_dir --run tests/test_resources.nim") -task example_all, "Run all example programs": - for file in listFiles("examples"): - if file.endsWith(".nim"): - exec(&"nim build_dev --run {file}") - -task publish, "publish all build": - for file in listDirs("build/debug/linux"): - exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/") - for file in listDirs("build/release/linux"): - exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/linux/") - for file in listDirs("build/debug/windows"): - exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/windows/") - for file in listDirs("build/release/windows"): - exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/windows/") - -task glslangValidator, "Download glslangValidator (required for linux compilation)": - let dirname = "/tmp/glslang_download" - exec &"mkdir -p {dirname}" - exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip" - exec &"cd {dirname} && unzip *.zip" - exec &"mv {dirname}/bin/glslangValidator examples/" - exec &"rm -rf {dirname}" - -task glslangValidator_exe, "Download glslangValidator.exe (required for windows compilation)": - # TODO: make this work on windows - let dirname = "/tmp/glslang_download" - exec &"mkdir -p {dirname}" - exec &"cd {dirname} && wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-windows-x64-Release.zip" - exec &"cd {dirname} && unzip *.zip" - exec &"mv {dirname}/bin/glslangValidator.exe examples/" - exec &"rm -rf {dirname}" - task run_all, "Run all binaries": for file in listFiles("build/debug/linux"): exec file @@ -97,16 +60,6 @@ for file in listFiles("build/release/windows"): exec &"wine {file}" -task get_vulkan_wrapper, "Download vulkan wrapper": - exec &"curl https://raw.githubusercontent.com/nimgl/nimgl/master/src/nimgl/vulkan.nim > src/semicongine/vulkan/c_api.nim" - -task generate_vulkan_api, "Generate Vulkan API": - selfExec &"c -d:ssl --run src/vulkan_api/vulkan_api_generator.nim" - mkDir "src/semicongine/vulkan/" - mkDir "src/semicongine/core/" - cpFile "src/vulkan_api/output/api.nim", "src/semicongine/core/api.nim" - cpDir "src/vulkan_api/output/platform", "src/semicongine/vulkan/platform" - if getCommand() in ["c", "compile", "r", "dump", "check", "idetools"]: if defined(linux): --d: VK_USE_PLATFORM_XLIB_KHR