diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2011-12-05 17:09:02 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-12-07 09:58:35 +0100 |
commit | 4c89518228012ddc3602eab405e4b5fb8108fcdf (patch) | |
tree | 615d4fdc38999e408d52998c39760064d223b652 /src/compositor/compositor.pri | |
parent | 542eca71e074b5110df2aaf822449bf7d6ec2b91 (diff) |
Make wayland actually a module
Also fix so that QtCompositor can be built as shared object.
+ fix so that the default QT_WAYLAND_GL_CONFIG is wayland_egl
Change-Id: I02b72e99286584426bd37ab2d00bbc84af11efdc
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Diffstat (limited to 'src/compositor/compositor.pri')
-rw-r--r-- | src/compositor/compositor.pri | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/compositor/compositor.pri b/src/compositor/compositor.pri new file mode 100644 index 000000000..de95dc4ce --- /dev/null +++ b/src/compositor/compositor.pri @@ -0,0 +1,32 @@ +CONFIG += module +MODULE_PRI += $$PWD/../../modules/qt_compositor.pri + +INCLUDEPATH += $$PWD +DEFINES += QT_WAYLAND_WINDOWMANAGER_SUPPORT +DEFINES += QT_BUILD_COMPOSITOR_LIB + +!mac:use_pkgconfig { + CONFIG += link_pkgconfig + PKGCONFIG += wayland-server + + #set the rpath + !isEmpty(QMAKE_LFLAGS_RPATH) { + WAYLAND_NEEDS_RPATH = $$system(pkg-config --libs-only-L wayland-server) + !isEmpty(WAYLAND_NEEDS_RPATH) { + WAYLAND_LIBDIR = $$system(pkg-config --variable=libdir wayland-server) + !isEmpty(WAYLAND_LIBDIR):QMAKE_LFLAGS += $${QMAKE_LFLAGS_RPATH}$${WAYLAND_LIBDIR} + } + } +} else { + INCLUDEPATH += $$PWD/../3rdparty/wayland + LIBS += -L$$PWD/../../lib + LIBS += -lwayland-server -lffi +} + +HEADERS += qtcompositorversion.h + +include ($$PWD/util/util.pri) +include ($$PWD/wayland_wrapper/wayland_wrapper.pri) +include ($$PWD/hardware_integration/hardware_integration.pri) +include ($$PWD/compositor_api/compositor_api.pri) +include ($$PWD/windowmanagerprotocol/windowmanagerprotocol.pri) |