nim-ttmath/ttmath.nimble

24 lines
796 B
Plaintext
Raw Permalink Normal View History

2018-02-07 16:09:10 +00:00
packageName = "ttmath"
2018-02-20 13:04:35 +00:00
version = "0.5.0"
2018-02-07 16:09:10 +00:00
author = "Status Research & Development GmbH"
description = "A Nim wrapper for ttmath: big numbers with fixed size"
license = "Apache License 2.0"
### Dependencies
requires "nim >= 1.6.12"
2018-02-07 16:09:10 +00:00
proc test(args, path: string) =
if not dirExists "build":
mkDir "build"
exec "nim cpp " & getEnv("NIMFLAGS") & " " & args &
" --outdir:build -r --hints:off --warnings:off --skipParentCfg" &
" --styleCheck:usages --styleCheck:error " & path
if (NimMajor, NimMinor) > (1, 6):
exec "nim cpp " & getEnv("NIMFLAGS") & " " & args &
" --outdir:build -r --mm:refc --hints:off --warnings:off --skipParentCfg" &
" --styleCheck:usages --styleCheck:error " & path
task test, "Run all tests":
test "", "tests/test1"