Rename nimble file
This commit is contained in:
parent
e33d11c221
commit
dd0c4025f8
1 changed files with 0 additions and 0 deletions
23
sdl2.nimble
Normal file
23
sdl2.nimble
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Package
|
||||
|
||||
version = "0.1.0"
|
||||
author = "Joey Yakimowich-Payne"
|
||||
description = "SDL2 Autogenerated wrapper"
|
||||
license = "MIT"
|
||||
srcDir = "src"
|
||||
skipDirs = @["build"]
|
||||
|
||||
# Dependencies
|
||||
requires "nim >= 1.0.6", "nimterop#head", "regex"
|
||||
|
||||
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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue