2018-01-05 01:02:25 +00:00
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
|
|
|
|
packageName = "secp256k1"
|
|
|
|
version = "0.1.0"
|
2018-02-27 17:50:01 +00:00
|
|
|
author = "Status Research & Development GmbH"
|
2018-01-05 01:02:25 +00:00
|
|
|
description = "A wrapper for the libsecp256k1 C library"
|
2018-02-27 17:50:01 +00:00
|
|
|
license = "Apache License 2.0"
|
2018-01-05 01:02:25 +00:00
|
|
|
skipDirs = @["tests"]
|
|
|
|
|
|
|
|
requires "nim >= 0.17.0"
|
|
|
|
|
2018-03-28 10:18:36 +00:00
|
|
|
proc test(name: string, lang: string = "c") =
|
|
|
|
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 Proof-of-Work tests (without mining)":
|
|
|
|
test "test1"
|