nim-rocksdb/rocksdb.nimble
2025-01-29 12:18:59 +08:00

33 lines
845 B
Nim

packageName = "rocksdb"
version = "9.10.0.0"
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"
skipDirs = @["examples", "tests"]
mode = ScriptMode.Verbose
installDirs = @["build"]
### Dependencies
requires "nim >= 2.0", "results", "tempfile", "unittest2"
template build() =
when defined(windows):
exec ".\\scripts\\build_dlls_windows.bat"
else:
exec "scripts/build_static_deps.sh"
before install:
build()
task format, "Format nim code using nph":
exec "nimble install nph"
exec "nph ."
task test, "Run tests":
build()
when defined(windows):
exec "nim c -d:nimDebugDlOpen -r --threads:on tests/test_all.nim"
else:
exec "nim c -r --threads:on tests/test_all.nim"