Make the gl integrations use the same build options as the config tests
[profile/ivi/qtwayland.git] / src / compositor / hardware_integration / xcomposite_egl / xcomposite_egl.pri
index f4be9a2..1004fe3 100644 (file)
@@ -1,6 +1,11 @@
 include (../xcomposite_share/xcomposite_share.pri)
 
-LIBS += -lXcomposite -lX11 -lEGL
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += xcomposite egl x11
+} else {
+    LIBS += -lXcomposite -lEGL -lX11
+}
 
 HEADERS += \
     $$PWD/xcompositeeglintegration.h