diff options
author | Ralf Nolden <nolden@kde.org> | 2016-05-17 12:38:44 +0200 |
---|---|---|
committer | Ralf Nolden <nolden@kde.org> | 2016-05-23 11:24:36 +0000 |
commit | 5c6d27b8dfa695ab04766a1711b00421dba9c7d0 (patch) | |
tree | 0d094e3f0df53b563fbdd7933798276454bd4a0a /config.tests/qpa/eglfs-egldevice | |
parent | 932cce18f72d9af99629f1bad8bd1b6114de0300 (diff) |
Make eglfs-egldevice check work with pkgconfig as well
Until now the check didn't use pkgconfig at all, but using pkgconfig
alone does not work for some devices (special cases), so we have to
use a combination of both here.
Change-Id: Ia19a279d80a65352c467661d91a3762448c23ae6
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'config.tests/qpa/eglfs-egldevice')
-rw-r--r-- | config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro b/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro index 521a911219..d0945465a0 100644 --- a/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro +++ b/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro @@ -6,7 +6,10 @@ for(p, QMAKE_LIBDIR_EGL) { INCLUDEPATH += $$QMAKE_INCDIR_EGL LIBS += $$QMAKE_LIBS_EGL - -LIBS += -ldrm - +CONFIG += link_pkgconfig +!contains(QT_CONFIG, no-pkg-config) { + PKGCONFIG += libdrm +} else { + LIBS += -ldrm +} CONFIG -= qt |