comparison config.nims @ 24:71bbe11d8de8

did: change shader compilation to run during program compilation, maybe add dynamic version later
author Sam <sam@basx.dev>
date Wed, 11 Jan 2023 11:15:02 +0700
parents b45a5d338cd0
children 94c38e4b5782
comparison
equal deleted inserted replaced
23:0ffdf1f4ecf4 24:71bbe11d8de8
17 proc compilerFlagsRelease() = 17 proc compilerFlagsRelease() =
18 switch("define", "release") 18 switch("define", "release")
19 switch("checks", "off") 19 switch("checks", "off")
20 switch("assertions", "off") 20 switch("assertions", "off")
21 21
22 proc compilerFlagsDebugWindows() =
23 switch("cc", "vcc")
24 switch("passC", "/MDd")
25 switch("passL", "ucrtd.lib")
26
27 proc compilerFlagsReleaseWindows() =
28 switch("cc", "vcc")
29 switch("passC", "/MD")
30 switch("passL", "ucrt.lib")
31
32 task build_linux_debug, "build linux debug": 22 task build_linux_debug, "build linux debug":
33 compilerFlags() 23 compilerFlags()
34 compilerFlagsDebug() 24 compilerFlagsDebug()
35 buildbase.joinPath("debug/linux").mkDir() 25 buildbase.joinPath("debug/linux").mkDir()
36 setCommand "c" 26 setCommand "c"
42 setCommand "c" 32 setCommand "c"
43 33
44 task build_windows_debug, "build windows debug": 34 task build_windows_debug, "build windows debug":
45 compilerFlags() 35 compilerFlags()
46 compilerFlagsDebug() 36 compilerFlagsDebug()
47 # compilerFlagsDebugWindows()
48 switch("define", "mingw") 37 switch("define", "mingw")
49 buildbase.joinPath("debug/windows").mkDir() 38 buildbase.joinPath("debug/windows").mkDir()
50 setCommand "c" 39 setCommand "c"
51 40
52 task build_windows_release, "build windows release": 41 task build_windows_release, "build windows release":
53 compilerFlags() 42 compilerFlags()
54 compilerFlagsRelease() 43 compilerFlagsRelease()
55 # compilerFlagsReleaseWindows()
56 switch("define", "mingw") 44 switch("define", "mingw")
57 buildbase.joinPath("release/windows").mkDir() 45 buildbase.joinPath("release/windows").mkDir()
58 setCommand "c" 46 setCommand "c"
59 47
60 compilerFlags() 48 compilerFlags()