-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·34 lines (27 loc) · 819 Bytes
/
setup.sh
File metadata and controls
executable file
·34 lines (27 loc) · 819 Bytes
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
#!/bin/bash
if [ -d include/ ]; then
echo "include/ already exists"
exit 0
fi
if [ -f /var/db/jenkins/flight-computer-boost.zip ]; then
unzip -q /var/db/jenkins/flight-computer-boost.zip
exit 0
fi
# Download boost
curl -L https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.gz --output boost.tar.gz
tar -xzf boost.tar.gz
# Copy libraries
mkdir include
cp -r boost_1_65_1/boost/ include/boost/
# Compile boost filesystem and program options
cd boost_1_65_1
./bootstrap.sh --with-libraries=program_options,filesystem,test,thread,date_time,regex,serialization,system
./b2 link=static
cp -r stage/lib ../
cd ..
rm -rf boost_1_65_1
rm -rf boost.tar.gz
# Remove libraries that get built and we dont need
rm lib/*boost_prg_exec_monitor*
rm lib/*boost_test_exec_monitor*
rm lib/*boost_timer*