Make the gl integrations use the same build options as the config tests
authorJorgen Lind <jorgen.lind@gmail.com>
Tue, 17 Jul 2012 14:32:37 +0000 (16:32 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Mon, 13 Aug 2012 12:31:56 +0000 (14:31 +0200)
Change-Id: I3efbd0c87c19c8ff2c382c56d2ca34bbe2e7033d
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/compositor/hardware_integration/wayland_egl/wayland_egl.pri
src/compositor/hardware_integration/xcomposite_egl/xcomposite_egl.pri
src/compositor/hardware_integration/xcomposite_glx/xcomposite_glx.pri
src/plugins/platforms/wayland/gl_integration/readback_egl/readback_egl.pri
src/plugins/platforms/wayland/gl_integration/readback_glx/readback_glx.pri
src/plugins/platforms/wayland/gl_integration/wayland_egl/wayland_egl.pri
src/plugins/platforms/wayland/gl_integration/xcomposite_egl/xcomposite_egl.pri
src/plugins/platforms/wayland/gl_integration/xcomposite_glx/xcomposite_glx.pri

index 2589239..d1e389d 100644 (file)
@@ -1,6 +1,10 @@
-LIBS += -lEGL
 
-DEFINES += QT_COMPOSITOR_MESA_EGL
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += wayland-egl egl
+} else {
+    LIBS += -lwayland-egl -lEGL
+}
 
 SOURCES += \
     $$PWD/waylandeglintegration.cpp
index f4be9a2..1004fe3 100644 (file)
@@ -1,6 +1,11 @@
 include (../xcomposite_share/xcomposite_share.pri)
 
-LIBS += -lXcomposite -lX11 -lEGL
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += xcomposite egl x11
+} else {
+    LIBS += -lXcomposite -lEGL -lX11
+}
 
 HEADERS += \
     $$PWD/xcompositeeglintegration.h
index e8d4d01..26281cc 100644 (file)
@@ -1,6 +1,11 @@
 include (../xcomposite_share/xcomposite_share.pri)
 
-LIBS += -lXcomposite -lX11
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += xcomposite gl x11
+} else {
+    LIBS += -lXcomposite -lGL -lX11
+}
 
 HEADERS += \
     $$PWD/xcompositeglxintegration.h
index 3325fe8..51890ff 100644 (file)
@@ -1,4 +1,9 @@
-LIBS += -lX11 -lXext -lEGL
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += egl x11 xext
+} else {
+    LIBS += -lX11 -lXext -lEGL
+}
 
 load(qpa/egl/convenience)
 HEADERS += \
index 746d594..58b7262 100644 (file)
@@ -8,4 +8,9 @@ SOURCES += \
     $$PWD/qwaylandreadbackglxwindow.cpp \
     $$PWD/qwaylandreadbackglxcontext.cpp
 
-LIBS += -lX11
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += x11 gl
+} else {
+    LIBS += -lX11 -lGL
+}
index 8b4b163..5bda007 100644 (file)
@@ -1,4 +1,10 @@
-LIBS += -lwayland-egl -lEGL
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += wayland-egl egl
+} else {
+    LIBS += -lwayland-egl -lEGL
+}
+
 INCLUDEPATH += $$PWD
 SOURCES += $$PWD/qwaylandeglintegration.cpp \
            $$PWD/qwaylandglcontext.cpp \
index 5f86bd9..9b5a19d 100644 (file)
@@ -1,6 +1,11 @@
 include (../xcomposite_share/xcomposite_share.pri)
 
-LIBS += -lXcomposite -lEGL
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += xcomposite egl x11
+} else {
+    LIBS += -lXcomposite -lEGL -lX11
+}
 
 SOURCES += \
     $$PWD/qwaylandxcompositeeglcontext.cpp \
index bbd6c12..eb1aa78 100644 (file)
@@ -1,6 +1,12 @@
 include (../xcomposite_share/xcomposite_share.pri)
 
-LIBS += -lXcomposite
+!contains(QT_CONFIG, no-pkg-config) {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += xcomposite gl x11
+} else {
+    LIBS += -lXcomposite -lGL -lX11
+}
+
 SOURCES += \
     $$PWD/qwaylandxcompositeglxcontext.cpp \
     $$PWD/qwaylandxcompositeglxintegration.cpp \