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 3325fe8..51890ff 100644 (file)
@@ -1,4 +1,9 @@
-LIBS += -lX11 -lXext -lEGL
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += egl x11 xext
+} else {
+    LIBS += -lX11 -lXext -lEGL
+}
 
 load(qpa/egl/convenience)
 HEADERS += \