Make the gl integrations use the same build options as the config tests
[profile/ivi/qtwayland.git] / src / plugins / platforms / wayland / gl_integration / xcomposite_glx / xcomposite_glx.pri
index 43295e9..eb1aa78 100644 (file)
@@ -1,7 +1,12 @@
 include (../xcomposite_share/xcomposite_share.pri)
-include (../../../glxconvenience/glxconvenience.pri)
 
-LIBS += -lXcomposite
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += xcomposite gl x11
+} else {
+    LIBS += -lXcomposite -lGL -lX11
+}
+
 SOURCES += \
     $$PWD/qwaylandxcompositeglxcontext.cpp \
     $$PWD/qwaylandxcompositeglxintegration.cpp \