From 037fdc27788afcad8d3b7d2a4aaf3b29ab31d901 Mon Sep 17 00:00:00 2001 From: luxick Date: Wed, 3 Jun 2020 17:11:47 +0200 Subject: [PATCH] Output to bin directory --- randopix.nimble | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/randopix.nimble b/randopix.nimble index 78eeb7d..4c68054 100644 --- a/randopix.nimble +++ b/randopix.nimble @@ -6,16 +6,17 @@ author = "luxick" description = "Play an image slide show from different sources" license = "GPL-2.0" srcDir = "src" +binDir = "bin" bin = @["randopix", "pixctrl"] # Dependencies -requires "nim >= 1.0.0", "gintro >= 0.5.5", "argparse >=0.10.1", "jester" +requires "nim >= 1.0.0", "gintro", "argparse", "jester" task genJS, "Generate the Javascript client": - exec "nim js --out:src/resources/script.js src/pixscript.nim" + exec "nim js -o:src/resources/script.js src/pixscript.nim" task debug, "Compile debug version": - exec "nim c -d:debug --debugger:native --out:randopix src/randopix.nim" + exec "nim c -d:debug --debugger:native -o:bin/randopix src/randopix.nim" task release, "Compile release version": - exec fmt"nim c -d:release --out:randopix-{version} src/randopix.nim" + exec fmt"nim c -d:release -o:bin/randopix-{version} src/randopix.nim"