3 @REM Load local settings from file localenv.bat that should be located in the root directory
4 if "%ROOT_DIR%" == "" (
7 if exist "%ROOT_DIR%\localenv.bat" (
8 echo Setting local environment from %ROOT_DIR%\localenv.bat
9 call "%ROOT_DIR%\localenv.bat"
11 echo Warning: file %ROOT_DIR%\localenv.bat does not exist; using default environment
14 rem --------------- Configuration --------------
16 rem --------------- Products path --------------
18 set PDIR=%ROOT_DIR%\products
21 rem --------------- cmake 2.8.7 --------------
22 if "%CMAKEDIR%" == "" (
23 set CMAKEDIR=%PDIR%\cmake-2.8.10.2
25 set PATH=%CMAKEDIR%\bin;%PATH%
27 @REM -------------------------
29 @SET CAS_ROOT_DIR=%PDIR%\OCCT-6.8.0
30 @SET CASROOT=%CAS_ROOT_DIR%
31 @REM -------------------------
33 @REM -------------------------
35 @SET PATH=%CASROOT%;%CASROOT%\win32\bin%OCC_LIB_PREFIX%;%PATH%
36 @SET LIB=%CASROOT%\win32\lib%OCC_LIB_PREFIX%;%LIB%
37 @set CSF_MDTVFontDirectory=%CASROOT%\src\FontMFT
40 @set CSF_EXCEPTION_PROMPT=1
41 @set CSF_SHMessage=%CASROOT%\src\SHMessage
42 @set CSF_MDTVTexturesDirectory=%CASROOT%\src\Textures
43 @set CSF_XSMessage=%CASROOT%\src\XSMessage
44 @set CSF_StandardDefaults=%CASROOT%\src\StdResource
45 @set CSF_PluginDefaults=%CASROOT%\src\StdResource
46 @set CSF_XCAFDefaults=%CASROOT%\src\StdResource
47 @set CSF_StandardLiteDefaults=%CASROOT%\src\StdResource
48 @set CSF_UnitsLexicon=%CASROOT%\src\UnitsAPI\Lexi_Expr.dat
49 @set CSF_UnitsDefinition=%CASROOT%\src\UnitsAPI\Units.dat
50 @set CSF_IGESDefaults=%CASROOT%\src\XSTEPResource
51 @set CSF_STEPDefaults=%CASROOT%\src\XSTEPResource
52 @set CSF_XmlOcafResource=%CASROOT%\src\XmlOcafResource
53 @REM -------------------------
56 @REM -------------------------
57 @REM FREEIMAGE (Used by OCCT)
58 @SET PATH=%PDIR%\freeimage-3.15.4\bin;%PATH%
59 @REM -------------------------
61 @REM -------------------------
62 @REM FTGL (Used by OCCT)
63 @SET PATH=%PDIR%\ftgl-2.1.3\bin;%PATH%
64 @REM -------------------------
66 @REM -------------------------
67 @REM FREETYPE (Used by OCCT)
68 @SET PATH=%PDIR%\freetype-2.4.11\bin;%PATH%
69 @REM -------------------------
71 @REM -------------------------
72 @REM GL2PS (Used by OCCT AND PARAVIEW)
73 @SET PATH=%PDIR%\gl2ps-1.3.8\bin;%PATH%
74 @REM -------------------------
76 @REM -------------------------
77 @REM TBB (Used by OCCT)
78 @SET PATH=%PDIR%\tbb\bin;%PATH%
79 @REM -------------------------
81 @REM -------------------------
83 @SET QTDIR=%PDIR%\qt-4.8.4
84 @ECHO -- Creating qt.conf... in %QTDIR%
85 @ECHO [Paths] > %QTDIR%/bin/qt.conf
86 @ECHO Prefix = %QTDIR:\=/% >> %QTDIR%/bin/qt.conf
87 @SET PATH=%QTDIR%\bin;%PATH%
89 @REM -------------------------
91 @REM -------------------------
93 @SET PYTHONHOME=%PDIR%\python-2.7.3
94 @SET PYTHON_INCLUDE=%PYTHONHOME%\include
95 @SET PATH=%PYTHONHOME%;%PYTHONHOME%\libs;%PATH%
96 @SET PYTHONPATH=%PYTHONHOME%\Lib;%PYTHONPATH%
97 @SET PYTHONPATH=%PYTHONHOME%\DLLs;%PYTHONPATH%
98 @SET PYTHON_VERSION=2.7
99 @REM -------------------------
101 @REM -------------------------
102 @REM ZLIB (for LIBXML2)
103 @SET PATH=%PDIR%\zlib-1.2.5\dll;%PATH%
104 @REM -------------------------
106 @REM -------------------------
108 @SET LIBXML2_ROOT_DIR=%PDIR%\libxml2-2.9.0
109 @SET PATH=%LIBXML2_ROOT_DIR%\lib;%PATH%
110 @SET PATH=%LIBXML2_ROOT_DIR%\bin;%PATH%
111 @REM -------------------------
113 @REM -------------------------
115 @SET PATH=%PDIR%\swig-2.0.9\bin;%PATH%
116 @REM -------------------------
118 @REM -------------------------
119 @SET SOLVESPACE_ROOT_DIR=%PDIR%\solvespace-2.0
120 @SET PATH=%SOLVESPACE_ROOT_DIR%\lib;%PATH%
121 @REM -------------------------
123 @SET NEW_GEOM_CONFIG_FILE=%ROOT_DIR%\install\plugins
124 @SET PATH=%ROOT_DIR%\install\plugins;%ROOT_DIR%\install\bin;%PATH%
125 @SET PYTHONPATH=%ROOT_DIR%\install\swig;%ROOT_DIR%\install\plugins;%PYTHONPATH%
127 @REM -------------------------
129 @SET PATH=%PDIR%\pthreads-2.9.1\lib;%PATH%
130 @REM -------------------------
132 @REM -------------------------
134 @SET DOXYGEN_ROOT_DIR=%PDIR%\doxygen-1.8.3.1
135 @SET PATH=%DOXYGEN_ROOT_DIR%\bin;%PATH%
136 @REM -------------------------
138 @REM -------------------------
140 @SET GRAPHVIZ_ROOT_DIR=%PDIR%\graphviz-2.38.0
141 @SET GRAPHVIZHOME=%GRAPHVIZ_ROOT_DIR%
142 @SET PATH=%GRAPHVIZ_ROOT_DIR%\bin;%PATH%
143 @REM -------------------------
145 @REM -------------------------
147 @SET SUIT_DIR=%PDIR%\suit
148 @SET PATH=%SUIT_DIR%\bin;%PATH%
149 @REM -------------------------
152 @REM -------------------------
153 if "%GUI_ROOT_DIR%" == "" (
154 @SET GUI_ROOT_DIR=%ROOT_DIR%\SALOME\GUI\DEBUG\GUI_INSTALL
156 @REM -------------------------
159 @SET NewGeomResources=%ROOT_DIR%\install\resources
161 rem -------- Visual Studio --------------------
162 rem Detect Visual Studio (either commercial or Express edition)
163 if "%VS100COMNTOOLS%" == "" (
164 echo Could not find MS Visual Studio: variable VS100COMNTOOLS is not defined!
166 ) else if exist "%VS100COMNTOOLS%\..\IDE\devenv.exe" (
167 set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\devenv.exe"
168 ) else if exist "%VS100COMNTOOLS%\..\IDE\VCExpress.exe" (
169 set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\VCExpress.exe"
171 echo "Could not find MS Visual Studio in %VS100COMNTOOLS%\..\IDE"
172 echo Check environment variable VS100COMNTOOLS!
175 call "%VS100COMNTOOLS%..\Tools\vsvars32.bat"