cmGlobalVisualStudio8Generator.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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(const char* name,
  22. const char* architectureId, const char* additionalPlatformDefinition);
  23. static cmGlobalGeneratorFactory* NewFactory();
  24. ///! Get the name for the generator.
  25. virtual const char* GetName() const {return this->Name;}
  26. const char* GetPlatformName() const;
  27. /** Get the documentation entry for this generator. */
  28. static void GetDocumentation(cmDocumentationEntry& entry);
  29. ///! Create a local generator appropriate to this Global Generator
  30. virtual cmLocalGenerator *CreateLocalGenerator();
  31. /**
  32. * Override Configure and Generate to add the build-system check
  33. * target.
  34. */
  35. virtual void Configure();
  36. virtual void Generate();
  37. /**
  38. * Where does this version of Visual Studio look for macros for the
  39. * current user? Returns the empty string if this version of Visual
  40. * Studio does not implement support for VB macros.
  41. */
  42. virtual std::string GetUserMacrosDirectory();
  43. /**
  44. * What is the reg key path to "vsmacros" for this version of Visual
  45. * Studio?
  46. */
  47. virtual std::string GetUserMacrosRegKeyBase();
  48. /** Return true if the target project file should have the option
  49. LinkLibraryDependencies and link to .sln dependencies. */
  50. virtual bool NeedLinkLibraryDependencies(cmTarget& target);
  51. protected:
  52. virtual const char* GetIDEVersion() { return "8.0"; }
  53. virtual bool VSLinksDependencies() const { return false; }
  54. void AddCheckTarget();
  55. static cmIDEFlagTable const* GetExtraFlagTableVS8();
  56. virtual void WriteSLNHeader(std::ostream& fout);
  57. virtual void WriteSolutionConfigurations(std::ostream& fout);
  58. virtual void WriteProjectConfigurations(std::ostream& fout,
  59. const char* name,
  60. bool partOfDefaultBuild,
  61. const char* platformMapping = NULL);
  62. virtual bool ComputeTargetDepends();
  63. virtual void WriteProjectDepends(std::ostream& fout, const char* name,
  64. const char* path, cmTarget &t);
  65. const char* Name;
  66. private:
  67. class Factory;
  68. };
  69. #endif