mirror of
https://github.com/vacp2p/nim-ngtcp2.git
synced 2026-01-09 21:18:07 -05:00
fix: .nimble
This commit is contained in:
@@ -7,3 +7,23 @@ installDirs = @["libs", "build"]
|
||||
installFiles = @["ngtcp2.nim"]
|
||||
|
||||
requires "nim >= 1.6.0"
|
||||
|
||||
template build() =
|
||||
when defined(windows):
|
||||
echo "TODO"
|
||||
else:
|
||||
exec "./build_libs.sh"
|
||||
|
||||
before install:
|
||||
build()
|
||||
|
||||
task format, "Format nim code using nph":
|
||||
exec "nimble install nph"
|
||||
exec "nph ."
|
||||
|
||||
task test, "Run tests":
|
||||
build()
|
||||
when defined(windows):
|
||||
exec "nim c -d:nimDebugDlOpen -r --threads:on tests/testNgtcp2.nim"
|
||||
else:
|
||||
exec "nim c -r --threads:on tests/testNgtcp2.nim"
|
||||
|
||||
Reference in New Issue
Block a user