Commit cb798f59 authored by Alexey Golubev's avatar Alexey Golubev

Skip fetch and build boost if it already done

parent 0c4b3b78
...@@ -24,32 +24,30 @@ outputdir="$SCRIPTPATH/boost_1_58_0/build/$platform$arch" ...@@ -24,32 +24,30 @@ outputdir="$SCRIPTPATH/boost_1_58_0/build/$platform$arch"
echo $outputdir echo $outputdir
cd "$SCRIPTPATH/boost_1_58_0" cd "$SCRIPTPATH/boost_1_58_0"
./bootstrap.sh --with-libraries=filesystem,system,date_time,regex
folder="build/$platform$arch" folder="build/$platform$arch"
if [ -d $folder ]; then if [ ! -d $folder ]; then
rm -R $folder ./bootstrap.sh --with-libraries=filesystem,system,date_time,regex
fi
stage="stage" stage="stage"
if [ -d $stage ]; then if [ -d $stage ]; then
rm -R $stage rm -R $stage
fi fi
mkdir -p "$folder" mkdir -p "$folder"
mkdir -p "$folder/static" mkdir -p "$folder/static"
mkdir -p "$folder/static_fpic" mkdir -p "$folder/static_fpic"
mkdir -p "$folder/shared" mkdir -p "$folder/shared"
./b2 --clean ./b2 --clean
./bjam link=static ./bjam link=static
cp stage/lib/* "$folder/static/" cp stage/lib/* "$folder/static/"
./b2 --clean ./b2 --clean
./bjam link=static cxxflags=-fPIC ./bjam link=static cxxflags=-fPIC
cp stage/lib/* "$folder/static_fpic/" cp stage/lib/* "$folder/static_fpic/"
./b2 --clean
./bjam link=shared
cp stage/lib/* "$folder/shared/"
./b2 --clean
./bjam link=shared
cp stage/lib/* "$folder/shared/"
fi
...@@ -29,7 +29,7 @@ else ...@@ -29,7 +29,7 @@ else
wget http://freefr.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.7z wget http://freefr.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.7z
fi fi
if [ -d "$SCRIPTPATH/boost" ]; then if [ -d "$SCRIPTPATH/boost_1_58_0" ]; then
echo "boost already extracted" echo "boost already extracted"
else else
if [[ "$platform" == *"linux"* ]] if [[ "$platform" == *"linux"* ]]
......
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