Adapt Export/Import functions for plugins

This commit is contained in:
abd 2006-04-04 08:29:25 +00:00
parent b3b8bbad36
commit 184e55bf08
2 changed files with 12 additions and 7 deletions

View File

@ -1,14 +1,14 @@
Import: BREP|IGES|STEP
Export: BREP|IGES|STEP
BREP.Import: libBREPImport.so
BREP.Export: libBREPExport.so
BREP.Import: libBREPImport
BREP.Export: libBREPExport
BREP.Pattern: BREP Files ( *.brep )
IGES.Import: libIGESImport.so
IGES.Export: libIGESExport.so
IGES.Import: libIGESImport
IGES.Export: libIGESExport
IGES.Pattern: IGES Files ( *.iges *.igs )
STEP.Import: libSTEPImport.so
STEP.Export: libSTEPExport.so
STEP.Import: libSTEPImport
STEP.Export: libSTEPExport
STEP.Pattern: STEP Files ( *.step *.stp )

View File

@ -352,7 +352,12 @@ Standard_Boolean GEOMImpl_IInsertOperations::IsSupported
aKey += ".";
aKey += aMode;
if (myResMgr->Find(aKey.ToCString())) {
TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString()));
TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString()));
#ifndef WNT
aLibName += ".so";
#else
aLibName += ".dll";
#endif
theLibName = new TCollection_HAsciiString (aLibName);
return Standard_True;
}