comparison config.nims @ 835:00e314018100

did: update flags to reflect new defaults in nim v2
author Sam <sam@basx.dev>
date Sun, 26 Nov 2023 16:20:24 +0700
parents dfa722fbd035
children 8e926856a9ce
comparison
equal deleted inserted replaced
834:6001037da8c2 835:00e314018100
13 13
14 task build, "build": 14 task build, "build":
15 switch("d", "BUNDLETYPE=" & BUNDLETYPE) 15 switch("d", "BUNDLETYPE=" & BUNDLETYPE)
16 switch("d", "RESOURCEROOT=" & RESOURCEROOT) 16 switch("d", "RESOURCEROOT=" & RESOURCEROOT)
17 switch("d", "nimPreviewHashRef") 17 switch("d", "nimPreviewHashRef")
18 switch("mm", "orc")
19 switch("experimental", "strictEffects") 18 switch("experimental", "strictEffects")
20 switch("threads", "on") 19 switch("experimental", "strictFuncs")
20 switch("nimblePath", "nimbledeps/pkgs2")
21 var buildType = DEBUG 21 var buildType = DEBUG
22 var platformDir = "" 22 var platformDir = ""
23 if defined(linux): 23 if defined(linux):
24 switch("define", "VK_USE_PLATFORM_XLIB_KHR") 24 switch("define", "VK_USE_PLATFORM_XLIB_KHR")
25 platformDir = LINUX 25 platformDir = LINUX
122 cpFile "src/vulkan_api/output/api.nim", "src/semicongine/core/api.nim" 122 cpFile "src/vulkan_api/output/api.nim", "src/semicongine/core/api.nim"
123 cpDir "src/vulkan_api/output/platform", "src/semicongine/vulkan/platform" 123 cpDir "src/vulkan_api/output/platform", "src/semicongine/vulkan/platform"
124 124
125 if getCommand() in ["c", "compile", "r", "dump", "check", "idetools"]: 125 if getCommand() in ["c", "compile", "r", "dump", "check", "idetools"]:
126 --path:src 126 --path:src
127 --mm:orc
128 --threads:on
129 if defined(linux): 127 if defined(linux):
130 --d:VK_USE_PLATFORM_XLIB_KHR 128 --d:VK_USE_PLATFORM_XLIB_KHR
131 if defined(windows): 129 if defined(windows):
132 --d:VK_USE_PLATFORM_WIN32_KHR 130 --d:VK_USE_PLATFORM_WIN32_KHR