Remove dependency on libQtWidgets and libQtOpenGL
[profile/ivi/qtwayland.git] / src / compositor / hardware_integration / hardware_integration.pri
1 isEmpty(QT_WAYLAND_GL_CONFIG):QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
2
3 !mac:!isEqual(QT_WAYLAND_GL_CONFIG,nogl) {
4     HEADERS += \
5         $$PWD/graphicshardwareintegration.h
6
7     SOURCES += \
8         $$PWD/graphicshardwareintegration.cpp
9
10     DEFINES += QT_COMPOSITOR_WAYLAND_GL
11
12     isEqual(QT_WAYLAND_GL_CONFIG, custom) {
13         QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
14     } else {
15         contains(QT_CONFIG, opengles2) {
16             isEqual(QT_WAYLAND_GL_CONFIG, xcomposite_egl) {
17                 QT_WAYLAND_GL_INTEGRATION = xcomposite_egl
18                 CONFIG += xcomposite_egl
19             } else:isEqual(QT_WAYLAND_GL_CONFIG,dri2_xcb) {
20                 QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
21                 CONFIG += dri2_xcb
22             } else {
23                 QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
24                 CONFIG += wayland_egl
25                 DEFINES += MESA_EGL_NO_X11_HEADERS
26             }
27         } else {
28             QT_WAYLAND_GL_INTEGRATION = xcomposite_glx
29             CONFIG += xcomposite_glx
30         }
31     }
32     system(echo "Qt-Compositor configured with openGL: $$QT_WAYLAND_GL_INTEGRATION")
33 } else {
34     system(echo "Qt-Compositor configured as raster only compositor")
35 }
36
37 wayland_egl {
38     include (wayland_egl/wayland_egl.pri)
39 }
40 dri2_xcb {
41     include (dri2_xcb/dri2_xcb.pri)
42 }
43 xcomposite_egl {
44     include (xcomposite_egl/xcomposite_egl.pri)
45 }
46 xcomposite_glx {
47     include (xcomposite_glx/xcomposite_glx.pri)
48 }