-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsdl3_nim.nimble
More file actions
34 lines (27 loc) · 760 Bytes
/
Copy pathsdl3_nim.nimble
File metadata and controls
34 lines (27 loc) · 760 Bytes
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
32
33
34
# Package
version = "3.4.12.0"
author = "dinau"
description = "SDL3 library wrapper"
license = "MIT"
srcDir = "src"
skipDirs = @["src/sdl3_nim/private","examples"]
# Dependencies
requires "nim >= 2.0.16"
requires "nimgl == 1.3.2"
requires "stb_image == 2.5"
requires "basic2d"
#requires "futhark == 0.15.0"
import strformat
let CACHE = "--nimcache:.nimcache"
# For futhark options
var OPT_GEN:string
OPT_GEN &= CACHE
OPT_GEN &= " -d:useFuthark --maxLoopIterationsVM:50000000"
OPT_GEN &= " -d:futharkRebuild"
OPT_GEN &= " -d:nodeclguards"
task gen,"Generate SDL3 definition file ":
withdir "src":
exec("rm -fr .nimcache")
exec(fmt"nim c -c {OPT_GEN} sdl3_nim.nim")
withdir "sdl3_nim/private":
exec("make")