clean up the QT+= stuff in the project files
[profile/ivi/qtwayland.git] / src / qt-compositor / qt-compositor.pri
1 INCLUDEPATH += $$PWD
2 DEFINES += QT_WAYLAND_WINDOWMANAGER_SUPPORT
3
4 use_pkgconfig {
5     QMAKE_CXXFLAGS += $$system(pkg-config --cflags wayland-server)
6     #for some reason this is not included in the cflags line
7     INCLUDEPATH += $$system(pkg-config --variable=includedir wayland-server)
8     LIBS += $$system(pkg-config --libs wayland-server)
9
10     #set the rpath
11     !isEmpty(QMAKE_LFLAGS_RPATH) {
12         WAYLAND_NEEDS_RPATH = $$system(pkg-config --libs-only-L wayland-server)
13         !isEmpty(WAYLAND_NEEDS_RPATH) {
14             WAYLAND_LIBDIR = $$system(pkg-config --variable=libdir wayland-server)
15             !isEmpty(WAYLAND_LIBDIR):QMAKE_LFLAGS += $${QMAKE_LFLAGS_RPATH}$${WAYLAND_LIBDIR}
16         }
17     }
18 } else {
19     INCLUDEPATH += $$PWD/../3rdparty/wayland
20     LIBS += -L$$PWD/../../lib
21     LIBS += -lwayland-server -lffi
22 }
23
24 include ($$PWD/util/util.pri)
25 include ($$PWD/wayland_wrapper/wayland_wrapper.pri)
26 include ($$PWD/hardware_integration/hardware_integration.pri)
27 include ($$PWD/compositor_api/compositor_api.pri)
28 include ($$PWD/windowmanagerprotocol/windowmanagerprotocol.pri)