Mercurial > games > semicongine
view config.nims @ 487:c59b730da866
did: update gitignore
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 11 Jan 2023 11:43:59 +0700 |
parents | b4a972bd37d5 |
children | 94c38e4b5782 |
line wrap: on
line source
import os const buildbase = "build" proc compilerFlags() = switch("path", "src") switch("mm", "orc") switch("experimental", "strictEffects") switch("threads", "on") switch("app", "gui") proc compilerFlagsDebug() = switch("debugger", "native") switch("checks", "on") switch("assertions", "on") proc compilerFlagsRelease() = switch("define", "release") switch("checks", "off") switch("assertions", "off") task build_linux_debug, "build linux debug": compilerFlags() compilerFlagsDebug() buildbase.joinPath("debug/linux").mkDir() setCommand "c" task build_linux_release, "build linux release": compilerFlags() compilerFlagsRelease() buildbase.joinPath("release/linux").mkDir() setCommand "c" task build_windows_debug, "build windows debug": compilerFlags() compilerFlagsDebug() switch("define", "mingw") buildbase.joinPath("debug/windows").mkDir() setCommand "c" task build_windows_release, "build windows release": compilerFlags() compilerFlagsRelease() switch("define", "mingw") buildbase.joinPath("release/windows").mkDir() setCommand "c" compilerFlags()