2018-01-27 17:18:38 +01:00
|
|
|
packageName = "rocksdb"
|
2018-06-25 02:13:10 +03:00
|
|
|
version = "0.2.0"
|
2018-01-27 17:18:38 +01:00
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "A wrapper for Facebook's RocksDB, an embeddable, persistent key-value store for fast storage"
|
|
|
|
license = "Apache License 2.0 or GPLv2"
|
2018-07-04 15:09:03 +03:00
|
|
|
skipDirs = @["examples", "tests"]
|
2018-01-27 17:18:38 +01:00
|
|
|
|
|
|
|
### Dependencies
|
2018-06-25 02:13:10 +03:00
|
|
|
requires "nim >= 0.18.1",
|
2019-01-11 00:39:17 +01:00
|
|
|
"ranges",
|
|
|
|
"tempfile"
|
2018-02-04 00:55:41 +01:00
|
|
|
|
|
|
|
proc test(name: string, lang: string = "c") =
|
|
|
|
if not dirExists "build":
|
2018-02-05 22:19:33 +01:00
|
|
|
mkDir "build"
|
2018-02-04 00:55:41 +01:00
|
|
|
if not dirExists "nimcache":
|
|
|
|
mkDir "nimcache"
|
|
|
|
--run
|
|
|
|
--nimcache: "nimcache"
|
|
|
|
switch("out", ("./build/" & name))
|
2019-01-11 00:39:17 +01:00
|
|
|
--threads: on
|
2018-02-04 00:55:41 +01:00
|
|
|
setCommand lang, "tests/" & name & ".nim"
|
|
|
|
|
2019-01-11 00:39:17 +01:00
|
|
|
task test, "Run tests":
|
|
|
|
test "all"
|
2018-06-25 02:13:10 +03:00
|
|
|
|