You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.7 KiB

  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 cmGlobalVisualStudio8Generator_h
  14. #define cmGlobalVisualStudio8Generator_h
  15. #include "cmGlobalVisualStudio71Generator.h"
  16. /** \class cmGlobalVisualStudio8Generator
  17. * \brief Write a Unix makefiles.
  18. *
  19. * cmGlobalVisualStudio8Generator manages UNIX build process for a tree
  20. */
  21. class cmGlobalVisualStudio8Generator : public cmGlobalVisualStudio71Generator
  22. {
  23. public:
  24. cmGlobalVisualStudio8Generator();
  25. static cmGlobalGenerator* New() {
  26. return new cmGlobalVisualStudio8Generator; }
  27. ///! Get the name for the generator.
  28. virtual const char* GetName() const {
  29. return cmGlobalVisualStudio8Generator::GetActualName();}
  30. static const char* GetActualName() {return "Visual Studio 8 2005";}
  31. /** Get the documentation entry for this generator. */
  32. virtual void GetDocumentation(cmDocumentationEntry& entry) const;
  33. ///! Create a local generator appropriate to this Global Generator
  34. virtual cmLocalGenerator *CreateLocalGenerator();
  35. /**
  36. * Override Configure and Generate to add the build-system check
  37. * target.
  38. */
  39. virtual void Configure();
  40. virtual void Generate();
  41. /**
  42. * Where does this version of Visual Studio look for macros for the
  43. * current user? Returns the empty string if this version of Visual
  44. * Studio does not implement support for VB macros.
  45. */
  46. virtual std::string GetUserMacrosDirectory();
  47. protected:
  48. // Utility target fix is not needed for VS8.
  49. virtual void FixUtilityDepends() {}
  50. static cmVS7FlagTable const* GetExtraFlagTableVS8();
  51. virtual void AddPlatformDefinitions(cmMakefile* mf);
  52. virtual void WriteSLNFile(std::ostream& fout, cmLocalGenerator* root,
  53. std::vector<cmLocalGenerator*>& generators);
  54. virtual void WriteSLNHeader(std::ostream& fout);
  55. virtual void WriteSolutionConfigurations(std::ostream& fout);
  56. virtual void WriteProjectConfigurations(std::ostream& fout,
  57. const char* name,
  58. bool partOfDefaultBuild);
  59. std::string PlatformName; // Win32 or x64
  60. };
  61. #endif