echo off aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD"; FREETYPE_DIR="@3RDPARTY_FREETYPE_DLL_DIR@" GL2PS_DIR="@3RDPARTY_GL2PS_DLL_DIR@" TBB_DIR="@3RDPARTY_TBB_DLL_DIR@" FREEIMAGE_DIR="@3RDPARTY_FREEIMAGE_DLL_DIR@" TCL_DIR="@3RDPARTY_TCL_DLL_DIR@" aLibPath="$aScriptPath/lib" if [ "$TCL_DIR" != "" ]; then aLibPath="${TCL_DIR}:${aLibPath}" fi if [ "$TBB_DIR" != "" ]; then aLibPath="${TBB_DIR}:${aLibPath}" fi if [ "$FREEIMAGE_DIR" != "" ]; then aLibPath="${FREEIMAGE_DIR}:${aLibPath}" fi if [ "$GL2PS_DIR" != "" ]; then aLibPath="${GL2PS_DIR}:${aLibPath}" fi if [ "$FREETYPE_DIR" != "" ]; then aLibPath="${FREETYPE_DIR}:${aLibPath}" fi # ----- Set path to 3rd party and OCCT libraries ----- aSystem=`uname -s` if [ "$aSystem" == "Darwin" ]; then export WOKSTATION="mac"; if [ "$DYLD_LIBRARY_PATH" != "" ]; then export DYLD_LIBRARY_PATH="${aLibPath}:${DYLD_LIBRARY_PATH}" else export DYLD_LIBRARY_PATH="${aLibPath}" fi else export WOKSTATION="lin"; if [ "$LD_LIBRARY_PATH" != "" ]; then export LD_LIBRARY_PATH="${aLibPath}:${LD_LIBRARY_PATH}" else export LD_LIBRARY_PATH="${aLibPath}" fi fi # ----- Set path to OCCT executables ----- PATH="${PATH}:$aScriptPath/bin" # ----- Setup Environment Variables ----- anArch=`uname -m` if [ "$anArch" != "x86_64" ] && [ "$anArch" != "ia64" ]; then export ARCH="32"; else export ARCH="64"; fi if [ "$aSystem" == "Darwin" ]; then export ARCH="64"; fi # ----- Set envoronment variables used by OCCT ----- export CSF_LANGUAGE=us export MMGT_CLEAR=1 export CSF_EXCEPTION_PROMPT=1 export CSF_SHMessage="${aScriptPath}/res/SHMessage" export CSF_MDTVTexturesDirectory="${aScriptPath}/res/Textures" export CSF_ShadersDirectory="${aScriptPath}/res/Shaders" export CSF_XSMessage="SCRIPTROOT/res/XSMessage" export CSF_TObjMessage="SCRIPTROOT/res/TObj" export CSF_StandardDefaults="${aScriptPath}/res/StdResource" export CSF_PluginDefaults="${aScriptPath}/res/StdResource" export CSF_XCAFDefaults="${aScriptPath}/res/StdResource" export CSF_TObjDefaults="${aScriptPath}/res/StdResource" export CSF_StandardLiteDefaults="${aScriptPath}/res/StdResource" export CSF_UnitsLexicon="${aScriptPath}/res/UnitsAPI/Lexi_Expr.dat" export CSF_UnitsDefinition="${aScriptPath}/res/UnitsAPI/Units.dat" export CSF_IGESDefaults="${aScriptPath}/res/XSTEPResource" export CSF_STEPDefaults="${aScriptPath}/res/XSTEPResource" export CSF_XmlOcafResource="${aScriptPath}/res/XmlOcafResource" export CSF_MIGRATION_TYPES="${aScriptPath}/res/StdResource/MigrationSheet.txt" # Draw Harness special stuff if [ -e "${aScriptPath}/res/DrawResources" ]; then export DRAWHOME="${aScriptPath}/res/DrawResources" export CSF_DrawPluginDefaults="${aScriptPath}/res/DrawResources" if [ -e "${aScriptPath}/res/DrawResources/DrawDefault" ]; then export DRAWDEFAULT="${aScriptPath}/res/DrawResources/DrawDefault" fi fi if [ -e "${aScriptPath}/res/DrawResourcesProducts" ]; then export CSF_DrawPluginProductsDefaults="${aScriptPath}/res/DrawResourcesProducts" fi