cmGlobalVisualStudio10Generator.h 2.6 KB

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