2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2011-11-11 05:00:49 +00:00
|
|
|
#ifndef cmNinjaNormalTargetGenerator_h
|
2016-04-29 13:40:20 +00:00
|
|
|
#define cmNinjaNormalTargetGenerator_h
|
2011-11-11 05:00:49 +00:00
|
|
|
|
2017-08-25 18:39:02 +00:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2012-07-07 17:54:16 +00:00
|
|
|
|
2019-02-08 05:27:00 +00:00
|
|
|
#include "cmGeneratorTarget.h"
|
2016-08-23 22:29:15 +00:00
|
|
|
#include "cmNinjaTargetGenerator.h"
|
2016-04-29 13:40:20 +00:00
|
|
|
|
2016-08-23 22:29:15 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2011-11-11 05:00:49 +00:00
|
|
|
|
|
|
|
class cmNinjaNormalTargetGenerator : public cmNinjaTargetGenerator
|
|
|
|
{
|
|
|
|
public:
|
2012-10-10 19:32:37 +00:00
|
|
|
cmNinjaNormalTargetGenerator(cmGeneratorTarget* target);
|
2017-09-15 13:56:26 +00:00
|
|
|
~cmNinjaNormalTargetGenerator() override;
|
2011-11-11 05:00:49 +00:00
|
|
|
|
2017-09-15 13:56:26 +00:00
|
|
|
void Generate() override;
|
2011-11-11 05:00:49 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::string LanguageLinkerRule() const;
|
2016-10-13 15:14:21 +00:00
|
|
|
std::string LanguageLinkerDeviceRule() const;
|
|
|
|
|
2011-11-11 05:00:49 +00:00
|
|
|
const char* GetVisibleTypeName() const;
|
|
|
|
void WriteLanguagesRules();
|
2016-10-13 15:14:21 +00:00
|
|
|
|
2012-06-14 23:43:08 +00:00
|
|
|
void WriteLinkRule(bool useResponseFile);
|
2016-10-13 15:14:21 +00:00
|
|
|
void WriteDeviceLinkRule(bool useResponseFile);
|
|
|
|
|
2011-11-11 05:00:49 +00:00
|
|
|
void WriteLinkStatement();
|
2016-10-13 15:14:21 +00:00
|
|
|
void WriteDeviceLinkStatement();
|
|
|
|
|
2012-03-13 14:05:07 +00:00
|
|
|
void WriteObjectLibStatement();
|
2016-10-13 15:14:21 +00:00
|
|
|
|
2011-11-11 05:00:49 +00:00
|
|
|
std::vector<std::string> ComputeLinkCmd();
|
2016-10-13 15:14:21 +00:00
|
|
|
std::vector<std::string> ComputeDeviceLinkCmd();
|
2011-11-11 05:00:49 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
// Target name info.
|
2019-02-08 05:27:00 +00:00
|
|
|
cmGeneratorTarget::Names TargetNames;
|
2014-02-04 02:20:56 +00:00
|
|
|
std::string TargetLinkLanguage;
|
2016-10-13 15:14:21 +00:00
|
|
|
std::string DeviceLinkObject;
|
2011-11-11 05:00:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ! cmNinjaNormalTargetGenerator_h
|