cmGlobalVisualStudio11Generator.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 "cmConfigure.h" // IWYU pragma: keep
  5. #include <memory>
  6. #include <set>
  7. #include <string>
  8. #include <cm/optional>
  9. #include "cmGlobalVisualStudio10Generator.h"
  10. #include "cmTransformDepfile.h"
  11. class cmMakefile;
  12. class cmake;
  13. /** \class cmGlobalVisualStudio11Generator */
  14. class cmGlobalVisualStudio11Generator : public cmGlobalVisualStudio10Generator
  15. {
  16. public:
  17. void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
  18. bool optional) override;
  19. bool SupportsCustomCommandDepfile() const override { return true; }
  20. cm::optional<cmDepfileFormat> DepfileFormat() const override
  21. {
  22. return cmDepfileFormat::MSBuildAdditionalInputs;
  23. }
  24. protected:
  25. cmGlobalVisualStudio11Generator(cmake* cm, std::string const& name);
  26. bool InitializeWindowsPhone(cmMakefile* mf) override;
  27. bool InitializeWindowsStore(cmMakefile* mf) override;
  28. bool SelectWindowsPhoneToolset(std::string& toolset) const override;
  29. bool SelectWindowsStoreToolset(std::string& toolset) const override;
  30. // Used to verify that the Desktop toolset for the current generator is
  31. // installed on the machine.
  32. virtual bool IsWindowsDesktopToolsetInstalled() const;
  33. // These aren't virtual because we need to check if the selected version
  34. // of the toolset is installed
  35. bool IsWindowsPhoneToolsetInstalled() const;
  36. bool IsWindowsStoreToolsetInstalled() const;
  37. static std::set<std::string> GetInstalledWindowsCESDKs();
  38. /** Return true if target system supports debugging deployment. */
  39. bool TargetSystemSupportsDeployment() const override;
  40. };