Make the gl integrations use the same build options as the config tests
[profile/ivi/qtwayland.git] / src / plugins / platforms / wayland / gl_integration / readback_egl / readback_egl.pri
index 0d8e01b..51890ff 100644 (file)
@@ -1,14 +1,17 @@
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += egl x11 xext
+} else {
+    LIBS += -lX11 -lXext -lEGL
+}
 
-LIBS += -lX11 -lXext -lEGL
-
+load(qpa/egl/convenience)
 HEADERS += \
     $$PWD/qwaylandreadbackeglintegration.h \
     $$PWD/qwaylandreadbackeglcontext.h \
     $$PWD/qwaylandreadbackeglwindow.h \
-    $$PWD/../../../eglconvenience/qeglconvenience.h
 
 SOURCES += \
     $$PWD/qwaylandreadbackeglintegration.cpp \
     $$PWD/qwaylandreadbackeglwindow.cpp \
     $$PWD/qwaylandreadbackeglcontext.cpp \
-    $$PWD/../../../eglconvenience/qeglconvenience.cpp