cmGlobalVisualStudio9Generator.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 cmGlobalVisualStudio9Generator_h
  11. #define cmGlobalVisualStudio9Generator_h
  12. #include "cmGlobalVisualStudio8Generator.h"
  13. /** \class cmGlobalVisualStudio9Generator
  14. * \brief Write a Unix makefiles.
  15. *
  16. * cmGlobalVisualStudio9Generator manages UNIX build process for a tree
  17. */
  18. class cmGlobalVisualStudio9Generator :
  19. public cmGlobalVisualStudio8Generator
  20. {
  21. public:
  22. cmGlobalVisualStudio9Generator();
  23. static cmGlobalGenerator* New() {
  24. return new cmGlobalVisualStudio9Generator; }
  25. ///! Get the name for the generator.
  26. virtual const char* GetName() const {
  27. return cmGlobalVisualStudio9Generator::GetActualName();}
  28. static const char* GetActualName() {return "Visual Studio 9 2008";}
  29. virtual void AddPlatformDefinitions(cmMakefile* mf);
  30. /** Get the documentation entry for this generator. */
  31. virtual void GetDocumentation(cmDocumentationEntry& entry) const;
  32. ///! create the correct local generator
  33. virtual cmLocalGenerator *CreateLocalGenerator();
  34. /**
  35. * Try to determine system infomation such as shared library
  36. * extension, pthreads, byte order etc.
  37. */
  38. virtual void EnableLanguage(std::vector<std::string>const& languages,
  39. cmMakefile *, bool optional);
  40. virtual void WriteSLNHeader(std::ostream& fout);
  41. /**
  42. * Where does this version of Visual Studio look for macros for the
  43. * current user? Returns the empty string if this version of Visual
  44. * Studio does not implement support for VB macros.
  45. */
  46. virtual std::string GetUserMacrosDirectory();
  47. /**
  48. * What is the reg key path to "vsmacros" for this version of Visual
  49. * Studio?
  50. */
  51. virtual std::string GetUserMacrosRegKeyBase();
  52. protected:
  53. virtual const char* GetIDEVersion() { return "9.0"; }
  54. };
  55. #endif