wayland: use pkgconfig for libdrm in wayland.pro
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Sun, 21 Nov 2010 13:18:51 +0000 (14:18 +0100)
committerJørgen Lind <jorgen.lind@nokia.com>
Tue, 25 Jan 2011 18:05:50 +0000 (19:05 +0100)
On this system the IncludePath for drm.h was missing

So maybe pkgconfig should be additionally also used for
libxkbcommon, EGL and GLESv2 to prevent such problems.
but i dont know whether its common to use pkg-config in qmake

src/plugins/platforms/wayland/wayland.pro

index b0cb98b..4c01fa2 100644 (file)
@@ -16,7 +16,11 @@ HEADERS =   qwaylandintegration.h \
 contains(QT_CONFIG, opengl) {
     QT += opengl
 }
-LIBS += -lwayland-client -ldrm -lxkbcommon -lEGL -lGLESv2
+LIBS += -lwayland-client -lxkbcommon -lEGL -lGLESv2
+unix {
+       CONFIG += link_pkgconfig
+       PKGCONFIG += libdrm
+}
 
 include (../fontdatabases/fontconfig/fontconfig.pri)