1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-01 17:36:21 +03:00

Configuration - Issue to start Draw debugging in VS #465

Fixed path for DRAWEXE project configuration in CMakeLists.txt
Updated plugin file search path to use CSF_OCCTResourcePath
This commit is contained in:
Pasukhin Dmitry 2025-03-27 16:59:53 +00:00 committed by dpasukhi
parent fd7a989826
commit 496ffd4005
4 changed files with 9 additions and 7 deletions

View File

@ -1240,7 +1240,7 @@ if (MSVC AND 3RDPARTY_DLL_DIRS)
set (X_COMPILER_BITNESS "Win32")
endif()
OCCT_CONFIGURE ("adm/templates/DRAWEXE.vcxproj.user.in" "${CMAKE_BINARY_DIR}/src/DRAWEXE/DRAWEXE.vcxproj.user")
OCCT_CONFIGURE ("adm/templates/DRAWEXE.vcxproj.user.in" "${CMAKE_BINARY_DIR}/src/Draw/DRAWEXE/DRAWEXE.vcxproj.user")
endif()
endif()

View File

@ -4,6 +4,7 @@
<LocalDebuggerEnvironment>CASROOT=@CMAKE_SOURCE_DIR@
CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
CSF_OCCTResourcePath=@CMAKE_SOURCE_DIR@/resources
DRAWHOME=@CMAKE_SOURCE_DIR@/resources/DrawResources
CSF_OCCTDataPath=@CMAKE_SOURCE_DIR@/data
CSF_OCCTSamplesPath=@CMAKE_SOURCE_DIR@/samples
CSF_OCCTTestsPath=@CMAKE_SOURCE_DIR@/tests
@ -29,6 +30,7 @@ PATH=@3RDPARTY_DLL_DIRS_FOR_PATH@;%PATH%
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@X_COMPILER_BITNESS@'">
<LocalDebuggerEnvironment>CASROOT=@CMAKE_SOURCE_DIR@
CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
DRAWHOME=@CMAKE_SOURCE_DIR@/resources/DrawResources
CSF_OCCTResourcePath=@CMAKE_SOURCE_DIR@/resources
CSF_OCCTDataPath=@CMAKE_SOURCE_DIR@/data
CSF_OCCTSamplesPath=@CMAKE_SOURCE_DIR@/samples

View File

@ -452,10 +452,10 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
else
{
TCollection_AsciiString aDrawHome;
TCollection_AsciiString aCasRoot(OSD_Environment("CASROOT").Value());
TCollection_AsciiString aCasRoot(OSD_Environment("CSF_OCCTResourcePath").Value());
if (!aCasRoot.IsEmpty())
{
aDrawHome = aCasRoot + "/src/DrawResources";
aDrawHome = aCasRoot + "/DrawResources";
}
else
{

View File

@ -60,17 +60,17 @@ static Standard_Boolean findPluginFile(TCollection_AsciiString& thePluginName,
}
else
{
// now try by CASROOT
thePluginDir = OSD_Environment("CASROOT").Value();
// now try by CSF_OCCTResourcePath
thePluginDir = OSD_Environment("CSF_OCCTResourcePath").Value();
if (!thePluginDir.IsEmpty())
{
thePluginDir += "/src/DrawResources";
thePluginDir += "/DrawResources";
aToSetCSFVariable = Standard_True; // CSF variable to be set later
}
else
{
Message::SendFail() << "Failed to load plugin: Neither " << aCSFVariable
<< ", nor CASROOT variables have been set";
<< ", nor CSF_OCCTResourcePath variables have been set";
return Standard_False;
}
}