Mercurial > games > semicongine
diff config.nims @ 194:93f661a20f74
did: a bit of cleanup with the config, also add some documentation
author | Sam <sam@basx.dev> |
---|---|
date | Sun, 07 May 2023 00:23:46 +0700 |
parents | 5e19aead2b61 |
children | 81fab407a479 |
line wrap: on
line diff
--- a/config.nims Sun May 07 00:22:58 2023 +0700 +++ b/config.nims Sun May 07 00:23:46 2023 +0700 @@ -21,13 +21,9 @@ proc compilerFlagsDebug() = switch("debugger", "native") - switch("checks", "on") - switch("assertions", "on") proc compilerFlagsRelease() = switch("define", "release") - switch("checks", "off") - switch("assertions", "off") switch("app", "gui") task single_linux_debug, "build linux debug": @@ -51,7 +47,6 @@ setCommand "c" mkDir(BUILDBASE & "/" & DEBUG & "/" & WINDOWS) - task single_windows_release, "build windows release": compilerFlags() compilerFlagsRelease() @@ -59,14 +54,6 @@ setCommand "c" mkDir(BUILDBASE & "/" & RELEASE & "/" & WINDOWS) -task single_crosscompile_windows_debug, "build crosscompile windows debug": - switch("define", "mingw") - single_windows_debugTask() - -task single_crosscompile_windows_release, "build crosscompile windows release": - switch("define", "mingw") - single_windows_releaseTask() - task build_all_linux_debug, "build all examples with linux/debug": for file in listFiles("examples"): if file.endsWith(".nim"): @@ -149,10 +136,8 @@ 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" -const api_generator_name = "vulkan_api_generator" - task generate_vulkan_api, "Generate Vulkan API": - selfExec &"c -d:ssl --run src/vulkan_api/{api_generator_name}.nim" + selfExec &"c -d:ssl --run src/vulkan_api/vulkan_api_generator.nim" mkDir "src/semicongine/vulkan/" cpFile "src/vulkan_api/output/api.nim", "src/semicongine/vulkan/api.nim" cpDir "src/vulkan_api/output/platform", "src/semicongine/vulkan/platform"