cmGlobalVisualStudio9Generator.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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(const std::string& name,
  23. const std::string& platformName);
  24. static cmGlobalGeneratorFactory* NewFactory();
  25. ///! create the correct local generator
  26. virtual cmLocalGenerator *CreateLocalGenerator();
  27. /**
  28. * Try to determine system infomation such as shared library
  29. * extension, pthreads, byte order etc.
  30. */
  31. virtual void WriteSLNHeader(std::ostream& fout);
  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 "9.0"; }
  45. private:
  46. class Factory;
  47. friend class Factory;
  48. };
  49. #endif