Mercurial > games > semicongine
comparison semiconginev2/core/buildconfig.nim @ 1227:4d97cfc4888b
merge
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 17 Jul 2024 23:45:43 +0700 |
| parents | c8e3037aca66 |
| children |
comparison
equal
deleted
inserted
replaced
| 1170:2addc5f6804f | 1227:4d97cfc4888b |
|---|---|
| 1 const ENGINENAME = "semiconginev2" | |
| 2 | |
| 3 # checks required build options: | |
| 4 static: | |
| 5 if defined(linux): | |
| 6 assert defined(VK_USE_PLATFORM_XLIB_KHR), ENGINENAME & " requires --d:VK_USE_PLATFORM_XLIB_KHR for linux builds" | |
| 7 elif defined(windows): | |
| 8 assert defined(VK_USE_PLATFORM_WIN32_KHR), ENGINENAME & " requires --d:VK_USE_PLATFORM_WIN32_KHR for windows builds" | |
| 9 else: | |
| 10 assert false, "trying to build on unsupported platform" | |
| 11 | |
| 12 # build configuration | |
| 13 # ===================== | |
| 14 | |
| 15 # log level | |
| 16 const LOGLEVEL {.strdefine.}: string = "Warn" | |
| 17 const ENGINE_LOGLEVEL* = parseEnum[Level]("lvl" & LOGLEVEL) | |
| 18 | |
| 19 # resource bundleing settings, need to be configured per project | |
| 20 const PACKAGETYPE* {.strdefine.}: string = "exe" # dir, zip, exe | |
| 21 static: | |
| 22 assert PACKAGETYPE in ["dir", "zip", "exe"], ENGINENAME & " requires one of -d:PACKAGETYPE=dir -d:PACKAGETYPE=zip -d:PACKAGETYPE=exe" |
