Add build targets for nim-beacon-chain
This commit is contained in:
parent
bd9d15d947
commit
8b054858b3
14
Makefile
14
Makefile
|
@ -52,6 +52,8 @@ REPOS := $(addprefix $(REPOS_DIR)/, \
|
||||||
status-im/nim-eth-keyfile \
|
status-im/nim-eth-keyfile \
|
||||||
status-im/nim-eth-bloom \
|
status-im/nim-eth-bloom \
|
||||||
status-im/nim-bncurve \
|
status-im/nim-bncurve \
|
||||||
|
status-im/nim-confutils \
|
||||||
|
status-im/nim-beacon-chain \
|
||||||
)
|
)
|
||||||
|
|
||||||
.PHONY: all deps github-ssh build-nim update status ntags ctags nimbus test clean mrproper fetch-dlls
|
.PHONY: all deps github-ssh build-nim update status ntags ctags nimbus test clean mrproper fetch-dlls
|
||||||
|
@ -139,6 +141,18 @@ status: | $(REPOS)
|
||||||
ntags:
|
ntags:
|
||||||
ntags -R .
|
ntags -R .
|
||||||
|
|
||||||
|
beacon_node: | $(NIMBLE_DIR)
|
||||||
|
$(ENV_SCRIPT) nim c -o:build/beacon_node vendor/repos/status-im/nim-beacon-chain/beacon_chain/beacon_node.nim
|
||||||
|
|
||||||
|
validator_keygen: | $(NIMBLE_DIR)
|
||||||
|
$(ENV_SCRIPT) nim c -o:build/beacon_node vendor/repos/status-im/nim-beacon-chain/beacon_chain/validator_keygen.nim
|
||||||
|
|
||||||
|
clean_eth2_network_simulation_files:
|
||||||
|
rm -f vendor/repos/status-im/nim-beacon-chain/tests/simulation/*.json
|
||||||
|
|
||||||
|
eth2_network_simulation: | beacon_node validator_keygen clean_eth2_network_simulation_files
|
||||||
|
SKIP_BUILDS=1 $(ENV_SCRIPT) vendor/repos/status-im/nim-beacon-chain/tests/simulation/start.sh
|
||||||
|
|
||||||
#- a few files need to be excluded because they trigger an infinite loop in https://github.com/universal-ctags/ctags
|
#- a few files need to be excluded because they trigger an infinite loop in https://github.com/universal-ctags/ctags
|
||||||
#- limiting it to Nim files, because there are a lot of C files we don't care about
|
#- limiting it to Nim files, because there are a lot of C files we don't care about
|
||||||
ctags:
|
ctags:
|
||||||
|
|
1
env.sh
1
env.sh
|
@ -8,5 +8,6 @@ export PATH="${abs_path}/vendor/Nim/bin:$PATH"
|
||||||
|
|
||||||
#- Nimble needs this to be an absolute path
|
#- Nimble needs this to be an absolute path
|
||||||
export NIMBLE_DIR="${abs_path}/vendor/.nimble"
|
export NIMBLE_DIR="${abs_path}/vendor/.nimble"
|
||||||
|
export BUILD_OUTPUTS_DIR="${abs_path}/build"
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
Loading…
Reference in New Issue