nimbus-eth1/nimbus.nimble

51 lines
1.5 KiB
Plaintext
Raw Normal View History

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"
skipDirs = @["tests", "examples"]
# we can't have the result of a custom task in the "bin" var - https://github.com/nim-lang/nimble/issues/542
# bin = @["build/nimbus"]
2020-04-24 07:29:15 +00:00
requires "nim >= 1.2.0",
"bncurve",
"chronicles",
"chronos",
"eth",
"json_rpc",
"libbacktrace",
"nimcrypto",
"stew",
"stint"
2018-01-30 10:51:13 +00:00
proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
if not dirExists "build":
mkDir "build"
# allow something like "nim nimbus --verbosity:0 --hints:off nimbus.nims"
var extra_params = params
for i in 2..<paramCount():
extra_params &= " " & paramStr(i)
exec "nim " & lang & " --out:build/" & name & " " & extra_params & " " & srcDir & name & ".nim"
proc test(name: string, lang = "c") =
buildBinary name, "tests/", "-d:chronicles_log_level=ERROR"
2019-09-05 17:26:16 +00:00
exec "build/" & name
task test, "Run tests":
test "all_tests"
2019-02-21 23:02:31 +00:00
test "test_rpc"
2019-04-24 20:45:29 +00:00
test "test_rpc_whisper"
task nimbus, "Build Nimbus":
buildBinary "nimbus", "nimbus/", "-d:chronicles_log_level=TRACE"
2020-01-14 22:35:47 +00:00
task wakunode, "Build Waku node":
2019-12-12 18:40:34 +00:00
buildBinary "wakunode", "waku/", "-d:chronicles_log_level=TRACE"
2020-01-14 22:35:47 +00:00
task wakusim, "Build Waku simulation tools":
2020-01-14 22:35:47 +00:00
buildBinary "quicksim", "waku/", "-d:chronicles_log_level=INFO"
buildBinary "start_network", "waku/", "-d:chronicles_log_level=DEBUG"