diff --git a/.gitignore b/.gitignore index e0b7a1b..ef56d28 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ build/ *.dylib *.a *.la +*.exe +*.dll diff --git a/nimbusLaunch.nimble b/nimbusLaunch.nimble index e6820e2..25f2cbc 100644 --- a/nimbusLaunch.nimble +++ b/nimbusLaunch.nimble @@ -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"