2018-07-05 08:39:04 +00:00
|
|
|
version = "0.1.0"
|
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "Ethereum smart contracts in Nim"
|
|
|
|
license = "Apache License 2.0"
|
|
|
|
skipDirs = @["examples"]
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
2018-08-10 15:12:18 +00:00
|
|
|
requires "nim >= 0.18.1", "stint"
|
2018-07-05 08:39:04 +00:00
|
|
|
|
|
|
|
proc buildExample(name: string) =
|
|
|
|
exec "nim c --out:examples/" & name & ".wasm examples/" & name
|
|
|
|
exec "./postprocess.sh examples/" & name & ".wasm"
|
|
|
|
|
|
|
|
task examples, "Build examples":
|
|
|
|
buildExample("test")
|