diff options
Diffstat (limited to '')
| -rw-r--r-- | src/tesserae.nim | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/tesserae.nim b/src/tesserae.nim index 11f2fe0..e89c965 100644 --- a/src/tesserae.nim +++ b/src/tesserae.nim @@ -1,11 +1,20 @@ -import os +import std / [ os, osproc, strformat, strutils ] + # This is just an example to get you started. A typical binary package # uses this file as the main entry point of the application. proc main() = # relative=true removes the folder name # for example tesserae/test -> test - for tessera in walkDir("tesserae", relative=true, checkDir=true): - echo tessera + #let buildFiles = @[] + for file in walkDir("tesserae", checkDir=true): + if file.path.endsWith(".nim"): + echo "Found {file.path}".fmt + echo "Compiling..." + let output = execCmd("nim c -d:release --outdir:/mosaic/panel {file.path}".fmt) + # echo output + echo "" + + when isMainModule: |
