cmGlobalVisualStudio8Generator.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. protected:
  42. // Utility target fix is not needed for VS8.
  43. virtual void FixUtilityDepends() {}
  44. static cmVS7FlagTable const* GetExtraFlagTableVS8();
  45. virtual void AddPlatformDefinitions(cmMakefile* mf);
  46. virtual void WriteSLNFile(std::ostream& fout, cmLocalGenerator* root,
  47. std::vector<cmLocalGenerator*>& generators);
  48. virtual void WriteSLNHeader(std::ostream& fout);
  49. virtual void WriteSolutionConfigurations(std::ostream& fout);
  50. virtual void WriteProjectConfigurations(std::ostream& fout,
  51. const char* name,
  52. bool partOfDefaultBuild);
  53. std::string PlatformName; // Win32 or x64
  54. };
  55. #endif