diff options
| author | Simon Busch <morphis@gravedo.de> | 2013-05-08 19:51:18 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-09 13:56:49 +0200 |
| commit | 94b2064593e565ceaefdd7ef32506a99b0e6792b (patch) | |
| tree | 43a84c940ccd9d580c3fe27beb7744a95ef0947c | |
| parent | d8314098bf945b4db15302d47eae1d6fc2df882c (diff) | |
| download | meta-qt5-94b2064593e565ceaefdd7ef32506a99b0e6792b.tar.gz | |
qtbase: move virtual/libgl dependency to extra variable
* makes it easier to change desktop gl to gles2 in .bbappend
* we cannot explicitly disable opengl with -no-opengl, because then it
fails to build (probably only when mesa headers are found in sysroot)
/qtbase-opensource-src-5.0.0/src/platformsupport/eglconvenience/qeglplatformcontext.cpp:62:72: error: 'QPlatformOpenGLContext' has not been declared
/qtbase-opensource-src-5.0.0/src/platformsupport/eglconvenience/qeglplatformcontext.cpp: In constructor 'QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat&, int*, EGLDisplay, EGLenum)':
/qtbase-opensource-src-5.0.0/src/platformsupport/eglconvenience/qeglplatformcontext.cpp:69:70: error: invalid static_cast from type 'int*' to type 'QEGLPlatformContext*'
The same with 5.0.2
Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | recipes-qt/qt5/qtbase.inc | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc index 139811f6..3e471517 100644 --- a/recipes-qt/qt5/qtbase.inc +++ b/recipes-qt/qt5/qtbase.inc | |||
| @@ -15,16 +15,16 @@ SRC_URI += " \ | |||
| 15 | file://0013-configure-don-t-export-SYSTEM_VARIABLES-to-.qmake.va.patch \ | 15 | file://0013-configure-don-t-export-SYSTEM_VARIABLES-to-.qmake.va.patch \ |
| 16 | " | 16 | " |
| 17 | 17 | ||
| 18 | DEPENDS += "qtbase-native virtual/libgl freetype jpeg libpng zlib openssl glib-2.0 ${ICU} udev" | 18 | DEPENDS += "qtbase-native freetype jpeg libpng zlib openssl glib-2.0 ${ICU} udev ${XCB_DEPENDS} ${GL_DEPENDS}" |
| 19 | 19 | ||
| 20 | # to provide xcb/xcb_icccm.h, xcb/xcb_image.h, xcb/xcb_keysyms.h and dbus/dbus.h | 20 | # to provide xcb/xcb_icccm.h, xcb/xcb_image.h, xcb/xcb_keysyms.h and dbus/dbus.h |
| 21 | XCB_DEPENDS += "xcb-util-wm xcb-util-image xcb-util-keysyms dbus" | 21 | # XCB_DEPENDS += "xcb-util-wm xcb-util-image xcb-util-keysyms dbus" |
| 22 | # reenable when we switch to "-qt-xcb" and build of | 22 | # reenable when we switch to "-qt-xcb" and build of |
| 23 | # DEPENDS += "${XCB_DEPENDS}" | ||
| 24 | # QT_XCB = "-qt-xcb" | 23 | # QT_XCB = "-qt-xcb" |
| 25 | # src/platformsupport/glxconvenience/ is resolved to be before build of | 24 | # src/platformsupport/glxconvenience/ is resolved to be before build of |
| 26 | # src/plugins/platforms/xcb/ | 25 | # src/plugins/platforms/xcb/ |
| 27 | 26 | ||
| 27 | XCB_DEPENDS ?= "" | ||
| 28 | QT_XCB ?= "-no-xcb" | 28 | QT_XCB ?= "-no-xcb" |
| 29 | 29 | ||
| 30 | QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm" | 30 | QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm" |
| @@ -33,7 +33,13 @@ QT_DISTRO_FLAGS_linuxstdbase = "-sm" | |||
| 33 | # Some can be used only for certain QT_MODULEs, so define them here, | 33 | # Some can be used only for certain QT_MODULEs, so define them here, |
| 34 | # but add them to QT_CONFIG_FLAGS e.g. in qtbase.inc | 34 | # but add them to QT_CONFIG_FLAGS e.g. in qtbase.inc |
| 35 | QT_SQL_DRIVER_FLAGS ?= "-no-sql-ibase -no-sql-mysql -no-sql-psql -no-sql-odbc -plugin-sql-sqlite" | 35 | QT_SQL_DRIVER_FLAGS ?= "-no-sql-ibase -no-sql-mysql -no-sql-psql -no-sql-odbc -plugin-sql-sqlite" |
| 36 | QT_GLFLAGS ?= "" | 36 | |
| 37 | # if you want to enable egl/gles2 in your .bbappend, don't forget to add right dependencies, e.g. | ||
| 38 | # GL_DEPENDS = "virtual/libgles2 virtual/libegl" | ||
| 39 | # QT_GLFLAGS = "-opengl es2 -eglfs" | ||
| 40 | GL_DEPENDS ?= "virtual/libgl" | ||
| 41 | QT_GLFLAGS ?= "-opengl" | ||
| 42 | |||
| 37 | QT_XML ?= "-xmlpatterns" | 43 | QT_XML ?= "-xmlpatterns" |
| 38 | QT_WEBKIT ?= "-webkit" | 44 | QT_WEBKIT ?= "-webkit" |
| 39 | QT_PHONON ?= "-phonon" | 45 | QT_PHONON ?= "-phonon" |
| @@ -70,7 +76,7 @@ QT_CONFIG_FLAGS += " \ | |||
| 70 | ${QT_DEMOS} \ | 76 | ${QT_DEMOS} \ |
| 71 | " | 77 | " |
| 72 | 78 | ||
| 73 | INC_PR = "r0" | 79 | INC_PR = "r1" |
| 74 | 80 | ||
| 75 | # Qt uses atomic instructions not supported in thumb mode | 81 | # Qt uses atomic instructions not supported in thumb mode |
| 76 | ARM_INSTRUCTION_SET = "arm" | 82 | ARM_INSTRUCTION_SET = "arm" |
