diff options
author | Lars Knoll <lars.knoll@qt.io> | 2016-10-26 10:45:42 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2016-11-01 14:50:29 +0000 |
commit | 3dbea0c3f9333235629b3249115cd300f8f41112 (patch) | |
tree | d9e0be12c61305dd8810a916b97d58d92352cc84 /src/bluetooth/configure.json | |
parent | d464779fe2afba8c66a0987813d2f2dab7af89ea (diff) |
Convert qtconnectivity to the new configure system
Properly do the detection of bluez and the linux crypto API,
and don't run pkg-config at build time.
Change-Id: I0f082992c0f82e90e611283ff0c2cc0143e74bd6
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/bluetooth/configure.json')
-rw-r--r-- | src/bluetooth/configure.json | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/bluetooth/configure.json b/src/bluetooth/configure.json new file mode 100644 index 00000000..1cf43f36 --- /dev/null +++ b/src/bluetooth/configure.json @@ -0,0 +1,71 @@ +{ + "module": "bluetooth", + "testDir": "../../config.tests", + + "libraries": { + "bluez": { + "label": "BlueZ", + "test": "bluez", + "sources": [ + { "type": "pkgConfig", "args": "bluez" }, + "-lbluetooth" + ] + } + }, + + "tests": { + "bluez_le": { + "label": "BlueZ Low Energy", + "type": "compile", + "test": "bluez_le" + }, + "linux_crypto_api": { + "label": "Linux Crypto API", + "type": "compile", + "test": "linux_crypto_api" + } + }, + + "features": { + "bluez": { + "label": "BlueZ", + "condition": "libs.bluez", + "output": [ "privateFeature" ] + }, + "bluez_le": { + "label": "BlueZ Low Energy", + "condition": "features.bluez && tests.bluez_le", + "output": [ "privateFeature" ] + }, + "linux_crypto_api": { + "label": "Linux Crypto API", + "condition": "features.bluez_le && tests.linux_crypto_api", + "output": [ "privateFeature" ] + } + }, + + "report": [ + { + "type": "note", + "condition": "features.bluez_le && !features.linux_crypto_api", + "message": "Linux crypto API not present. BTLE signed writes will not work." + }, + { + "type": "note", + "condition": "features.bluez && !features.bluez_le", + "message": "Bluez version is too old to support Bluetooth Low Energy. +Only classic Bluetooth will be available." + } + ], + + "summary": [ + { + "section": "Qt Bluetooth", + "entries": [ + "bluez", + "bluez_le", + "linux_crypto_api" + ] + } + ] +} |