mirror of
https://github.com/reactos/CMake.git
synced 2025-01-10 13:41:20 +00:00
0c97806325
Add a cmOutputConverter to the cmLinkLineComputer and factory methods to facilitate shell escapes. Add state to the cmLinkLineComputer to record whether outputting for response files or for watcom, to satisfy the cmOutputConverter API. These are constant for the lifetime of the cmLinkLineComputer, even when its functionality is extended in the future. This also keeps the signatures of cmLinkLineComputer relatively simple. Pass the cmComputeLinkInformation as a method parameter so that cmLinkLineComputer is free from target-specific state. An instance should be usable for all targets in a directory.
20 lines
577 B
C++
20 lines
577 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
|
|
#include "cmNinjaLinkLineComputer.h"
|
|
#include "cmGlobalNinjaGenerator.h"
|
|
|
|
cmNinjaLinkLineComputer::cmNinjaLinkLineComputer(
|
|
cmOutputConverter* outputConverter, cmState::Directory stateDir,
|
|
cmGlobalNinjaGenerator const* gg)
|
|
: cmLinkLineComputer(outputConverter, stateDir)
|
|
, GG(gg)
|
|
{
|
|
}
|
|
|
|
std::string cmNinjaLinkLineComputer::ConvertToLinkReference(
|
|
std::string const& lib) const
|
|
{
|
|
return GG->ConvertToNinjaPath(lib);
|
|
}
|