cmGlobalVisualStudio10Generator.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. /** Is the installed VS an Express edition? */
  47. bool IsExpressEdition() const { return this->ExpressEdition; }
  48. /** The toolset name for the target platform. */
  49. const char* GetPlatformToolset();
  50. /**
  51. * Where does this version of Visual Studio look for macros for the
  52. * current user? Returns the empty string if this version of Visual
  53. * Studio does not implement support for VB macros.
  54. */
  55. virtual std::string GetUserMacrosDirectory();
  56. /**
  57. * What is the reg key path to "vsmacros" for this version of Visual
  58. * Studio?
  59. */
  60. virtual std::string GetUserMacrosRegKeyBase();
  61. virtual const char* GetCMakeCFGIntDir() const
  62. { return "$(Configuration)";}
  63. bool Find64BitTools(cmMakefile* mf);
  64. protected:
  65. virtual const char* GetIDEVersion() { return "10.0"; }
  66. std::string PlatformToolset;
  67. bool ExpressEdition;
  68. };
  69. #endif