Commit fb8b7d9a authored by Oleg Korshul's avatar Oleg Korshul

boost fetch & build windows (not worked)

parent 93991cfa
SET SCRIPTPATH=%~dp0
CD /D %~dp0
SET platform=win_32
if defined ProgramFiles(x86) (
SET platform=win_64
)
outputdir="%SCRIPTPATH%/boost_1_58_0/build/%platform%"
echo "%outputdir%"
CD "%SCRIPTPATH%/boost_1_58_0"
call .\bootstrap.bat --with-libraries=filesystem,system
SET folder=build/%platform%
if exist "%folder%" (
RMDIR "%folder%" /S /Q
)
mkdir build
mkdir %folder%
mkdir %folder%/static
mkdir %folder%/static_fpic
mkdir %folder%/shared
.\b2 --clean
.\bjam link=static
XCOPY stage\lib\* "%folder%\static\"
.\b2 --clean
.\bjam link=static cxxflags=-fPIC
XCOPY stage\lib\* "%folder%\static_fpic\"
.\b2 --clean
.\bjam link=shared
XCOPY stage\lib\* "%folder%\shared\"
SET SCRIPTPATH=%~dp0
CD /D %~dp0
if exist "%SCRIPTPATH%/boost_1_58_0.7z" (
echo "boost already downloaded"
) 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
)
if exist "%SCRIPTPATH%/boost_1_58_0/" (
echo "boost already extracted"
) else (
call "C:\Program Files\7-Zip\7z.exe" x "%SCRIPTPATH%/boost_1_58_0.7z" -o"%SCRIPTPATH%/"
)
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