2016-10-08 10:21:36 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
|
|
|
|
|
|
#ifndef cmLinkLineComputer_h
|
|
|
|
#define cmLinkLineComputer_h
|
|
|
|
|
2017-04-11 20:00:21 +00:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-11-05 20:40:14 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2016-10-18 19:28:49 +00:00
|
|
|
#include "cmStateDirectory.h"
|
2016-10-08 10:21:36 +00:00
|
|
|
|
2016-10-08 10:21:38 +00:00
|
|
|
class cmComputeLinkInformation;
|
2017-01-05 21:31:36 +00:00
|
|
|
class cmGeneratorTarget;
|
2016-10-08 10:21:38 +00:00
|
|
|
class cmOutputConverter;
|
|
|
|
|
2016-10-08 10:21:36 +00:00
|
|
|
class cmLinkLineComputer
|
|
|
|
{
|
|
|
|
public:
|
2016-10-08 10:21:38 +00:00
|
|
|
cmLinkLineComputer(cmOutputConverter* outputConverter,
|
2016-10-18 19:28:47 +00:00
|
|
|
cmStateDirectory stateDir);
|
2016-10-08 10:21:36 +00:00
|
|
|
virtual ~cmLinkLineComputer();
|
|
|
|
|
2016-10-08 10:21:38 +00:00
|
|
|
void SetUseWatcomQuote(bool useWatcomQuote);
|
|
|
|
void SetForResponse(bool forResponse);
|
2016-10-08 10:21:38 +00:00
|
|
|
void SetRelink(bool relink);
|
2016-10-08 10:21:38 +00:00
|
|
|
|
2016-10-08 10:21:36 +00:00
|
|
|
virtual std::string ConvertToLinkReference(std::string const& input) const;
|
|
|
|
|
2016-10-08 10:21:38 +00:00
|
|
|
std::string ComputeLinkPath(cmComputeLinkInformation& cli,
|
|
|
|
std::string const& libPathFlag,
|
|
|
|
std::string const& libPathTerminator);
|
|
|
|
|
2016-10-08 10:21:39 +00:00
|
|
|
std::string ComputeFrameworkPath(cmComputeLinkInformation& cli,
|
|
|
|
std::string const& fwSearchFlag);
|
|
|
|
|
2016-10-13 12:57:31 +00:00
|
|
|
virtual std::string ComputeLinkLibraries(cmComputeLinkInformation& cli,
|
|
|
|
std::string const& stdLibString);
|
2016-10-08 10:21:39 +00:00
|
|
|
|
2017-01-05 21:31:36 +00:00
|
|
|
virtual std::string GetLinkerLanguage(cmGeneratorTarget* target,
|
|
|
|
std::string const& config);
|
|
|
|
|
2016-10-13 12:57:31 +00:00
|
|
|
protected:
|
2016-10-08 10:21:39 +00:00
|
|
|
std::string ComputeLinkLibs(cmComputeLinkInformation& cli);
|
|
|
|
std::string ComputeRPath(cmComputeLinkInformation& cli);
|
|
|
|
|
2016-10-08 10:21:38 +00:00
|
|
|
std::string ConvertToOutputFormat(std::string const& input);
|
2016-10-08 10:21:38 +00:00
|
|
|
std::string ConvertToOutputForExisting(std::string const& input);
|
2016-10-08 10:21:38 +00:00
|
|
|
|
2016-10-18 19:28:47 +00:00
|
|
|
cmStateDirectory StateDir;
|
2016-10-08 10:21:38 +00:00
|
|
|
cmOutputConverter* OutputConverter;
|
|
|
|
|
|
|
|
bool ForResponse;
|
|
|
|
bool UseWatcomQuote;
|
2016-10-08 10:21:38 +00:00
|
|
|
bool Relink;
|
2016-10-08 10:21:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|