/
webview.nimble
30 lines (22 loc) · 940 Bytes
/
webview.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Package
version = "0.2.1"
author = "Francis Lavoie"
description = "Nim bindings for webview https://github.com/webview/webview"
license = "MIT"
skipDirs = @["tests"]
backend = "cpp"
srcDir = "src"
# Dependencies
requires "nim >= 1.6.10"
task docs, "generate doc":
exec "nim doc2 -o:docs/webview.html src/webview.nim"
task update_webview, "update webview.h":
exec "curl -o webview/webview.h https://raw.githubusercontent.com/webview/webview/master/webview.h"
exec "curl -o webview/README.md https://raw.githubusercontent.com/webview/webview/master/README.md"
task run_example, "running minimal example":
exec "nim cpp --run examples/minimal/minimal.nim"
task run_example2, "running minimal example":
exec "nim cpp -p:./src --cincludes:./webview --run examples/minimal/minimal.nim"
task clean, "clean tmp files":
exec "rm -rf nimcache"
exec "rm -rf tests/nimcache"