cmGlobalVisualStudio71Generator.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmGlobalVisualStudio71Generator_h
  4. #define cmGlobalVisualStudio71Generator_h
  5. #include "cmGlobalVisualStudio7Generator.h"
  6. /** \class cmGlobalVisualStudio71Generator
  7. * \brief Write a Unix makefiles.
  8. *
  9. * cmGlobalVisualStudio71Generator manages UNIX build process for a tree
  10. */
  11. class cmGlobalVisualStudio71Generator : public cmGlobalVisualStudio7Generator
  12. {
  13. public:
  14. cmGlobalVisualStudio71Generator(cmake* cm,
  15. const std::string& platformName = "");
  16. static cmGlobalGeneratorFactory* NewFactory()
  17. {
  18. return new cmGlobalGeneratorSimpleFactory<
  19. cmGlobalVisualStudio71Generator>();
  20. }
  21. ///! Get the name for the generator.
  22. virtual std::string GetName() const
  23. {
  24. return cmGlobalVisualStudio71Generator::GetActualName();
  25. }
  26. static std::string GetActualName() { return "Visual Studio 7 .NET 2003"; }
  27. /** Get the documentation entry for this generator. */
  28. static void GetDocumentation(cmDocumentationEntry& entry);
  29. /**
  30. * Where does this version of Visual Studio look for macros for the
  31. * current user? Returns the empty string if this version of Visual
  32. * Studio does not implement support for VB macros.
  33. */
  34. virtual std::string GetUserMacrosDirectory();
  35. /**
  36. * What is the reg key path to "vsmacros" for this version of Visual
  37. * Studio?
  38. */
  39. virtual std::string GetUserMacrosRegKeyBase();
  40. protected:
  41. virtual const char* GetIDEVersion() { return "7.1"; }
  42. virtual void WriteSLNFile(std::ostream& fout, cmLocalGenerator* root,
  43. std::vector<cmLocalGenerator*>& generators);
  44. virtual void WriteSolutionConfigurations(
  45. std::ostream& fout, std::vector<std::string> const& configs);
  46. virtual void WriteProject(std::ostream& fout, const std::string& name,
  47. const char* path, const cmGeneratorTarget* t);
  48. virtual void WriteProjectDepends(std::ostream& fout, const std::string& name,
  49. const char* path,
  50. cmGeneratorTarget const* t);
  51. virtual void WriteProjectConfigurations(
  52. std::ostream& fout, const std::string& name,
  53. cmGeneratorTarget const& target, std::vector<std::string> const& configs,
  54. const std::set<std::string>& configsPartOfDefaultBuild,
  55. const std::string& platformMapping = "");
  56. virtual void WriteExternalProject(std::ostream& fout,
  57. const std::string& name, const char* path,
  58. const char* typeGuid,
  59. const std::set<std::string>& depends);
  60. virtual void WriteSLNHeader(std::ostream& fout);
  61. // Folders are not supported by VS 7.1.
  62. virtual bool UseFolderProperty() { return false; }
  63. std::string ProjectConfigurationSectionName;
  64. };
  65. #endif