summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/egl.pri
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-04-23 09:01:19 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2010-04-23 12:08:35 (GMT)
commitf540b740cfbc4a90f615814cdf2142b1073d352a (patch)
treed78f3bfebef6e17e13ac48f2a63160132cd53485 /src/gui/egl/egl.pri
parentaeeb83806daaa2ddb4b6c87162c929d61cf1350c (diff)
downloadQt-f540b740cfbc4a90f615814cdf2142b1073d352a.zip
Qt-f540b740cfbc4a90f615814cdf2142b1073d352a.tar.gz
Qt-f540b740cfbc4a90f615814cdf2142b1073d352a.tar.bz2
stub implementations for EGL for symbian
This is done to keep binary compatibility between Qt built with openvg vs Qt built without openvg support. The problem is that Symbian uses .def files to map between exported symbol names and ordinals in the DLL export table. The alternative of manually maintaining two versions of the QtGui def files proved to be too error prone and time consuming. Note that the EGL exports are defined in a private header, for use by the openvg and opengl graphics system plugins. These plugins should always be compiled against Qt configured with support for the graphics system, as the headers contain default parameters which are inlined into the plugin binary. Task-number: QTBUG-7870 Reviewed-by: Tom Cooksey
Diffstat (limited to 'src/gui/egl/egl.pri')
-rw-r--r--src/gui/egl/egl.pri41
1 files changed, 23 insertions, 18 deletions
diff --git a/src/gui/egl/egl.pri b/src/gui/egl/egl.pri
index 669d311..65b1636 100644
--- a/src/gui/egl/egl.pri
+++ b/src/gui/egl/egl.pri
@@ -1,23 +1,28 @@
-CONFIG += egl
+contains(QT_CONFIG, egl): {
+ CONFIG += egl
-HEADERS += \
- egl/qegl_p.h \
- egl/qeglproperties_p.h
+ HEADERS += \
+ egl/qegl_p.h \
+ egl/qeglproperties_p.h
-SOURCES += \
- egl/qegl.cpp \
- egl/qeglproperties.cpp
+ SOURCES += \
+ egl/qegl.cpp \
+ egl/qeglproperties.cpp
-wince*: SOURCES += egl/qegl_wince.cpp
+ wince*: SOURCES += egl/qegl_wince.cpp
-unix {
- embedded {
- SOURCES += egl/qegl_qws.cpp
- } else {
- symbian {
- SOURCES += egl/qegl_symbian.cpp
- } else {
- SOURCES += egl/qegl_x11.cpp
- }
- }
+ unix {
+ embedded {
+ SOURCES += egl/qegl_qws.cpp
+ } else {
+ symbian {
+ SOURCES += egl/qegl_symbian.cpp
+ } else {
+ SOURCES += egl/qegl_x11.cpp
+ }
+ }
+ }
+} else:symbian {
+ SOURCES += egl/qegl_stub.cpp
+ SOURCES += egl/qeglproperties_stub.cpp
}