Initial version
This commit is contained in:
commit
325ef7a8d4
6 changed files with 163 additions and 0 deletions
30
nimui.nimble
Normal file
30
nimui.nimble
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Package
|
||||
|
||||
version = "0.1.0"
|
||||
author = "genotrance"
|
||||
description = "libui wrapper for Nim"
|
||||
license = "MIT"
|
||||
|
||||
skipDirs = @["tests"]
|
||||
|
||||
# Dependencies
|
||||
|
||||
requires "nimgen >= 0.4.0"
|
||||
|
||||
import distros
|
||||
|
||||
var cmd = ""
|
||||
var ldpath = ""
|
||||
var ext = ""
|
||||
if detectOs(Windows):
|
||||
cmd = "cmd /c "
|
||||
ext = ".exe"
|
||||
|
||||
task setup, "Download and generate":
|
||||
exec cmd & "nimgen nimui.cfg"
|
||||
|
||||
before install:
|
||||
setupTask()
|
||||
|
||||
task test, "Test nimui":
|
||||
exec "nim cpp --app:gui tests/tui.nim"
|
||||
Loading…
Add table
Add a link
Reference in a new issue