mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
Install occt folder now can contain several occt configurations - custom.bat/sh was added to include specific (for each occt config) custom.bat/sh files - specific custom.bat/sh is added for each configuration (e.g., custom_vc9_win32_d.bat), generated by cmake and included within custom.bat/sh - draw.bat has three argument, e.g., vc9 win32 debug (as occt behavior) - sample.bat has one or four arguments, e.g., sample_name vc8 win64 release - PATH is not changed. DRAWEXE.exe is called from specific folder patched custom.[bat/sh].[main/in] files have higher priority than origin ones Documentation was updated to describe new features of CMake Seeking process of OpenCL include folder was fixed
70 lines
2.4 KiB
Batchfile
70 lines
2.4 KiB
Batchfile
echo off
|
|
|
|
set "SCRIPTROOT=%~dp0"
|
|
set "SCRIPTROOT=%SCRIPTROOT:~0,-1%"
|
|
|
|
set "VCVER=@COMPILER@"
|
|
set "ARCH=@COMPILER_BITNESS@"
|
|
set "CASDEB=@BUILD_SUFFIX@"
|
|
|
|
if not ["%1"] == [""] set "VCVER=%1"
|
|
if not ["%2"] == [""] set "ARCH=%2"
|
|
if /I ["%ARCH%"] == ["win32"] set "ARCH=32"
|
|
if /I ["%ARCH%"] == ["win64"] set "ARCH=64"
|
|
if /I ["%3"] == ["debug"] set "CASDEB=d"
|
|
if /I ["%3"] == ["d"] set "CASDEB=d"
|
|
|
|
if exist "%~dp0custom.bat" (
|
|
call "%~dp0custom.bat" %1 %2 %3
|
|
)
|
|
|
|
if ["%CASROOT%"] == [""] set "CASROOT=%SCRIPTROOT%"
|
|
|
|
set "ORIGIN_PATH=%PATH%"
|
|
|
|
if not ["%TCL_DIR%"] == [""] set "PATH=%TCL_DIR%;%PATH%"
|
|
if not ["%FREETYPE_DIR%"] == [""] set "PATH=%FREETYPE_DIR%;%PATH%"
|
|
if not ["%FREEIMAGE_DIR%"] == [""] set "PATH=%FREEIMAGE_DIR%;%PATH%"
|
|
if not ["%GL2PS_DIR%"] == [""] set "PATH=%GL2PS_DIR%;%PATH%"
|
|
if not ["%TBB_DIR%"] == [""] set "PATH=%TBB_DIR%;%PATH%"
|
|
|
|
rem ----- Set path to 3rd party and OCCT libraries -----
|
|
set "BIN_TAIL=win%ARCH%/%VCVER%/bin%CASDEB%"
|
|
set "PATH=%CASROOT%/%BIN_TAIL%;%PATH%"
|
|
|
|
rem ----- Set envoronment variables used by OCCT -----
|
|
set CSF_LANGUAGE=us
|
|
set MMGT_CLEAR=1
|
|
set CSF_EXCEPTION_PROMPT=1
|
|
set "CSF_SHMessage=%CASROOT%\src\SHMessage"
|
|
set "CSF_MDTVTexturesDirectory=%CASROOT%\src\Textures"
|
|
set "CSF_ShadersDirectory=%CASROOT%\src\Shaders"
|
|
set "CSF_XSMessage=%CASROOT%\src\XSMessage"
|
|
set "CSF_TObjMessage=%CASROOT%\src\TObj"
|
|
set "CSF_StandardDefaults=%CASROOT%\src\StdResource"
|
|
set "CSF_PluginDefaults=%CASROOT%\src\StdResource"
|
|
set "CSF_XCAFDefaults=%CASROOT%\src\StdResource"
|
|
set "CSF_TObjDefaults=%CASROOT%\src\StdResource"
|
|
set "CSF_StandardLiteDefaults=%CASROOT%\src\StdResource"
|
|
set "CSF_UnitsLexicon=%CASROOT%\src\UnitsAPI\Lexi_Expr.dat"
|
|
set "CSF_UnitsDefinition=%CASROOT%\src\UnitsAPI\Units.dat"
|
|
set "CSF_IGESDefaults=%CASROOT%\src\XSTEPResource"
|
|
set "CSF_STEPDefaults=%CASROOT%\src\XSTEPResource"
|
|
set "CSF_XmlOcafResource=%CASROOT%\src\XmlOcafResource"
|
|
set "CSF_MIGRATION_TYPES=%CASROOT%\src\StdResource\MigrationSheet.txt"
|
|
|
|
rem Draw Harness special stuff
|
|
if exist "%CASROOT%\src\DrawResources" (
|
|
set "DRAWHOME=%CASROOT%\src\DrawResources"
|
|
set "CSF_DrawPluginDefaults=%CASROOT%\src\DrawResources"
|
|
|
|
if exist "%CASROOT%\src\DrawResources\DrawDefault" (
|
|
set "DRAWDEFAULT=%CASROOT%\src\DrawResources\DrawDefault"
|
|
)
|
|
)
|
|
|
|
if exist "%CASROOT%\src\DrawResourcesProducts" (
|
|
set "CSF_DrawPluginProductsDefaults=%CASROOT%\src\DrawResourcesProducts"
|
|
)
|
|
|