comparison config.nims @ 383:8e926856a9ce

fix: old settings
author Sam <sam@basx.dev>
date Sat, 02 Dec 2023 22:26:45 +0700
parents ad2a7586f625
children 1ab09f8cc68d
comparison
equal deleted inserted replaced
382:e76822e943af 383:8e926856a9ce
9 const WINDOWS = "windows" 9 const WINDOWS = "windows"
10 10
11 const BUNDLETYPE* {.strdefine.}: string = "dir" # dir, zip, exe 11 const BUNDLETYPE* {.strdefine.}: string = "dir" # dir, zip, exe
12 const RESOURCEROOT* {.strdefine.}: string = "resources" 12 const RESOURCEROOT* {.strdefine.}: string = "resources"
13 13
14 switch("d", "nimPreviewHashRef")
15 switch("experimental", "strictEffects")
16 switch("experimental", "strictFuncs")
17 switch("nimblePath", "nimbledeps/pkgs2")
18
14 task build, "build": 19 task build, "build":
15 switch("d", "BUNDLETYPE=" & BUNDLETYPE) 20 switch("d", "BUNDLETYPE=" & BUNDLETYPE)
16 switch("d", "RESOURCEROOT=" & RESOURCEROOT) 21 switch("d", "RESOURCEROOT=" & RESOURCEROOT)
17 switch("d", "nimPreviewHashRef")
18 switch("experimental", "strictEffects")
19 switch("experimental", "strictFuncs")
20 switch("nimblePath", "nimbledeps/pkgs2")
21 var buildType = DEBUG 22 var buildType = DEBUG
22 var platformDir = "" 23 var platformDir = ""
23 if defined(linux): 24 if defined(linux):
24 switch("define", "VK_USE_PLATFORM_XLIB_KHR") 25 switch("define", "VK_USE_PLATFORM_XLIB_KHR")
25 platformDir = LINUX 26 platformDir = LINUX
121 mkDir "src/semicongine/core/" 122 mkDir "src/semicongine/core/"
122 cpFile "src/vulkan_api/output/api.nim", "src/semicongine/core/api.nim" 123 cpFile "src/vulkan_api/output/api.nim", "src/semicongine/core/api.nim"
123 cpDir "src/vulkan_api/output/platform", "src/semicongine/vulkan/platform" 124 cpDir "src/vulkan_api/output/platform", "src/semicongine/vulkan/platform"
124 125
125 if getCommand() in ["c", "compile", "r", "dump", "check", "idetools"]: 126 if getCommand() in ["c", "compile", "r", "dump", "check", "idetools"]:
126 --path:src
127 if defined(linux): 127 if defined(linux):
128 --d:VK_USE_PLATFORM_XLIB_KHR 128 --d:VK_USE_PLATFORM_XLIB_KHR
129 if defined(windows): 129 if defined(windows):
130 --d:VK_USE_PLATFORM_WIN32_KHR 130 --d:VK_USE_PLATFORM_WIN32_KHR