forked from ciphrex/mSIGNA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-libs.sh
executable file
·88 lines (69 loc) · 1.53 KB
/
install-libs.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
for OPTION in $@
do
case $OPTION in
linux)
if [[ ! -z "$OS" ]]; then echo "OS cannot be set twice"; exit 1; fi
OS=linux
OPTIONS="OS=linux $OPTIONS"
;;
mingw64)
if [[ ! -z "$OS" ]]; then echo "OS cannot be set twice"; exit 1; fi
OS=mingw64
OPTIONS="OS=mingw64 $OPTIONS"
;;
osx)
if [[ ! -z "$OS" ]]; then echo "OS cannot be set twice"; exit 1; fi
OS=osx
OPTIONS="OS=osx $OPTIONS"
;;
sqlite)
if [[ ! -z "$DB" ]]; then echo "DB cannot be set twice"; exit 1; fi
DB=sqlite
OPTIONS="DB=sqlite $OPTIONS"
;;
mysql)
if [[ ! -z "$DB" ]]; then echo "DB cannot be set twice"; exit 1; fi
DB=mysql
OPTIONS="DB=mysql $OPTIONS"
;;
debug)
if [[ ! -z "$BUILD_TYPE" ]]; then echo "Build type cannot be set twice"; exit 2; fi
BUILD_TYPE=debug
OPTIONS="DEBUG=1 $OPTIONS"
;;
release)
if [[ ! -z "$BUILD_TYPE" ]]; then echo "Build type cannot be set twice"; exit 2; fi
BUILD_TYPE=release
;;
*)
OPTIONS="$OPTIONS $OPTION"
esac
done
# Use release as default build type
if [[ -z "$BUILD_TYPE" ]]
then
BUILD_TYPE=release
fi
CURRENT_DIR=$(pwd)
set -x
set -e
cd deps/logger
make $OPTIONS
make install
cd ../Signals
make install
cd ../stdutils
make install
cd ../sysutils
make $OPTIONS
make install
cd ../CoinCore
make $OPTIONS
make install
cd ../CoinQ
make $OPTIONS
make install
cd ../CoinDB
make lib $OPTIONS
make install_lib