summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2019-08-06 18:45:24 +0200
committerMichal Klocek <michal.klocek@qt.io>2019-08-12 19:19:09 +0200
commit414a61978932a6525bb15c2d6c06bd5e3be6608a (patch)
treeadd63f8df713311153ecae4f4ccb7d29f7da72c5 /src
parent23b24fb49a9115151ea086afd271fdf9bb36fda0 (diff)
Move alsa test to configure
Change-Id: Ifdd476c0b58763be009d208a5f9d4c23305b6baa Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/core/configure.json20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/core/configure.json b/src/core/configure.json
index d3e0f87e0..345434090 100644
--- a/src/core/configure.json
+++ b/src/core/configure.json
@@ -43,6 +43,19 @@
},
"libraries": {
+ "webengine-alsa": {
+ "label": "alsa",
+ "test": {
+ "tail": [
+ "#if SND_LIB_VERSION < 0x1000a // 1.0.10",
+ "#error Alsa version found too old, require >= 1.0.10",
+ "#endif"
+ ]
+ },
+ "headers" : ["alsa/asoundlib.h"],
+ "sources" : [{ "type": "pkgConfig", "args": "alsa" }
+ ]
+ },
"webengine-dbus": {
"label": "d-bus",
"sources": [
@@ -236,11 +249,6 @@
}
},
"tests" : {
- "webengine-alsa": {
- "label": "alsa",
- "test": "alsa",
- "type": "compile"
- },
"webengine-host-compiler": {
"label": "host compiler",
"test": "hostcompiler",
@@ -465,7 +473,7 @@
},
"webengine-alsa": {
"label": "Use ALSA",
- "condition": "config.unix && tests.webengine-alsa",
+ "condition": "config.unix && libs.webengine-alsa",
"output": [ "privateFeature" ]
},
"webengine-v8-snapshot": {