summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenGlobalInitializer.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Autogen: Evaluate compiler features for the same exectuable only onceSebastian Holtermann2019-05-221-20/+17
| | | | | | | To speed up the `AUTOGEN` configuration process, evaluate the compiler features only once. The feature evaluation result is stored in the new class `cmQtAutoGen::CompilerFeatures`, and the instance is shared by using `std::shared_ptr`.
* Autogen: Add more frequently used keywords to Keywords classSebastian Holtermann2019-04-021-0/+8
|
* Autogen: Add `AUTO*_EXECUTABLE` strings to Keywords classSebastian Holtermann2019-04-021-3/+6
|
* Autogen: Remove static const generator name strings from cmQtAutoGenSebastian Holtermann2019-04-021-3/+3
|
* Autogen: Add cmQtAutogenGlobalInitializer::Keywords classSebastian Holtermann2019-04-021-0/+7
| | | | | | | | The new `cmQtAutogenGlobalInitializer::Keywords` class instance is bound to the lifetime of the `cmQtAutogenGlobalInitializer` instance. Global static const strings would be allocated at program start and deallocated at program end. Keeping keyword strings alive only in the context where they're needed helps to reduce the memory footprint.
* Autogen: Use more readable variable names for static const AUTO* stringsSebastian Holtermann2019-02-261-3/+3
|
* Autogen: Add output caching GetExecutableTestOutputSebastian Holtermann2019-02-191-0/+64
| | | | | | This adds the cmQtAutoGenGlobalInitializer::GetExecutableTestOutput method which caches the output of the called executable and returns the cached value on any subsequent call.
* clang-tidy: Use `= default`Regina Pfeifer2019-01-251-3/+1
| | | | | | Suppress some cases in `Source/cmGeneratorExpressionNode.cxx` and `Source/cmUVHandlePtr.h` where a few older compilers require a user-defined default constructor (with `{}`).
* Merge topic 'autogen_adaptive_warning'Brad King2019-01-161-21/+15
|\ | | | | | | | | | | | | | | | | 5fe18eee13 Autogen: Adaptive missing Qt warning f2f1661334 Autogen: Add and use QtAutoGen::Tools method b2343ff086 Autogen: Fix rcc validity check Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2806
| * Autogen: Adaptive missing Qt warningSebastian Holtermann2019-01-151-7/+13
| | | | | | | | | | This makes the warning message for a missing Qt use the requested Qt version in the message text.
| * Autogen: Add and use QtAutoGen::Tools methodSebastian Holtermann2019-01-151-13/+1
| |
| * Autogen: Fix rcc validity checkSebastian Holtermann2019-01-141-1/+1
| |
* | Factor out enum MessageType into dedicated headerBruno Manganelli2019-01-161-2/+2
|/ | | | Reduce the number of files relying on `cmake.h`.
* Autogen: Issue a warning when AUTOMOC/UIC/RCC gets disabled.Sebastian Holtermann2019-01-101-3/+37
| | | | | | We used to silently disable AUTOMOC/UIC/RCC when no valid Qt version was found. This patch introduces the generation of a warning message in that case.
* Autogen: Add AUTO(MOC|RCC|UIC)_EXECUTABLE target propertiesTobias Hunger2019-01-101-5/+17
| | | | | | | | | | Allow to force moc/rcc/uic compiler used for AUTO(MOC|RCC|UIC). Setting these properties is only necessary if you are going to do strange things like build these tools as part of your own build system. Setting these properties will also prevent cmake from testing the binary: It is user-provided and assumed to be valid.
* Autogen: Prepare for Qt 6Tobias Hunger2019-01-071-1/+2
| | | | | | | | Handle Qt version > 5 in Qt AutoGen. This patch does *NOT* include tests and documentation: There is no Qt 6 yet. I still need this patch to work on a cmake based build system for Qt 6.
* Autogen: Add support for global ``autogen`` and ``autorcc`` targetsSebastian Holtermann2018-11-111-6/+115
| | | | | | | | | | | | | | This teaches CMake the variables - CMAKE_GLOBAL_AUTOGEN_TARGET - CMAKE_GLOBAL_AUTOGEN_TARGET_NAME - CMAKE_GLOBAL_AUTORCC_TARGET - CMAKE_GLOBAL_AUTORCC_TARGET_NAME which control the generation of global ``autogen`` and ``autorcc`` targets. Closes #17721
* Autogen: Add cmQtAutoGenGlobalInitializer classSebastian Holtermann2018-11-111-0/+76
This moves the global ``AUTOMOC/UIC/RCC`` targets initializer generation code into a separate new ``cmQtAutoGenGlobalInitializer`` class.