fix: .nimble

This commit is contained in:
Richard Ramos
2025-07-09 13:10:38 -04:00
parent 4ae842614f
commit 2a473ad4c6

View File

@@ -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"