aboutsummaryrefslogtreecommitdiff
path: root/src/tesserae.nim
blob: e89c965a3c64235a4d50d70deaa3519a4e56fefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
  #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:
  echo("Hello, World!")
  main()
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.