diff options
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.h')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.h b/Source/cmLocalVisualStudio7Generator.h index 5d9a634..6d1d0fb 100644 --- a/Source/cmLocalVisualStudio7Generator.h +++ b/Source/cmLocalVisualStudio7Generator.h @@ -20,7 +20,6 @@ class cmSourceFile; class cmCustomCommand; class cmSourceGroup; - class cmLocalVisualStudio7GeneratorOptions; class cmLocalVisualStudio7GeneratorFCInfo; class cmLocalVisualStudio7GeneratorInternals; @@ -46,26 +45,34 @@ public: */ virtual void Generate(); - enum BuildType {STATIC_LIBRARY, DLL, EXECUTABLE, WIN32_EXECUTABLE, UTILITY}; + enum BuildType + { + STATIC_LIBRARY, + DLL, + EXECUTABLE, + WIN32_EXECUTABLE, + UTILITY + }; /** * Specify the type of the build: static, dll, or executable. */ - void SetBuildType(BuildType,const std::string& name); + void SetBuildType(BuildType, const std::string& name); - virtual - std::string GetTargetDirectory(cmGeneratorTarget const* target) const; + virtual std::string GetTargetDirectory( + cmGeneratorTarget const* target) const; cmSourceFile* CreateVCProjBuildRule(); void WriteStampFiles(); - virtual std::string - ComputeLongestObjectDirectory(cmGeneratorTarget const*) const; + virtual std::string ComputeLongestObjectDirectory( + cmGeneratorTarget const*) const; virtual void ReadAndStoreExternalGUID(const std::string& name, const char* path); virtual void AddCMakeListsRules(); + protected: - void CreateSingleVCProj(const std::string& lname, - cmGeneratorTarget *tgt); + void CreateSingleVCProj(const std::string& lname, cmGeneratorTarget* tgt); + private: typedef cmVisualStudioGeneratorOptions Options; typedef cmLocalVisualStudio7GeneratorFCInfo FCInfo; @@ -75,15 +82,14 @@ private: void WriteProjectFiles(); void WriteVCProjHeader(std::ostream& fout, const std::string& libName, cmGeneratorTarget* tgt, - std::vector<cmSourceGroup> &sgs); + std::vector<cmSourceGroup>& sgs); void WriteVCProjFooter(std::ostream& fout, cmGeneratorTarget* target); void WriteVCProjFile(std::ostream& fout, const std::string& libName, cmGeneratorTarget* tgt); void WriteConfigurations(std::ostream& fout, std::vector<std::string> const& configs, const std::string& libName, cmGeneratorTarget* tgt); - void WriteConfiguration(std::ostream& fout, - const std::string& configName, + void WriteConfiguration(std::ostream& fout, const std::string& configName, const std::string& libName, cmGeneratorTarget* tgt); std::string EscapeForXML(const std::string& s); std::string ConvertToXMLOutputPath(const char* path); @@ -98,28 +104,24 @@ private: cmGeneratorTarget* target); void OutputLibraryDirectories(std::ostream& fout, std::vector<std::string> const& dirs); - void WriteProjectSCC(std::ostream& fout, cmGeneratorTarget *target); + void WriteProjectSCC(std::ostream& fout, cmGeneratorTarget* target); void WriteProjectStart(std::ostream& fout, const std::string& libName, cmGeneratorTarget* tgt, - std::vector<cmSourceGroup> &sgs); + std::vector<cmSourceGroup>& sgs); void WriteProjectStartFortran(std::ostream& fout, const std::string& libName, cmGeneratorTarget* tgt); - void WriteVCProjBeginGroup(std::ostream& fout, - const char* group, - const char* filter); + void WriteVCProjBeginGroup(std::ostream& fout, const char* group, + const char* filter); void WriteVCProjEndGroup(std::ostream& fout); void WriteCustomRule(std::ostream& fout, std::vector<std::string> const& configs, - const char* source, - const cmCustomCommand& command, + const char* source, const cmCustomCommand& command, FCInfo& fcinfo); - void WriteTargetVersionAttribute(std::ostream& fout, - cmGeneratorTarget* gt); + void WriteTargetVersionAttribute(std::ostream& fout, cmGeneratorTarget* gt); - bool WriteGroup(const cmSourceGroup *sg, - cmGeneratorTarget* target, std::ostream &fout, - const std::string& libName, + bool WriteGroup(const cmSourceGroup* sg, cmGeneratorTarget* target, + std::ostream& fout, const std::string& libName, std::vector<std::string> const& configs); friend class cmLocalVisualStudio7GeneratorFCInfo; @@ -134,6 +136,4 @@ private: cmLocalVisualStudio7GeneratorInternals* Internal; }; - #endif - |