cmLinkLineDeviceComputer.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 cmLinkLineDeviceComputer_h
  4. #define cmLinkLineDeviceComputer_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <string>
  7. #include "cmLinkLineComputer.h"
  8. class cmComputeLinkInformation;
  9. class cmGeneratorTarget;
  10. class cmLocalGenerator;
  11. class cmOutputConverter;
  12. class cmStateDirectory;
  13. class cmLinkLineDeviceComputer : public cmLinkLineComputer
  14. {
  15. public:
  16. cmLinkLineDeviceComputer(cmOutputConverter* outputConverter,
  17. cmStateDirectory const& stateDir);
  18. ~cmLinkLineDeviceComputer() override;
  19. cmLinkLineDeviceComputer(cmLinkLineDeviceComputer const&) = delete;
  20. cmLinkLineDeviceComputer& operator=(cmLinkLineDeviceComputer const&) =
  21. delete;
  22. bool ComputeRequiresDeviceLinking(cmComputeLinkInformation& cli);
  23. std::string ComputeLinkLibraries(cmComputeLinkInformation& cli,
  24. std::string const& stdLibString) override;
  25. std::string GetLinkerLanguage(cmGeneratorTarget* target,
  26. std::string const& config) override;
  27. };
  28. bool requireDeviceLinking(cmGeneratorTarget& target, cmLocalGenerator& lg,
  29. const std::string& config);
  30. #endif