3 IF NOT EXIST "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" GOTO ERROR1
5 @REM Load local settings from file localenv.bat that should be located in the root directory
6 if "%ROOT_DIR%" == "" (
10 if exist "%ROOT_DIR%\localenv.bat" (
11 echo Setting local environment from %ROOT_DIR%\localenv.bat
12 call "%ROOT_DIR%\localenv.bat"
14 echo Warning: file %ROOT_DIR%\localenv.bat does not exist; using default environment
17 if "%SALOME_ROOT_DIR%" == "" (
18 set SALOME_ROOT_DIR=%ROOT_DIR%\SALOME
21 if "%SOLVESPACE_ROOT_DIR%" == "" (
22 SET SOLVESPACE_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\solvespace-2.1
24 SET PATH=%SOLVESPACE_ROOT_DIR%\lib;%PATH%
26 if "%PLANEGCS_ROOT_DIR%" == "" (
27 SET PLANEGCS_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\planegcs-0.18
29 SET PATH=%PLANEGCS_ROOT_DIR%\lib;%PATH%
31 if "%EIGEN_ROOT_DIR%" == "" (
32 SET EIGEN_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\eigen-3.2.7
35 if "%BOOST_ROOT_DIR%" == "" (
36 if "SALOME_ROOT_DIR" == "" (
37 SET BOOST_ROOT_DIR=%ROOT_DIR%\products\boost-1.67.0
39 SET BOOST_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\boost-1.67.0
43 cd /d %SALOME_ROOT_DIR%\WORK
45 call "%PDIR%\env_compile.bat"
48 @REM -------------------------
50 @SET PYTHON_LIB_DIR=%PYTHON_ROOT_DIR%\libs
51 @SET PYTHON_INC_DIR=%PYTHON_ROOT_DIR%\include
52 @REM -------------------------
54 @REM -------------------------
56 @SET PATH=%CASROOT%;%CASROOT%\win64\vc14\bin%OCC_LIB_PREFIX%;%PATH%
57 @SET LIB=%CASROOT%\win64\vc14\lib%OCC_LIB_PREFIX%;%LIB%
58 @set CSF_MDTVFontDirectory=%CASROOT%\src\FontMFT
61 @set CSF_EXCEPTION_PROMPT=1
62 @set CSF_SHMessage=%CASROOT%\src\SHMessage
63 @set CSF_MDTVTexturesDirectory=%CASROOT%\src\Textures
64 @set CSF_XSMessage=%CASROOT%\src\XSMessage
65 @set CSF_StandardDefaults=%CASROOT%\src\StdResource
66 @set CSF_PluginDefaults=%CASROOT%\src\StdResource
67 @set CSF_XCAFDefaults=%CASROOT%\src\StdResource
68 @set CSF_StandardLiteDefaults=%CASROOT%\src\StdResource
69 @set CSF_UnitsLexicon=%CASROOT%\src\UnitsAPI\Lexi_Expr.dat
70 @set CSF_UnitsDefinition=%CASROOT%\src\UnitsAPI\Units.dat
71 @set CSF_IGESDefaults=%CASROOT%\src\XSTEPResource
72 @set CSF_STEPDefaults=%CASROOT%\src\XSTEPResource
73 @set CSF_XmlOcafResource=%CASROOT%\src\XmlOcafResource
74 @REM -------------------------
76 @REM -------------------------
77 @SET PYTHONHOME=%PYTHON_ROOT_DIR%
78 @SET PYTHON_INCLUDE=%PYTHONHOME%\include
79 @REM -------------------------
81 @REM -------------------------
82 @REM Some OCCT headers include FREETYPE headers
83 @SET FREETYPE_ROOT_DIR=%PDIR%\freetype-2.9.0
84 @REM -------------------------
86 @SET PATH=%GEOM_ROOT_DIR%\lib\salome;%PATH%
90 IF "%ARCH%" == "Win64" (
91 call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x64
93 IF "%ARCH%" == "Win32" (
94 call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86
96 echo Wrong architecture is used. Win32 or Win64 architecture is allowed only.
97 echo Refer to the set_env.bat script.
101 @SET SHAPER_ROOT_DIR=%ROOT_DIR%\install
102 @SET PATH=%SHAPER_ROOT_DIR%\lib\salome;%PATH%
103 REM @SET PYTHONPATH=%SHAPER_ROOT_DIR%\lib\python2.7\site-packages\salome\salome;%PYTHONPATH%
104 REM @SET PYTHONPATH=%SHAPER_ROOT_DIR%\bin\salome;%PYTHONPATH%
106 @SET LightAppConfig=%SHAPER_ROOT_DIR%\share\salome\resources\shaper;%GUI_ROOT_DIR%\share\salome\resources\gui