-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlsquic.nimble
More file actions
39 lines (30 loc) · 1.01 KB
/
Copy pathlsquic.nimble
File metadata and controls
39 lines (30 loc) · 1.01 KB
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
packageName = "lsquic"
version = "0.10.0"
author = "Status Research & Development GmbH"
description = "Nim wrapper around the lsquic library"
license = "MIT"
installDirs = @["libs", "scripts"]
installFiles = @["lsquic.nim"]
requires "nim >= 2.0.0"
requires "zlib"
requires "stew >= 0.4.0"
requires "chronos >= 4.0.4"
requires "unittest2"
requires "chronicles >= 0.11.0"
requires "https://github.com/vacp2p/nim-boringssl >= 0.0.11"
import std/[os, strutils, sequtils]
var flags = getEnv("NIMFLAGS", "") # Extra flags for the compiler
task format, "Format nim code using nph":
exec "nph ./. *.nim"
task test, "Run tests":
var nimc = "nim c -d:fast --threads:on " & flags
when defined(windows):
nimc &= " -d:nimDebugDlOpen"
exec nimc & " tests/test_all.nim"
exec "./tests/test_all --output-level=VERBOSE"
task test_no_asm, "Run tests without BoringSSL assembly":
flags = flags & " -d:BORINGSSL_USE_ASM=false "
testTask()
task test_release, "Run tests - release":
flags = flags & " -d:release "
testTask()