pixie/pixie.nimble
Ryan Oldenburg 6aaf1b01c6 f
2021-08-26 22:33:27 -05:00

27 lines
802 B
Nim

version = "2.1.1"
author = "Andre von Houck and Ryan Oldenburg"
description = "Full-featured 2d graphics library for Nim."
license = "MIT"
srcDir = "src"
requires "nim >= 1.2.6"
requires "vmath >= 1.0.8"
requires "chroma >= 0.2.5"
requires "zippy >= 0.6.0"
requires "flatty >= 0.2.2"
requires "nimsimd >= 1.0.0"
requires "bumpy >= 1.0.3"
task docs, "Generate API documents":
exec "nim doc --index:on --project --out:docs --hints:off src/pixie.nim"
task bindings, "Generate bindings":
when defined(windows):
const libName = "pixie.dll"
elif defined(macosx):
const libName = "libpixie.dylib"
else:
const libName = "libpixie.so"
exec "nim c -f -d:release --app:lib --gc:arc --tlsEmulation:off --out:" & libName & " --outdir:bindings/generated bindings/bindings.nim"