cmGlobalVisualStudio71Generator.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 char* platformName = NULL);
  22. static cmGlobalGeneratorFactory* NewFactory() {
  23. return new cmGlobalGeneratorSimpleFactory
  24. <cmGlobalVisualStudio71Generator>(); }
  25. ///! Get the name for the generator.
  26. virtual const char* GetName() const {
  27. return cmGlobalVisualStudio71Generator::GetActualName();}
  28. static const char* GetActualName() {return "Visual Studio 7 .NET 2003";}
  29. /** Get the documentation entry for this generator. */
  30. static void GetDocumentation(cmDocumentationEntry& entry);
  31. ///! Create a local generator appropriate to this Global Generator
  32. virtual cmLocalGenerator *CreateLocalGenerator();
  33. /**
  34. * Where does this version of Visual Studio look for macros for the
  35. * current user? Returns the empty string if this version of Visual
  36. * Studio does not implement support for VB macros.
  37. */
  38. virtual std::string GetUserMacrosDirectory();
  39. /**
  40. * What is the reg key path to "vsmacros" for this version of Visual
  41. * Studio?
  42. */
  43. virtual std::string GetUserMacrosRegKeyBase();
  44. protected:
  45. virtual const char* GetIDEVersion() { return "7.1"; }
  46. virtual void WriteSLNFile(std::ostream& fout,
  47. cmLocalGenerator* root,
  48. std::vector<cmLocalGenerator*>& generators);
  49. virtual void WriteSolutionConfigurations(std::ostream& fout);
  50. virtual void WriteProject(std::ostream& fout,
  51. const std::string& name, const char* path,
  52. cmTarget const& t);
  53. virtual void WriteProjectDepends(std::ostream& fout,
  54. const std::string& name, const char* path,
  55. cmTarget const& t);
  56. virtual void WriteProjectConfigurations(
  57. std::ostream& fout, const std::string& name, cmTarget::TargetType type,
  58. const std::set<std::string>& configsPartOfDefaultBuild,
  59. const char* platformMapping = NULL);
  60. virtual void WriteExternalProject(std::ostream& fout,
  61. const std::string& name,
  62. const char* path,
  63. const char* typeGuid,
  64. const std::set<std::string>& depends);
  65. virtual void WriteSLNHeader(std::ostream& fout);
  66. std::string ProjectConfigurationSectionName;
  67. };
  68. #endif