mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
It is possible now to use standalone TCL and TK. Behavior of 3RDPARTY_TK_DIR specifying extended TCL/TK searching works correctly with installed ActiveTcl TCL/TK searching works correctly with latest versions of CMake Macro COMPLIANCE_PRODUCT_CONSISTENCY was created. Small update of compilation for android
82 lines
3.0 KiB
Batchfile
82 lines
3.0 KiB
Batchfile
echo off
|
|
|
|
set "SCRIPTROOT=%~dp0"
|
|
set "SCRIPTROOT=%SCRIPTROOT:~0,-1%"
|
|
|
|
set "CASROOT=@CMAKE_SOURCE_DIR@"
|
|
|
|
set "VCVER=@COMPILER@"
|
|
set "ARCH=@COMPILER_BITNESS@"
|
|
set "CASDEB="
|
|
|
|
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 /I ["%3"] == ["i"] set "CASDEB=i"
|
|
if /I ["%3"] == ["relwithdeb"] set "CASDEB=i"
|
|
|
|
if exist "%~dp0custom.bat" (
|
|
call "%~dp0custom.bat" %1 %2 %3
|
|
)
|
|
|
|
if ["%CASROOT%"] == [""] set "CASROOT=%SCRIPTROOT%"
|
|
set "PRODROOT="
|
|
|
|
set "ORIGIN_PATH=%PATH%"
|
|
|
|
if not ["%TCL_DIR%"] == [""] set "PATH=%TCL_DIR%;%PATH%"
|
|
if not ["%TK_DIR%"] == [""] set "PATH=%TK_DIR%;%PATH%"
|
|
if not ["%FREETYPE_DIR%"] == [""] set "PATH=%FREETYPE_DIR%;%PATH%"
|
|
if not ["%FREEIMAGE_DIR%"] == [""] set "PATH=%FREEIMAGE_DIR%;%PATH%"
|
|
if not ["%FREEIMAGEPLUS_DIR%"] == [""] set "PATH=%FREEIMAGEPLUS_DIR%;%PATH%"
|
|
if not ["%GL2PS_DIR%"] == [""] set "PATH=%GL2PS_DIR%;%PATH%"
|
|
if not ["%TBB_DIR%"] == [""] set "PATH=%TBB_DIR%;%PATH%"
|
|
if not ["%VTK_DIR%"] == [""] set "PATH=%VTK_DIR%;%PATH%"
|
|
|
|
rem ----- Set path to 3rd party and OCCT libraries -----
|
|
set "BIN_TAIL=win%ARCH%/%VCVER%/bin%CASDEB%"
|
|
set "PATH=@CMAKE_BINARY_DIR@/%BIN_TAIL%;%PATH%"
|
|
if not ["%TK_DIR%"] == ["%TCL_DIR%"] (
|
|
if not ["%TK_DIR%"] == [""] set "TK_LIBRARY=%TK_DIR%/../lib/tk@3RDPARTY_TK_LIBRARY_VERSION_WITH_DOT@"
|
|
if not ["%TCL_DIR%"] == [""] set "TCL_LIBRARY=%TCL_DIR%/../lib/tcl@3RDPARTY_TCL_LIBRARY_VERSION_WITH_DOT@"
|
|
)
|
|
|
|
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"
|
|
)
|
|
|