Beispiel #1
0
LibraryInfo TestBase::buildLibraryInfo(const QString& directoryPath, const QString& libraryFileName)
{
  LibraryInfo li;

  const auto libraryPath = QDir::cleanPath( directoryPath + "/" + libraryFileName );
  li.setAbsoluteFilePath(libraryPath);
  li.setLibraryPlatformName(libraryFileName);

  return li;
}
LibraryInfoList BinaryDependenciesLdd::stringRecordListToLibraryInfoList(const PlainText::StringRecordList& list)
{
  LibraryInfoList libraryInfoList;

  libraryInfoList.reserve(list.rowCount());
  for(const auto & record : list){
    Q_ASSERT(record.columnCount() > 0);
    LibraryInfo li;
    li.setLibraryPlatformName( record.data(0) );
    if(record.columnCount() > 1){
      li.setAbsoluteFilePath( record.data(1) );
    }
    libraryInfoList.addLibrary(li);
  }

  return libraryInfoList;
}