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.7.1
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...
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 -------------------------
119 @SET BOOST_ROOT_DIR=%PDIR%\boost-1.52.0
120 @SET PATH=%BOOST_ROOT_DIR%\lib;%PATH%
121 @REM -------------------------
123 @REM -------------------------
124 @SET SOLVESPACE_ROOT_DIR=%PDIR%\solvespace-2.0
125 @SET PATH=%SOLVESPACE_ROOT_DIR%\lib;%PATH%
126 @REM -------------------------
128 @SET NEW_GEOM_CONFIG_FILE=%ROOT_DIR%\install\plugins
129 @SET PATH=%ROOT_DIR%\install\plugins;%ROOT_DIR%\install\bin;%PATH%
130 @SET PYTHONPATH=%ROOT_DIR%\install\swig;%PYTHONPATH%
132 @REM -------------------------
134 @SET PATH=%PDIR%\pthreads-2.9.1\lib;%PATH%
135 @REM -------------------------
138 @REM -------------------------
140 @SET SUIT_DIR=%PDIR%\suit
141 @SET PATH=%SUIT_DIR%\bin;%PATH%
142 @REM -------------------------
145 @REM -------------------------
146 if "%GUI_ROOT_DIR%" == "" (
147 @SET GUI_ROOT_DIR=%ROOT_DIR%\SALOME\GUI\DEBUG\GUI_INSTALL
149 @REM -------------------------
152 @SET NewGeomResources=%ROOT_DIR%\install\resources
154 rem -------- Visual Studio --------------------
155 rem Detect Visual Studio (either commercial or Express edition)
156 if "%VS100COMNTOOLS%" == "" (
157 echo Could not find MS Visual Studio: variable VS100COMNTOOLS is not defined!
159 ) else if exist "%VS100COMNTOOLS%\..\IDE\devenv.exe" (
160 set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\devenv.exe"
161 ) else if exist "%VS100COMNTOOLS%\..\IDE\VCExpress.exe" (
162 set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\VCExpress.exe"
164 echo "Could not find MS Visual Studio in %VS100COMNTOOLS%\..\IDE"
165 echo Check environment variable VS100COMNTOOLS!
168 call "%VS100COMNTOOLS%..\Tools\vsvars32.bat"