-
Notifications
You must be signed in to change notification settings - Fork 0
/
steam.nimble
32 lines (25 loc) · 952 Bytes
/
steam.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
# Package
version = "0.0.2"
author = "levshx"
description = "Steam library"
license = "MIT License"
srcDir = "src"
# Dependencies
requires "nim >= 1.6.0"
requires "bigints == 1.0.0"
when defined(nimdistros):
import distros
if detectOs(Ubuntu):
foreignDep "libssl-dev"
else:
foreignDep "openssl"
task test, "Run the Nimble tester!":
withDir "tests":
exec "nim c -r tester unittests::*"
task docs, "Generate docs!":
exec "nim doc --project --index:on --git.url:https://github.com/levshx/nim-steam --git.commit:devel --outdir:docs/html src/steam.nim"
exec "nim rst2html --index:on --git.url:https://github.com/levshx/nim-steam --git.commit:devel --outdir:docs/html docs/*.rst"
exec "nim buildIndex --project -o:docs/html/index.html docs"
exec "nim buildIndex --project -o:docs/html/theindex.html docs"
task webapi, "Build webapi without API key":
exec "nim c -r webapibuilder.nim -keyless"