Specify some binaries in the nimble file

This commit is contained in:
Zahary Karadjov 2022-03-30 18:59:09 +03:00
parent 262f7b0826
commit 69cc7c0c13
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@ requires "nim >= 1.2.0",
"stew",
"stint"
binDir = "build"
namedBin = {
"nimbus/nimbus": "nimbus",
"fluffy/fluffy": "fluffy",
"fluffy/tools/portalcli": "portalcli",
}.toTable()
proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
if not dirExists "build":
mkDir "build"