Multi diag tools
Public Member Functions | List of all members
Mdt::DeployUtils::BinaryDependencies Class Reference

Find dependencies for a executable or a library. More...

#include <BinaryDependencies.h>

Inherits QObject.

Public Member Functions

 BinaryDependencies (QObject *parent=nullptr)
 Constructor.
 
 ~BinaryDependencies ()
 Destructor.
 
bool findDependencies (const QString &binaryFilePath, const Mdt::FileSystem::PathList &searchFirstPathPrefixList)
 Find dependencies for a executable or a library. More...
 
bool findDependencies (const QStringList &binariesFilePaths, const Mdt::FileSystem::PathList &searchFirstPathPrefixList)
 Find dependencies for a list of executables and/or libraries. More...
 
bool findDependencies (const LibraryInfoList &libraries, const Mdt::FileSystem::PathList &searchFirstPathPrefixList)
 Find dependencies for a lits of libraries. More...
 
LibraryInfoList dependencies () const
 Get dependencies.
 
Mdt::Error lastError () const
 Get last error.
 

Detailed Description

Find dependencies for a executable or a library.

Definition at line 41 of file BinaryDependencies.h.

Member Function Documentation

bool Mdt::DeployUtils::BinaryDependencies::findDependencies ( const QString &  binaryFilePath,
const Mdt::FileSystem::PathList searchFirstPathPrefixList 
)

Find dependencies for a executable or a library.

For target platforms that do not support RPATH (like DLL based systems), dependencies must be searched in several directories. Dependning on implementation, dependencies will be searched in the directory of binaryFilePath first. Then, dependencies will be searched, for each path in searchFirstPathPrefixList , in known subdirectories (like lib, bin, qt5/lib, qt5/bin). Finally, depending of the implementation, dependencies can also be serached in in system paths.

Definition at line 46 of file BinaryDependencies.cpp.

bool Mdt::DeployUtils::BinaryDependencies::findDependencies ( const QStringList &  binariesFilePaths,
const Mdt::FileSystem::PathList searchFirstPathPrefixList 
)

Find dependencies for a list of executables and/or libraries.

See also
findDependencies(const QString &, const PathList &)
Note
It is assumed that each binary file has the same binary format (PA, or elf, or ...)

Definition at line 65 of file BinaryDependencies.cpp.

bool Mdt::DeployUtils::BinaryDependencies::findDependencies ( const LibraryInfoList libraries,
const Mdt::FileSystem::PathList searchFirstPathPrefixList 
)

Find dependencies for a lits of libraries.

See also
findDependencies(const QString &, const PathList &)
Note
It is assumed that each library has the same binary format (PA, or elf, or ...)
Precondition
Each library list libraries must have its full path set

Definition at line 86 of file BinaryDependencies.cpp.


The documentation for this class was generated from the following files: