cmGlobalVisualStudio9Generator.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 char* name,
  23. const char* platformName, const char* additionalPlatformDefinition);
  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 EnableLanguage(std::vector<std::string>const& languages,
  32. cmMakefile *, bool optional);
  33. virtual void WriteSLNHeader(std::ostream& fout);
  34. /**
  35. * Where does this version of Visual Studio look for macros for the
  36. * current user? Returns the empty string if this version of Visual
  37. * Studio does not implement support for VB macros.
  38. */
  39. virtual std::string GetUserMacrosDirectory();
  40. /**
  41. * What is the reg key path to "vsmacros" for this version of Visual
  42. * Studio?
  43. */
  44. virtual std::string GetUserMacrosRegKeyBase();
  45. protected:
  46. virtual const char* GetIDEVersion() { return "9.0"; }
  47. private:
  48. class Factory;
  49. friend class Factory;
  50. };
  51. #endif