Mercurial > games > semicongine
annotate config.nims @ 24:71bbe11d8de8
did: change shader compilation to run during program compilation, maybe add dynamic version later
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 11 Jan 2023 11:15:02 +0700 |
parents | b45a5d338cd0 |
children | 94c38e4b5782 |
rev | line source |
---|---|
18 | 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": | |
21
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
23 compilerFlags() |
18 | 24 compilerFlagsDebug() |
25 buildbase.joinPath("debug/linux").mkDir() | |
26 setCommand "c" | |
27 | |
28 task build_linux_release, "build linux release": | |
21
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
29 compilerFlags() |
18 | 30 compilerFlagsRelease() |
31 buildbase.joinPath("release/linux").mkDir() | |
32 setCommand "c" | |
19
b55d6ecde79d
did: introduce scene graph, meshs and generic vertex buffers
Sam <sam@basx.dev>
parents:
18
diff
changeset
|
33 |
21
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
34 task build_windows_debug, "build windows debug": |
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
35 compilerFlags() |
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
36 compilerFlagsDebug() |
22
b45a5d338cd0
did: improve alotof_triangles example, remove glslang lib, use only binary, easier cross-compilation
Sam <sam@basx.dev>
parents:
21
diff
changeset
|
37 switch("define", "mingw") |
21
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
38 buildbase.joinPath("debug/windows").mkDir() |
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
39 setCommand "c" |
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
40 |
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
41 task build_windows_release, "build windows release": |
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
42 compilerFlags() |
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
43 compilerFlagsRelease() |
22
b45a5d338cd0
did: improve alotof_triangles example, remove glslang lib, use only binary, easier cross-compilation
Sam <sam@basx.dev>
parents:
21
diff
changeset
|
44 switch("define", "mingw") |
21
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
45 buildbase.joinPath("release/windows").mkDir() |
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
46 setCommand "c" |
316923e9247c
add: clean examples, update build configs
Sam <sam@basx.dev>
parents:
19
diff
changeset
|
47 |
19
b55d6ecde79d
did: introduce scene graph, meshs and generic vertex buffers
Sam <sam@basx.dev>
parents:
18
diff
changeset
|
48 compilerFlags() |