nimbus-eth1/nimbus.nimble

45 lines
1.3 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"]
2019-02-05 19:15:50 +00:00
requires "nim >= 0.19",
"chronicles",
2018-05-28 10:22:28 +00:00
"nimcrypto",
"stint",
"json_rpc",
"asyncdispatch2",
2019-02-05 19:15:50 +00:00
"bncurve",
"https://github.com/status-im/nim-eth",
"std_shims"
2018-01-30 10:51:13 +00:00
proc buildBinary(name: string, srcDir = ".", lang = "c") =
if not dirExists "build": mkDir "build"
switch("out", ("./build/" & name))
setCommand lang, srcDir & name & ".nim"
proc test(name: string, lang = "c") =
--define:"chronicles_log_level=ERROR"
--run
buildBinary name, "tests/"
task test, "Run tests":
test "all_tests"
2019-01-09 11:41:18 +00:00
# debugging tools don't yet have tests
# but they should be compilable
2019-01-11 06:53:18 +00:00
exec "nim c premix/premix"
exec "nim c premix/persist"
exec "nim c premix/debug"
exec "nim c premix/dumper"
exec "nim c premix/hunter"
task nimbus, "Build Nimbus":
buildBinary "nimbus", "nimbus/"