mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
VS: Remove platform specific generator files
Move the whole logic into the base class and the factory.
This commit is contained in:
committed by
Brad King
parent
8b62080c9d
commit
75ebebc39c
@@ -23,15 +23,12 @@
|
||||
class cmGlobalVisualStudio8Generator : public cmGlobalVisualStudio71Generator
|
||||
{
|
||||
public:
|
||||
cmGlobalVisualStudio8Generator();
|
||||
static cmGlobalGeneratorFactory* NewFactory() {
|
||||
return new cmGlobalGeneratorSimpleFactory
|
||||
<cmGlobalVisualStudio8Generator>(); }
|
||||
cmGlobalVisualStudio8Generator(const char* name,
|
||||
const char* architectureId, const char* additionalPlatformDefinition);
|
||||
static cmGlobalGeneratorFactory* NewFactory();
|
||||
|
||||
///! Get the name for the generator.
|
||||
virtual const char* GetName() const {
|
||||
return cmGlobalVisualStudio8Generator::GetActualName();}
|
||||
static const char* GetActualName() {return "Visual Studio 8 2005";}
|
||||
virtual const char* GetName() const {return this->Name;}
|
||||
|
||||
const char* GetPlatformName() const;
|
||||
|
||||
@@ -82,5 +79,10 @@ protected:
|
||||
virtual bool ComputeTargetDepends();
|
||||
virtual void WriteProjectDepends(std::ostream& fout, const char* name,
|
||||
const char* path, cmTarget &t);
|
||||
|
||||
const char* Name;
|
||||
|
||||
private:
|
||||
class Factory;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user