Refactor module structure

This commit is contained in:
Joey Yakimowich-Payne 2020-04-12 08:45:01 -06:00
commit 22b746bcda
16 changed files with 91 additions and 87 deletions

21
sdl2.nimble Normal file
View file

@ -0,0 +1,21 @@
# Package
version = "0.1.0"
author = "Joey Yakimowich-Payne"
description = "SDL2 Autogenerated wrapper"
license = "MIT"
srcDir = "src"
# Dependencies
requires "nim >= 1.0.6", "nimterop#head"
when gorgeEx("nimble path nimterop").exitCode == 0:
import nimterop/docs
task docs, "Generate docs": buildDocs(@["src/sdl2.nim"], "build/htmldocs")
else:
task docs, "Do nothing": discard
task buildSDL2, "Build SDL2 example":
exec "nimble c -f -r src/sdl2_all.nim"