2016-09-27 22:01:08 +03: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 09:00:49 +04:00
|
|
|
#ifndef cmNinjaNormalTargetGenerator_h
|
2016-04-29 16:40:20 +03:00
|
|
|
#define cmNinjaNormalTargetGenerator_h
|
2011-11-11 09:00:49 +04:00
|
|
|
|
2016-08-24 01:29:15 +03:00
|
|
|
#include <cmConfigure.h>
|
2012-07-07 21:54:16 +04:00
|
|
|
|
2016-08-24 01:29:15 +03:00
|
|
|
#include "cmNinjaTargetGenerator.h"
|
2016-04-29 16:40:20 +03:00
|
|
|
|
2016-08-24 01:29:15 +03:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2011-11-11 09:00:49 +04:00
|
|
|
|
2012-10-10 23:32:37 +04:00
|
|
|
class cmGeneratorTarget;
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
class cmNinjaNormalTargetGenerator : public cmNinjaTargetGenerator
|
|
|
|
{
|
|
|
|
public:
|
2012-10-10 23:32:37 +04:00
|
|
|
cmNinjaNormalTargetGenerator(cmGeneratorTarget* target);
|
2016-06-27 22:25:27 +03:00
|
|
|
~cmNinjaNormalTargetGenerator() CM_OVERRIDE;
|
2011-11-11 09:00:49 +04:00
|
|
|
|
2016-06-27 22:25:27 +03:00
|
|
|
void Generate() CM_OVERRIDE;
|
2011-11-11 09:00:49 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::string LanguageLinkerRule() const;
|
|
|
|
const char* GetVisibleTypeName() const;
|
|
|
|
void WriteLanguagesRules();
|
2012-06-15 03:43:08 +04:00
|
|
|
void WriteLinkRule(bool useResponseFile);
|
2011-11-11 09:00:49 +04:00
|
|
|
void WriteLinkStatement();
|
2012-03-13 18:05:07 +04:00
|
|
|
void WriteObjectLibStatement();
|
2011-11-11 09:00:49 +04:00
|
|
|
std::vector<std::string> ComputeLinkCmd();
|
|
|
|
|
|
|
|
private:
|
|
|
|
// Target name info.
|
|
|
|
std::string TargetNameOut;
|
|
|
|
std::string TargetNameSO;
|
|
|
|
std::string TargetNameReal;
|
|
|
|
std::string TargetNameImport;
|
|
|
|
std::string TargetNamePDB;
|
2014-02-04 06:20:56 +04:00
|
|
|
std::string TargetLinkLanguage;
|
2011-11-11 09:00:49 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ! cmNinjaNormalTargetGenerator_h
|