cmGlobalVisualStudio8Generator.h 3.1 KB

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