0029520: Visualization - drop deprecated V3d_View::Export() functionality and depende...
[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 TBB_DIR="@3RDPARTY_TBB_LIBRARY_DIR@"
13     export VTK_DIR="@3RDPARTY_VTK_LIBRARY_DIR@"
14     export FFMPEG_DIR="@3RDPARTY_FFMPEG_LIBRARY_DIR@"
15
16     if [ "x@3RDPARTY_QT_DIR" != "x" ]; then
17       export QTDIR="@3RDPARTY_QT_DIR@"
18     fi
19
20     export TCL_VERSION_WITH_DOT="@3RDPARTY_TCL_LIBRARY_VERSION_WITH_DOT@"
21     export TK_VERSION_WITH_DOT="@3RDPARTY_TK_LIBRARY_VERSION_WITH_DOT@"
22
23     export CSF_OCCTBinPath="@CMAKE_RUNTIME_OUTPUT_DIRECTORY@"
24     export CSF_OCCTLibPath="@CMAKE_ARCHIVE_OUTPUT_DIRECTORY@"
25     export CSF_OCCTIncludePath="@CMAKE_BINARY_DIR@/inc"
26     export CSF_OCCTResourcePath="@CMAKE_SOURCE_DIR@/src"
27     export CSF_OCCTDataPath="@CMAKE_SOURCE_DIR@/data"
28     export CSF_OCCTSamplesPath="@CMAKE_SOURCE_DIR@/samples"
29     export CSF_OCCTTestsPath="@CMAKE_SOURCE_DIR@/tests"
30     export CSF_OCCTDocPath="@CMAKE_SOURCE_DIR@/doc"
31
32     # for compatability with external application using CASROOT
33     export CASROOT="@CMAKE_SOURCE_DIR@"
34   fi
35 fi
36