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. */
|
2015-07-07 23:37:56 +03:00
|
|
|
#ifndef cmLocalCommonGenerator_h
|
|
|
|
#define cmLocalCommonGenerator_h
|
|
|
|
|
2016-09-01 21:59:28 +03:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
|
2015-07-07 23:37:56 +03:00
|
|
|
#include "cmLocalGenerator.h"
|
2016-09-01 21:59:28 +03:00
|
|
|
#include "cmOutputConverter.h"
|
|
|
|
|
|
|
|
#include <string>
|
2015-07-07 23:37:56 +03:00
|
|
|
|
2016-09-01 21:59:28 +03:00
|
|
|
class cmGeneratorTarget;
|
|
|
|
class cmGlobalGenerator;
|
|
|
|
class cmMakefile;
|
2015-07-08 22:24:17 +03:00
|
|
|
|
2015-07-07 23:37:56 +03:00
|
|
|
/** \class cmLocalCommonGenerator
|
|
|
|
* \brief Common infrastructure for Makefile and Ninja local generators.
|
|
|
|
*/
|
2016-05-16 17:34:04 +03:00
|
|
|
class cmLocalCommonGenerator : public cmLocalGenerator
|
2015-07-07 23:37:56 +03:00
|
|
|
{
|
|
|
|
public:
|
2016-06-16 17:54:20 +03:00
|
|
|
cmLocalCommonGenerator(cmGlobalGenerator* gg, cmMakefile* mf,
|
2016-08-27 19:32:49 +03:00
|
|
|
std::string const& wd);
|
2016-06-27 22:25:27 +03:00
|
|
|
~cmLocalCommonGenerator() CM_OVERRIDE;
|
2015-07-08 18:27:22 +03:00
|
|
|
|
|
|
|
std::string const& GetConfigName() { return this->ConfigName; }
|
|
|
|
|
2016-08-27 19:32:49 +03:00
|
|
|
std::string GetWorkingDirectory() const { return this->WorkingDirectory; }
|
2016-06-16 17:54:20 +03:00
|
|
|
|
2016-06-16 18:14:18 +03:00
|
|
|
std::string GetTargetFortranFlags(cmGeneratorTarget const* target,
|
2016-06-27 22:25:27 +03:00
|
|
|
std::string const& config) CM_OVERRIDE;
|
2016-06-16 18:14:18 +03:00
|
|
|
|
2015-07-08 18:27:22 +03:00
|
|
|
protected:
|
2016-08-27 19:32:49 +03:00
|
|
|
std::string WorkingDirectory;
|
2016-06-16 17:54:20 +03:00
|
|
|
|
2015-07-08 18:27:22 +03:00
|
|
|
void SetConfigName();
|
|
|
|
std::string ConfigName;
|
2015-07-08 22:24:17 +03:00
|
|
|
|
|
|
|
friend class cmCommonTargetGenerator;
|
2015-07-07 23:37:56 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|