cmake/Source/cmLinkLineDeviceComputer.h

45 lines
1.4 KiB
C
Raw Normal View History

2017-04-14 19:02:05 +02:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2017-04-14 19:02:05 +02:00
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2017-07-20 19:35:53 +02:00
#include <string>
2020-02-01 23:06:01 +01:00
#include <vector>
2017-07-20 19:35:53 +02:00
2017-04-14 19:02:05 +02:00
#include "cmLinkLineComputer.h"
2017-07-20 19:35:53 +02:00
class cmComputeLinkInformation;
class cmGeneratorTarget;
2019-11-11 23:01:05 +01:00
class cmLocalGenerator;
2017-07-20 19:35:53 +02:00
class cmOutputConverter;
class cmStateDirectory;
2020-02-01 23:06:01 +01:00
template <typename T>
class BT;
2017-04-14 19:02:05 +02:00
class cmLinkLineDeviceComputer : public cmLinkLineComputer
{
public:
cmLinkLineDeviceComputer(cmOutputConverter* outputConverter,
2017-07-20 19:35:53 +02:00
cmStateDirectory const& stateDir);
2018-01-26 17:06:56 +01:00
~cmLinkLineDeviceComputer() override;
2017-04-14 19:02:05 +02:00
2019-11-11 23:01:05 +01:00
cmLinkLineDeviceComputer(cmLinkLineDeviceComputer const&) = delete;
cmLinkLineDeviceComputer& operator=(cmLinkLineDeviceComputer const&) =
delete;
bool ComputeRequiresDeviceLinking(cmComputeLinkInformation& cli);
2022-11-16 20:14:03 +01:00
bool ComputeRequiresDeviceLinkingIPOFlag(cmComputeLinkInformation& cli);
2019-11-11 23:01:05 +01:00
2020-02-01 23:06:01 +01:00
void ComputeLinkLibraries(
cmComputeLinkInformation& cli, std::string const& stdLibString,
std::vector<BT<std::string>>& linkLibraries) override;
2017-04-14 19:02:05 +02:00
std::string GetLinkerLanguage(cmGeneratorTarget* target,
2018-01-26 17:06:56 +01:00
std::string const& config) override;
2017-04-14 19:02:05 +02:00
};
2019-11-11 23:01:05 +01:00
bool requireDeviceLinking(cmGeneratorTarget& target, cmLocalGenerator& lg,
const std::string& config);