2011-04-27 10:05:43 +00:00
|
|
|
# WinCE does not have a platform directory for .prf files, and the
|
|
|
|
# win32 directory is searched for .prfs by qmake on WinCE. Ideally
|
|
|
|
# there should be a features/wince/opengl.prf which contains the wince
|
|
|
|
# block below.
|
|
|
|
|
|
|
|
wince* {
|
|
|
|
include(../unix/opengl.prf)
|
|
|
|
} else {
|
2012-05-23 13:07:06 +00:00
|
|
|
contains(QT_CONFIG, opengles2) {
|
|
|
|
# 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
|
2012-11-30 07:57:37 +00:00
|
|
|
contains(QT_CONFIG, angle) {
|
|
|
|
LIBS += $$QMAKE_LIBS_OPENGL_ES2_DEBUG
|
|
|
|
} else {
|
|
|
|
LIBS += $$QMAKE_LIBS_OPENGL_ES2
|
|
|
|
}
|
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
|
|
|
QMAKE_LIBDIR += $$QMAKE_LIBDIR_OPENGL_ES2_RELEASE
|
|
|
|
}
|
|
|
|
DEFINES += QT_OPENGL_ES_2 QT_OPENGL_ES_2_ANGLE
|
2015-04-08 14:04:36 +00:00
|
|
|
contains(QT_CONFIG, static): DEFINES += QT_OPENGL_ES_2_ANGLE_STATIC GL_APICALL= EGLAPI=
|
2012-05-23 13:07:06 +00:00
|
|
|
QT_CONFIG -= opengl
|
|
|
|
} else {
|
2014-03-03 19:41:52 +00:00
|
|
|
!contains(QT_CONFIG, dynamicgl) {
|
|
|
|
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
|
|
|
}
|