cmGlobalVisualStudio9Generator.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmGlobalVisualStudio9Generator_h
  14. #define cmGlobalVisualStudio9Generator_h
  15. #include "cmGlobalVisualStudio8Generator.h"
  16. /** \class cmGlobalVisualStudio9Generator
  17. * \brief Write a Unix makefiles.
  18. *
  19. * cmGlobalVisualStudio9Generator manages UNIX build process for a tree
  20. */
  21. class cmGlobalVisualStudio9Generator :
  22. public cmGlobalVisualStudio8Generator
  23. {
  24. public:
  25. cmGlobalVisualStudio9Generator();
  26. static cmGlobalGenerator* New() {
  27. return new cmGlobalVisualStudio9Generator; }
  28. ///! Get the name for the generator.
  29. virtual const char* GetName() const {
  30. return cmGlobalVisualStudio9Generator::GetActualName();}
  31. static const char* GetActualName() {return "Visual Studio 9 2008";}
  32. virtual void AddPlatformDefinitions(cmMakefile* mf);
  33. /** Get the documentation entry for this generator. */
  34. virtual void GetDocumentation(cmDocumentationEntry& entry) const;
  35. ///! create the correct local generator
  36. virtual cmLocalGenerator *CreateLocalGenerator();
  37. /**
  38. * Try to determine system infomation such as shared library
  39. * extension, pthreads, byte order etc.
  40. */
  41. virtual void EnableLanguage(std::vector<std::string>const& languages,
  42. cmMakefile *, bool optional);
  43. virtual void WriteSLNHeader(std::ostream& fout);
  44. /**
  45. * Where does this version of Visual Studio look for macros for the
  46. * current user? Returns the empty string if this version of Visual
  47. * Studio does not implement support for VB macros.
  48. */
  49. virtual std::string GetUserMacrosDirectory();
  50. /**
  51. * What is the reg key path to "vsmacros" for this version of Visual
  52. * Studio?
  53. */
  54. virtual std::string GetUserMacrosRegKeyBase();
  55. protected:
  56. virtual const char* GetIDEVersion() { return "9.0"; }
  57. };
  58. #endif