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_GraphicShr=%CASROOT%\win32\bin%OCC_LIB_PREFIX%\TKOpenGl.dll
38 @set CSF_MDTVFontDirectory=%CASROOT%\src\FontMFT
41 @set CSF_EXCEPTION_PROMPT=1
42 @set CSF_SHMessage=%CASROOT%\src\SHMessage
43 @set CSF_MDTVTexturesDirectory=%CASROOT%\src\Textures
44 @set CSF_XSMessage=%CASROOT%\src\XSMessage
45 @set CSF_StandardDefaults=%CASROOT%\src\StdResource
46 @set CSF_PluginDefaults=%CASROOT%\src\StdResource
47 @set CSF_XCAFDefaults=%CASROOT%\src\StdResource
48 @set CSF_StandardLiteDefaults=%CASROOT%\src\StdResource
49 @set CSF_UnitsLexicon=%CASROOT%\src\UnitsAPI\Lexi_Expr.dat
50 @set CSF_UnitsDefinition=%CASROOT%\src\UnitsAPI\Units.dat
51 @set CSF_IGESDefaults=%CASROOT%\src\XSTEPResource
52 @set CSF_STEPDefaults=%CASROOT%\src\XSTEPResource
53 @set CSF_XmlOcafResource=%CASROOT%\src\XmlOcafResource
54 @REM -------------------------
57 @REM -------------------------
58 @REM FREEIMAGE (Used by OCCT)
59 @SET PATH=%PDIR%\freeimage-3.15.4\bin;%PATH%
60 @REM -------------------------
62 @REM -------------------------
63 @REM FTGL (Used by OCCT)
64 @SET PATH=%PDIR%\ftgl-2.1.3\bin;%PATH%
65 @REM -------------------------
67 @REM -------------------------
68 @REM FREETYPE (Used by OCCT)
69 @SET PATH=%PDIR%\freetype-2.4.11\bin;%PATH%
70 @REM -------------------------
72 @REM -------------------------
73 @REM GL2PS (Used by OCCT AND PARAVIEW)
74 @SET PATH=%PDIR%\gl2ps-1.3.8\bin;%PATH%
75 @REM -------------------------
77 @REM -------------------------
78 @REM TBB (Used by OCCT)
79 @SET PATH=%PDIR%\tbb\bin;%PATH%
80 @REM -------------------------
82 @REM -------------------------
84 @SET QTDIR=%PDIR%\qt-4.8.4
85 @ECHO -- Creating qt.conf...
86 @ECHO [Paths] > %QTDIR%/bin/qt.conf
87 @ECHO Prefix = %QTDIR:\=/% >> %QTDIR%/bin/qt.conf
88 @SET PATH=%QTDIR%\bin;%PATH%
90 @REM -------------------------
92 @REM -------------------------
94 @SET PYTHONHOME=%PDIR%\python-2.7.3
95 @SET PYTHON_LIB_DIR=%PYTHONHOME%\libs
96 @SET PYTHON_INC_DIR=%PYTHONHOME%\include
97 @SET PATH=%PYTHON_LIB_DIR%;%PATH%
98 @SET PATH=%PYTHONHOME%;%PATH%
99 @SET PYTHONPATH=%PYTHONHOME%\Lib;%PYTHONPATH%
100 @SET PYTHONPATH=%PYTHONHOME%\DLLs;%PYTHONPATH%
101 @SET PYTHON_VERSION=2.7
102 @REM -------------------------
104 @REM -------------------------
105 @REM ZLIB (for LIBXML2)
106 @SET PATH=%PDIR%\zlib-1.2.5\dll;%PATH%
107 @REM -------------------------
109 @REM -------------------------
111 @SET LIBXML2_ROOT_DIR=%PDIR%\libxml2-2.9.0
112 @REM DO NOT rename following 3 variables,
113 @REM they are required by CMake "find(Libxml2)" procedure
114 @SET LIBXML2_INCLUDE_DIR=%LIBXML2_ROOT_DIR%\include\libxml2
115 @SET LIBXML2_LIB_DIR=%LIBXML2_ROOT_DIR%\lib
116 @SET LIBXML2_BIN_DIR=%LIBXML2_ROOT_DIR%\bin
117 @SET PATH=%LIBXML2_BIN_DIR%;%LIBXML2_LIB_DIR%;%PATH%
118 @REM -------------------------
120 @REM -------------------------
122 @SET PATH=%PDIR%\swig-2.0.9\bin;%PATH%
123 @REM -------------------------
125 @REM -------------------------
127 @SET BOOST_ROOT_DIR=%PDIR%\boost-1.52.0
128 @SET PATH=%BOOST_ROOT_DIR%\lib;%PATH%
129 @REM -------------------------
131 @SET PATH=D:\NewGEOM\build-eclipse\bin;%PATH%
133 @SET NEW_GEOM_CONFIG_FILE=%ROOT_DIR%\install\plugins
134 @SET PATH=%ROOT_DIR%\install\plugins;%PATH%
136 rem -------- Visual Studio --------------------
137 rem Detect Visual Studio (either commercial or Express edition)
138 if "%VS100COMNTOOLS%" == "" (
139 echo Could not find MS Visual Studio: variable VS100COMNTOOLS is not defined!
141 ) else if exist "%VS100COMNTOOLS%\..\IDE\devenv.exe" (
142 set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\devenv.exe"
143 ) else if exist "%VS100COMNTOOLS%\..\IDE\VCExpress.exe" (
144 set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\VCExpress.exe"
146 echo "Could not find MS Visual Studio in %VS100COMNTOOLS%\..\IDE"
147 echo Check environment variable VS100COMNTOOLS!
150 call "%VS100COMNTOOLS%..\Tools\vsvars32.bat"