-
Notifications
You must be signed in to change notification settings - Fork 10
/
nimPDF.nimble
31 lines (26 loc) · 901 Bytes
/
nimPDF.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
packageName = "nimPDF"
version = "0.4.3"
author = "Andri Lim"
description = "PDF document generation library written in nim"
license = "MIT"
skipDirs = @["new feature", "demo", "docs"]
requires: "nim >= 0.18.1"
requires: "nimBMP >= 0.1.0"
requires: "nimPNG >= 0.1.0"
requires: "nimSHA2 >= 0.1.0"
requires: "nimAES >= 0.1.0"
requires: "stb_image >= 2.1"
### Helper functions
proc test(env, path: string) =
# Compilation language is controlled by TEST_LANG
var lang = "c"
if existsEnv"TEST_LANG":
lang = getEnv"TEST_LANG"
exec "nim " & lang & " " & env &
" -r --hints:off --warnings:off " & path
task test, "Run all tests":
withDir("demo"):
test "--warning[LockLevel]:off --path:../nimPDF -d:release", "test_all"
task testvcc, "Run all tests":
withDir("demo"):
test "--cc:vcc --warning[LockLevel]:off --path:../nimPDF -d:release", "test_all"