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 \