Improve .gitignore and nimble of the package

This commit is contained in:
mratsim 2018-03-14 23:10:46 +01:00
parent 5db1458218
commit 3ffbf4f3d5
2 changed files with 9 additions and 3 deletions

2
.gitignore vendored
View File

@ -7,3 +7,5 @@ build/
*.dylib
*.a
*.la
*.exe
*.dll

View File

@ -3,13 +3,16 @@ version = "0.0.1"
author = "Status Research & Development GmbH"
description = "Create a Status Nim project skeleton"
license = "Apache License 2.0 or MIT"
srcDir = "src"
# This is a pure binary package, only install the binary
bin = @["src/nimbusLaunch"]
installDirs = @[""]
### Dependencies
requires "nim >= 0.18.0", "https://github.com/c-blake/cligen#head"
proc test(name: string, lang: string = "cpp") =
### Helper functions
proc test(name: string, defaultLang = "c") =
if not dirExists "build":
mkDir "build"
if not dirExists "nimcache":
@ -19,5 +22,6 @@ proc test(name: string, lang: string = "cpp") =
switch("out", ("./build/" & name))
setCommand lang, "tests/" & name & ".nim"
### tasks
task test, "Run all tests":
test "all_tests"