From 8b054858b3a373d0330e07e5eff1a845636a2921 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 9 Jan 2019 03:05:54 +0200 Subject: [PATCH] Add build targets for nim-beacon-chain --- Makefile | 14 ++++++++++++++ env.sh | 1 + 2 files changed, 15 insertions(+) diff --git a/Makefile b/Makefile index def9fcd9a..d87ee7e8e 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,8 @@ REPOS := $(addprefix $(REPOS_DIR)/, \ status-im/nim-eth-keyfile \ status-im/nim-eth-bloom \ 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 @@ -139,6 +141,18 @@ status: | $(REPOS) ntags: 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 #- limiting it to Nim files, because there are a lot of C files we don't care about ctags: diff --git a/env.sh b/env.sh index 7000c1a7e..2585e9128 100755 --- a/env.sh +++ b/env.sh @@ -8,5 +8,6 @@ export PATH="${abs_path}/vendor/Nim/bin:$PATH" #- Nimble needs this to be an absolute path export NIMBLE_DIR="${abs_path}/vendor/.nimble" +export BUILD_OUTPUTS_DIR="${abs_path}/build" exec "$@"