
This is a large commit that serves multiple purposes - Iterate source files only once and store all extracted information in a cmQtAutogenDigest class that can be reused. This is brings speed improvements because several properties are only evaluated once. More that that it helps to avoid duplication of code with non trivial files property checks. - Fix the Visual Studio generator to use PRE_BUILD when possible. - Convert `for( ... )` loops to C++11 range base loops where possible (cmQtAutogen*.cxx only). - String concatenation optimizations.
25 lines
765 B
C++
25 lines
765 B
C++
/* 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 "cmQtAutoGenDigest.h"
|
|
|
|
#include <string>
|
|
|
|
class cmGeneratorTarget;
|
|
|
|
class cmQtAutoGeneratorInitializer
|
|
{
|
|
public:
|
|
static std::string GetQtMajorVersion(cmGeneratorTarget const* target);
|
|
static std::string GetQtMinorVersion(cmGeneratorTarget const* target,
|
|
const std::string& qtVersionMajor);
|
|
|
|
static void InitializeAutogenTarget(cmQtAutoGenDigest& digest);
|
|
static void SetupAutoGenerateTarget(cmQtAutoGenDigest const& digest);
|
|
};
|
|
|
|
#endif
|