cmNinjaLinkLineDeviceComputer now lives in the correct source file
This commit is contained in:
parent
66efdbd21a
commit
3205c7c950
@ -786,6 +786,8 @@ set(SRCS ${SRCS}
|
|||||||
cmNinjaUtilityTargetGenerator.h
|
cmNinjaUtilityTargetGenerator.h
|
||||||
cmNinjaLinkLineComputer.cxx
|
cmNinjaLinkLineComputer.cxx
|
||||||
cmNinjaLinkLineComputer.h
|
cmNinjaLinkLineComputer.h
|
||||||
|
cmNinjaLinkLineDeviceComputer.cxx
|
||||||
|
cmNinjaLinkLineDeviceComputer.h
|
||||||
)
|
)
|
||||||
|
|
||||||
# Temporary variable for tools targets
|
# Temporary variable for tools targets
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
#include "cmAlgorithms.h"
|
#include "cmAlgorithms.h"
|
||||||
#include "cmComputeLinkInformation.h"
|
#include "cmComputeLinkInformation.h"
|
||||||
#include "cmGeneratorTarget.h"
|
#include "cmGeneratorTarget.h"
|
||||||
#include "cmGlobalNinjaGenerator.h"
|
|
||||||
#include "cmStateTypes.h"
|
#include "cmStateTypes.h"
|
||||||
|
|
||||||
class cmOutputConverter;
|
class cmOutputConverter;
|
||||||
@ -117,17 +116,3 @@ std::string cmLinkLineDeviceComputer::GetLinkerLanguage(cmGeneratorTarget*,
|
|||||||
{
|
{
|
||||||
return "CUDA";
|
return "CUDA";
|
||||||
}
|
}
|
||||||
|
|
||||||
cmNinjaLinkLineDeviceComputer::cmNinjaLinkLineDeviceComputer(
|
|
||||||
cmOutputConverter* outputConverter, cmStateDirectory const& stateDir,
|
|
||||||
cmGlobalNinjaGenerator const* gg)
|
|
||||||
: cmLinkLineDeviceComputer(outputConverter, stateDir)
|
|
||||||
, GG(gg)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string cmNinjaLinkLineDeviceComputer::ConvertToLinkReference(
|
|
||||||
std::string const& lib) const
|
|
||||||
{
|
|
||||||
return GG->ConvertToNinjaPath(lib);
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
class cmComputeLinkInformation;
|
class cmComputeLinkInformation;
|
||||||
class cmGeneratorTarget;
|
class cmGeneratorTarget;
|
||||||
class cmGlobalNinjaGenerator;
|
|
||||||
class cmOutputConverter;
|
class cmOutputConverter;
|
||||||
class cmStateDirectory;
|
class cmStateDirectory;
|
||||||
|
|
||||||
@ -34,21 +33,4 @@ public:
|
|||||||
std::string const& config) override;
|
std::string const& config) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class cmNinjaLinkLineDeviceComputer : public cmLinkLineDeviceComputer
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
cmNinjaLinkLineDeviceComputer(cmOutputConverter* outputConverter,
|
|
||||||
cmStateDirectory const& stateDir,
|
|
||||||
cmGlobalNinjaGenerator const* gg);
|
|
||||||
|
|
||||||
cmNinjaLinkLineDeviceComputer(cmNinjaLinkLineDeviceComputer const&) = delete;
|
|
||||||
cmNinjaLinkLineDeviceComputer& operator=(
|
|
||||||
cmNinjaLinkLineDeviceComputer const&) = delete;
|
|
||||||
|
|
||||||
std::string ConvertToLinkReference(std::string const& input) const override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
cmGlobalNinjaGenerator const* GG;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
20
Source/cmNinjaLinkLineDeviceComputer.cxx
Normal file
20
Source/cmNinjaLinkLineDeviceComputer.cxx
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||||
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||||
|
|
||||||
|
#include "cmNinjaLinkLineDeviceComputer.h"
|
||||||
|
|
||||||
|
#include "cmGlobalNinjaGenerator.h"
|
||||||
|
|
||||||
|
cmNinjaLinkLineDeviceComputer::cmNinjaLinkLineDeviceComputer(
|
||||||
|
cmOutputConverter* outputConverter, cmStateDirectory const& stateDir,
|
||||||
|
cmGlobalNinjaGenerator const* gg)
|
||||||
|
: cmLinkLineDeviceComputer(outputConverter, stateDir)
|
||||||
|
, GG(gg)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string cmNinjaLinkLineDeviceComputer::ConvertToLinkReference(
|
||||||
|
std::string const& lib) const
|
||||||
|
{
|
||||||
|
return GG->ConvertToNinjaPath(lib);
|
||||||
|
}
|
34
Source/cmNinjaLinkLineDeviceComputer.h
Normal file
34
Source/cmNinjaLinkLineDeviceComputer.h
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||||
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||||
|
|
||||||
|
#ifndef cmNinjaLinkLineDeviceComputer_h
|
||||||
|
#define cmNinjaLinkLineDeviceComputer_h
|
||||||
|
|
||||||
|
#include "cmConfigure.h" // IWYU pragma: keep
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "cmLinkLineDeviceComputer.h"
|
||||||
|
|
||||||
|
class cmGlobalNinjaGenerator;
|
||||||
|
class cmOutputConverter;
|
||||||
|
class cmStateDirectory;
|
||||||
|
|
||||||
|
class cmNinjaLinkLineDeviceComputer : public cmLinkLineDeviceComputer
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
cmNinjaLinkLineDeviceComputer(cmOutputConverter* outputConverter,
|
||||||
|
cmStateDirectory const& stateDir,
|
||||||
|
cmGlobalNinjaGenerator const* gg);
|
||||||
|
|
||||||
|
cmNinjaLinkLineDeviceComputer(cmNinjaLinkLineDeviceComputer const&) = delete;
|
||||||
|
cmNinjaLinkLineDeviceComputer& operator=(
|
||||||
|
cmNinjaLinkLineDeviceComputer const&) = delete;
|
||||||
|
|
||||||
|
std::string ConvertToLinkReference(std::string const& input) const override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
cmGlobalNinjaGenerator const* GG;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -18,10 +18,10 @@
|
|||||||
#include "cmGeneratorTarget.h"
|
#include "cmGeneratorTarget.h"
|
||||||
#include "cmGlobalNinjaGenerator.h"
|
#include "cmGlobalNinjaGenerator.h"
|
||||||
#include "cmLinkLineComputer.h"
|
#include "cmLinkLineComputer.h"
|
||||||
#include "cmLinkLineDeviceComputer.h"
|
|
||||||
#include "cmLocalGenerator.h"
|
#include "cmLocalGenerator.h"
|
||||||
#include "cmLocalNinjaGenerator.h"
|
#include "cmLocalNinjaGenerator.h"
|
||||||
#include "cmMakefile.h"
|
#include "cmMakefile.h"
|
||||||
|
#include "cmNinjaLinkLineDeviceComputer.h"
|
||||||
#include "cmNinjaTypes.h"
|
#include "cmNinjaTypes.h"
|
||||||
#include "cmOSXBundleGenerator.h"
|
#include "cmOSXBundleGenerator.h"
|
||||||
#include "cmOutputConverter.h"
|
#include "cmOutputConverter.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user