summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorgen Lind <jorgen.lind@gmail.com>2012-07-17 16:32:37 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2012-08-13 14:31:56 +0200
commitddaa441ea0923473e40d70bbe74b0b4c0e4e86b5 (patch)
tree76fb9461619d995fd61820b6a0357c82ec932533
parentb7a2f76e8b1a7422721a77cfe50becafcfe27ccc (diff)
downloadqtwayland-ddaa441ea0923473e40d70bbe74b0b4c0e4e86b5.tar.gz
qtwayland-ddaa441ea0923473e40d70bbe74b0b4c0e4e86b5.tar.bz2
qtwayland-ddaa441ea0923473e40d70bbe74b0b4c0e4e86b5.zip
Make the gl integrations use the same build options as the config tests
Change-Id: I3efbd0c87c19c8ff2c382c56d2ca34bbe2e7033d Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
-rw-r--r--src/compositor/hardware_integration/wayland_egl/wayland_egl.pri8
-rw-r--r--src/compositor/hardware_integration/xcomposite_egl/xcomposite_egl.pri7
-rw-r--r--src/compositor/hardware_integration/xcomposite_glx/xcomposite_glx.pri7
-rw-r--r--src/plugins/platforms/wayland/gl_integration/readback_egl/readback_egl.pri7
-rw-r--r--src/plugins/platforms/wayland/gl_integration/readback_glx/readback_glx.pri7
-rw-r--r--src/plugins/platforms/wayland/gl_integration/wayland_egl/wayland_egl.pri8
-rw-r--r--src/plugins/platforms/wayland/gl_integration/xcomposite_egl/xcomposite_egl.pri7
-rw-r--r--src/plugins/platforms/wayland/gl_integration/xcomposite_glx/xcomposite_glx.pri8
8 files changed, 50 insertions, 9 deletions
diff --git a/src/compositor/hardware_integration/wayland_egl/wayland_egl.pri b/src/compositor/hardware_integration/wayland_egl/wayland_egl.pri
index 2589239..d1e389d 100644
--- a/src/compositor/hardware_integration/wayland_egl/wayland_egl.pri
+++ b/src/compositor/hardware_integration/wayland_egl/wayland_egl.pri
@@ -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
diff --git a/src/compositor/hardware_integration/xcomposite_egl/xcomposite_egl.pri b/src/compositor/hardware_integration/xcomposite_egl/xcomposite_egl.pri
index f4be9a2..1004fe3 100644
--- a/src/compositor/hardware_integration/xcomposite_egl/xcomposite_egl.pri
+++ b/src/compositor/hardware_integration/xcomposite_egl/xcomposite_egl.pri
@@ -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
diff --git a/src/compositor/hardware_integration/xcomposite_glx/xcomposite_glx.pri b/src/compositor/hardware_integration/xcomposite_glx/xcomposite_glx.pri
index e8d4d01..26281cc 100644
--- a/src/compositor/hardware_integration/xcomposite_glx/xcomposite_glx.pri
+++ b/src/compositor/hardware_integration/xcomposite_glx/xcomposite_glx.pri
@@ -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
diff --git a/src/plugins/platforms/wayland/gl_integration/readback_egl/readback_egl.pri b/src/plugins/platforms/wayland/gl_integration/readback_egl/readback_egl.pri
index 3325fe8..51890ff 100644
--- a/src/plugins/platforms/wayland/gl_integration/readback_egl/readback_egl.pri
+++ b/src/plugins/platforms/wayland/gl_integration/readback_egl/readback_egl.pri
@@ -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 += \
diff --git a/src/plugins/platforms/wayland/gl_integration/readback_glx/readback_glx.pri b/src/plugins/platforms/wayland/gl_integration/readback_glx/readback_glx.pri
index 746d594..58b7262 100644
--- a/src/plugins/platforms/wayland/gl_integration/readback_glx/readback_glx.pri
+++ b/src/plugins/platforms/wayland/gl_integration/readback_glx/readback_glx.pri
@@ -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
+}
diff --git a/src/plugins/platforms/wayland/gl_integration/wayland_egl/wayland_egl.pri b/src/plugins/platforms/wayland/gl_integration/wayland_egl/wayland_egl.pri
index 8b4b163..5bda007 100644
--- a/src/plugins/platforms/wayland/gl_integration/wayland_egl/wayland_egl.pri
+++ b/src/plugins/platforms/wayland/gl_integration/wayland_egl/wayland_egl.pri
@@ -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 \
diff --git a/src/plugins/platforms/wayland/gl_integration/xcomposite_egl/xcomposite_egl.pri b/src/plugins/platforms/wayland/gl_integration/xcomposite_egl/xcomposite_egl.pri
index 5f86bd9..9b5a19d 100644
--- a/src/plugins/platforms/wayland/gl_integration/xcomposite_egl/xcomposite_egl.pri
+++ b/src/plugins/platforms/wayland/gl_integration/xcomposite_egl/xcomposite_egl.pri
@@ -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 \
diff --git a/src/plugins/platforms/wayland/gl_integration/xcomposite_glx/xcomposite_glx.pri b/src/plugins/platforms/wayland/gl_integration/xcomposite_glx/xcomposite_glx.pri
index bbd6c12..eb1aa78 100644
--- a/src/plugins/platforms/wayland/gl_integration/xcomposite_glx/xcomposite_glx.pri
+++ b/src/plugins/platforms/wayland/gl_integration/xcomposite_glx/xcomposite_glx.pri
@@ -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 \