Mercurial > games > semicongine
diff config.nims @ 539:9400c1cf26a5
add: vulkan api generator, not finished yet
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 20 Feb 2023 10:33:53 +0700 |
parents | 311ee4e58032 |
children | 9e7937b7bcc8 |
line wrap: on
line diff
--- a/config.nims Tue Feb 07 12:20:04 2023 +0700 +++ b/config.nims Mon Feb 20 10:33:53 2023 +0700 @@ -141,5 +141,13 @@ 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" + +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" + if getCommand() in ["c", "compile", "r", "dump", "check", "idetools"]: compilerFlags()