REM Find absolute path to ROOT_DIR
@SET PARENT_DIR=%~dp0..
@SET ROOT_DIR=
-pushd %PARENT_DIR%
+pushd %PARENT_DIR%\..
@SET ROOT_DIR=%CD%
popd
-@SET SRC_DIR=%ROOT_DIR%\sources
+@SET SRC_DIR=%ROOT_DIR%\sources\shaper
@SET OCC_LIB_PREFIX=d
call %SRC_DIR%\env_Salome.bat d
cd %ROOT_DIR%\build
REM Add -DADD_MODELS_TESTS=TRUE to enable test models
-cmake %SRC_DIR% -G "Visual Studio 10 Win64" -DPYTHON_EXECUTABLE=%PYTHONHOME%\python.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=%ROOT_DIR%\install
+cmake %SRC_DIR% -G "Visual Studio 14 Win64" -DPYTHON_EXECUTABLE=%PYTHONHOME%\python_d.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=%ROOT_DIR%\install
start "" %MSVC_EXE% SHAPER.sln
REM Find absolute path to ROOT_DIR
@SET PARENT_DIR=%~dp0..
@SET ROOT_DIR=
-pushd %PARENT_DIR%
+pushd %PARENT_DIR%\..
@SET ROOT_DIR=%CD%
popd
-@SET SRC_DIR=%ROOT_DIR%\sources
+@SET SRC_DIR=%ROOT_DIR%\sources\shaper
call %SRC_DIR%\env_Salome.bat
mkdir %ROOT_DIR%\build
cd %ROOT_DIR%\build
-cmake %SRC_DIR% -G "Visual Studio 10 Win64" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=%ROOT_DIR%\install
+REM Add -DADD_MODELS_TESTS=TRUE to enable test models
+cmake %SRC_DIR% -G "Visual Studio 14 Win64" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_INSTALL_PREFIX:PATH=%ROOT_DIR%\install
start "" %MSVC_EXE% SHAPER.sln
@echo off
-IF NOT EXIST "%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" GOTO ERROR1
+IF NOT EXIST "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" GOTO ERROR1
@REM Load local settings from file localenv.bat that should be located in the root directory
if "%ROOT_DIR%" == "" (
SET PATH=%SOLVESPACE_ROOT_DIR%\lib;%PATH%
if "%PLANEGCS_ROOT_DIR%" == "" (
- SET PLANEGCS_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\planegcs-0.16
+ SET PLANEGCS_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\planegcs-0.18
)
SET PATH=%PLANEGCS_ROOT_DIR%\lib;%PATH%
if "%BOOST_ROOT_DIR%" == "" (
if "SALOME_ROOT_DIR" == "" (
- SET BOOST_ROOT_DIR=%ROOT_DIR%\products\boost-1.52.0
+ SET BOOST_ROOT_DIR=%ROOT_DIR%\products\boost-1.67.0
) else (
- SET BOOST_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\boost-1.52.0
+ SET BOOST_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\boost-1.67.0
)
)
@REM -------------------------
@REM CASCADE
-@SET PATH=%CASROOT%;%CASROOT%\win32\bin%OCC_LIB_PREFIX%;%PATH%
-@SET LIB=%CASROOT%\win32\lib%OCC_LIB_PREFIX%;%LIB%
+@SET PATH=%CASROOT%;%CASROOT%\win64\vc14\bin%OCC_LIB_PREFIX%;%PATH%
+@SET LIB=%CASROOT%\win64\vc14\lib%OCC_LIB_PREFIX%;%LIB%
@set CSF_MDTVFontDirectory=%CASROOT%\src\FontMFT
@set CSF_LANGUAGE=us
@set MMGT_CLEAR=1
@SET PYTHON_INCLUDE=%PYTHONHOME%\include
@REM -------------------------
-
@REM -------------------------
@REM Some OCCT headers include FREETYPE headers
-@SET FREETYPE_ROOT_DIR=%PDIR%\freetype-2.4.11
+@SET FREETYPE_ROOT_DIR=%PDIR%\freetype-2.9.0
@REM -------------------------
@SET PATH=%GEOM_ROOT_DIR%\lib\salome;%PATH%
@SET _NO_DEBUG_HEAP=1
IF "%ARCH%" == "Win64" (
- call "%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" x64
+ call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x64
) ELSE (
IF "%ARCH%" == "Win32" (
- call "%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" x86
+ call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86
) ELSE (
echo Wrong architecture is used. Win32 or Win64 architecture is allowed only.
echo Refer to the set_env.bat script.