nimui/nimui.nimble
Joey Yakimowich-Payne acc9bb9db0 Make unix builds work
2018-08-21 12:20:27 +09:00

33 lines
No EOL
541 B
Nim

# 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"
if not detectOs(Windows):
foreignDep "libgtk-3-dev"
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"