-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtim.nimble
More file actions
42 lines (34 loc) · 1.21 KB
/
tim.nimble
File metadata and controls
42 lines (34 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Package
version = "0.2.0"
author = "OpenPeeps"
description = "A super fast template engine for cool kids!"
license = "LGPLv3"
srcDir = "src"
skipDirs = @["example", "editors", "bindings"]
installExt = @["nim"]
bin = @["tim"]
binDir = "bin"
# Dependencies
requires "nim >= 2.0.0"
requires "kapsis#head"
requires "flatty"
requires "checksums"
requires "nyml#head"
requires "semver"
requires "dotenv"
requires "voodoo#head"
requires "watchout#head"
requires "openparser#head"
requires "https://github.com/openpeeps/vancode#head"
task dev, "build a dev version":
exec "nimble build --mm:orc -d:useMalloc"
task napi, "build a dev version":
exec "denim build src/tim.nim --cmake -y"
task devlog, "build a dev version":
exec "nimble build --mm:arc -d:hayaVmWriteStackOps -d:hayaVmWritePcFlow -d:timLogCodeGen -d:useMalloc"
import std/os
task build_examples, "build examples":
for e in walkDir(currentSourcePath().parentDir / "example"):
let x = e.path.splitFile
if x.name.startsWith("example_") and x.ext == ".nim" and not x.name.startsWith("!"):
exec "nim c -d:timHotCode --threads:on --deepcopy:on --mm:arc -o:./example/" & x.name & " example/" & x.name & x.ext