0024722: Move functionality of WOK command wgendoc to OCCT tool gendoc
[occt.git] / adm / templates / env.bat.in
CommitLineData
ad211ad3 1echo off
2
3set "SCRIPTROOT=%~dp0"
4set "SCRIPTROOT=%SCRIPTROOT:~0,-1%"
5
a0726e55 6if ["%CASROOT%"] == [""] set "CASROOT=%SCRIPTROOT%"
7
8set "TCL_DIR=@3RDPARTY_TCL_DLL_DIR@"
9if not ["%TCL_DIR%"] == [""] set "PATH=%TCL_DIR%;%PATH%"
ad211ad3 10
11set "FREETYPE_DIR=@3RDPARTY_FREETYPE_DLL_DIR@"
a0726e55 12if not ["%FREETYPE_DIR%"] == [""] set "PATH=%FREETYPE_DIR%;%PATH%"
ad211ad3 13
ad211ad3 14set "FREEIMAGE_DIR=@3RDPARTY_FREEIMAGE_DLL_DIR@"
a0726e55 15if not ["%FREEIMAGE_DIR%"] == [""] set "PATH=%FREEIMAGE_DIR%;%PATH%"
ad211ad3 16
a0726e55 17set "GL2PS_DIR=@3RDPARTY_GL2PS_DLL_DIR@"
18if not ["%GL2PS_DIR%"] == [""] set "PATH=%GL2PS_DIR%;%PATH%"
ad211ad3 19
a0726e55 20set "TBB_DIR=@3RDPARTY_TBB_DLL_DIR@"
21if not ["%TBB_DIR%"] == [""] set "PATH=%TBB_DIR%;%PATH%"
ad211ad3 22
23rem ----- Set path to 3rd party and OCCT libraries -----
a0726e55 24set "PATH=%CASROOT%\bin;%PATH%"
ad211ad3 25
26rem ----- Set envoronment variables used by OCCT -----
27set CSF_LANGUAGE=us
28set MMGT_CLEAR=1
29set CSF_EXCEPTION_PROMPT=1
a0726e55 30set "CSF_SHMessage=%CASROOT%\src\SHMessage"
31set "CSF_MDTVTexturesDirectory=%CASROOT%\src\Textures"
32set "CSF_ShadersDirectory=%CASROOT%\src\Shaders"
33set "CSF_XSMessage=%CASROOT%\src\XSMessage"
34set "CSF_TObjMessage=%CASROOT%\src\TObj"
35set "CSF_StandardDefaults=%CASROOT%\src\StdResource"
36set "CSF_PluginDefaults=%CASROOT%\src\StdResource"
37set "CSF_XCAFDefaults=%CASROOT%\src\StdResource"
38set "CSF_TObjDefaults=%CASROOT%\src\StdResource"
39set "CSF_StandardLiteDefaults=%CASROOT%\src\StdResource"
40set "CSF_UnitsLexicon=%CASROOT%\src\UnitsAPI\Lexi_Expr.dat"
41set "CSF_UnitsDefinition=%CASROOT%\src\UnitsAPI\Units.dat"
42set "CSF_IGESDefaults=%CASROOT%\src\XSTEPResource"
43set "CSF_STEPDefaults=%CASROOT%\src\XSTEPResource"
44set "CSF_XmlOcafResource=%CASROOT%\src\XmlOcafResource"
45set "CSF_MIGRATION_TYPES=%CASROOT%\src\StdResource\MigrationSheet.txt"
ad211ad3 46
47rem Draw Harness special stuff
a0726e55 48if exist "%CASROOT%\src\DrawResources" (
49 set "DRAWHOME=%CASROOT%\src\DrawResources"
50 set "CSF_DrawPluginDefaults=%CASROOT%\src\DrawResources"
ad211ad3 51
a0726e55 52 if exist "%CASROOT%\src\DrawResources\DrawDefault" (
53 set "DRAWDEFAULT=%CASROOT%\src\DrawResources\DrawDefault"
54 )
ad211ad3 55)
56
a0726e55 57if exist "%CASROOT%\src\DrawResourcesProducts" (
58 set "CSF_DrawPluginProductsDefaults=%CASROOT%\src\DrawResourcesProducts"
59)