summaryrefslogtreecommitdiffstats
path: root/src/serialbus/configure.json
blob: 15d48638c053d49d08ffdbbb3a50da65bb2c9b71 (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
{
    "module": "serialbus",
    "testDir": "../../config.tests",

    "tests": {
        "socketcan": {
            "label": "Socket CAN",
            "type": "compile",
            "test": "socketcan"
        },
        "socketcan_fd": {
            "label": "Socket CAN FD",
            "type": "compile",
            "test": "socketcan_fd"
        }
    },

    "features": {
        "socketcan": {
            "label": "Socket CAN",
            "condition": "config.linux && tests.socketcan",
            "output": [ "privateFeature" ]
        },
        "socketcan_fd": {
            "label": "Socket CAN FD",
            "condition": "config.linux && features.socketcan && tests.socketcan_fd",
            "output": [ "privateFeature"]
        },
        "modbus-serialport" : {
            "label": "SerialPort Support",
            "condition": "module.serialport",
            "purpose": "Enables Serial-based Modbus Support",
            "output": [ "publicFeature"]
        }
    },

    "report": [
        {
            "type": "note",
            "condition": "config.linux && !features.socketcan",
            "message": "QtSerialBus: Cannot find linux/can.h and linux/can/raw.h Linux headers for socketCAN support."
        },
        {
            "type": "note",
            "condition": "config.linux && features.socketcan && !features.socketcan_fd",
            "message": "QtSerialBus: Newer kernel needed for flexible data-rate frame support (canfd_frame)."
        }
    ],

    "summary": [
        {
            "section": "Qt SerialBus",
            "entries": [
                "socketcan",
                "socketcan_fd",
                "modbus-serialport"
            ]
        }
    ]
}