pixie/pixie.nimble

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-03-22 03:05:34 +00:00
version = "4.1.0"
2020-11-20 02:45:43 +00:00
author = "Andre von Houck and Ryan Oldenburg"
description = "Full-featured 2d graphics library for Nim."
license = "MIT"
srcDir = "src"
2022-01-25 22:48:01 +00:00
requires "nim >= 1.4.8"
requires "vmath >= 1.1.0"
2021-03-12 03:39:21 +00:00
requires "chroma >= 0.2.5"
2022-03-18 05:41:44 +00:00
requires "zippy >= 0.9.7"
2022-02-13 20:54:30 +00:00
requires "flatty >= 0.2.4"
2021-01-27 08:07:21 +00:00
requires "nimsimd >= 1.0.0"
2021-03-26 21:10:11 +00:00
requires "bumpy >= 1.0.3"
2021-02-27 21:41:00 +00:00
2021-08-24 22:31:35 +00:00
task bindings, "Generate bindings":
2021-09-06 18:18:27 +00:00
proc compile(libName: string, flags = "") =
2021-09-06 18:25:34 +00:00
exec "nim c -f " & flags & " -d:release --app:lib --gc:arc --tlsEmulation:off --out:" & libName & " --outdir:bindings/generated bindings/bindings.nim"
2021-09-06 18:18:27 +00:00
2021-08-27 03:33:27 +00:00
when defined(windows):
2021-09-06 18:18:27 +00:00
compile "pixie.dll"
2021-08-27 03:33:27 +00:00
elif defined(macosx):
2022-02-06 05:41:58 +00:00
compile "libpixie.dylib.arm", "--cpu:arm64 -l:'-target arm64-apple-macos11' -t:'-target arm64-apple-macos11'"
compile "libpixie.dylib.x64", "--cpu:amd64 -l:'-target x86_64-apple-macos10.12' -t:'-target x86_64-apple-macos10.12'"
2021-09-06 18:18:27 +00:00
exec "lipo bindings/generated/libpixie.dylib.arm bindings/generated/libpixie.dylib.x64 -output bindings/generated/libpixie.dylib -create"
2021-08-27 03:33:27 +00:00
else:
2021-09-06 18:18:27 +00:00
compile "libpixie.so"