2017-05-04 08:15:23 +00:00
|
|
|
QT_FOR_CONFIG += gui
|
|
|
|
|
2016-08-05 11:35:39 +00:00
|
|
|
qtConfig(opengles2) {
|
2017-05-04 08:15:23 +00:00
|
|
|
# Depending on the configuration we use libQtANGLE or libEGL and libGLESv2
|
|
|
|
qtConfig(combined-angle-lib) {
|
|
|
|
QMAKE_LIBS_OPENGL_ES2 = -l$${LIBQTANGLE_NAME} $$QMAKE_LIBS_OPENGL_ES2
|
|
|
|
QMAKE_LIBS_OPENGL_ES2_DEBUG = -l$${LIBQTANGLE_NAME}d $$QMAKE_LIBS_OPENGL_ES2_DEBUG
|
|
|
|
} else {
|
|
|
|
QMAKE_LIBS_OPENGL_ES2 = -l$${LIBEGL_NAME} -l$${LIBGLESV2_NAME} $$QMAKE_LIBS_OPENGL_ES2
|
|
|
|
QMAKE_LIBS_OPENGL_ES2_DEBUG = -l$${LIBEGL_NAME}d -l$${LIBGLESV2_NAME}d $$QMAKE_LIBS_OPENGL_ES2_DEBUG
|
|
|
|
}
|
2016-03-09 13:59:20 +00:00
|
|
|
# For Desktop, use the ANGLE library location passed on from configure.
|
|
|
|
INCLUDEPATH += $$QMAKE_INCDIR_OPENGL_ES2
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
QMAKE_LIBDIR += $$QMAKE_LIBDIR_OPENGL_ES2_DEBUG
|
2016-08-05 11:35:39 +00:00
|
|
|
qtConfig(angle) {
|
2016-03-09 13:59:20 +00:00
|
|
|
LIBS += $$QMAKE_LIBS_OPENGL_ES2_DEBUG
|
2012-05-23 13:07:06 +00:00
|
|
|
} else {
|
2012-11-30 07:57:37 +00:00
|
|
|
LIBS += $$QMAKE_LIBS_OPENGL_ES2
|
2012-05-23 13:07:06 +00:00
|
|
|
}
|
|
|
|
} else {
|
2016-03-09 13:59:20 +00:00
|
|
|
LIBS += $$QMAKE_LIBS_OPENGL_ES2
|
|
|
|
QMAKE_LIBDIR += $$QMAKE_LIBDIR_OPENGL_ES2_RELEASE
|
|
|
|
}
|
2016-08-15 19:56:36 +00:00
|
|
|
qtConfig(static): DEFINES += GL_APICALL= EGLAPI=
|
2016-03-09 13:59:20 +00:00
|
|
|
} else {
|
2016-08-05 11:35:39 +00:00
|
|
|
!qtConfig(dynamicgl) {
|
2016-03-09 13:59:20 +00:00
|
|
|
QMAKE_LIBS += $$QMAKE_LIBS_OPENGL
|
|
|
|
QMAKE_LFLAGS += $$QMAKE_LFLAGS_OPENGL
|
2012-05-23 13:07:06 +00:00
|
|
|
}
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|