summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenDigest.h
blob: 677c3979236d79afabb8ef1d8ca65eb7acea5927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
#ifndef cmQtAutoGenDigest_h
#define cmQtAutoGenDigest_h

#include "cmConfigure.h" // IWYU pragma: keep

#include <memory>
#include <string>
#include <vector>

class cmGeneratorTarget;

class cmQtAutoGenDigestQrc
{
public:
  cmQtAutoGenDigestQrc()
    : Generated(false)
    , Unique(false)
  {
  }

public:
  std::string QrcFile;
  std::string QrcName;
  std::string PathChecksum;
  std::string RccFile;
  bool Generated;
  bool Unique;
  std::vector<std::string> Options;
  std::vector<std::string> Resources;
};

/** \class cmQtAutoGenDigest
 * \brief Filtered set of QtAutogen variables for a specific target
 */
class cmQtAutoGenDigest
{
public:
  cmQtAutoGenDigest(cmGeneratorTarget* target)
    : Target(target)
    , MocEnabled(false)
    , UicEnabled(false)
    , RccEnabled(false)
  {
  }

public:
  cmGeneratorTarget* Target;
  std::string QtVersionMajor;
  std::string QtVersionMinor;
  bool MocEnabled;
  bool UicEnabled;
  bool RccEnabled;
  std::vector<std::string> Headers;
  std::vector<std::string> Sources;
  std::vector<cmQtAutoGenDigestQrc> Qrcs;
};

// Utility types
typedef std::unique_ptr<cmQtAutoGenDigest> cmQtAutoGenDigestUP;
typedef std::vector<cmQtAutoGenDigestUP> cmQtAutoGenDigestUPV;

#endif