From: Tomasz Olszak Date: Tue, 10 Nov 2015 14:42:03 +0000 (+0100) Subject: Added -force-eglx option to configure script. X-Git-Tag: submit/tizen/20160303.070536~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ad5acb684f8ba3f62fa2a2bb39c14e54b08d2e3;p=platform%2Fupstream%2Fqtbase.git Added -force-eglx option to configure script. Tizen mobile 2.2* has broken eglplatform.h header so that eglx test does not pass. eglplatform.h does not contains MESA_EGL_NO_X11_HEADERS ifdef. Change-Id: I8f956051f2145a60a0f6e429230a9d731c8c2dc0 Bug-Tizen: TIVI-2416 Signed-off-by: Tomasz Olszak --- diff --git a/configure b/configure index 8e8680b472..7ec0d4f25a 100755 --- a/configure +++ b/configure @@ -644,6 +644,7 @@ CFG_OPENVG_SHIVA=auto CFG_OPENVG_ON_OPENGL=auto CFG_EGL=auto CFG_EGL_X=auto +CFG_FORCE_EGL_X=no CFG_FONTCONFIG=auto CFG_FREETYPE=auto CFG_HARFBUZZ=qt @@ -1586,6 +1587,13 @@ while [ "$#" -gt 0 ]; do UNKNOWN_OPT=yes fi ;; + force-eglx) + if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then + CFG_FORCE_EGL_X=yes + else + UNKNOWN_OPT=yes + fi + ;; pch) if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then CFG_PRECOMPILE="$VAL" @@ -5676,7 +5684,7 @@ if [ "$CFG_EGL" != "no" ]; then fi # detect EGL support if compileTest qpa/egl "EGL" $QMAKE_CFLAGS_EGL $QMAKE_LIBS_EGL; then CFG_EGL=yes - if compileTest qpa/egl-x11 "EGL-X11" $QMAKE_CFLAGS_EGL $QMAKE_LIBS_EGL; then + if compileTest qpa/egl-x11 "EGL-X11" $QMAKE_CFLAGS_EGL $QMAKE_LIBS_EGL || [ "$CFG_FORCE_EGL_X" == "yes" ]; then CFG_EGL_X=yes else CFG_EGL_X=no diff --git a/packaging/qt5.spec b/packaging/qt5.spec index 34f7c9ba53..c2f326042e 100644 --- a/packaging/qt5.spec +++ b/packaging/qt5.spec @@ -33,6 +33,7 @@ %define profile mobile %define _with_x 1 %define xkb_config_root -xkb-config-root /etc/X11/xkb +%define _force_eglx 1 %ifnarch armv7l armv7el %define _repository emulator %endif @@ -649,6 +650,9 @@ MAKEFLAGS=%{?_smp_mflags} \ %{xkb_config_root} \ %if %{with x} -xcb \ +%if 0%{?_force_eglx:1} + -force-eglx \ +%endif -qt-xcb %else -no-xcb