3 echo ##########################################################################
5 echo ##########################################################################
7 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
8 REM clean BUILD directory
9 if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
15 echo --------------------------------------------------------------------------
16 echo *** Extracting distribution
17 echo --------------------------------------------------------------------------
19 call :NORMALIZEPATH "boost*exe"
20 set installer=%RETVAL%
21 if not exist "%installer%" (
22 echo "ERROR no installer found."
26 echo Installer : %installer%
28 call %installer% /SILENT /SP- /NOICONS /NOCANCEL /NORESTART /DIR="%BUILD_DIR%" /LOG="%BUILD_DIR%\boost_install.log"
29 if NOT %ERRORLEVEL% == 0 (
30 echo "ERROR on extraction."
35 echo --------------------------------------------------------------------------
37 echo --------------------------------------------------------------------------
43 set target_inc=%PRODUCT_INSTALL%\include\boost-1_58\boost
45 if NOT %ERRORLEVEL% == 0 (
46 echo ERROR when creating include directory : %target_inc%
50 robocopy %BUILD_DIR%\boost %target_inc% /E /NP /NFL /NDL /NS /NC
51 if NOT %ERRORLEVEL% == 1 (
52 echo ERROR when copying include
58 set target_lib=%PRODUCT_INSTALL%\lib
60 if NOT %ERRORLEVEL% == 0 (
61 echo ERROR when creating lib directory : %target_lib%
65 rem Visual studio 2010 specific
66 robocopy %BUILD_DIR%\lib64-msvc-10.0 %target_lib% /E /NP /NFL /NDL /NS /NC
67 if NOT %ERRORLEVEL% == 1 (
68 echo ERROR when copying lib
75 :: ========== FUNCTIONS ==========