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