Commit ff835906 authored by Oleg Korshul's avatar Oleg Korshul

boost fetch & build

parent cf2aaa04
......@@ -2,6 +2,7 @@ build/
dictionaries/
LicenceManager/
Common/boost_1_58_0
Common/3dParty/boost/boost_1_58_0
**/Release
**/Debug
*.user
......
#!/bin/bash
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
os=$(uname -s)
platform=""
case "$os" in
Linux*) platform="linux" ;;
Darwin*) platform="mac" ;;
*) exit ;;
esac
architecture=$(uname -m)
arch=""
case "$architecture" in
x86_64*) arch="_64" ;;
*) arch="_32" ;;
esac
outputdir="$SCRIPTPATH/boost_1_58_0/build/$platform$arch"
echo $outputdir
cd "$SCRIPTPATH/boost_1_58_0"
./bootstrap.sh --with-libraries=filesystem,system
folder="build/$platform$arch"
if [ -d $folder ]; then
rm -R $folder
fi
mkdir -p "$folder"
mkdir -p "$folder/static"
mkdir -p "$folder/static_fpic"
mkdir -p "$folder/shared"
./b2 --clean
./bjam link=static
cp stage/lib/* "$folder/static/"
./b2 --clean
./bjam link=static cxxflags=-fPIC
cp stage/lib/* "$folder/static_fpic/"
./b2 --clean
./bjam link=shared
cp stage/lib/* "$folder/shared/"
#!/bin/bash
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
if [[ -f "$SCRIPTPATH/boost_1_58_0.7z" ]]
then
echo "boost already downloaded"
else
wget http://freefr.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.7z
fi
if [ -d "$SCRIPTPATH/boost" ]; then
echo "boost already extracted"
else
7z x "$SCRIPTPATH/boost_1_58_0.7z" -o"$SCRIPTPATH/"
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment