2018-01-23 00:23:07 +02:00
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
|
|
|
|
packageName = "nimbus"
|
|
|
|
version = "0.1.0"
|
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "An Ethereum 2.0 Sharding Client for Resource-Restricted Devices"
|
|
|
|
license = "Apache License 2.0"
|
2018-06-19 21:17:20 +02:00
|
|
|
skipDirs = @["tests", "examples"]
|
2018-06-20 14:12:29 +03:00
|
|
|
bin = @["nimbus/nimbus"]
|
2018-01-23 00:23:07 +02:00
|
|
|
|
2018-04-03 18:09:09 +02:00
|
|
|
requires "nim >= 0.18.1",
|
2018-05-28 13:22:28 +03:00
|
|
|
"nimcrypto",
|
|
|
|
"rlp",
|
|
|
|
"stint",
|
2018-06-24 18:39:03 +03:00
|
|
|
"rocksdb",
|
|
|
|
"eth_trie",
|
2018-05-30 19:11:15 +03:00
|
|
|
"https://github.com/status-im/nim-eth-common",
|
2018-07-20 20:02:19 +03:00
|
|
|
"json_rpc",
|
2018-06-20 20:36:03 +03:00
|
|
|
"https://github.com/status-im/nim-asyncdispatch2",
|
2018-06-16 22:14:31 +03:00
|
|
|
"eth_p2p",
|
2018-07-20 20:02:19 +03:00
|
|
|
"eth_keyfile",
|
|
|
|
"eth_keys"
|
2018-01-30 12:51:13 +02:00
|
|
|
|
2018-05-07 14:41:54 +02:00
|
|
|
proc test(name: string, lang = "c") =
|
2018-04-03 18:09:09 +02:00
|
|
|
if not dirExists "build":
|
|
|
|
mkDir "build"
|
|
|
|
if not dirExists "nimcache":
|
|
|
|
mkDir "nimcache"
|
|
|
|
--run
|
|
|
|
--nimcache: "nimcache"
|
|
|
|
switch("out", ("./build/" & name))
|
2018-08-20 16:13:32 +02:00
|
|
|
switch("experimental", "ForLoopMacros")
|
2018-04-03 18:09:09 +02:00
|
|
|
setCommand lang, "tests/" & name & ".nim"
|
2018-01-29 19:40:22 +02:00
|
|
|
|
2018-04-03 18:09:09 +02:00
|
|
|
task test, "Run tests":
|
|
|
|
test "all_tests"
|