Mercurial > games > semicongine
comparison config.nims @ 78:f67496a189cb
add: vulkan api generator, not finished yet
| author | Sam <sam@basx.dev> |
|---|---|
| date | Mon, 20 Feb 2023 10:33:53 +0700 |
| parents | 7153eadb07eb |
| children | 9e7937b7bcc8 |
comparison
equal
deleted
inserted
replaced
| 77:4b16d2af316a | 78:f67496a189cb |
|---|---|
| 139 for file in listFiles("build/debug/windows"): | 139 for file in listFiles("build/debug/windows"): |
| 140 exec &"wine {file}" | 140 exec &"wine {file}" |
| 141 for file in listFiles("build/release/windows"): | 141 for file in listFiles("build/release/windows"): |
| 142 exec &"wine {file}" | 142 exec &"wine {file}" |
| 143 | 143 |
| 144 task get_vulkan_wrapper, "Download vulkan wrapper": | |
| 145 exec &"curl https://raw.githubusercontent.com/nimgl/nimgl/master/src/nimgl/vulkan.nim > src/semicongine/vulkan/c_api.nim" | |
| 146 | |
| 147 const api_generator_name = "vulkan_api_generator" | |
| 148 | |
| 149 task generate_vulkan_api, "Generate Vulkan API": | |
| 150 selfExec &"c -d:ssl --run src/vulkan_api/{api_generator_name}.nim" | |
| 151 | |
| 144 if getCommand() in ["c", "compile", "r", "dump", "check", "idetools"]: | 152 if getCommand() in ["c", "compile", "r", "dump", "check", "idetools"]: |
| 145 compilerFlags() | 153 compilerFlags() |
