forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/add-how-to
- Loading branch information
Showing
106 changed files
with
4,307 additions
and
2,585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ build/* | |
.vscode/* | ||
.idea/* | ||
*xcworkspace* | ||
.vscode/* | ||
*cmake-build-debug* | ||
cmake-build-debu/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# Run this script inside 'iroha-dev' docker container to build iroha and its dependencies! | ||
|
||
error(){ | ||
echo "[Error] $1" | ||
exit 1 | ||
} | ||
|
||
|
||
if [ -z ${IROHA_HOME} ]; then | ||
error "Empty variable IROHA_HOME" | ||
fi | ||
|
||
|
||
# build dependencies | ||
(cd $IROHA_HOME/core/vendor/leveldb && make -j4) || error "Can't build leveldb submodule" | ||
(cd $IROHA_HOME/core/vendor/ed25519 && make -j4) || error "Can't build ed25519 submodule" | ||
(cd $IROHA_HOME/core/vendor/KeccakCodePackage && \ | ||
make -j4 && \ | ||
make -j4 generic64/libkeccak.a) || error "Can't build KeccakCodePackage submodule" | ||
(cd $IROHA_HOME/core/infra/crypto && make -j4) || error "Can't build crypto submodule" | ||
|
||
# build iroha (important: build using single thread!) | ||
(cd $IROHA_HOME && \ | ||
(mkdir $IROHA_HOME/build || echo "[+] build directory already exists, rebuilding") && \ | ||
cd $IROHA_HOME/build && \ | ||
cmake .. && \ | ||
make ) || error "Can't build iroha" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.