echo off set "SCRIPTROOT=%~dp0" set "SCRIPTROOT=%SCRIPTROOT:~0,-1%" if ["%CASROOT%"] == [""] set "CASROOT=%SCRIPTROOT%" set "TCL_DIR=@3RDPARTY_TCL_DLL_DIR@" if not ["%TCL_DIR%"] == [""] set "PATH=%TCL_DIR%;%PATH%" set "FREETYPE_DIR=@3RDPARTY_FREETYPE_DLL_DIR@" if not ["%FREETYPE_DIR%"] == [""] set "PATH=%FREETYPE_DIR%;%PATH%" set "FREEIMAGE_DIR=@3RDPARTY_FREEIMAGE_DLL_DIR@" if not ["%FREEIMAGE_DIR%"] == [""] set "PATH=%FREEIMAGE_DIR%;%PATH%" set "GL2PS_DIR=@3RDPARTY_GL2PS_DLL_DIR@" if not ["%GL2PS_DIR%"] == [""] set "PATH=%GL2PS_DIR%;%PATH%" set "TBB_DIR=@3RDPARTY_TBB_DLL_DIR@" if not ["%TBB_DIR%"] == [""] set "PATH=%TBB_DIR%;%PATH%" rem ----- Set path to 3rd party and OCCT libraries ----- set "PATH=%CASROOT%\bin;%PATH%" rem ----- Set envoronment variables used by OCCT ----- set CSF_LANGUAGE=us set MMGT_CLEAR=1 set CSF_EXCEPTION_PROMPT=1 set "CSF_SHMessage=%CASROOT%\src\SHMessage" set "CSF_MDTVTexturesDirectory=%CASROOT%\src\Textures" set "CSF_ShadersDirectory=%CASROOT%\src\Shaders" set "CSF_XSMessage=%CASROOT%\src\XSMessage" set "CSF_TObjMessage=%CASROOT%\src\TObj" set "CSF_StandardDefaults=%CASROOT%\src\StdResource" set "CSF_PluginDefaults=%CASROOT%\src\StdResource" set "CSF_XCAFDefaults=%CASROOT%\src\StdResource" set "CSF_TObjDefaults=%CASROOT%\src\StdResource" set "CSF_StandardLiteDefaults=%CASROOT%\src\StdResource" set "CSF_UnitsLexicon=%CASROOT%\src\UnitsAPI\Lexi_Expr.dat" set "CSF_UnitsDefinition=%CASROOT%\src\UnitsAPI\Units.dat" set "CSF_IGESDefaults=%CASROOT%\src\XSTEPResource" set "CSF_STEPDefaults=%CASROOT%\src\XSTEPResource" set "CSF_XmlOcafResource=%CASROOT%\src\XmlOcafResource" set "CSF_MIGRATION_TYPES=%CASROOT%\src\StdResource\MigrationSheet.txt" rem Draw Harness special stuff if exist "%CASROOT%\src\DrawResources" ( set "DRAWHOME=%CASROOT%\src\DrawResources" set "CSF_DrawPluginDefaults=%CASROOT%\src\DrawResources" if exist "%CASROOT%\src\DrawResources\DrawDefault" ( set "DRAWDEFAULT=%CASROOT%\src\DrawResources\DrawDefault" ) ) if exist "%CASROOT%\src\DrawResourcesProducts" ( set "CSF_DrawPluginProductsDefaults=%CASROOT%\src\DrawResourcesProducts" )