diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2018-07-11 11:29:49 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2018-07-11 11:29:49 (GMT) |
commit | c6a8002827e0d23d27906ea5760a67981660f453 (patch) | |
tree | aa77bda1d24e121983be017fde21ad888c016e7f /Source/cmQtAutoGenInitializer.h | |
parent | 0723eada4dcdb4332a63c56e1df6160f19cb9ff5 (diff) | |
download | CMake-c6a8002827e0d23d27906ea5760a67981660f453.zip CMake-c6a8002827e0d23d27906ea5760a67981660f453.tar.gz CMake-c6a8002827e0d23d27906ea5760a67981660f453.tar.bz2 |
Autogen: Improve error detection during configuration
cmQtAutoGenInitializer::InitCustomTargets and
cmQtAutoGenInitializer::SetupCustomTargets
now return their success value which gets evaluated
and passed on by the caller (cmGlobalGenerator).
Checks for the existance of the moc/uic/rcc
binaries have been introduces in cmQtAutoGenInitializer.
Additionally they get called once with a "-h"
argument to determine if they're functional.
This way any binary-not-found problem is caught
during the configuration phase.
Diffstat (limited to 'Source/cmQtAutoGenInitializer.h')
-rw-r--r-- | Source/cmQtAutoGenInitializer.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmQtAutoGenInitializer.h b/Source/cmQtAutoGenInitializer.h index 813c680..bc78a03 100644 --- a/Source/cmQtAutoGenInitializer.h +++ b/Source/cmQtAutoGenInitializer.h @@ -50,18 +50,22 @@ public: bool uicEnabled, bool rccEnabled, std::string const& qtVersionMajor); - void InitCustomTargets(); - void SetupCustomTargets(); + bool InitCustomTargets(); + bool SetupCustomTargets(); private: - void SetupCustomTargetsMoc(); - void SetupCustomTargetsUic(); + bool SetupCustomTargetsMoc(); + bool SetupCustomTargetsUic(); void AddGeneratedSource(std::string const& filename, GeneratorT genType); bool QtVersionGreaterOrEqual(unsigned long requestMajor, unsigned long requestMinor) const; + bool GetMocExecutable(); + bool GetUicExecutable(); + bool GetRccExecutable(); + bool RccListInputs(std::string const& fileName, std::vector<std::string>& files, std::string& errorMessage); |