2016-10-30 18:24:19 +01: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
|
2008-10-12 18:41:06 +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>
|
2021-09-14 00:13:48 +02:00
|
|
|
#include <vector>
|
2016-10-30 18:24:19 +01:00
|
|
|
|
2008-10-12 18:41:06 +02:00
|
|
|
#include "cmMakefileTargetGenerator.h"
|
|
|
|
|
2016-10-30 18:24:19 +01:00
|
|
|
class cmGeneratorTarget;
|
|
|
|
|
2016-07-09 11:21:54 +02:00
|
|
|
class cmMakefileExecutableTargetGenerator : public cmMakefileTargetGenerator
|
2008-10-12 18:41:06 +02:00
|
|
|
{
|
|
|
|
public:
|
2014-08-03 19:52:23 +02:00
|
|
|
cmMakefileExecutableTargetGenerator(cmGeneratorTarget* target);
|
2018-01-26 17:06:56 +01:00
|
|
|
~cmMakefileExecutableTargetGenerator() override;
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
/* the main entry point for this class. Writes the Makefiles associated
|
|
|
|
with this target */
|
2018-01-26 17:06:56 +01:00
|
|
|
void WriteRuleFiles() override;
|
2012-08-04 10:26:08 +03:00
|
|
|
|
2008-10-12 18:41:06 +02:00
|
|
|
protected:
|
|
|
|
virtual void WriteExecutableRule(bool relink);
|
2017-04-14 19:02:05 +02:00
|
|
|
virtual void WriteDeviceExecutableRule(bool relink);
|
2021-09-14 00:13:48 +02:00
|
|
|
virtual void WriteNvidiaDeviceExecutableRule(
|
|
|
|
bool relink, std::vector<std::string>& commands,
|
|
|
|
const std::string& targetOutput);
|
2017-04-14 19:02:05 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::string DeviceLinkObject;
|
2008-10-12 18:41:06 +02:00
|
|
|
};
|