face8609339d9d5a33bb5170d54ecf1d460c261a
[profile/ivi/qtwayland.git] / src / plugins / platforms / wayland / wayland.pro
1 TARGET = qwayland
2 include(../../qpluginbase.pri)
3
4 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
5
6 DEFINES += Q_PLATFORM_WAYLAND
7 DEFINES += $$QMAKE_DEFINES_WAYLAND
8
9 SOURCES =   main.cpp \
10             qwaylandintegration.cpp \
11             qwaylandshmsurface.cpp \
12             qwaylandinputdevice.cpp \
13             qwaylandcursor.cpp \
14             qwaylanddisplay.cpp \
15             qwaylandwindow.cpp \
16             qwaylandscreen.cpp \
17             qwaylandshmwindow.cpp
18
19 HEADERS =   qwaylandintegration.h \
20             qwaylandcursor.h \
21             qwaylanddisplay.h \
22             qwaylandwindow.h \
23             qwaylandscreen.h \
24             qwaylandshmsurface.h \
25             qwaylanddrmsurface.h \
26             qwaylandbuffer.h \
27             qwaylandinclude.h \
28             qwaylandeglwindow.h \
29             qwaylandshmwindow.h
30
31 INCLUDEPATH += $$QMAKE_INCDIR_WAYLAND
32 LIBS += $$QMAKE_LIBS_WAYLAND
33 QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_WAYLAND
34
35 contains(QT_CONFIG, opengles2) {
36     QT += opengl
37     LIBS += -lwayland-egl -lEGL
38
39     SOURCES += qwaylanddrmsurface.cpp \
40             qwaylandglcontext.cpp \
41             ../eglconvenience/qeglconvenience.cpp \
42             qwaylandeglwindow.cpp
43
44     HEADERS += qwaylandglcontext.h \
45             ../eglconvenience/qeglconvenience.h \
46
47     DEFINES += QT_WAYLAND_GL_SUPPORT
48 }
49
50 unix:isEmpty(QMAKE_INCDIR_WAYLAND) {
51         CONFIG += link_pkgconfig
52         PKGCONFIG += libdrm
53 }
54
55 include (../fontdatabases/genericunix/genericunix.pri)
56
57 target.path += $$[QT_INSTALL_PLUGINS]/platforms
58 INSTALLS += target