3 IF NOT EXIST "%VS100COMNTOOLS%..\..\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=%ROOT_DIR%\products\solvespace-2.0
24 SET PATH=%SOLVESPACE_ROOT_DIR%\lib;%PATH%
26 cd %SALOME_ROOT_DIR%\WORK
28 call "%PDIR%\env_compile.bat"
31 @REM -------------------------
33 @SET PYTHON_LIB_DIR=%PYTHON_ROOT_DIR%\libs
34 @SET PYTHON_INC_DIR=%PYTHON_ROOT_DIR%\include
35 @REM -------------------------
37 @REM -------------------------
39 @SET PATH=%CASROOT%;%CASROOT%\win32\bin%OCC_LIB_PREFIX%;%PATH%
40 @SET LIB=%CASROOT%\win32\lib%OCC_LIB_PREFIX%;%LIB%
41 @set CSF_MDTVFontDirectory=%CASROOT%\src\FontMFT
44 @set CSF_EXCEPTION_PROMPT=1
45 @set CSF_SHMessage=%CASROOT%\src\SHMessage
46 @set CSF_MDTVTexturesDirectory=%CASROOT%\src\Textures
47 @set CSF_XSMessage=%CASROOT%\src\XSMessage
48 @set CSF_StandardDefaults=%CASROOT%\src\StdResource
49 @set CSF_PluginDefaults=%CASROOT%\src\StdResource
50 @set CSF_XCAFDefaults=%CASROOT%\src\StdResource
51 @set CSF_StandardLiteDefaults=%CASROOT%\src\StdResource
52 @set CSF_UnitsLexicon=%CASROOT%\src\UnitsAPI\Lexi_Expr.dat
53 @set CSF_UnitsDefinition=%CASROOT%\src\UnitsAPI\Units.dat
54 @set CSF_IGESDefaults=%CASROOT%\src\XSTEPResource
55 @set CSF_STEPDefaults=%CASROOT%\src\XSTEPResource
56 @set CSF_XmlOcafResource=%CASROOT%\src\XmlOcafResource
57 @REM -------------------------
59 @REM -------------------------
60 @SET PYTHONHOME=%PYTHON_ROOT_DIR%
61 @SET PYTHON_INCLUDE=%PYTHONHOME%\include
62 @REM -------------------------
65 @REM -------------------------
66 @REM Some OCCT headers include FREETYPE headers
67 @SET FREETYPE_ROOT_DIR=%PDIR%\freetype-2.4.11
68 @REM -------------------------
70 @SET PATH=%GEOM_ROOT_DIR%\lib\salome;%PATH%
74 IF "%ARCH%" == "Win64" (
75 call "%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" x64
77 IF "%ARCH%" == "Win32" (
78 call "%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" x86
80 echo Wrong architecture is used. Win32 or Win64 architecture is allowed only.
81 echo Refer to the set_env.bat script.
85 @SET NEW_GEOM_CONFIG_FILE=%ROOT_DIR%\install\plugins
86 @SET NEWGEOM_ROOT_DIR=%ROOT_DIR%\install
87 @SET PATH=%NEWGEOM_ROOT_DIR%\swig;%NEWGEOM_ROOT_DIR%\plugins;%NEWGEOM_ROOT_DIR%\bin;%PATH%
88 @SET PYTHONPATH=%NEWGEOM_ROOT_DIR%\swig;%NEWGEOM_ROOT_DIR%\plugins;%NEWGEOM_ROOT_DIR%\addons;%NEWGEOM_ROOT_DIR%\pythonAPI;%PYTHONPATH%
90 @SET LightAppConfig=%%NEWGEOM_ROOT_DIR%\share\salome\resources\newgeom;%GUI_ROOT_DIR%\share\salome\resources\gui
91 @SET NewGeomResources=%NEWGEOM_ROOT_DIR%\resources