Mercurial > games > semicongine
diff config.nims @ 482:1670f8e70964
add: clean examples, update build configs
author | Sam <sam@basx.dev> |
---|---|
date | Tue, 10 Jan 2023 00:24:37 +0700 |
parents | 14e5151f68d1 |
children | b45a5d338cd0 |
line wrap: on
line diff
--- a/config.nims Tue Jan 10 00:23:40 2023 +0700 +++ b/config.nims Tue Jan 10 00:24:37 2023 +0700 @@ -19,16 +19,40 @@ switch("checks", "off") switch("assertions", "off") +proc compilerFlagsDebugWindows() = + switch("cc", "vcc") + switch("passC", "/MDd") + switch("passL", "ucrtd.lib") + +proc compilerFlagsReleaseWindows() = + switch("cc", "vcc") + switch("passC", "/MD") + switch("passL", "ucrt.lib") + task build_linux_debug, "build linux debug": - # compilerFlags() + compilerFlags() compilerFlagsDebug() buildbase.joinPath("debug/linux").mkDir() setCommand "c" task build_linux_release, "build linux release": - # compilerFlags() + compilerFlags() compilerFlagsRelease() buildbase.joinPath("release/linux").mkDir() setCommand "c" +task build_windows_debug, "build windows debug": + compilerFlags() + compilerFlagsDebug() + compilerFlagsDebugWindows() + buildbase.joinPath("debug/windows").mkDir() + setCommand "c" + +task build_windows_release, "build windows release": + compilerFlags() + compilerFlagsRelease() + compilerFlagsReleaseWindows() + buildbase.joinPath("release/windows").mkDir() + setCommand "c" + compilerFlags()