diff options
Diffstat (limited to 'src/serialbus/configure.json')
-rw-r--r-- | src/serialbus/configure.json | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/serialbus/configure.json b/src/serialbus/configure.json new file mode 100644 index 0000000..6e00230 --- /dev/null +++ b/src/serialbus/configure.json @@ -0,0 +1,53 @@ +{ + "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"] + } + }, + + "report": [ + { + "type": "note", + "condition": "!features.socketcan", + "message": "QtSerialBus: Cannot find linux.can.h and linux/can/raw.h Linux headers for socketCAN support." + }, + { + "type": "note", + "condition": "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" + ] + } + ] +} |