summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/openkode/openkode.pro
blob: ad17a3bc7815f1d7af2fe72490f62fe944ae683a (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
TARGET = qopenkodeintegration
load(qt_plugin)

QT += opengl

DESTDIR = $$QT.gui.plugins/platforms

SOURCES =   main.cpp \
            qopenkodeintegration.cpp \
            qopenkodewindow.cpp \
            ../eglconvenience/qeglplatformcontext.cpp \
            ../eglconvenience/qeglconvenience.cpp \
            qopenkodeeventloopintegration.cpp

HEADERS =   qopenkodeintegration.h \
            qopenkodewindow.h \
            ../eglconvenience/qeglplatformcontext.h \
            ../eglconvenience/qeglconvenience.h \
            qopenkodeeventloopintegration.h \
            openkodekeytranslator.h

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

RESOURCES = resources.qrc

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

LIBS += -lKD -lEGL
!isEmpty(QMAKE_INCDIR_OPENGL_ES2){
    INCLUDEPATH += $$QMAKE_INCDIR_OPENGL_ES2
}
!isEmpty(QMAKE_LIBDIR_OPENGL_ES2){
    for(p, QMAKE_LIBDIR_OPENGL_ES2) {
        exists($$p):LIBS += -L$$p
    }
}
!isEmpty(QMAKE_LIBS_OPENGL_ES2){
    LIBS += $$QMAKE_LIBS_OPENGL_ES2
} else {
    LIBS += -lGLESv2
}