-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.boost.sh
executable file
·43 lines (32 loc) · 1.27 KB
/
build.boost.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
#!/bin/bash
remote=$(git config --get remote.origin.url)
echo "remote repository: $remote"
sleep 4
if [ "$remote" == "https://github.com/pedro-vicente/nostr_client_relay.git" ]; then
git clone -b boost-1.82.0 --recursive --depth=1 https://github.com/boostorg/boost.git ext/boost_1_82_0
fi
sleep 4
pushd ext
pushd boost_1_82_0
if [[ "$OSTYPE" == "msys" ]]; then
./bootstrap.bat
./b2 --prefix=. --layout=versioned --toolset=msvc-14.3 address-model=64 architecture=x86 variant=debug threading=multi link=static runtime-link=shared install
elif [[ "$OSTYPE" == "darwin"* ]]; then
./bootstrap.sh --prefix=`pwd`
./b2 --prefix=`pwd` variant=release
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
./bootstrap.sh
./b2 --prefix=. variant=release
fi
popd
popd
#The Boost C++ Libraries were successfully built!
#The following directory should be added to compiler include paths:
#/Users/pvn/git/nostro_web/boost_1_82_0
#The following directory should be added to linker library paths:
#/Users/pvn/git/nostro_web/boost_1_82_0/stage/lib
#The Boost C++ Libraries were successfully built!
#The following directory should be added to compiler include paths:
#/home/pvn/git/nostro_web/boost_1_82_0
#The following directory should be added to linker library paths:
#/home/pvn/git/nostro_web/boost_1_82_0/stage/lib