diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-10-15 16:52:33 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-10-19 18:30:58 +0000 |
commit | 505c37307980e20baf02961d1be5abf858d5510a (patch) | |
tree | dd61cbe81420afe012cbbfabcfefab5ddd233a5c | |
parent | b33ac5a7d7bff88021fe6b02c0cbf5c64124042e (diff) | |
download | qtwayland-505c37307980e20baf02961d1be5abf858d5510a.tar.gz |
Fix build without pkg-config
Change-Id: I9217c633bcbecd330715b6dbc654245b3fb739a8
Reviewed-by: Louai Al-Khanji <louai.al-khanji@theqtcompany.com>
-rw-r--r-- | examples/wayland/server-buffer/client/client.pro | 9 | ||||
-rw-r--r-- | examples/wayland/server-buffer/compositor/compositor.pro | 3 |
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 ce4a04f9..9d408d9e 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 9f7751a0..8d7f4882 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 |