-
Notifications
You must be signed in to change notification settings - Fork 0
/
haxdoc.nimble
60 lines (54 loc) · 1.43 KB
/
haxdoc.nimble
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version = "0.1.2"
author = "haxscramper"
description = "Nim documentation generator"
license = "Apache-2.0"
srcDir = "src"
installExt = @["nim"]
backend = "cpp"
requires "hnimast#head"
requires "haxorg"
requires "nimtrail >= 0.1.1"
requires "nim >= 1.4.0"
requires "hmisc#head"
requires "hpprint >= 0.2.12"
requires "hcparse#head"
requires "fusion"
requires "cxxstd"
requires "nimtraits#head"
requires "nimble <= 0.13.0"
requires "flatty >= 0.2.2"
requires "supersnappy >= 2.1.1"
before install:
# Whatever, I'm too tired of fighting nimble over my local installation
# 'local dependencies' will be added 'stometimes later', so for now I
# just have this hack. Don't care, works for me.
exec("nimble -y install 'https://github.com/haxscramper/nimspell.git'")
exec("nimble -y install 'https://github.com/haxscramper/cxxstd.git'")
exec("nimble -y install 'https://github.com/haxscramper/nimtrail.git'")
exec("nimble -y install 'https://github.com/haxscramper/haxorg.git'")
task dockertest, "Run test in docker container":
exec("""
hmisc-putils \
dockertest \
--projectDir:$(pwd) \
-lfusion \
-lbenchy \
-lcligen \
-lcompiler \
-lhmisc \
-lhasts \
-lhdrawing \
-lregex \
-lnimble \
-lhnimast \
-lhpprint \
-lnimtraits \
-lunicodeplus \
-lhcparse \
-lnimspell \
-lcxxstd \
-lhaxorg \
-lnimtrail
""")
task docgen, "Generate documentation":
exec("hmisc-putils docgen")