summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.h
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2012-11-19 18:05:55 (GMT)
committerBrad King <brad.king@kitware.com>2012-11-19 19:56:29 (GMT)
commit75ebebc39c93aab4d3a0c03560d2c9db82b574f4 (patch)
tree1f907d6b876986d0c73c7d9d5f34edaddb5126bf /Source/cmGlobalVisualStudio10Generator.h
parent8b62080c9db6a15649bd1673179076c096e26bec (diff)
downloadCMake-75ebebc39c93aab4d3a0c03560d2c9db82b574f4.zip
CMake-75ebebc39c93aab4d3a0c03560d2c9db82b574f4.tar.gz
CMake-75ebebc39c93aab4d3a0c03560d2c9db82b574f4.tar.bz2
VS: Remove platform specific generator files
Move the whole logic into the base class and the factory.
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.h')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h
index c084242..b377a20 100644
--- a/Source/cmGlobalVisualStudio10Generator.h
+++ b/Source/cmGlobalVisualStudio10Generator.h
@@ -24,10 +24,9 @@ class cmGlobalVisualStudio10Generator :
public cmGlobalVisualStudio8Generator
{
public:
- cmGlobalVisualStudio10Generator();
- static cmGlobalGeneratorFactory* NewFactory() {
- return new cmGlobalGeneratorSimpleFactory
- <cmGlobalVisualStudio10Generator>(); }
+ cmGlobalVisualStudio10Generator(const char* name,
+ const char* architectureId, const char* additionalPlatformDefinition);
+ static cmGlobalGeneratorFactory* NewFactory();
virtual std::string
GenerateBuildCommand(const char* makeProgram,
@@ -35,15 +34,8 @@ public:
const char* additionalOptions, const char *targetName,
const char* config, bool ignoreErrors, bool);
- ///! Get the name for the generator.
- virtual const char* GetName() const {
- return cmGlobalVisualStudio10Generator::GetActualName();}
- static const char* GetActualName() {return "Visual Studio 10";}
virtual void AddPlatformDefinitions(cmMakefile* mf);
- /** Get the documentation entry for this generator. */
- static void GetDocumentation(cmDocumentationEntry& entry);
-
///! create the correct local generator
virtual cmLocalGenerator *CreateLocalGenerator();
@@ -93,6 +85,7 @@ protected:
bool UseFolderProperty();
private:
+ class Factory;
struct LongestSourcePath
{
LongestSourcePath(): Length(0), Target(0), SourceFile(0) {}