-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathnimedit.nims
More file actions
32 lines (25 loc) · 780 Bytes
/
nimedit.nims
File metadata and controls
32 lines (25 loc) · 780 Bytes
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
31
32
#switch("path", "$projectPath/..")
switch("path", "$lib/packages/docutils")
switch("path", "$lib/../")
#switch("path", "../sdl2/src")
--threads:on
--define: booting
--define:useStdoutAsStdmsg
when defined(windows):
--app:gui
#--noNimblePath
import ospaths
include version
task installer, "Build the installer":
mkDir "build"
let cmd = when defined(windows): "inno" else: "xz"
exec "niminst".toExe & " --var:version=" & Version & " " &
cmd & " installer.ini"
when defined(macosx):
mvFile("build/nimedit-" & Version & ".tar.xz",
"build/nimedit-" & Version & "-mac.tar.xz")
setCommand "nop"
task docs, "Build the documentation":
exec "nim doc2 nimscript/editor.nim"
exec "nim doc2 nimscript/common.nim"
setCommand "rst2html", "docs.rst"