summaryrefslogtreecommitdiff
path: root/src/plugins/platforms/testlite/testlite.pro
blob: 7fb330484150cfd8dbdd451d78f1b7c8c4ac8f02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
TARGET = qtestlite

include(../../qpluginbase.pri)
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms

SOURCES = \
        main.cpp \
        qtestliteintegration.cpp \
        qtestlitewindowsurface.cpp \
        qtestlitewindow.cpp \
        qtestlitecursor.cpp \
        qtestlitescreen.cpp \
        qtestlitekeyboard.cpp \
        qtestliteclipboard.cpp \
        qtestlitemime.cpp \
        qtestlitestaticinfo.cpp

HEADERS = \
        qtestliteintegration.h \
        qtestlitewindowsurface.h \
        qtestlitewindow.h \
        qtestlitecursor.h \
        qtestlitescreen.h \
        qtestlitekeyboard.h \
        qtestliteclipboard.h \
        qtestlitemime.h \
        qtestlitestaticinfo.h

LIBS += -lX11 -lXext

mac {
    LIBS += -L/usr/X11/lib -lz -framework Carbon
}

include (../fontdatabases/genericunix/genericunix.pri)

contains(QT_CONFIG, opengl) {
    QT += opengl
    !contains(QT_CONFIG, opengles2) {
        HEADERS += qglxintegration.h
        SOURCES += qglxintegration.cpp
    } else { # There is no easy way to detect if we'r suppose to use glx or not
        HEADERS += \
            ../eglconvenience/qeglplatformcontext.h \
            ../eglconvenience/qeglconvenience.h \
            qtestliteeglintegration.h

        SOURCES += \
            ../eglconvenience/qeglplatformcontext.cpp \
            ../eglconvenience/qeglconvenience.cpp \
            qtestliteeglintegration.cpp
        LIBS += -lEGL
    }
}

target.path += $$[QT_INSTALL_PLUGINS]/platforms
INSTALLS += target