327bc9cc4b2d63acd501826ac97cf946b3f06452
[occt.git] / adm / templates / custom.build.bat.in
1 echo off
2
3 if /I "%VCVER%" == "@COMPILER@" (
4   if "%ARCH%" == "@COMPILER_BITNESS@" (
5     rem set environment variables used by OCCT
6     set CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
7
8     set "TCL_DIR=@3RDPARTY_TCL_DLL_DIR@"
9     set "TK_DIR=@3RDPARTY_TK_DLL_DIR@"
10     set "FREETYPE_DIR=@3RDPARTY_FREETYPE_DLL_DIR@"
11     set "FREEIMAGE_DIR=@3RDPARTY_FREEIMAGE_DLL_DIRS@"
12     set "EGL_DIR=@3RDPARTY_EGL_DLL_DIRS@"
13     set "GLES2_DIR=@3RDPARTY_GLES2_DLL_DIRS@"
14     set "GL2PS_DIR=@3RDPARTY_GL2PS_DLL_DIRS@"
15     set "TBB_DIR=@3RDPARTY_TBB_DLL_DIR@"
16     set "VTK_DIR=@3RDPARTY_VTK_DLL_DIR@"
17     set "FFMPEG_DIR=@3RDPARTY_FFMPEG_DLL_DIR@"
18
19     if not "@3RDPARTY_QT_DIR@" == "" (
20       set "QTDIR=@3RDPARTY_QT_DIR@"
21     )
22     set "TCL_VERSION_WITH_DOT=@3RDPARTY_TCL_LIBRARY_VERSION_WITH_DOT@"
23     set "TK_VERSION_WITH_DOT=@3RDPARTY_TK_LIBRARY_VERSION_WITH_DOT@"
24
25     rem CSF_OCCTBinPath and CSF_OCCTLibPath are defined differently for 
26     rem multiple and single configuration builds
27     set "CSF_OCCTBinPath=@CMAKE_RUNTIME_OUTPUT_DIRECTORY@"
28     if ["@CMAKE_RUNTIME_OUTPUT_DIRECTORY@"] == [""] (
29       set "CSF_OCCTBinPath=@CMAKE_BINARY_DIR@/win%ARCH%/%VCVER%/bin%3"
30     )
31     set "CSF_OCCTLibPath=@CMAKE_ARCHIVE_OUTPUT_DIRECTORY@"
32     if ["@CMAKE_ARCHIVE_OUTPUT_DIRECTORY@"] == [""] (
33       set "CSF_OCCTLibPath=@CMAKE_BINARY_DIR@/win%ARCH%/%VCVER%/lib%3"
34     )
35
36     set "CSF_OCCTIncludePath=@CMAKE_BINARY_DIR@/inc"
37     set "CSF_OCCTResourcePath=@CMAKE_SOURCE_DIR@/src"
38     set "CSF_OCCTDataPath=@CMAKE_SOURCE_DIR@/data"
39     set "CSF_OCCTSamplesPath=@CMAKE_SOURCE_DIR@/samples"
40     set "CSF_OCCTTestsPath=@CMAKE_SOURCE_DIR@/tests"
41     set "CSF_OCCTDocPath=@CMAKE_SOURCE_DIR@/doc"
42
43     rem for compatability with external application using CASROOT
44     set "CASROOT=@CMAKE_SOURCE_DIR@"
45   ) 
46 )