libp2p-dht/config.nims

26 lines
793 B
Plaintext
Raw Normal View History

2023-07-11 22:19:45 +00:00
import std/os
const currentDir = currentSourcePath()[0 .. ^(len("config.nims") + 1)]
2022-07-05 09:12:49 +00:00
switch("define", "libp2p_pki_schemes=secp256k1")
2023-07-11 22:19:45 +00:00
task testAll, "Run DHT tests":
exec "nim c -r tests/testAll.nim"
task test, "Run DHT tests":
testAllTask()
when getEnv("NIMBUS_BUILD_SYSTEM") == "yes" and
# BEWARE
# In Nim 1.6, config files are evaluated with a working directory
# matching where the Nim command was invocated. This means that we
# must do all file existance checks with full absolute paths:
system.fileExists(currentDir & "nimbus-build-system.paths"):
echo "Using Nimbus Paths"
include "nimbus-build-system.paths"
elif fileExists("nimble.paths"):
echo "Using Nimble Paths"
# begin Nimble config (version 1)
2022-07-05 09:12:49 +00:00
include "nimble.paths"
2023-07-11 22:19:45 +00:00
# end Nimble config