5e7a3f0551c871b09bb0e31b9d3c9850146749e0
[occt.git] / adm / templates / custom.build.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="@3RDPARTY_TCL_LIBRARY_DIR@"
9     export TK_DIR="@3RDPARTY_TK_LIBRARY_DIR@"
10     export FREETYPE_DIR="@3RDPARTY_FREETYPE_LIBRARY_DIR@"
11     export FREEIMAGE_DIR="@3RDPARTY_FREEIMAGE_LIBRARY_DIRS@"
12     export GL2PS_DIR="@3RDPARTY_GL2PS_LIBRARY_DIRS@"
13     export TBB_DIR="@3RDPARTY_TBB_LIBRARY_DIR@"
14     export VTK_DIR="@3RDPARTY_VTK_LIBRARY_DIR@"
15     export FFMPEG_DIR="@3RDPARTY_FFMPEG_LIBRARY_DIR@"
16
17     if [ "x@3RDPARTY_QT_DIR" != "x" ]; then
18       export QTDIR="@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="@CMAKE_RUNTIME_OUTPUT_DIRECTORY@"
25     export CSF_OCCTLibPath="@CMAKE_ARCHIVE_OUTPUT_DIRECTORY@"
26     export CSF_OCCTIncludePath="@CMAKE_BINARY_DIR@/inc"
27     export CSF_OCCTResourcePath="@CMAKE_SOURCE_DIR@/src"
28     export CSF_OCCTDataPath="@CMAKE_SOURCE_DIR@/data"
29     export CSF_OCCTSamplesPath="@CMAKE_SOURCE_DIR@/samples"
30     export CSF_OCCTTestsPath="@CMAKE_SOURCE_DIR@/tests"
31     export CSF_OCCTDocPath="@CMAKE_SOURCE_DIR@/doc"
32
33     # for compatability with external application using CASROOT
34     export CASROOT="@CMAKE_SOURCE_DIR@"
35   fi
36 fi
37