mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-22 21:02:56 +00:00
36 lines
1.0 KiB
Nim
36 lines
1.0 KiB
Nim
# nim-zlib
|
|
# Copyright (c) 2021 Status Research & Development GmbH
|
|
# Licensed under either of
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT))
|
|
# at your option.
|
|
# This file may not be copied, modified, or distributed except according to
|
|
# those terms.
|
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
packageName = "zlib"
|
|
version = "0.1.0"
|
|
author = "Status Research & Development GmbH"
|
|
description = "zlib wrapper in nim"
|
|
license = "Apache License 2.0"
|
|
skipDirs = @["tests"]
|
|
|
|
requires "nim >= 1.2.0"
|
|
requires "stew >= 0.1.0"
|
|
|
|
# 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")
|
|
|
|
exec "nim " & lang & " " & env &
|
|
" -r --hints:off --skipParentCfg --styleCheck:usages --styleCheck:error " & 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"
|