cmQtAutoGenDigest.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmQtAutoGenDigest_h
  4. #define cmQtAutoGenDigest_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <memory>
  7. #include <string>
  8. #include <vector>
  9. class cmGeneratorTarget;
  10. class cmQtAutoGenDigestQrc
  11. {
  12. public:
  13. cmQtAutoGenDigestQrc()
  14. : Generated(false)
  15. {
  16. }
  17. public:
  18. std::string QrcFile;
  19. std::string RccFile;
  20. bool Generated;
  21. std::vector<std::string> Options;
  22. std::vector<std::string> Resources;
  23. };
  24. /** \class cmQtAutoGenDigest
  25. * \brief Filtered set of QtAutogen variables for a specific target
  26. */
  27. class cmQtAutoGenDigest
  28. {
  29. public:
  30. cmQtAutoGenDigest(cmGeneratorTarget* target)
  31. : Target(target)
  32. , MocEnabled(false)
  33. , UicEnabled(false)
  34. , RccEnabled(false)
  35. {
  36. }
  37. public:
  38. cmGeneratorTarget* Target;
  39. std::string QtVersionMajor;
  40. std::string QtVersionMinor;
  41. bool MocEnabled;
  42. bool UicEnabled;
  43. bool RccEnabled;
  44. std::vector<std::string> Headers;
  45. std::vector<std::string> HeadersGenerated;
  46. std::vector<std::string> Sources;
  47. std::vector<std::string> SourcesGenerated;
  48. std::vector<cmQtAutoGenDigestQrc> Qrcs;
  49. };
  50. // Utility types
  51. typedef std::unique_ptr<cmQtAutoGenDigest> cmQtAutoGenDigestUP;
  52. typedef std::vector<cmQtAutoGenDigestUP> cmQtAutoGenDigestUPV;
  53. #endif