-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbigwig.nimble
40 lines (28 loc) · 1.06 KB
/
bigwig.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
31
32
33
34
35
36
37
38
39
import ospaths
template thisModuleFile: string = instantiationInfo(fullPaths = true).filename
when fileExists(thisModuleFile.parentDir / "src/bigwig.nim"):
# In the git repository the Nimble sources are in a ``src`` directory.
import src/bigwigpkg/version as _
else:
# When the package is installed, the ``src`` directory disappears.
import bigwigpkg/version as _
# Package
version = bigwigVersion
author = "Brent Pedersen"
description = "ergonomic wrapper for libbigwig"
license = "MIT"
# Dependencies
requires "nimbigwig", "argparse", "hts >= 0.2.20"
srcDir = "src"
installExt = @["nim"]
bin = @["bigwig"]
skipDirs = @["tests"]
import ospaths,strutils
task test, "run the tests":
exec "nim c --lineDir:on --debuginfo -r --threads:on tests/all"
task docs, "Builds documentation":
mkDir("docs"/"bigwig")
for file in @["src/bigwig.nim", "src/bigwigpkg/lib.nim"]:
var f = file.changefileext("html").split("/")
var fn = f[f.high]
exec "nim doc2 --verbosity:0 --hints:off -o:" & "docs" /../ fn.changefileext("html") & " " & file