mirror of
https://github.com/status-im/nim-rocksdb.git
synced 2025-02-23 20:38:21 +00:00
33 lines
845 B
Nim
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"
|