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 and Graphviz)
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 @SET _NO_DEBUG_HEAP=1
122 @REM -------------------------
124 @REM -------------------------
126 @SET PATH=%PDIR%\pthreads-2.9.1\lib;%PATH%
127 @REM -------------------------
129 @REM -------------------------
131 @SET DOXYGEN_ROOT_DIR=%PDIR%\doxygen-1.8.3.1
132 @SET PATH=%DOXYGEN_ROOT_DIR%\bin;%PATH%
133 @REM -------------------------
135 @REM -------------------------
137 @SET GRAPHVIZ_ROOT_DIR=%PDIR%\graphviz-2.38.0
138 @SET GRAPHVIZHOME=%GRAPHVIZ_ROOT_DIR%
139 @SET PATH=%GRAPHVIZ_ROOT_DIR%\bin;%PATH%
140 @REM -------------------------
142 @REM -------------------------
143 @REM PNG library (Used by GRAPHVIZ)
144 @SET PATH=%PDIR%\libpng-1.5.10\bin;%PATH%
145 @REM -------------------------
148 @REM -------------------------
150 @SET SUIT_DIR=%PDIR%\suit
151 @SET PATH=%SUIT_DIR%\bin;%PATH%
152 @REM -------------------------
154 @REM -------------------------
156 @SET NEWGEOM_ROOT_DIR=%ROOT_DIR%\install
157 @SET NEW_GEOM_CONFIG_FILE=%NEWGEOM_ROOT_DIR%\plugins
158 @SET PATH=%NEWGEOM_ROOT_DIR%\swig;%NEWGEOM_ROOT_DIR%\plugins;%NEWGEOM_ROOT_DIR%\bin;%PATH%
159 @SET PYTHONPATH=%NEWGEOM_ROOT_DIR%\swig;%NEWGEOM_ROOT_DIR%\plugins;%NEWGEOM_ROOT_DIR%\addons;%NEWGEOM_ROOT_DIR%\pythonAPI;%PYTHONPATH%
160 @SET NewGeomResources=%NEWGEOM_ROOT_DIR%\resources
162 rem -------- Visual Studio --------------------
163 rem Detect Visual Studio (either commercial or Express edition)
164 if "%VS100COMNTOOLS%" == "" (
165 echo Could not find MS Visual Studio: variable VS100COMNTOOLS is not defined!
167 ) else if exist "%VS100COMNTOOLS%\..\IDE\devenv.exe" (
168 set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\devenv.exe"
169 ) else if exist "%VS100COMNTOOLS%\..\IDE\VCExpress.exe" (
170 set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\VCExpress.exe"
172 echo "Could not find MS Visual Studio in %VS100COMNTOOLS%\..\IDE"
173 echo Check environment variable VS100COMNTOOLS!
176 call "%VS100COMNTOOLS%..\Tools\vsvars32.bat"