Commit 8c31f0e6 authored by Oleg Korshul's avatar Oleg Korshul

boost fetch & build

parent fb8b7d9a
...@@ -6,32 +6,36 @@ if defined ProgramFiles(x86) ( ...@@ -6,32 +6,36 @@ if defined ProgramFiles(x86) (
SET platform=win_64 SET platform=win_64
) )
outputdir="%SCRIPTPATH%/boost_1_58_0/build/%platform%" SET outputdir=%SCRIPTPATH%boost_1_58_0\build\%platform%
echo "%outputdir%" echo "%outputdir%"
CD "%SCRIPTPATH%/boost_1_58_0" CD "%SCRIPTPATH%\boost_1_58_0"
call .\bootstrap.bat --with-libraries=filesystem,system call .\bootstrap.bat
SET folder=build/%platform% SET folder=build/%platform%
if exist "%folder%" ( if exist "%folder%" (
RMDIR "%folder%" /S /Q RMDIR "%folder%" /S /Q
) )
mkdir build if exist "stage" (
mkdir %folder% RMDIR "stage" /S /Q
mkdir %folder%/static )
mkdir %folder%/static_fpic
mkdir %folder%/shared md build
md %folder%
md %folder%\static
md %folder%\static_fpic
md %folder%\shared
.\b2 --clean .\b2.exe --clean
.\bjam link=static .\bjam.exe link=static --with-filesystem --with-system
XCOPY stage\lib\* "%folder%\static\" XCOPY stage\lib\* "%folder%\static\"
.\b2 --clean .\b2.exe --clean
.\bjam link=static cxxflags=-fPIC .\bjam.exe link=static cxxflags=-fPIC --with-filesystem --with-system
XCOPY stage\lib\* "%folder%\static_fpic\" XCOPY stage\lib\* "%folder%\static_fpic\"
.\b2 --clean .\b2.exe --clean
.\bjam link=shared .\bjam.exe link=shared --with-filesystem --with-system
XCOPY stage\lib\* "%folder%\shared\" XCOPY stage\lib\* "%folder%\shared\"
...@@ -31,6 +31,11 @@ if [ -d $folder ]; then ...@@ -31,6 +31,11 @@ if [ -d $folder ]; then
rm -R $folder rm -R $folder
fi fi
stage="stage"
if [ -d $stage ]; then
rm -R $stage
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"
......
SET SCRIPTPATH=%~dp0 SET SCRIPTPATH=%~dp0
CD /D %~dp0 CD /D %~dp0
if exist "%SCRIPTPATH%/boost_1_58_0.7z" ( if exist "%SCRIPTPATH%boost_1_58_0.7z" (
echo "boost already downloaded" echo "boost already downloaded"
) else ( ) else (
Powershell.exe Invoke-WebRequest -OutFile boost_1_58_0.7z http://freefr.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.7z Powershell.exe Invoke-WebRequest -OutFile boost_1_58_0.7z http://freefr.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.7z
) )
if exist "%SCRIPTPATH%/boost_1_58_0/" ( SET UNSIP_PROGRAMM="C:\Program Files\7-Zip\7z.exe"
SET UNSIP_PROGRAMM2="C:\Program Files (x86)\7-Zip\7z.exe"
if exist %UNSIP_PROGRAMM2% (
SET UNSIP_PROGRAMM=%UNSIP_PROGRAMM2%
)
if exist "%SCRIPTPATH%boost_1_58_0/" (
echo "boost already extracted" echo "boost already extracted"
) else ( ) else (
call "C:\Program Files\7-Zip\7z.exe" x "%SCRIPTPATH%/boost_1_58_0.7z" -o"%SCRIPTPATH%/" call %UNSIP_PROGRAMM% x "%SCRIPTPATH%/boost_1_58_0.7z" -o"%SCRIPTPATH%/"
) )
pause pause
\ No newline at end of file
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