2018-02-15 12:11:01 +00:00
|
|
|
packageName = "mpint"
|
|
|
|
version = "0.0.1"
|
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "Efficient multiprecision int in Nim"
|
|
|
|
license = "MIT"
|
|
|
|
srcDir = "src"
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
2018-02-15 14:01:08 +00:00
|
|
|
requires "nim >= 0.17.2"
|
|
|
|
|
2018-02-15 14:09:58 +00:00
|
|
|
proc test(name: string, lang: string = "c") =
|
2018-02-15 14:01:08 +00:00
|
|
|
if not dirExists "build":
|
|
|
|
mkDir "build"
|
|
|
|
if not dirExists "nimcache":
|
|
|
|
mkDir "nimcache"
|
|
|
|
--run
|
|
|
|
--nimcache: "nimcache"
|
|
|
|
switch("out", ("./build/" & name))
|
|
|
|
setCommand lang, "tests/" & name & ".nim"
|
|
|
|
|
|
|
|
task test, "Run all tests":
|
2018-02-15 14:09:58 +00:00
|
|
|
test "all_tests"
|