view config.nims @ 19:b55d6ecde79d

did: introduce scene graph, meshs and generic vertex buffers
author Sam <sam@basx.dev>
date Mon, 09 Jan 2023 11:04:19 +0700
parents 90e117952f74
children 316923e9247c
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"

compilerFlags()