forked from trustwallet/wallet-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·47 lines (37 loc) · 1.11 KB
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
#
# Initializes the workspace with dependencies, then performs full build
# Fail if any commands fails
set -e
source tools/parse_args "$@"
if isHelp; then
echo "usage: bootstrap.sh [-h | --help] [all | wasm | android | ios]"
echo ""
echo "Installs dependencies and prepares WalletCore for building"
exit 0
fi
echo "#### Installing system dependencies ... ####"
if [[ $(uname) == "Darwin" ]]; then
tools/install-sys-dependencies-mac
else
tools/install-sys-dependencies-linux
fi
echo "#### Installing C++ libraries ... ####"
tools/install-dependencies
echo "#### Installing Rust toolchain and tools ... ####"
tools/install-rust-dependencies dev
# WASM
if isTargetSpecified "wasm"; then
echo "#### Installing WASM environment ... ####"
tools/install-wasm-dependencies
fi
# Android
if isTargetSpecified "android"; then
echo "#### Installing Android dependencies ... ####"
tools/install-android-dependencies
fi
echo "#### Generating files... ####"
tools/generate-files "$@"
echo ""
echo "WalletCore is ready for development!"
echo "Consider running native C++ tests via './tools/build-and-test'"