2018-01-27 16:18:38 +00:00
|
|
|
packageName = "rocksdb"
|
2024-03-05 03:12:37 +00:00
|
|
|
version = "0.4.0"
|
2018-01-27 16:18:38 +00: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 12:09:03 +00:00
|
|
|
skipDirs = @["examples", "tests"]
|
2022-03-22 09:02:39 +00:00
|
|
|
mode = ScriptMode.Verbose
|
2018-01-27 16:18:38 +00:00
|
|
|
|
|
|
|
### Dependencies
|
2024-03-05 03:12:37 +00:00
|
|
|
requires "nim >= 1.6",
|
2024-03-27 06:18:21 +00:00
|
|
|
"results",
|
2024-03-05 03:12:37 +00:00
|
|
|
"tempfile",
|
|
|
|
"unittest2"
|
2018-02-03 23:55:41 +00:00
|
|
|
|
2024-03-27 06:18:21 +00:00
|
|
|
task clean, "Remove temporary files":
|
|
|
|
exec "rm -rf build"
|
|
|
|
exec "make -C vendor/rocksdb clean"
|
2018-02-03 23:55:41 +00:00
|
|
|
|
2019-01-10 23:39:17 +00:00
|
|
|
task test, "Run tests":
|
2024-03-27 06:18:21 +00:00
|
|
|
exec "nim c -r --threads:on tests/test_all.nim"
|
2018-06-24 23:13:10 +00:00
|
|
|
|
2024-03-27 06:18:21 +00:00
|
|
|
task test_static, "Run tests after static linking dependencies":
|
|
|
|
when not defined(windows):
|
|
|
|
exec "scripts/build_static_deps.sh"
|
|
|
|
exec "nim c -d:rocksdb_static_linking -r --threads:on tests/test_all.nim"
|