summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/egl.pri
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-04-23 07:39:40 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2010-04-23 07:49:48 (GMT)
commit41b110e17b3deb102c7521d19964896228fcc8c6 (patch)
tree687809a25deb02532be742e13da8dc95e2c13728 /src/gui/egl/egl.pri
parent2ca4e77f0a29bc6d7571ca614a6101d9e1bd83e0 (diff)
downloadQt-41b110e17b3deb102c7521d19964896228fcc8c6.zip
Qt-41b110e17b3deb102c7521d19964896228fcc8c6.tar.gz
Qt-41b110e17b3deb102c7521d19964896228fcc8c6.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.pri43
1 files changed, 24 insertions, 19 deletions
diff --git a/src/gui/egl/egl.pri b/src/gui/egl/egl.pri
index b90b9b0..9ca1f0a 100644
--- a/src/gui/egl/egl.pri
+++ b/src/gui/egl/egl.pri
@@ -1,24 +1,29 @@
-CONFIG += egl
+contains(QT_CONFIG, egl): {
+ CONFIG += egl
-HEADERS += \
- egl/qegl_p.h \
- egl/qeglcontext_p.h \
- egl/qeglproperties_p.h
+ HEADERS += \
+ egl/qegl_p.h \
+ egl/qeglcontext_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
}