mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Process plugin libraries names correctly on Windows and Linux
This commit is contained in:
parent
68da331797
commit
7555ded134
@ -1,31 +1,31 @@
|
|||||||
Import: BREP|IGES|STEP|ACIS
|
Import: BREP|IGES|STEP|ACIS
|
||||||
Export: BREP|IGES|IGES_5_3|STEP|STL_Bin|STL_ASCII|ACIS|VTK
|
Export: BREP|IGES|IGES_5_3|STEP|STL_Bin|STL_ASCII|ACIS|VTK
|
||||||
|
|
||||||
BREP.Import: libBREPImport
|
BREP.Import: BREPImport
|
||||||
BREP.Export: libBREPExport
|
BREP.Export: BREPExport
|
||||||
BREP.Pattern: BREP Files ( *.brep )
|
BREP.Pattern: BREP Files ( *.brep )
|
||||||
|
|
||||||
IGES.Import: libIGESImport
|
IGES.Import: IGESImport
|
||||||
IGES.Export: libIGESExport
|
IGES.Export: IGESExport
|
||||||
IGES.Pattern: IGES Files ( *.iges *.igs )
|
IGES.Pattern: IGES Files ( *.iges *.igs )
|
||||||
IGES.ExportPattern: IGES 5.1 Files ( *.iges *.igs )
|
IGES.ExportPattern: IGES 5.1 Files ( *.iges *.igs )
|
||||||
|
|
||||||
IGES_5_3.Export: libIGESExport
|
IGES_5_3.Export: IGESExport
|
||||||
IGES_5_3.Pattern: IGES 5.3 Files ( *.iges *.igs )
|
IGES_5_3.Pattern: IGES 5.3 Files ( *.iges *.igs )
|
||||||
|
|
||||||
STEP.Import: libSTEPImport
|
STEP.Import: STEPImport
|
||||||
STEP.Export: libSTEPExport
|
STEP.Export: STEPExport
|
||||||
STEP.Pattern: STEP Files ( *.step *.stp )
|
STEP.Pattern: STEP Files ( *.step *.stp )
|
||||||
|
|
||||||
STL_Bin.Export: libSTLExport
|
STL_Bin.Export: STLExport
|
||||||
STL_Bin.Pattern: STL Binary Files ( *.stl )
|
STL_Bin.Pattern: STL Binary Files ( *.stl )
|
||||||
|
|
||||||
STL_ASCII.Export: libSTLExport
|
STL_ASCII.Export: STLExport
|
||||||
STL_ASCII.Pattern: STL ASCII Files ( *.stl )
|
STL_ASCII.Pattern: STL ASCII Files ( *.stl )
|
||||||
|
|
||||||
ACIS.Import: libACISImport
|
ACIS.Import: ACISImport
|
||||||
ACIS.Export: libACISExport
|
ACIS.Export: ACISExport
|
||||||
ACIS.Pattern: ACIS Files ( *.sat )
|
ACIS.Pattern: ACIS Files ( *.sat )
|
||||||
|
|
||||||
VTK.Export: libVTKExport
|
VTK.Export: VTKExport
|
||||||
VTK.Pattern: VTK Files ( *.vtk )
|
VTK.Pattern: VTK Files ( *.vtk )
|
||||||
|
@ -515,6 +515,8 @@ Standard_Boolean GEOMImpl_IInsertOperations::IsSupported
|
|||||||
if (myResMgr->Find(aKey.ToCString())) {
|
if (myResMgr->Find(aKey.ToCString())) {
|
||||||
TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString()));
|
TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString()));
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
if ( aLibName.Length() > 3 && aLibName.SubString(1,3) != "lib" )
|
||||||
|
aLibName.Prepend("lib");
|
||||||
aLibName += ".so";
|
aLibName += ".so";
|
||||||
#else
|
#else
|
||||||
aLibName += ".dll";
|
aLibName += ".dll";
|
||||||
@ -535,6 +537,13 @@ Standard_Boolean GEOMImpl_IInsertOperations::IsSupported
|
|||||||
aKey += aMode;
|
aKey += aMode;
|
||||||
if (myResMgrUser->Find(aKey.ToCString())) {
|
if (myResMgrUser->Find(aKey.ToCString())) {
|
||||||
TCollection_AsciiString aLibName (myResMgrUser->Value(aKey.ToCString()));
|
TCollection_AsciiString aLibName (myResMgrUser->Value(aKey.ToCString()));
|
||||||
|
#ifndef WIN32
|
||||||
|
if ( aLibName.Length() > 3 && aLibName.SubString(1,3) != "lib" )
|
||||||
|
aLibName.Prepend("lib");
|
||||||
|
aLibName += ".so";
|
||||||
|
#else
|
||||||
|
aLibName += ".dll";
|
||||||
|
#endif
|
||||||
theLibName = new TCollection_HAsciiString (aLibName);
|
theLibName = new TCollection_HAsciiString (aLibName);
|
||||||
return Standard_True;
|
return Standard_True;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user