Improve .gitignore and nimble of the package
This commit is contained in:
parent
5db1458218
commit
3ffbf4f3d5
|
@ -7,3 +7,5 @@ build/
|
|||
*.dylib
|
||||
*.a
|
||||
*.la
|
||||
*.exe
|
||||
*.dll
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue