Fix not having "our own include paths in pri files"
authorJørgen Lind <jorgen.lind@nokia.com>
Wed, 9 Mar 2011 12:29:08 +0000 (13:29 +0100)
committerJørgen Lind <jorgen.lind@nokia.com>
Wed, 9 Mar 2011 12:30:19 +0000 (13:30 +0100)
Rev-by: paul
examples/qwidget-compositor/qt-compositor.pro
src/qt-compositor/qt-compositor.pri

index 41776f8..8e3e586 100644 (file)
@@ -8,15 +8,15 @@ INCLUDEPATH += ../../src/qt-compositor/
 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
 
index 5296b72..7aa2a49 100644 (file)
@@ -10,6 +10,13 @@ include (mesa_egl/mesa_egl.pri)
 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 \