cmGlobalVisualStudio8Generator.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 cmGlobalVisualStudio8Generator_h
  11. #define cmGlobalVisualStudio8Generator_h
  12. #include "cmGlobalVisualStudio71Generator.h"
  13. /** \class cmGlobalVisualStudio8Generator
  14. * \brief Write a Unix makefiles.
  15. *
  16. * cmGlobalVisualStudio8Generator manages UNIX build process for a tree
  17. */
  18. class cmGlobalVisualStudio8Generator : public cmGlobalVisualStudio71Generator
  19. {
  20. public:
  21. cmGlobalVisualStudio8Generator();
  22. static cmGlobalGenerator* New() {
  23. return new cmGlobalVisualStudio8Generator; }
  24. ///! Get the name for the generator.
  25. virtual const char* GetName() const {
  26. return cmGlobalVisualStudio8Generator::GetActualName();}
  27. static const char* GetActualName() {return "Visual Studio 8 2005";}
  28. /** Get the documentation entry for this generator. */
  29. virtual void GetDocumentation(cmDocumentationEntry& entry) const;
  30. ///! Create a local generator appropriate to this Global Generator
  31. virtual cmLocalGenerator *CreateLocalGenerator();
  32. /**
  33. * Override Configure and Generate to add the build-system check
  34. * target.
  35. */
  36. virtual void Configure();
  37. virtual void Generate();
  38. /**
  39. * Where does this version of Visual Studio look for macros for the
  40. * current user? Returns the empty string if this version of Visual
  41. * Studio does not implement support for VB macros.
  42. */
  43. virtual std::string GetUserMacrosDirectory();
  44. /**
  45. * What is the reg key path to "vsmacros" for this version of Visual
  46. * Studio?
  47. */
  48. virtual std::string GetUserMacrosRegKeyBase();
  49. protected:
  50. virtual const char* GetIDEVersion() { return "8.0"; }
  51. virtual bool VSLinksDependencies() const { return false; }
  52. static cmIDEFlagTable const* GetExtraFlagTableVS8();
  53. virtual void AddPlatformDefinitions(cmMakefile* mf);
  54. virtual void WriteSLNHeader(std::ostream& fout);
  55. virtual void WriteSolutionConfigurations(std::ostream& fout);
  56. virtual void WriteProjectConfigurations(std::ostream& fout,
  57. const char* name,
  58. bool partOfDefaultBuild);
  59. std::string PlatformName; // Win32 or x64
  60. };
  61. #endif