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.

72 lines
2.2 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 cmGlobalVisualStudioGenerator_h
  14. #define cmGlobalVisualStudioGenerator_h
  15. #include "cmGlobalGenerator.h"
  16. /** \class cmGlobalVisualStudioGenerator
  17. * \brief Base class for global Visual Studio generators.
  18. *
  19. * cmGlobalVisualStudioGenerator provides functionality common to all
  20. * global Visual Studio generators.
  21. */
  22. class cmGlobalVisualStudioGenerator : public cmGlobalGenerator
  23. {
  24. public:
  25. cmGlobalVisualStudioGenerator();
  26. virtual ~cmGlobalVisualStudioGenerator();
  27. /**
  28. * Basic generate implementation for all VS generators.
  29. */
  30. virtual void Generate();
  31. /**
  32. * Configure CMake's Visual Studio macros file into the user's Visual
  33. * Studio macros directory.
  34. */
  35. virtual void ConfigureCMakeVisualStudioMacros();
  36. /**
  37. * Where does this version of Visual Studio look for macros for the
  38. * current user? Returns the empty string if this version of Visual
  39. * Studio does not implement support for VB macros.
  40. */
  41. virtual std::string GetUserMacrosDirectory();
  42. enum MacroName {MacroReload, MacroStop};
  43. /**
  44. * Call the ReloadProjects macro if necessary based on
  45. * GetFilesReplacedDuringGenerate results.
  46. */
  47. virtual void CallVisualStudioMacro(MacroName m,
  48. const char* vsSolutionFile = 0);
  49. protected:
  50. virtual void CreateGUID(const char*) {}
  51. virtual void FixUtilityDepends();
  52. const char* GetUtilityForTarget(cmTarget& target, const char*);
  53. private:
  54. void FixUtilityDependsForTarget(cmTarget& target);
  55. void CreateUtilityDependTarget(cmTarget& target);
  56. bool CheckTargetLinks(cmTarget& target, const char* name);
  57. };
  58. #endif