2021-05-03 01:15:46 +00:00
|
|
|
version = "0.5.7"
|
2020-10-14 01:03:19 +00:00
|
|
|
author = "Ryan Oldenburg"
|
2020-11-19 01:42:16 +00:00
|
|
|
description = "Pure Nim implementation of deflate, zlib, gzip and zip."
|
2020-10-14 01:03:19 +00:00
|
|
|
license = "MIT"
|
|
|
|
|
|
|
|
srcDir = "src"
|
|
|
|
|
|
|
|
requires "nim >= 1.0.0"
|
2021-05-28 02:57:23 +00:00
|
|
|
|
|
|
|
### Helper functions
|
|
|
|
proc test(env, path: string) =
|
|
|
|
# Compilation language is controlled by TEST_LANG
|
|
|
|
var lang = "c"
|
|
|
|
if existsEnv"TEST_LANG":
|
|
|
|
lang = getEnv"TEST_LANG"
|
|
|
|
|
|
|
|
if not dirExists "build":
|
|
|
|
mkDir "build"
|
|
|
|
|
|
|
|
exec "nim " & lang & " " & env &
|
|
|
|
" -r --hints:off --warnings:off " & path
|
|
|
|
|
|
|
|
task test, "Run all tests":
|
|
|
|
test "-d:debug", "tests/test_all"
|
|
|
|
test "-d:release", "tests/test_all"
|
|
|
|
test "--threads:on -d:release", "tests/test_all"
|
|
|
|
|
|
|
|
task testvcc, "Run all tests with vcc compiler":
|
|
|
|
test "--cc:vcc -d:debug", "tests/test_all"
|
|
|
|
test "--cc:vcc -d:release", "tests/test_all"
|
|
|
|
test "--cc:vcc --threads:on -d:release", "tests/test_all"
|