1
0

cmGlobalVisualStudio8Generator.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 cmGlobalVisualStudio8Generator_h
  11. #define cmGlobalVisualStudio8Generator_h
  12. #include "cmGlobalVisualStudio71Generator.h"
  13. /** \class cmGlobalVisualStudio8Generator
  14. * \brief Write a Unix makefiles.
  15. *
  16. * cmGlobalVisualStudio8Generator manages UNIX build process for a tree
  17. */
  18. class cmGlobalVisualStudio8Generator : public cmGlobalVisualStudio71Generator
  19. {
  20. public:
  21. cmGlobalVisualStudio8Generator();
  22. static cmGlobalGenerator* New() {
  23. return new cmGlobalVisualStudio8Generator; }
  24. ///! Get the name for the generator.
  25. virtual const char* GetName() const {
  26. return cmGlobalVisualStudio8Generator::GetActualName();}
  27. static const char* GetActualName() {return "Visual Studio 8 2005";}
  28. virtual const char* GetPlatformName() const {return "Win32";}
  29. /** Get the documentation entry for this generator. */
  30. virtual void GetDocumentation(cmDocumentationEntry& entry) const;
  31. ///! Create a local generator appropriate to this Global Generator
  32. virtual cmLocalGenerator *CreateLocalGenerator();
  33. /**
  34. * Override Configure and Generate to add the build-system check
  35. * target.
  36. */
  37. virtual void Configure();
  38. virtual void Generate();
  39. /**
  40. * Where does this version of Visual Studio look for macros for the
  41. * current user? Returns the empty string if this version of Visual
  42. * Studio does not implement support for VB macros.
  43. */
  44. virtual std::string GetUserMacrosDirectory();
  45. /**
  46. * What is the reg key path to "vsmacros" for this version of Visual
  47. * Studio?
  48. */
  49. virtual std::string GetUserMacrosRegKeyBase();
  50. /** Return true if the target project file should have the option
  51. LinkLibraryDependencies and link to .sln dependencies. */
  52. virtual bool NeedLinkLibraryDependencies(cmTarget& target);
  53. protected:
  54. virtual const char* GetIDEVersion() { return "8.0"; }
  55. virtual bool VSLinksDependencies() const { return false; }
  56. void AddCheckTarget();
  57. static cmIDEFlagTable const* GetExtraFlagTableVS8();
  58. virtual void WriteSLNHeader(std::ostream& fout);
  59. virtual void WriteSolutionConfigurations(std::ostream& fout);
  60. virtual void WriteProjectConfigurations(
  61. std::ostream& fout, const char* name,
  62. const std::set<std::string>& configsPartOfDefaultBuild,
  63. const char* platformMapping = NULL);
  64. virtual bool ComputeTargetDepends();
  65. virtual void WriteProjectDepends(std::ostream& fout, const char* name,
  66. const char* path, cmTarget &t);
  67. };
  68. #endif