comparison semiconginev2/core/buildconfig.nim @ 1223:55896320c8bf compiletime-tests

fix: references to new package not updated
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 21:13:54 +0700
parents 56781cc0fc7c
children c8e3037aca66
comparison
equal deleted inserted replaced
1222:3c3d4d7a8ecd 1223:55896320c8bf
1 const ENGINENAME = "semicongine" 1 const ENGINENAME = "semiconginev2"
2 2
3 # checks required build options: 3 # checks required build options:
4 static: 4 static:
5 assert compileOption("threads"), ENGINENAME & " requires --threads=on"
6 assert defined(nimPreviewHashRef), ENGINENAME & " requires -d:nimPreviewHashRef"
7
8 if defined(release) or defined(windows):
9 assert compileOption("app", "gui"), ENGINENAME & " requires --app=gui for release builds and all windows builds"
10
11
12 if defined(linux): 5 if defined(linux):
13 assert defined(VK_USE_PLATFORM_XLIB_KHR), ENGINENAME & " requires --d:VK_USE_PLATFORM_XLIB_KHR for linux builds" 6 assert defined(VK_USE_PLATFORM_XLIB_KHR), ENGINENAME & " requires --d:VK_USE_PLATFORM_XLIB_KHR for linux builds"
14 elif defined(windows): 7 elif defined(windows):
15 assert defined(VK_USE_PLATFORM_WIN32_KHR), ENGINENAME & " requires --d:VK_USE_PLATFORM_WIN32_KHR for windows builds" 8 assert defined(VK_USE_PLATFORM_WIN32_KHR), ENGINENAME & " requires --d:VK_USE_PLATFORM_WIN32_KHR for windows builds"
16 else: 9 else: