2019-09-30 18:23:06 +00:00
|
|
|
# Package
|
2020-03-08 18:28:15 +00:00
|
|
|
version = "0.1.5"
|
2019-09-30 18:23:06 +00:00
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "BearSSL wrapper"
|
|
|
|
license = "MIT or Apache License 2.0"
|
|
|
|
|
|
|
|
# Dependencies
|
2020-07-06 09:29:16 +00:00
|
|
|
requires "nim >= 1.2.0"
|
2021-01-13 02:10:01 +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"
|
|
|
|
|
|
|
|
exec "nim " & lang & " " & env &
|
|
|
|
" -r --hints:off --warnings:off " & path
|
|
|
|
|
|
|
|
task test, "Run tests":
|
|
|
|
exec "nim -v"
|
|
|
|
test "-d:debug", "tests/test1"
|
|
|
|
test "-d:release", "tests/test1"
|
|
|
|
test "--gc:arc -d:release", "tests/test1"
|