cmGlobalVisualStudio10Generator.h 2.7 KB

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