Mercurial > games > semicongine
annotate config.nims @ 481:c472abfcee57
add: generate ubermeshes
author | Sam <sam@basx.dev> |
---|---|
date | Tue, 10 Jan 2023 00:23:40 +0700 |
parents | 14e5151f68d1 |
children | 316923e9247c |
rev | line source |
---|---|
479 | 1 import os |
2 | |
3 const buildbase = "build" | |
4 | |
5 proc compilerFlags() = | |
6 switch("path", "src") | |
7 switch("mm", "orc") | |
8 switch("experimental", "strictEffects") | |
9 switch("threads", "on") | |
10 switch("app", "gui") | |
11 | |
12 proc compilerFlagsDebug() = | |
13 switch("debugger", "native") | |
14 switch("checks", "on") | |
15 switch("assertions", "on") | |
16 | |
17 proc compilerFlagsRelease() = | |
18 switch("define", "release") | |
19 switch("checks", "off") | |
20 switch("assertions", "off") | |
21 | |
22 task build_linux_debug, "build linux debug": | |
480
14e5151f68d1
did: introduce scene graph, meshs and generic vertex buffers
Sam <sam@basx.dev>
parents:
479
diff
changeset
|
23 # compilerFlags() |
479 | 24 compilerFlagsDebug() |
25 buildbase.joinPath("debug/linux").mkDir() | |
26 setCommand "c" | |
27 | |
28 task build_linux_release, "build linux release": | |
480
14e5151f68d1
did: introduce scene graph, meshs and generic vertex buffers
Sam <sam@basx.dev>
parents:
479
diff
changeset
|
29 # compilerFlags() |
479 | 30 compilerFlagsRelease() |
31 buildbase.joinPath("release/linux").mkDir() | |
32 setCommand "c" | |
480
14e5151f68d1
did: introduce scene graph, meshs and generic vertex buffers
Sam <sam@basx.dev>
parents:
479
diff
changeset
|
33 |
14e5151f68d1
did: introduce scene graph, meshs and generic vertex buffers
Sam <sam@basx.dev>
parents:
479
diff
changeset
|
34 compilerFlags() |