summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/wayland/server-buffer/client/client.pro9
-rw-r--r--examples/wayland/server-buffer/compositor/compositor.pro3
2 files changed, 7 insertions, 5 deletions
diff --git a/examples/wayland/server-buffer/client/client.pro b/examples/wayland/server-buffer/client/client.pro
index ce4a04f91..9d408d9e9 100644
--- a/examples/wayland/server-buffer/client/client.pro
+++ b/examples/wayland/server-buffer/client/client.pro
@@ -3,8 +3,13 @@ TARGET = client
INCLUDEPATH += .
QT += waylandclient-private
-CONFIG += link_pkgconfig
-PKGCONFIG += wayland-client
+
+!contains(QT_CONFIG, no-pkg-config) {
+ PKGCONFIG += wayland-client
+ CONFIG += link_pkgconfig
+} else {
+ LIBS += -lwayland-client
+}
CONFIG += wayland-scanner
WAYLANDCLIENTSOURCES += ../share-buffer.xml
diff --git a/examples/wayland/server-buffer/compositor/compositor.pro b/examples/wayland/server-buffer/compositor/compositor.pro
index 9f7751a09..8d7f48820 100644
--- a/examples/wayland/server-buffer/compositor/compositor.pro
+++ b/examples/wayland/server-buffer/compositor/compositor.pro
@@ -17,7 +17,4 @@ RESOURCES += compositor.qrc
CONFIG +=wayland-scanner
WAYLANDSERVERSOURCES += ../share-buffer.xml
-CONFIG += link_pkgconfig
-PKGCONFIG += wayland-server
-
DEFINES += QT_COMPOSITOR_QUICK