cmGlobalVisualStudio71Generator.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmGlobalVisualStudio71Generator_h
  11. #define cmGlobalVisualStudio71Generator_h
  12. #include "cmGlobalVisualStudio7Generator.h"
  13. /** \class cmGlobalVisualStudio71Generator
  14. * \brief Write a Unix makefiles.
  15. *
  16. * cmGlobalVisualStudio71Generator manages UNIX build process for a tree
  17. */
  18. class cmGlobalVisualStudio71Generator : public cmGlobalVisualStudio7Generator
  19. {
  20. public:
  21. cmGlobalVisualStudio71Generator(const std::string& platformName = "");
  22. static cmGlobalGeneratorFactory* NewFactory() {
  23. return new cmGlobalGeneratorSimpleFactory
  24. <cmGlobalVisualStudio71Generator>(); }
  25. ///! Get the name for the generator.
  26. virtual std::string GetName() const {
  27. return cmGlobalVisualStudio71Generator::GetActualName();}
  28. static std::string GetActualName() {return "Visual Studio 7 .NET 2003";}
  29. /** Get the documentation entry for this generator. */
  30. static void GetDocumentation(cmDocumentationEntry& entry);
  31. /**
  32. * Where does this version of Visual Studio look for macros for the
  33. * current user? Returns the empty string if this version of Visual
  34. * Studio does not implement support for VB macros.
  35. */
  36. virtual std::string GetUserMacrosDirectory();
  37. /**
  38. * What is the reg key path to "vsmacros" for this version of Visual
  39. * Studio?
  40. */
  41. virtual std::string GetUserMacrosRegKeyBase();
  42. protected:
  43. virtual const char* GetIDEVersion() { return "7.1"; }
  44. virtual void WriteSLNFile(std::ostream& fout,
  45. cmLocalGenerator* root,
  46. std::vector<cmLocalGenerator*>& generators);
  47. virtual void WriteSolutionConfigurations(std::ostream& fout);
  48. virtual void WriteProject(std::ostream& fout,
  49. const std::string& name, const char* path,
  50. cmTarget const& t);
  51. virtual void WriteProjectDepends(std::ostream& fout,
  52. const std::string& name, const char* path,
  53. cmTarget const& t);
  54. virtual void WriteProjectConfigurations(
  55. std::ostream& fout, const std::string& name, cmTarget::TargetType type,
  56. const std::set<std::string>& configsPartOfDefaultBuild,
  57. const std::string& platformMapping = "");
  58. virtual void WriteExternalProject(std::ostream& fout,
  59. const std::string& name,
  60. const char* path,
  61. const char* typeGuid,
  62. const std::set<std::string>& depends);
  63. virtual void WriteSLNHeader(std::ostream& fout);
  64. std::string ProjectConfigurationSectionName;
  65. };
  66. #endif