cmake/Source/cmLocalCommonGenerator.h

48 lines
1.3 KiB
C
Raw Normal View History

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. */
2015-11-17 17:22:37 +01:00
#ifndef cmLocalCommonGenerator_h
#define cmLocalCommonGenerator_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
2018-04-23 21:13:27 +02:00
#include <map>
2016-10-30 18:24:19 +01:00
#include <string>
2015-11-17 17:22:37 +01:00
2017-04-14 19:02:05 +02:00
#include "cmLocalGenerator.h"
2016-10-30 18:24:19 +01:00
class cmGeneratorTarget;
class cmGlobalGenerator;
class cmMakefile;
2018-04-23 21:13:27 +02:00
class cmSourceFile;
2015-11-17 17:22:37 +01:00
/** \class cmLocalCommonGenerator
* \brief Common infrastructure for Makefile and Ninja local generators.
*/
2016-07-09 11:21:54 +02:00
class cmLocalCommonGenerator : public cmLocalGenerator
2015-11-17 17:22:37 +01:00
{
public:
2016-10-30 18:24:19 +01:00
cmLocalCommonGenerator(cmGlobalGenerator* gg, cmMakefile* mf,
std::string const& wd);
2018-01-26 17:06:56 +01:00
~cmLocalCommonGenerator() override;
2015-11-17 17:22:37 +01:00
std::string const& GetConfigName() { return this->ConfigName; }
2016-10-30 18:24:19 +01:00
std::string GetWorkingDirectory() const { return this->WorkingDirectory; }
std::string GetTargetFortranFlags(cmGeneratorTarget const* target,
2018-01-26 17:06:56 +01:00
std::string const& config) override;
2016-10-30 18:24:19 +01:00
2018-04-23 21:13:27 +02:00
void ComputeObjectFilenames(
std::map<cmSourceFile const*, std::string>& mapping,
cmGeneratorTarget const* gt = nullptr) override;
2015-11-17 17:22:37 +01:00
protected:
2016-10-30 18:24:19 +01:00
std::string WorkingDirectory;
2015-11-17 17:22:37 +01:00
std::string ConfigName;
friend class cmCommonTargetGenerator;
};
#endif