2015-07-07 23:37:56 +03:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2015 Kitware, Inc., Insight Software Consortium
|
|
|
|
|
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
|
|
|
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
|
|
|
#ifndef cmLocalCommonGenerator_h
|
|
|
|
#define cmLocalCommonGenerator_h
|
|
|
|
|
|
|
|
#include "cmLocalGenerator.h"
|
|
|
|
|
2015-07-08 22:24:17 +03:00
|
|
|
class cmCommonTargetGenerator;
|
|
|
|
|
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,
|
|
|
|
cmOutputConverter::RelativeRoot 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-06-16 17:54:20 +03:00
|
|
|
cmOutputConverter::RelativeRoot GetWorkingDirectory() const
|
|
|
|
{
|
|
|
|
return this->WorkingDirectory;
|
|
|
|
}
|
|
|
|
|
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-06-16 17:54:20 +03:00
|
|
|
cmOutputConverter::RelativeRoot WorkingDirectory;
|
|
|
|
|
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
|