206c1c3cf6e7817e40768a9e2267a87d4d927a24
[occt.git] / adm / templates / custom.install.sh.in
1 #!/bin/bash
2
3 if [ "$1" == "@BIN_LETTER@" ]; then
4   if [ "$2" == "@COMPILER_BITNESS@" ]; then
5     # set environment variables used by OCCT
6     export CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
7
8     export TCL_DIR="@USED_3RDPARTY_TCL_DIR@"
9     export TK_DIR="@USED_3RDPARTY_TK_DIR@"
10     export FREETYPE_DIR="@USED_3RDPARTY_FREETYPE_DIR@"
11     export FREEIMAGE_DIR="@USED_3RDPARTY_FREEIMAGE_DIRS@"
12     export GL2PS_DIR="@USED_3RDPARTY_GL2PS_DIRS@"
13     export TBB_DIR="@USED_3RDPARTY_TBB_DIR@"
14     export VTK_DIR="@USED_3RDPARTY_VTK_DIR@"
15     export FFMPEG_DIR="@USED_3RDPARTY_FFMPEG_DIR@"
16
17     if [ "x@USED_3RDPARTY_QT_DIR@" != "x" ]; then
18       export QTDIR="@USED_3RDPARTY_QT_DIR@"
19     fi
20
21     export TCL_VERSION_WITH_DOT="@3RDPARTY_TCL_LIBRARY_VERSION_WITH_DOT@"
22     export TK_VERSION_WITH_DOT="@3RDPARTY_TK_LIBRARY_VERSION_WITH_DOT@"
23
24     export CSF_OCCTBinPath="${CASROOT}/@INSTALL_DIR_BIN@"
25     export CSF_OCCTLibPath="${CASROOT}/@INSTALL_DIR_LIB@"
26     export CSF_OCCTIncludePath="${CASROOT}/@INSTALL_DIR_INCLUDE@"
27     export CSF_OCCTResourcePath="${CASROOT}/@INSTALL_DIR_RESOURCE@"
28     export CSF_OCCTDataPath="${CASROOT}/@INSTALL_DIR_DATA@"
29     export CSF_OCCTSamplesPath="${CASROOT}/@INSTALL_DIR_SAMPLES@"
30     export CSF_OCCTTestsPath="${CASROOT}/@INSTALL_DIR_TESTS@"
31     export CSF_OCCTDocPath="${CASROOT}/@INSTALL_DIR_DOC@"
32   fi
33 fi
34