cmQtAutoGeneratorCommon.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 cmQtAutoGeneratorCommon_h
  4. #define cmQtAutoGeneratorCommon_h
  5. #include <cmConfigure.h> // IWYU pragma: keep
  6. #include <string>
  7. #include <vector>
  8. class cmGeneratorTarget;
  9. class cmLocalGenerator;
  10. class cmQtAutoGeneratorCommon
  11. {
  12. // - Types and statics
  13. public:
  14. static const char* listSep;
  15. enum GeneratorType
  16. {
  17. MOC,
  18. UIC,
  19. RCC
  20. };
  21. public:
  22. /// @brief Returns a the string escaped and enclosed in quotes
  23. ///
  24. static std::string Quoted(const std::string& text);
  25. /// @brief Reads the resource files list from from a .qrc file
  26. /// @arg fileName Must be the absolute path of the .qrc file
  27. /// @return True if the rcc file was successfully parsed
  28. static bool RccListInputs(const std::string& qtMajorVersion,
  29. const std::string& rccCommand,
  30. const std::string& fileName,
  31. std::vector<std::string>& files,
  32. std::string* errorMessage = CM_NULLPTR);
  33. };
  34. #endif