comparison config.nims @ 21:316923e9247c

add: clean examples, update build configs
author Sam <sam@basx.dev>
date Tue, 10 Jan 2023 00:24:37 +0700
parents b55d6ecde79d
children b45a5d338cd0
comparison
equal deleted inserted replaced
20:beb86492b178 21:316923e9247c
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
22 task build_linux_debug, "build linux debug": 32 task build_linux_debug, "build linux debug":
23 # compilerFlags() 33 compilerFlags()
24 compilerFlagsDebug() 34 compilerFlagsDebug()
25 buildbase.joinPath("debug/linux").mkDir() 35 buildbase.joinPath("debug/linux").mkDir()
26 setCommand "c" 36 setCommand "c"
27 37
28 task build_linux_release, "build linux release": 38 task build_linux_release, "build linux release":
29 # compilerFlags() 39 compilerFlags()
30 compilerFlagsRelease() 40 compilerFlagsRelease()
31 buildbase.joinPath("release/linux").mkDir() 41 buildbase.joinPath("release/linux").mkDir()
32 setCommand "c" 42 setCommand "c"
33 43
44 task build_windows_debug, "build windows debug":
45 compilerFlags()
46 compilerFlagsDebug()
47 compilerFlagsDebugWindows()
48 buildbase.joinPath("debug/windows").mkDir()
49 setCommand "c"
50
51 task build_windows_release, "build windows release":
52 compilerFlags()
53 compilerFlagsRelease()
54 compilerFlagsReleaseWindows()
55 buildbase.joinPath("release/windows").mkDir()
56 setCommand "c"
57
34 compilerFlags() 58 compilerFlags()