cmGlobalVisualStudio71Generator.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file LICENSE.rst or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include <iosfwd>
  5. #include <set>
  6. #include <string>
  7. #include <utility>
  8. #include <vector>
  9. #include "cmGlobalVisualStudio7Generator.h"
  10. #include "cmValue.h"
  11. class cmGeneratorTarget;
  12. class cmLocalGenerator;
  13. class cmake;
  14. template <typename T>
  15. class BT;
  16. /** \class cmGlobalVisualStudio71Generator
  17. * \brief Write a Unix makefiles.
  18. *
  19. * cmGlobalVisualStudio71Generator manages UNIX build process for a tree
  20. */
  21. class cmGlobalVisualStudio71Generator : public cmGlobalVisualStudio7Generator
  22. {
  23. public:
  24. cmGlobalVisualStudio71Generator(cmake* cm);
  25. protected:
  26. void WriteSLNFile(std::ostream& fout, cmLocalGenerator* root,
  27. OrderedTargetDependSet const& orderedProjectTargets,
  28. VSFolders const& vsFolders) const override;
  29. virtual void WriteSolutionConfigurations(
  30. std::ostream& fout, std::vector<std::string> const& configs) const;
  31. void WriteProject(std::ostream& fout, std::string const& name,
  32. std::string const& path,
  33. cmGeneratorTarget const* t) const override;
  34. void WriteProjectDepends(std::ostream& fout, std::string const& name,
  35. std::string const& path,
  36. cmGeneratorTarget const* t) const override;
  37. void WriteProjectConfigurations(
  38. std::ostream& fout, std::string const& name,
  39. cmGeneratorTarget const& target, std::vector<std::string> const& configs,
  40. std::set<std::string> const& configsPartOfDefaultBuild,
  41. std::string const& platformMapping = "") const override;
  42. void WriteExternalProject(
  43. std::ostream& fout, std::string const& name, std::string const& path,
  44. cmValue typeGuid,
  45. std::set<BT<std::pair<std::string, bool>>> const& depends) const override;
  46. // Folders are not supported by VS 7.1.
  47. bool UseFolderProperty() const override { return false; }
  48. std::string ProjectConfigurationSectionName;
  49. };