mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 11:34:45 +00:00
chore: add natpmp
This commit is contained in:
parent
b68e16c754
commit
d76901e932
22
config.nims
22
config.nims
@ -5,14 +5,26 @@ if defined(release):
|
|||||||
else:
|
else:
|
||||||
switch("nimcache", "nimcache/debug/$projectName")
|
switch("nimcache", "nimcache/debug/$projectName")
|
||||||
|
|
||||||
|
proc addVendorPaths(baseDir: string) =
|
||||||
|
for dir in walkDir(baseDir):
|
||||||
|
if dir.kind == pcDir:
|
||||||
|
# Add the current directory
|
||||||
|
switch("path", dir.path)
|
||||||
|
switch("path", dir.path / "src")
|
||||||
|
|
||||||
|
# If this directory has a vendor subdirectory, process it recursively
|
||||||
|
let vendorPath = dir.path / "vendor"
|
||||||
|
if dirExists(vendorPath):
|
||||||
|
addVendorPaths(vendorPath)
|
||||||
|
|
||||||
if defined(windows):
|
if defined(windows):
|
||||||
switch("passL", "rln.lib")
|
switch("passL", "rln.lib")
|
||||||
|
|
||||||
# Automatically add all vendor subdirectories
|
# Add all vendor paths starting from the root vendor directory
|
||||||
for dir in walkDir("./vendor"):
|
addVendorPaths("./vendor")
|
||||||
if dir.kind == pcDir:
|
switch("path", "./vendor/nim-nat-traversal")
|
||||||
switch("path", dir.path)
|
switch("path", "./vendor/nim-nat-traversal/vendor/libnatpmp-upstream")
|
||||||
switch("path", dir.path / "src")
|
switch("path", "./vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc")
|
||||||
|
|
||||||
# disable timestamps in Windows PE headers - https://wiki.debian.org/ReproducibleBuilds/TimestampsInPEBinaries
|
# disable timestamps in Windows PE headers - https://wiki.debian.org/ReproducibleBuilds/TimestampsInPEBinaries
|
||||||
switch("passL", "-Wl,--no-insert-timestamp")
|
switch("passL", "-Wl,--no-insert-timestamp")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user