Refactor module structure
This commit is contained in:
parent
e0e4cc81bf
commit
22b746bcda
16 changed files with 91 additions and 87 deletions
21
sdl2.nimble
Normal file
21
sdl2.nimble
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue