3 @REM Load local settings from file localenv.bat that should be located in the root directory
4 if "%ROOT_DIR%" == "" (
8 if exist "%ROOT_DIR%\localenv.bat" (
9 echo Setting local environment from %ROOT_DIR%\localenv.bat
10 call "%ROOT_DIR%\localenv.bat"
12 echo Warning: file %ROOT_DIR%\localenv.bat does not exist; using default environment
15 if "%SALOME_ROOT_DIR%" == "" (
16 set SALOME_ROOT_DIR=%ROOT_DIR%\SALOME
19 if "%PLANEGCS_ROOT_DIR%" == "" (
20 SET PLANEGCS_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\planegcs-0.18
22 SET PATH=%PLANEGCS_ROOT_DIR%\lib;%PATH%
24 if "%EIGEN_ROOT_DIR%" == "" (
25 SET EIGEN_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\eigen-3.2.7
28 if "%BOOST_ROOT_DIR%" == "" (
29 if "SALOME_ROOT_DIR" == "" (
30 SET BOOST_ROOT_DIR=%ROOT_DIR%\products\boost-1.67.0
32 SET BOOST_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\boost-1.67.0
36 cd /d %SALOME_ROOT_DIR%\WORK
40 call "%PDIR%\env_launch.bat"
42 call "%PDIR%\env_compile.bat"
47 @REM -------------------------
49 @SET PYTHON_LIB_DIR=%PYTHON_ROOT_DIR%\libs
50 @SET PYTHON_INC_DIR=%PYTHON_ROOT_DIR%\include
51 @REM -------------------------
53 @REM -------------------------
55 @SET PATH=%CASROOT%;%CASROOT%\win64\vc14\bin%OCC_LIB_PREFIX%;%PATH%
56 @SET LIB=%CASROOT%\win64\vc14\lib%OCC_LIB_PREFIX%;%LIB%
57 @set CSF_MDTVFontDirectory=%CASROOT%\src\FontMFT
60 @set CSF_EXCEPTION_PROMPT=1
61 @set CSF_SHMessage=%CASROOT%\src\SHMessage
62 @set CSF_MDTVTexturesDirectory=%CASROOT%\src\Textures
63 @set CSF_XSMessage=%CASROOT%\src\XSMessage
64 @set CSF_StandardDefaults=%CASROOT%\src\StdResource
65 @set CSF_PluginDefaults=%CASROOT%\src\StdResource
66 @set CSF_XCAFDefaults=%CASROOT%\src\StdResource
67 @set CSF_StandardLiteDefaults=%CASROOT%\src\StdResource
68 @set CSF_UnitsLexicon=%CASROOT%\src\UnitsAPI\Lexi_Expr.dat
69 @set CSF_UnitsDefinition=%CASROOT%\src\UnitsAPI\Units.dat
70 @set CSF_IGESDefaults=%CASROOT%\src\XSTEPResource
71 @set CSF_STEPDefaults=%CASROOT%\src\XSTEPResource
72 @set CSF_XmlOcafResource=%CASROOT%\src\XmlOcafResource
73 @REM -------------------------
75 @REM -------------------------
76 @SET PYTHONHOME=%PYTHON_ROOT_DIR%
77 @SET PYTHON_INCLUDE=%PYTHONHOME%\include
78 @REM -------------------------
80 @REM -------------------------
81 @REM Some OCCT headers include FREETYPE headers
82 @SET FREETYPE_ROOT_DIR=%PDIR%\freetype-2.9.0
83 @REM -------------------------
85 @SET PATH=%GEOM_ROOT_DIR%\lib\salome;%PATH%
89 @SET VC_VERSION_SHORT=15
90 for /f "tokens=1,2*" %%a in ('reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7" /v "%VC_VERSION_SHORT%.0" 2^>nul') do set "VSPATH=%%c"
91 IF NOT EXIST "%VSPATH%\VC\Auxiliary\Build\vcvarsall.bat" GOTO ERROR1
93 if exist "%VSPATH%\Common7\IDE\devenv.exe" (
95 ) else if exist "%VSPATH%\Common7\IDE\VCExpress.exe" (
96 SET msvc_exe=VCExpress
100 call "%VSPATH%\VC\Auxiliary\Build\vcvarsall.bat" x64 > NUL
102 @SET SHAPER_ROOT_DIR=%ROOT_DIR%\install
103 @SET PATH=%SHAPER_ROOT_DIR%\lib\salome;%PATH%
104 REM @SET PYTHONPATH=%SHAPER_ROOT_DIR%\lib\python2.7\site-packages\salome\salome;%PYTHONPATH%
105 REM @SET PYTHONPATH=%SHAPER_ROOT_DIR%\bin\salome;%PYTHONPATH%
107 @SET LightAppConfig=%SHAPER_ROOT_DIR%\share\salome\resources\shaper;%GUI_ROOT_DIR%\share\salome\resources\gui
112 ECHO "Visual Studio environment file is not found."