mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 04:59:52 +00:00
Update boost version
This commit is contained in:
+2
-2
@@ -64,10 +64,10 @@ OCE_VERSION="0.18"
|
|||||||
OCCT_VERSION="7.2.0"
|
OCCT_VERSION="7.2.0"
|
||||||
OCCT_HASH="88af392"
|
OCCT_HASH="88af392"
|
||||||
PYTHON_VERSIONS=["2.7.12", "3.2.6", "3.3.6", "3.4.6", "3.5.3", "3.6.2"]
|
PYTHON_VERSIONS=["2.7.12", "3.2.6", "3.3.6", "3.4.6", "3.5.3", "3.6.2"]
|
||||||
BOOST_VERSION="1.59.0"
|
BOOST_VERSION="1.67.0"
|
||||||
PCRE_VERSION="8.39"
|
PCRE_VERSION="8.39"
|
||||||
LIBXML_VERSION="2.9.3"
|
LIBXML_VERSION="2.9.3"
|
||||||
CMAKE_VERSION="3.4.1"
|
CMAKE_VERSION="3.11.4"
|
||||||
ICU_VERSION="56.1"
|
ICU_VERSION="56.1"
|
||||||
SWIG_VERSION="3.0.12"
|
SWIG_VERSION="3.0.12"
|
||||||
|
|
||||||
|
|||||||
+21
-14
@@ -85,6 +85,14 @@ FOR %%i IN (powershell git cmake) DO (
|
|||||||
where.exe %%i 1> NUL 2> NUL || call cecho.cmd 0 12 "Required tool `'%%i`' not installed or not added to PATH" && goto :ErrorAndPrintUsage
|
where.exe %%i 1> NUL 2> NUL || call cecho.cmd 0 12 "Required tool `'%%i`' not installed or not added to PATH" && goto :ErrorAndPrintUsage
|
||||||
)
|
)
|
||||||
|
|
||||||
|
cmake --version | findstr version > temp.txt
|
||||||
|
set /p CMAKE_VERSION=<temp.txt
|
||||||
|
del temp.txt
|
||||||
|
if "%CMAKE_VERSION%" LSS "cmake version 3.11.4" (
|
||||||
|
echo "CMake v3.11.4 or higher is required"
|
||||||
|
goto :ErrorAndPrintUsage
|
||||||
|
)
|
||||||
|
|
||||||
:: Print build configuration information
|
:: Print build configuration information
|
||||||
|
|
||||||
call cecho.cmd 0 10 "Script configuration:"
|
call cecho.cmd 0 10 "Script configuration:"
|
||||||
@@ -141,15 +149,13 @@ cd "%DEPS_DIR%"
|
|||||||
:: by modifying this file and using goto.
|
:: by modifying this file and using goto.
|
||||||
:Boost
|
:Boost
|
||||||
:: NOTE Boost < 1.64 doesn't work without tricks if the user has only VS 2017 installed and no earlier versions.
|
:: NOTE Boost < 1.64 doesn't work without tricks if the user has only VS 2017 installed and no earlier versions.
|
||||||
set BOOST_VERSION=1.65.1
|
set BOOST_VERSION=1.67.0
|
||||||
:: DEPENDENCY_NAME is used for logging and DEPENDENCY_DIR for saving from some redundant typing
|
|
||||||
set DEPENDENCY_NAME=Boost %BOOST_VERSION%
|
|
||||||
set DEPENDENCY_DIR="%DEPS_DIR%\boost"
|
|
||||||
:: Version string with underscores instead of dots.
|
:: Version string with underscores instead of dots.
|
||||||
set BOOST_VER=%BOOST_VERSION:.=_%
|
set BOOST_VER=%BOOST_VERSION:.=_%
|
||||||
REM set BOOST_ROOT=%DEPS_DIR%\boost
|
:: DEPENDENCY_NAME is used for logging and DEPENDENCY_DIR for saving from some redundant typing
|
||||||
REM set BOOST_INCLUDEDIR=%DEPS_DIR%\boost
|
set DEPENDENCY_NAME=Boost %BOOST_VERSION%
|
||||||
set BOOST_LIBRARYDIR=%DEPS_DIR%\boost\stage\%VS_PLATFORM%\lib
|
set DEPENDENCY_DIR="%DEPS_DIR%\boost_%BOOST_VER%"
|
||||||
|
set BOOST_LIBRARYDIR=%DEPENDENCY_DIR%\stage\%VS_PLATFORM%\lib
|
||||||
:: NOTE Also zip download exists, if encountering problems with 7z for some reason.
|
:: NOTE Also zip download exists, if encountering problems with 7z for some reason.
|
||||||
set ZIP_EXT=7z
|
set ZIP_EXT=7z
|
||||||
set BOOST_ZIP=boost_%BOOST_VER%.%ZIP_EXT%
|
set BOOST_ZIP=boost_%BOOST_VER%.%ZIP_EXT%
|
||||||
@@ -157,15 +163,14 @@ set BOOST_ZIP=boost_%BOOST_VER%.%ZIP_EXT%
|
|||||||
call :DownloadFile https://dl.bintray.com/boostorg/release/%BOOST_VERSION%/source/%BOOST_ZIP% "%DEPS_DIR%" %BOOST_ZIP%
|
call :DownloadFile https://dl.bintray.com/boostorg/release/%BOOST_VERSION%/source/%BOOST_ZIP% "%DEPS_DIR%" %BOOST_ZIP%
|
||||||
|
|
||||||
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
||||||
call :ExtractArchive %BOOST_ZIP% "%DEPS_DIR%" "%DEPS_DIR%\boost"
|
call :ExtractArchive %BOOST_ZIP% "%DEPS_DIR%" "%DEPENDENCY_DIR%"
|
||||||
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
||||||
|
|
||||||
:: Build Boost build script
|
:: Build Boost build script
|
||||||
if not exist "%DEPS_DIR%\boost\project-config.jam". (
|
if not exist "%DEPENDENCY_DIR%\project-config.jam". (
|
||||||
cd "%DEPS_DIR%"
|
cd "%DEPS_DIR%"
|
||||||
ren boost_%BOOST_VER% boost
|
IF NOT EXIST "%DEPENDENCY_DIR%\boost.css" GOTO :Error
|
||||||
IF NOT EXIST "%DEPS_DIR%\boost\boost.css" GOTO :Error
|
cd "%DEPENDENCY_DIR%"
|
||||||
cd "%DEPS_DIR%\boost"
|
|
||||||
call cecho.cmd 0 13 "Building Boost build script."
|
call cecho.cmd 0 13 "Building Boost build script."
|
||||||
call bootstrap msvc
|
call bootstrap msvc
|
||||||
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
||||||
@@ -173,9 +178,9 @@ if not exist "%DEPS_DIR%\boost\project-config.jam". (
|
|||||||
|
|
||||||
set BOOST_LIBS=--with-system --with-regex --with-thread --with-program_options --with-date_time --with-iostreams --with-filesystem
|
set BOOST_LIBS=--with-system --with-regex --with-thread --with-program_options --with-date_time --with-iostreams --with-filesystem
|
||||||
:: NOTE Boost is fast to build with limited set of libraries so build it always.
|
:: NOTE Boost is fast to build with limited set of libraries so build it always.
|
||||||
cd "%DEPS_DIR%\boost"
|
cd "%DEPENDENCY_DIR%"
|
||||||
call cecho.cmd 0 13 "Building %DEPENDENCY_NAME% %BOOST_LIBS% Please be patient, this will take a while."
|
call cecho.cmd 0 13 "Building %DEPENDENCY_NAME% %BOOST_LIBS% Please be patient, this will take a while."
|
||||||
IF EXIST "%DEPS_DIR%\boost\bin.v2\project-cache.jam" del "%DEPS_DIR%\boost\bin.v2\project-cache.jam"
|
IF EXIST "%DEPENDENCY_DIR%\bin.v2\project-cache.jam" del "%DEPS_DIR%\boost\bin.v2\project-cache.jam"
|
||||||
:: BOOST_VC_VER can be empty (or needs to be) for newer VS versions
|
:: BOOST_VC_VER can be empty (or needs to be) for newer VS versions
|
||||||
set BOOST_VC_VER=
|
set BOOST_VC_VER=
|
||||||
if %VS_VER% LSS 2017 (
|
if %VS_VER% LSS 2017 (
|
||||||
@@ -186,6 +191,8 @@ call .\b2 toolset=msvc%BOOST_VC_VER% runtime-link=static address-model=%ARCH_BIT
|
|||||||
variant=%DEBUG_OR_RELEASE_LOWERCASE% %BOOST_LIBS% stage --stagedir=stage/vs%VS_VER%-%VS_PLATFORM%
|
variant=%DEBUG_OR_RELEASE_LOWERCASE% %BOOST_LIBS% stage --stagedir=stage/vs%VS_VER%-%VS_PLATFORM%
|
||||||
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
||||||
|
|
||||||
|
goto :Successful
|
||||||
|
|
||||||
:ICU
|
:ICU
|
||||||
set DEPENDENCY_NAME=ICU
|
set DEPENDENCY_NAME=ICU
|
||||||
set DEPENDENCY_DIR=N/A
|
set DEPENDENCY_DIR=N/A
|
||||||
|
|||||||
+6
-3
@@ -58,9 +58,12 @@ popd
|
|||||||
IF NOT EXIST ..\%BUILD_DIR%. mkdir ..\%BUILD_DIR%
|
IF NOT EXIST ..\%BUILD_DIR%. mkdir ..\%BUILD_DIR%
|
||||||
pushd ..\%BUILD_DIR%
|
pushd ..\%BUILD_DIR%
|
||||||
|
|
||||||
set BOOST_ROOT=%DEPS_DIR%\boost
|
:: tfk: todo remove duplication
|
||||||
REM set BOOST_INCLUDEDIR=%DEPS_DIR%\boost\boost
|
set BOOST_VERSION=1.67.0
|
||||||
set BOOST_LIBRARYDIR=%DEPS_DIR%\boost\stage\vs%VS_VER%-%VS_PLATFORM%\lib
|
set BOOST_VER=%BOOST_VERSION:.=_%
|
||||||
|
|
||||||
|
set BOOST_ROOT=%DEPS_DIR%\boost_%BOOST_VER%
|
||||||
|
set BOOST_LIBRARYDIR=%BOOST_ROOT%\stage\vs%VS_VER%-%VS_PLATFORM%\lib
|
||||||
set ICU_INCLUDE_DIR=%INSTALL_DIR%\icu\include
|
set ICU_INCLUDE_DIR=%INSTALL_DIR%\icu\include
|
||||||
set ICU_LIBRARY_DIR=%INSTALL_DIR%\icu\lib
|
set ICU_LIBRARY_DIR=%INSTALL_DIR%\icu\lib
|
||||||
if not defined OCC_INCLUDE_DIR set OCC_INCLUDE_DIR=%INSTALL_DIR%\oce\include\oce
|
if not defined OCC_INCLUDE_DIR set OCC_INCLUDE_DIR=%INSTALL_DIR%\oce\include\oce
|
||||||
|
|||||||
Reference in New Issue
Block a user