From 5346f7e4c6f9523b09709c6642d8f4df4a564f9d Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Tue, 11 Nov 2025 01:07:55 +0100 Subject: wrote basic compiler of each tessera --- src/tesserae.nim | 15 ++++++++++++--- 1 file 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: -- cgit v1.2.3