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.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...
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_LIB_DIR=%PYTHONHOME%\libs
95 @SET PYTHON_INC_DIR=%PYTHONHOME%\include
96 @SET PATH=%PYTHON_LIB_DIR%;%PATH%
97 @SET PATH=%PYTHONHOME%;%PATH%
98 @SET PYTHONPATH=%PYTHONHOME%\Lib;%PYTHONPATH%
99 @SET PYTHONPATH=%PYTHONHOME%\DLLs;%PYTHONPATH%
100 @SET PYTHON_VERSION=2.7
101 @REM -------------------------
103 @REM -------------------------
104 @REM ZLIB (for LIBXML2)
105 @SET PATH=%PDIR%\zlib-1.2.5\dll;%PATH%
106 @REM -------------------------
108 @REM -------------------------
110 @SET LIBXML2_ROOT_DIR=%PDIR%\libxml2-2.9.0
111 @REM DO NOT rename following 3 variables,
112 @REM they are required by CMake "find(Libxml2)" procedure
113 @SET LIBXML2_INCLUDE_DIR=%LIBXML2_ROOT_DIR%\include\libxml2
114 @SET LIBXML2_LIB_DIR=%LIBXML2_ROOT_DIR%\lib
115 @SET LIBXML2_BIN_DIR=%LIBXML2_ROOT_DIR%\bin
116 @SET PATH=%LIBXML2_BIN_DIR%;%LIBXML2_LIB_DIR%;%PATH%
117 @REM -------------------------
119 @REM -------------------------
121 @SET PATH=%PDIR%\swig-2.0.9\bin;%PATH%
122 @REM -------------------------
125 @SET BOOST_ROOT_DIR=%PDIR%\boost-1.52.0
126 @SET PATH=%BOOST_ROOT_DIR%\lib;%PATH%
127 @REM -------------------------
129 @REM -------------------------
130 @SET SOLVESPACE_ROOT_DIR=%PDIR%\solvespace-2.0
131 @SET PATH=%SOLVESPACE_ROOT_DIR%\lib;%PATH%
132 @REM -------------------------
134 @SET NEW_GEOM_CONFIG_FILE=%ROOT_DIR%\install\plugins
135 @SET PATH=%ROOT_DIR%\install\plugins;%ROOT_DIR%\install\bin;%PATH%
136 @SET PYTHONPATH=%ROOT_DIR%\install\swig;%PYTHONPATH%
138 @REM -------------------------
139 if "%GUI_ROOT_DIR%" == "" (
140 @SET GUI_ROOT_DIR=%ROOT_DIR%\SALOME\GUI\DEBUG\GUI_INSTALL
142 @REM -------------------------
145 rem -------- Visual Studio --------------------
146 rem Detect Visual Studio (either commercial or Express edition)
147 if "%VS100COMNTOOLS%" == "" (
148 echo Could not find MS Visual Studio: variable VS100COMNTOOLS is not defined!
150 ) else if exist "%VS100COMNTOOLS%\..\IDE\devenv.exe" (
151 set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\devenv.exe"
152 ) else if exist "%VS100COMNTOOLS%\..\IDE\VCExpress.exe" (
153 set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\VCExpress.exe"
155 echo "Could not find MS Visual Studio in %VS100COMNTOOLS%\..\IDE"
156 echo Check environment variable VS100COMNTOOLS!
159 call "%VS100COMNTOOLS%..\Tools\vsvars32.bat"