mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-27 23:27:27 +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:
|
||||
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):
|
||||
switch("passL", "rln.lib")
|
||||
|
||||
# Automatically add all vendor subdirectories
|
||||
for dir in walkDir("./vendor"):
|
||||
if dir.kind == pcDir:
|
||||
switch("path", dir.path)
|
||||
switch("path", dir.path / "src")
|
||||
# Add all vendor paths starting from the root vendor directory
|
||||
addVendorPaths("./vendor")
|
||||
switch("path", "./vendor/nim-nat-traversal")
|
||||
switch("path", "./vendor/nim-nat-traversal/vendor/libnatpmp-upstream")
|
||||
switch("path", "./vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc")
|
||||
|
||||
# disable timestamps in Windows PE headers - https://wiki.debian.org/ReproducibleBuilds/TimestampsInPEBinaries
|
||||
switch("passL", "-Wl,--no-insert-timestamp")
|
||||
|
Loading…
x
Reference in New Issue
Block a user