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.

54 lines
1.8 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 cmLocalVisualStudioGenerator_h
  14. #define cmLocalVisualStudioGenerator_h
  15. #include "cmLocalGenerator.h"
  16. class cmSourceFile;
  17. class cmSourceGroup;
  18. /** \class cmLocalVisualStudioGenerator
  19. * \brief Base class for Visual Studio generators.
  20. *
  21. * cmLocalVisualStudioGenerator provides functionality common to all
  22. * Visual Studio generators.
  23. */
  24. class cmLocalVisualStudioGenerator : public cmLocalGenerator
  25. {
  26. public:
  27. cmLocalVisualStudioGenerator();
  28. virtual ~cmLocalVisualStudioGenerator();
  29. /** Return the directories into which object files will be put.
  30. * There maybe more than one for fat binary systems like OSX.
  31. */
  32. protected:
  33. /** Construct a script from the given list of command lines. */
  34. std::string ConstructScript(const cmCustomCommandLines& commandLines,
  35. const char* workingDirectory,
  36. bool escapeOldStyle,
  37. bool escapeAllowMakeVars,
  38. const char* newline = "\n");
  39. // Safe object file name generation.
  40. void ComputeObjectNameRequirements(std::vector<cmSourceGroup> const&);
  41. bool SourceFileCompiles(const cmSourceFile* sf);
  42. std::set<const cmSourceFile*> NeedObjectName;
  43. };
  44. #endif