diff options
| author | aethrvmn <me@aethrvmn.gr> | 2025-11-11 00:07:55 +0000 |
|---|---|---|
| committer | aethrvmn <me@aethrvmn.gr> | 2025-11-11 00:07:55 +0000 |
| commit | 5346f7e4c6f9523b09709c6642d8f4df4a564f9d (patch) | |
| tree | d5bbc69ea59008db9db300b3d2bb8541a7b6ea07 /src/tesserae.nim | |
| parent | made base implementation for macro (diff) | |
wrote basic compiler of each tessera
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: |
