mirror of
https://github.com/Kitware/CMake.git
synced 2025-06-19 19:36:41 +08:00

Add a ConvertToOutputForExisting method which can be made virtual later to satisfy different generator needs. Pass additional strings as parameters for now. They can be turned into class state later.
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
/* 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
|
|
|
|
#include "cmState.h"
|
|
|
|
class cmComputeLinkInformation;
|
|
class cmOutputConverter;
|
|
|
|
class cmLinkLineComputer
|
|
{
|
|
public:
|
|
cmLinkLineComputer(cmOutputConverter* outputConverter,
|
|
cmState::Directory stateDir);
|
|
virtual ~cmLinkLineComputer();
|
|
|
|
void SetUseWatcomQuote(bool useWatcomQuote);
|
|
void SetForResponse(bool forResponse);
|
|
|
|
virtual std::string ConvertToLinkReference(std::string const& input) const;
|
|
|
|
std::string ComputeLinkLibs(cmComputeLinkInformation& cli);
|
|
|
|
std::string ComputeLinkPath(cmComputeLinkInformation& cli,
|
|
std::string const& libPathFlag,
|
|
std::string const& libPathTerminator);
|
|
|
|
private:
|
|
std::string ConvertToOutputFormat(std::string const& input);
|
|
std::string ConvertToOutputForExisting(std::string const& input);
|
|
|
|
cmState::Directory StateDir;
|
|
cmOutputConverter* OutputConverter;
|
|
|
|
bool ForResponse;
|
|
bool UseWatcomQuote;
|
|
};
|
|
|
|
#endif
|