nim-sdl2/sdl2.nimble
Joey Yakimowich-Payne ecb3893453 Use nimterop head
2020-09-12 11:10:21 -06:00

30 lines
819 B
Nim

# Package
version = "0.3.0"
author = "Joey Yakimowich-Payne"
description = "SDL2 Autogenerated wrapper"
license = "MIT"
srcDir = "src"
skipDirs = @["build"]
# Dependencies
requires "nim >= 1.0.6", "https://github.com/jyapayne/nimterop#head"
when gorgeEx("nimble path nimterop").exitCode == 0:
import nimterop/docs
task docs, "Generate docs":
buildDocs(@["src/sdl2.nim", "src/sdl2/sdl2_gpu.nim"], "build/htmldocs")
cpFile("build/htmldocs/dochack.js", "build/htmldocs/sdl2/dochack.js")
else:
task docs, "Do nothing": discard
task buildSDL2, "Build SDL2 example":
exec "nimble c -f -r src/sdl2.nim"
exec "nimble c -f -r src/sdl2/sdl2_gpu.nim"
task test, "Test":
buildSDL2Task()
# Doc building doesn't work on linux yet
when not defined(linux):
docsTask()