compiler.nimble 523 B

1234567891011121314151617181920212223242526272829
  1. include "../lib/system/compilation.nim"
  2. version = $NimMajor & "." & $NimMinor & "." & $NimPatch
  3. author = "Andreas Rumpf"
  4. description = "Compiler package providing the compiler sources as a library."
  5. license = "MIT"
  6. skipDirs = @["."]
  7. installDirs = @["compiler"]
  8. import os
  9. var compilerDir = ""
  10. before install:
  11. rmDir("compiler")
  12. let
  13. files = listFiles(".")
  14. dirs = listDirs(".")
  15. mkDir("compiler")
  16. for f in files:
  17. cpFile(f, "compiler" / f)
  18. for d in dirs:
  19. cpDir(d, "compiler" / d)
  20. requires "nim"