diff options
author | Jason Barron <jason.barron@digia.com> | 2012-10-15 14:16:51 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-24 02:29:15 +0200 |
commit | e0c0e83fd5534b24f18d5e02a453182df54933e0 (patch) | |
tree | b0277ef33d668f49a02203de2c99b1cfbaad5291 /src/angle/angle.pro | |
parent | 84d09214bc54b4a0cf9860aa27e78ae27bfd69f9 (diff) |
Add ANGLE as a 3rdparty library to Qt.
ANGLE is a component that implements the OpenGL ES 2.0 API on
top of DirectX 9. See the following for more info:
http://code.google.com/p/angleproject/
ANGLE is now the default configuration on Windows. If you
want to use desktop OpenGL, you should build Qt with the
following configure options:
-opengl desktop
To configure Qt to use another OpenGL ES 2 implementation,
you should use:
-opengl es2 -no-angle
Task-number: QTBUG-24207
Change-Id: Iefcbeaa37ed920f431729749ab8333b248fe5134
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/angle/angle.pro')
-rw-r--r-- | src/angle/angle.pro | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/angle/angle.pro b/src/angle/angle.pro new file mode 100644 index 0000000000..00e0501d60 --- /dev/null +++ b/src/angle/angle.pro @@ -0,0 +1,19 @@ +TEMPLATE = subdirs +SUBDIRS += src + +# We need to call syncqt manually instead of using "load(qt_module_headers)" for several reasons: +# 1) qt_module_headers assumes the TARGET is the same as the include directory (eg: libGLESv2 != GLES2) +# 2) If we made a 'QtANGLE' module, the include directory would be flattened which won't work since +# we need to support "#include <GLES2/gl2.h>" +!build_pass { + qtPrepareTool(QMAKE_SYNCQT, syncqt) + QTDIR = $$[QT_HOST_PREFIX] + exists($$QTDIR/.qmake.cache): \ + mod_component_base = $$QTDIR + else: \ + mod_component_base = $$dirname(_QMAKE_CACHE_) + QMAKE_SYNCQT += -minimal -module KHR -module EGL -module GLES2 \ + -mkspecsdir $$[QT_HOST_DATA/get]/mkspecs -outdir $$mod_component_base $$dirname(_QMAKE_CONF_) + !silent:message($$QMAKE_SYNCQT) + system($$QMAKE_SYNCQT)|error("Failed to run: $$QMAKE_SYNCQT") +} |