Don't use pkgconfig. Use the raster compositor.
QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
-contains(QT_CONFIG, opengl):!isEqual(QT_WAYLAND_GL_CONFIG,nogl) {
+!mac:contains(QT_CONFIG, opengl):!isEqual(QT_WAYLAND_GL_CONFIG,nogl) {
HEADERS += \
$$PWD/graphicshardwareintegration.h
INCLUDEPATH += $$PWD
-use_pkgconfig {
+!mac:use_pkgconfig {
QMAKE_CXXFLAGS += $$system(pkg-config --cflags wayland-server)
#for some reason this is not included in the cflags line
INCLUDEPATH += $$system(pkg-config --variable=includedir wayland-server)