cmake/Source/cmLocalVisualStudio10Generator.h

52 lines
1.5 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. */
2009-10-04 10:30:41 +03:00
#ifndef cmLocalVisualStudio10Generator_h
#define cmLocalVisualStudio10Generator_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2017-04-14 19:02:05 +02:00
#include <string>
2009-10-04 10:30:41 +03:00
#include "cmLocalVisualStudio7Generator.h"
2017-04-14 19:02:05 +02:00
class cmGlobalGenerator;
class cmMakefile;
2009-10-04 10:30:41 +03:00
/** \class cmLocalVisualStudio10Generator
* \brief Write Visual Studio 10 project files.
*
* cmLocalVisualStudio10Generator produces a Visual Studio 10 project
* file for each target in its directory.
*/
class cmLocalVisualStudio10Generator : public cmLocalVisualStudio7Generator
{
public:
///! Set cache only and recurse to false by default.
2015-11-17 17:22:37 +01:00
cmLocalVisualStudio10Generator(cmGlobalGenerator* gg, cmMakefile* mf);
2009-10-04 10:30:41 +03:00
virtual ~cmLocalVisualStudio10Generator();
/**
2013-03-16 19:13:01 +02:00
* Generate the makefile for this directory.
2009-10-04 10:30:41 +03:00
*/
2018-04-23 21:13:27 +02:00
void Generate() override;
void ReadAndStoreExternalGUID(const std::string& name,
const char* path) override;
2011-01-16 11:35:12 +01:00
2018-08-09 18:06:22 +02:00
std::set<cmSourceFile const*>& GetSourcesVisited(cmGeneratorTarget* target)
{
return SourcesVisited[target];
};
2011-01-16 11:35:12 +01:00
protected:
2018-04-23 21:13:27 +02:00
const char* ReportErrorLabel() const override;
bool CustomCommandUseLocal() const override { return true; }
2011-01-16 11:35:12 +01:00
2009-10-04 10:30:41 +03:00
private:
2018-08-09 18:06:22 +02:00
void GenerateTargetsDepthFirst(cmGeneratorTarget* target,
std::vector<cmGeneratorTarget*>& remaining);
std::map<cmGeneratorTarget*, std::set<cmSourceFile const*>> SourcesVisited;
2009-10-04 10:30:41 +03:00
};
#endif