summaryrefslogtreecommitdiffstats
path: root/src/global/configure.json
blob: f364abf796bff60f25eca3690d2f27d475eb559b (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
{
    "module": "tools",
    "tests": {
        "libclang": {
            "label": "libclang",
            "test": "libclang",
            "type": "libclang"
        }
    },
    "features": {
        "clang": {
            "label": "QDoc",
            "condition": "tests.libclang",
            "output": [
                "privateFeature",
                { "type": "varAssign", "name": "CLANG_LIBS", "value": "tests.libclang.libs" },
                { "type": "varAssign", "name": "CLANG_INCLUDEPATH", "value": "tests.libclang.includepath" },
                { "type": "varAssign", "name": "CLANG_LIBDIR", "value": "tests.libclang.libdir" },
                { "type": "varAssign", "name": "CLANG_DEFINES", "value": "tests.libclang.defines" },
                { "type": "varAssign", "name": "CLANG_VERSION", "value": "tests.libclang.version" }
            ]
        },
        "clangcpp": {
            "label": "Clang-based lupdate parser",
            "condition": "features.clang && tests.libclang.has_clangcpp",
            "output": [
                "privateFeature",
                { "type": "varAssign", "name": "CLANGCPP_LIBS", "value": "tests.libclang.clangcpp_libs" }
            ]
        }
    },
    "report": [
        {
            "type": "warning",
            "condition": "!features.clang",
            "message": "QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.\n
Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
On macOS, you can use Homebrew's llvm package.
On Windows, you must set LLVM_INSTALL_DIR to the installation path."
        },
        {
            "type": "warning",
            "condition": "!features.clangcpp",
            "message": "Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found."
        }
    ],
    "summary": [
        {
            "section": "Qt Tools",
            "entries": [
                "clang",
                "clangcpp"
            ]
        }
    ]
}