/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #ifndef cmQtAutoGeneratorInitializer_h #define cmQtAutoGeneratorInitializer_h #include "cmConfigure.h" // IWYU pragma: keep #include "cmQtAutoGen.h" #include #include #include #include class cmGeneratorTarget; class cmQtAutoGeneratorInitializer { public: static std::string GetQtMajorVersion(cmGeneratorTarget const* target); static std::string GetQtMinorVersion(cmGeneratorTarget const* target, std::string const& qtVersionMajor); class Qrc { public: Qrc() : Generated(false) , Unique(false) { } public: std::string QrcFile; std::string QrcName; std::string PathChecksum; std::string InfoFile; std::string SettingsFile; std::string RccFile; bool Generated; bool Unique; std::vector Options; std::vector Resources; }; public: cmQtAutoGeneratorInitializer(cmGeneratorTarget* target, bool mocEnabled, bool uicEnabled, bool rccEnabled, std::string const& qtVersionMajor); void InitCustomTargets(); void SetupCustomTargets(); private: void SetupCustomTargetsMoc(); void SetupCustomTargetsUic(); std::vector AddGeneratedSource(std::string const& filename, cmQtAutoGen::Generator genType); bool QtVersionGreaterOrEqual(unsigned long requestMajor, unsigned long requestMinor) const; private: cmGeneratorTarget* Target; bool MocEnabled; bool UicEnabled; bool RccEnabled; // Qt std::string QtVersionMajor; std::string QtVersionMinor; std::string RccExecutable; std::vector RccListOptions; // Configurations std::string ConfigDefault; std::vector ConfigsList; cmQtAutoGen::MultiConfig MultiConfig; // Names std::string AutogenTargetName; std::string AutogenFolder; std::string AutogenInfoFile; std::string AutogenSettingsFile; // Directories std::string DirInfo; std::string DirBuild; std::string DirWork; // Sources std::vector Headers; std::vector Sources; std::set MocSkip; std::set UicSkip; std::map ConfigMocIncludes; std::map ConfigMocDefines; std::map ConfigUicOptions; std::vector Qrcs; }; #endif