- Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathpixie.nimble
More file actions
Latest commit
31 lines (24 loc) · 1.08 KB
/
Copy pathpixie.nimble
File metadata and controls
31 lines (24 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version ="6.1.0"
author ="Andre von Houck and Ryan Oldenburg"
description ="Full-featured 2d graphics library for Nim."
license ="MIT"
srcDir ="src"
requires"nim >= 2.0.0"
requires"vmath >= 3.0.0"
requires"chroma >= 1.0.0"
requires"zippy >= 0.10.16"
requires"flatty >= 0.3.4"
requires"nimsimd >= 1.3.2"
requires"bumpy >= 1.1.3"
requires"crunchy >= 0.1.11"
task bindings, "Generate bindings":
proccompile(libName: string, flags ="") =
exec"nim c -f "& flags &" -d:release --app:lib --gc:arc --tlsEmulation:off --out:"& libName &" --outdir:bindings/generated bindings/bindings.nim"
whendefined(windows):
compile"pixie.dll"
elifdefined(macosx):
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'"
exec"lipo bindings/generated/libpixie.dylib.arm bindings/generated/libpixie.dylib.x64 -output bindings/generated/libpixie.dylib -create"
else:
compile"libpixie.so"