CONFIG += wayland_gl
CONFIG += mesa_egl
+# comment out the following to not use pkg-config in the pri files
+CONFIG += use_pkgconfig
+
DESTDIR=$$PWD/../../bin/
LIBS += -L ../../lib
include (../../src/qt-compositor/qt-compositor.pri)
-LIBS += -L/home/jlind/install/lib
-INCLUDEPATH += /home/jlind/install/include
-
# Input
SOURCES += main.cpp
DEFINES += QT_COMPOSITOR_MESA_EGL
}
+use_pkgconfig {
+ QMAKE_CXXFLAGS += $$system(pkg-config --cflags glesv2)
+ #for some reason this is not included in the cflags line
+ INCLUDEPATH += $$system(pkg-config --variable=includedir glesv2)
+ LIBS += $$system(pkg-config --libs glesv2)
+}
+
SOURCES += $$PWD/qtcompositor.cpp \
$$PWD/graphicshardwareintegration.cpp \
$$PWD/private/wlcompositor.cpp \