summaryrefslogtreecommitdiff
path: root/src/geniviextras/configure.json
blob: c98bfe5789c4cee6d9ad005ddf21c6cafe100ffc (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
    "module": "geniviextras",
    "testDir": "../../config.tests",

    "commandline": {
        "options": {
            "geniviextras-only": "boolean"
        }
    },

    "libraries": {
        "dlt": {
            "label": "DLT",
            "test": "dlt",
            "sources": [
                { "type": "pkgConfig", "args": "automotive-dlt" },
                "-ldlt"
            ]
        },
        "dlt_2_12": {
            "label": "DLT >= 2.12",
            "test": "dlt",
            "sources": [
                { "type": "pkgConfig", "args": "automotive-dlt >= 2.12.0" },
                "-ldlt"
            ]
        }
    },

    "features": {
        "dlt": {
            "label": "DLT",
            "autoDetect": "config.unix",
            "condition": "libs.dlt",
            "output": [ "privateFeature" ]
        },

        "dlt_2_12": {
            "label": "DLT > 2.12",
            "autoDetect": "config.unix",
            "condition": "libs.dlt_2_12",
            "output": [ "privateFeature" ]
        },

        "geniviextras-only": {
            "label": "Only build Qt GENIVI Extras",
            "condition": "input.geniviextras-only == 'yes'",
            "output": [ "privateFeature" ]
        },

        "geniviextras" : {
            "label": "Qt GENIVI Extras",
            "condition": "features.dlt",
            "output": [ "publicFeature" ]
        }
    },

    "report": [
        {
            "type": "note",
            "condition": "!features.dlt",
            "message": "No DLT libs found. Disabled building Qt GENIVI Extras."
        },
        {
            "type": "note",
            "condition": "features.dlt && !features.dlt_2_12",
            "message": "Old DLT version detected. Not all features of Qt GENIVI Extras can be enabled."
        },
        {
            "type": "error",
            "condition": "!features.dlt && input.geniviextras-only == 'yes'",
            "message": "Mandatory dependency missing for only building Qt GENIVI Extras."
        }
    ],

    "summary": [
        {
            "section": "Qt GENIVI Extras",
            "condition": "features.geniviextras",
            "entries": [
                "dlt",
                "dlt_2_12"
            ]
        },
        {
            "type": "feature",
            "args": "geniviextras",
            "condition": "!features.geniviextras"
        }
    ]
}