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. */
|
2012-04-19 19:04:21 +03:00
|
|
|
#ifndef cmNinjaNormalTargetGenerator_h
|
2016-07-09 11:21:54 +02:00
|
|
|
#define cmNinjaNormalTargetGenerator_h
|
2012-04-19 19:04:21 +03:00
|
|
|
|
2017-07-20 19:35:53 +02:00
|
|
|
#include "cmConfigure.h"
|
2012-08-04 10:26:08 +03:00
|
|
|
|
2016-10-30 18:24:19 +01:00
|
|
|
#include "cmNinjaTargetGenerator.h"
|
2016-07-09 11:21:54 +02:00
|
|
|
|
2016-10-30 18:24:19 +01:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2012-04-19 19:04:21 +03:00
|
|
|
|
2014-08-03 19:52:23 +02:00
|
|
|
class cmGeneratorTarget;
|
2012-04-19 19:04:21 +03:00
|
|
|
|
|
|
|
class cmNinjaNormalTargetGenerator : public cmNinjaTargetGenerator
|
|
|
|
{
|
|
|
|
public:
|
2014-08-03 19:52:23 +02:00
|
|
|
cmNinjaNormalTargetGenerator(cmGeneratorTarget* target);
|
2016-10-30 18:24:19 +01:00
|
|
|
~cmNinjaNormalTargetGenerator() CM_OVERRIDE;
|
2012-04-19 19:04:21 +03:00
|
|
|
|
2016-10-30 18:24:19 +01:00
|
|
|
void Generate() CM_OVERRIDE;
|
2012-04-19 19:04:21 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::string LanguageLinkerRule() const;
|
2017-04-14 19:02:05 +02:00
|
|
|
std::string LanguageLinkerDeviceRule() const;
|
|
|
|
|
2012-04-19 19:04:21 +03:00
|
|
|
const char* GetVisibleTypeName() const;
|
|
|
|
void WriteLanguagesRules();
|
2017-04-14 19:02:05 +02:00
|
|
|
|
2012-06-27 20:52:58 +03:00
|
|
|
void WriteLinkRule(bool useResponseFile);
|
2017-04-14 19:02:05 +02:00
|
|
|
void WriteDeviceLinkRule(bool useResponseFile);
|
|
|
|
|
2012-04-19 19:04:21 +03:00
|
|
|
void WriteLinkStatement();
|
2017-04-14 19:02:05 +02:00
|
|
|
void WriteDeviceLinkStatement();
|
|
|
|
|
2012-04-19 19:04:21 +03:00
|
|
|
void WriteObjectLibStatement();
|
2017-04-14 19:02:05 +02:00
|
|
|
|
2012-04-19 19:04:21 +03:00
|
|
|
std::vector<std::string> ComputeLinkCmd();
|
2017-04-14 19:02:05 +02:00
|
|
|
std::vector<std::string> ComputeDeviceLinkCmd();
|
2012-04-19 19:04:21 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
// Target name info.
|
|
|
|
std::string TargetNameOut;
|
|
|
|
std::string TargetNameSO;
|
|
|
|
std::string TargetNameReal;
|
|
|
|
std::string TargetNameImport;
|
|
|
|
std::string TargetNamePDB;
|
2015-04-27 22:25:09 +02:00
|
|
|
std::string TargetLinkLanguage;
|
2017-04-14 19:02:05 +02:00
|
|
|
std::string DeviceLinkObject;
|
2012-04-19 19:04:21 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ! cmNinjaNormalTargetGenerator_h
|