Process plugin libraries names correctly on Windows and Linux

This commit is contained in:
vsr 2013-11-11 08:43:20 +00:00
parent 68da331797
commit 7555ded134
2 changed files with 22 additions and 13 deletions

View File

@ -1,31 +1,31 @@
Import: BREP|IGES|STEP|ACIS
Export: BREP|IGES|IGES_5_3|STEP|STL_Bin|STL_ASCII|ACIS|VTK
BREP.Import: libBREPImport
BREP.Export: libBREPExport
BREP.Import: BREPImport
BREP.Export: BREPExport
BREP.Pattern: BREP Files ( *.brep )
IGES.Import: libIGESImport
IGES.Export: libIGESExport
IGES.Import: IGESImport
IGES.Export: IGESExport
IGES.Pattern: IGES 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 )
STEP.Import: libSTEPImport
STEP.Export: libSTEPExport
STEP.Import: STEPImport
STEP.Export: STEPExport
STEP.Pattern: STEP Files ( *.step *.stp )
STL_Bin.Export: libSTLExport
STL_Bin.Export: STLExport
STL_Bin.Pattern: STL Binary Files ( *.stl )
STL_ASCII.Export: libSTLExport
STL_ASCII.Export: STLExport
STL_ASCII.Pattern: STL ASCII Files ( *.stl )
ACIS.Import: libACISImport
ACIS.Export: libACISExport
ACIS.Import: ACISImport
ACIS.Export: ACISExport
ACIS.Pattern: ACIS Files ( *.sat )
VTK.Export: libVTKExport
VTK.Export: VTKExport
VTK.Pattern: VTK Files ( *.vtk )

View File

@ -515,7 +515,9 @@ Standard_Boolean GEOMImpl_IInsertOperations::IsSupported
if (myResMgr->Find(aKey.ToCString())) {
TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString()));
#ifndef WIN32
aLibName += ".so";
if ( aLibName.Length() > 3 && aLibName.SubString(1,3) != "lib" )
aLibName.Prepend("lib");
aLibName += ".so";
#else
aLibName += ".dll";
#endif
@ -535,6 +537,13 @@ Standard_Boolean GEOMImpl_IInsertOperations::IsSupported
aKey += aMode;
if (myResMgrUser->Find(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);
return Standard_True;
}