chore: final setup for local build and test

This commit is contained in:
darshankabariya 2026-01-05 23:56:58 +05:30
parent 9d1786e3da
commit 7d8fbd3d74
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22
2 changed files with 8 additions and 2 deletions

View File

@ -88,15 +88,22 @@ waku.nims:
# This is the ONLY target that should install/update Nimble packages
update: | waku.nims
@echo -e $(INFO_MSG) "Updating vendor submodules..."
git submodule update --init vendor/zerokit vendor/waku-rlnv2-contract vendor/nph vendor/nim-ffi
git submodule update --init --recursive
@echo -e $(INFO_MSG) "Installing/updating Nimble dependencies..."
nimble install --depsOnly -y
@echo -e $(INFO_MSG) "Setting up Nimble paths..."
nimble setup
@echo -e $(INFO_MSG) "Building nph formatter..."
$(MAKE) build-nph
@echo -e $(INFO_MSG) "Update complete!"
clean:
@echo -e $(INFO_MSG) "Cleaning build artifacts..."
rm -rf build
@echo -e $(INFO_MSG) "Cleaning Nimble package cache..."
rm -rf ~/.nimble/pkgs2/*
rm -rf ~/.nimble/pkgcache/*
@echo -e $(INFO_MSG) "Clean complete!"
## Possible values: prod; debug
TARGET ?= prod

View File

@ -123,7 +123,6 @@ if defined(android):
switch("passL", "--sysroot=" & sysRoot)
switch("cincludes", sysRoot & "/usr/include/")
# begin Nimble config (version 2)
--noNimblePath
when withDir(thisDir(), system.fileExists("nimble.paths")):
include "nimble.paths"
# end Nimble config