cmGlobalVisualStudio11Generator.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt 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, const std::string& name,
  26. std::string const& platformInGeneratorName);
  27. bool InitializeWindowsPhone(cmMakefile* mf) override;
  28. bool InitializeWindowsStore(cmMakefile* mf) override;
  29. bool SelectWindowsPhoneToolset(std::string& toolset) const override;
  30. bool SelectWindowsStoreToolset(std::string& toolset) const override;
  31. // Used to verify that the Desktop toolset for the current generator is
  32. // installed on the machine.
  33. virtual bool IsWindowsDesktopToolsetInstalled() const;
  34. // These aren't virtual because we need to check if the selected version
  35. // of the toolset is installed
  36. bool IsWindowsPhoneToolsetInstalled() const;
  37. bool IsWindowsStoreToolsetInstalled() const;
  38. bool UseFolderProperty() const override;
  39. static std::set<std::string> GetInstalledWindowsCESDKs();
  40. /** Return true if target system supports debugging deployment. */
  41. bool TargetSystemSupportsDeployment() const override;
  42. };