cmBinUtilsLinuxELFGetRuntimeDependenciesTool.h 947 B

123456789101112131415161718192021222324252627282930
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmBinUtilsLinuxELFGetRuntimeDependenciesTool_h
  4. #define cmBinUtilsLinuxELFGetRuntimeDependenciesTool_h
  5. #include <string>
  6. #include <vector>
  7. class cmRuntimeDependencyArchive;
  8. class cmBinUtilsLinuxELFGetRuntimeDependenciesTool
  9. {
  10. public:
  11. cmBinUtilsLinuxELFGetRuntimeDependenciesTool(
  12. cmRuntimeDependencyArchive* archive);
  13. virtual ~cmBinUtilsLinuxELFGetRuntimeDependenciesTool() = default;
  14. virtual bool GetFileInfo(std::string const& file,
  15. std::vector<std::string>& needed,
  16. std::vector<std::string>& rpaths,
  17. std::vector<std::string>& runpaths) = 0;
  18. protected:
  19. cmRuntimeDependencyArchive* Archive;
  20. void SetError(const std::string& e);
  21. };
  22. #endif // cmBinUtilsLinuxELFGetRuntimeDependenciesTool_h