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 }