Commit Graph

653 Commits

Author SHA1 Message Date
Alexandre Belloni
ccae79be69 qtquick1: fix qtwebkit support
40b7a93a3c ("qtquick1: allow to disable
qtwebkit support") allowed to disable qtwebkit but actually disabled it in
every cases.

Use the same mechanism as qttools to implement the feature.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-08 23:45:55 +02:00
Martin Jansa
63f018e5a7 qtbase: fix drm dependency for eglfs PACKAGECONFIG
* there isn't virtual/drm, just drm

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-08 23:45:41 +02:00
Denys Dmytriyenko
460df4154e cmake_qt5.bbclass: when using _prepend don't forget to add space at the end
Previous commit aacd63f10d introduced a bug by
using _prepend w/o a space at the end, resulting in corrupted EXTRA_OEMAKE
variable in packages that inherit cmake_qt5.bbclass.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-05 11:12:12 +02:00
Martin Jansa
c110de233f qt5: upgrade to latest revisions in 5.6 branch
* LIC_FILES_CHKSUM were changed because of this small change:
    commit 4343c4e731c3268614fc79c9c42b4e5e4d59d7e6
    Author: Sze Howe Koh <szehowe.koh@gmail.com>
    Date:   Tue Jun 14 19:12:35 2016 +0800

        Expand license scope from "Qt GUI Toolkit" to "Qt Toolkit"

* -no-nis option was removed from qtbase in:
    commit 644d0e75240811212ed9fd0c21e3bd05db3ba5db
    Author: Ralf Nolden <nolden@kde.org>
    Date:   Fri May 20 22:03:39 2016 +0200

        Cleanup NIS support leftover from Qt 3/4

* allow to disable eglfs independently from gles2, because eglfs-egldevice
  may be autodetected when libdrm was built before qtbase since this
  upstream commit:
    commit 5c6d27b8dfa695ab04766a1711b00421dba9c7d0
    Author: Ralf Nolden <nolden@kde.org>
    Date:   Tue May 17 12:38:44 2016 +0200

        Make eglfs-egldevice check work with pkgconfig as well

  and then it fails to build, because libdrm could be removed from sysroot
  and drm.h is missing.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-05 11:09:41 +02:00
Pascal Bach
4cea8f8c4a qtbase: add patch to make Qt5Config modules behave better with cmake builds
Currently if a project if using the cmake bbclass and the CMakeLists.txt file
uses find_package to find Qt5 and error like this is produced:

|   The imported target "Qt5::Core" references the file
|
|      "/qmake"
|
|   but this file does not exist.  Possible reasons include:

This is because OE_QMAKE_PATH_EXTERNAL_HOST_BINS is only set in the cmake_qt5 bblcass.

To make it work better in that case the Qt5Config files check if OE_QMAKE_PATH_EXTERNAL_HOST_BINS
is defined and bail out if not. For CMake this is the same as Qt5 wasn't found.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-06-07 20:10:53 +02:00
Pascal Bach
aacd63f10d cmake_qt5: prepend the Qt5 specific CMake variables to EXTRA_OECMAKE
Using the prepend function instead of "=+" makes sure the variables
are set even if the user overrides EXTRA_OECMAKE with "=" instead of just
appending to it.

Prepending also allows overriding because later arguments take precedence
ever earlier ones in CMake.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-06-07 20:10:21 +02:00
Teemu Holappa
48b4084675 Change dependency from virtual/mesa to drm in the kms packageconfig.
In some configurations there no provider for virtual/mesa, but only drm libaries.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-06 12:47:17 +02:00
Andreas Müller
d715f2c1d3 replace base_contains by bb.utils.contains
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-02 15:15:41 +02:00
Martin Jansa
754aaadc7f qt5: upgrade to latest revision in 5.6 branch
* qtsvg/0001-textobject.pro-use-DEPLOYMENT-only-for-wince-like-ot.patch
  and
  qtwebkit/0004-Fix-linking-with-libpthread.patch
  were resolved upstream
* all patches were refreshed with:
  git format-patch --no-numbered --no-signature -NUMBER
  to remove numbering from Subject (it's good enough in filename) and to
  remove git version from signature (so it doesn't look differently when
  generated on different hosts with different git version).

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-21 21:36:18 +02:00
Andreas Müller
f636eb7444 qt5: set SRCREVs,PVs to 5.6.0
* qtquick1: LICENSE.LGPLv3: I checked git repository.
  To be honest: I have no idea what caused checksum change.
  JaMa: it was modified in this change:
  OE @ ~/projects/qt-project/qtquick1 $ git log --oneline 87f2415adf34da08e6cd58f5da6f6a7d0d9cf141..dcc5e5c01c28b227f0e5e5e4976a9d26e8a45295 -- LICENSE.LGPLv3
  cd50897 Add the GPLv3 license text
  diff --git a/LICENSE.LGPLv3 b/LICENSE.LGPLv3
  index 8fbb743..4d67bac 100644
  --- a/LICENSE.LGPLv3
  +++ b/LICENSE.LGPLv3
  @@ -5,6 +5,8 @@

    You may use, distribute and copy the Qt GUI Toolkit under the terms of
    GNU Lesser General Public License version 3, which is displayed below.
  + This license makes reference to the version 3 of the GNU General
  + Public License, which you can find in the LICENSE.GPLv3 file.

* in some cases this is actually older SRCREV than what was
  used before (because normally the recipes use latest revision
  in stable - e.g. 5.6 branches, not the actuall tags). I'll
  upgrade to latest 5.6 revisions in follow-up commit (together
  with refreshing the .patch files and github.com/meta-qt5/qt*
  repositories to apply cleanly)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-20 10:58:33 +02:00
Denys Dmytriyenko
1ac2f2220e qtquickcontrols: fix compilation of examples/texteditor
git/examples/quick/controls/texteditor/src/documenthandler.cpp:136:12: error: invalid use of incomplete type 'class QDebug'
      qDebug() << "saved to" << localPath;

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-20 10:52:24 +02:00
Denys Dmytriyenko
3af44d648a qtdeclarative: fix compilation of examples/qquickviewcomparison
git/examples/quick/quickwidgets/qquickviewcomparison/mainwindow.cpp:180:14: error: 'QCoreApplication' has not been declared
          if (!QCoreApplication::arguments().contains(QStringLiteral("--no_render_alpha")))

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-20 10:51:51 +02:00
Jonathan Liu
4ec27e218d quazip: update to 0.7.2
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-20 10:51:51 +02:00
Andreas Müller
072df2617a qtquickcontrols2: initial add 5.6.0
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2016-04-20 10:51:51 +02:00
Martin Jansa
2f31f2a21b qmake5_base: use remove-libtool bbclass
* this requires latest oe-core (Yocto 2.1), if you want to use latest
  meta-qt5 with older oe-core, you need to backport this bbclass
  and more importantly don't forget to provide
  EXTRA_CONF_PACKAGECONFIG

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-20 10:50:50 +02:00
Martin Jansa
9dc60fe10f recipes: use new PACKAGECONFIG_CONFARGS instead of EXTRA_OECONF
* this fixes builds for DISTROs which include no-static-libraries.inc
* this change depends on oe-core change:
  http://patchwork.openembedded.org/patch/116719/
  which was merged in this form:
  http://patchwork.openembedded.org/patch/120513/
  to Yocto 2.1, if you want to use latest meta-qt5 with older oe-core
  you need to append EXTRA_OECONF to PACKAGECONFIG_CONFARGS

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-20 10:49:26 +02:00
Jonathan Liu
d6fe20e608 qtwebengine: enable ARMv7VE support
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-03-07 13:09:55 +01:00
Paul Eggleton
bd4c475915 Add .gitignore to ignore .pyc/.pyo files
Since we just added lib/ containing python modules, we should really
ignore any compiled python objects since they will be produced if the
code is executed.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-03-07 13:09:54 +01:00
Martin Jansa
c1cf7c4a4c gdb: include readline in default PACKAGECONFIG
* without readline in PACKAGECONFIG and with no-static-libraries.inc
  gdb fails when trying to build against own bundled static readline

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-03-02 11:15:50 +01:00
Jonathan Liu
7ef85da72a libconnman-qt5: update to 1.0.98
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-27 20:58:57 +01:00
Jonathan Liu
dc6360b0a1 qtwebkit: backport patch to fix linking with qtwebkit
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-27 20:58:51 +01:00
Jonathan Liu
6e51a6c108 libconnman-qt5: remove blacklist
The package no longer fails sanity test because of connman-qt5.pc
containing references to build host paths.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-27 20:58:45 +01:00
Jonathan Liu
4b1d7738f0 qtbase: fix up pkgconfig replacements
The replacements were being done in qt_module.prf which is not included
when building 3rd party libraries. To resolve this, move the
replacements from qt_module.prf to qt.prf which is included when
building any qmake project. The pkgconfig include replacement is removed
as it doesn't seem to be needed anymore and causes issues when the
includedir path in pkgconfig has part of its path replaced with
${includedir} resulting in a circular reference that causes the OE
package_do_pkgconfig task to fail.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-27 20:58:39 +01:00
Samuli Piippo
26637f766a qtbase: add runtime dependency to xkeyboard-config
When qtbase is configured with xkbcommon-evdev (usually without X),
make sure xkeyboard-config is installed to provide keymap database.

Signed-off-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25 16:39:22 +01:00
Paul Eggleton
8f37f0987f recipetool: add support for Qt5 to meta-qt5
Having in recent OE-Core master added build system extension
capabilities to recipetool, add a module in meta-qt5 which uses this to
enable extraction of Qt5 dependencies from cmake, qmake and autoconf
files. It's by no means perfect but does do something useful if you add
a recipe for a Qt5-using piece of software using recipetool create or
devtool add.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25 16:39:16 +01:00
Martin Jansa
88a7f264ef libconnman-qt5: Blacklist because of connman-qt5.pc
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-24 14:00:16 +01:00
Martin Jansa
4f77855792 qt5: skip libdir for ${PN}-dbg and dev-elf for ${PN}-examples-dev
* the examples are installed in locations, QA checks don't like

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 23:28:56 +01:00
Martin Jansa
0294b0d787 qtbase: upgrade SRCREVs a bit more
* to make sure that qtbase modules report 4.6.1 version

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 15:52:55 +01:00
Samuli Piippo
8475755ec3 nativesdk-qtbase: use runtime linked dbus
Remove direct dependency to nativesdk-dbus. Instead configure
qtbase to use runtime linked dbus library, if that is found.

Signed-off-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 14:49:25 +01:00
Martin Jansa
52b0e06d02 qttransltations: Add PACKAGE for qtwebengine and qtquickcontrols2
* fixes QA warning:
WARNING: qttranslations-5.5.99+5.6.0-rc+gitAUTOINC+ce85e4ee4e-r0 do_package: QA Issue: qttranslations: Files/directories were installed but not shipped in any
 package:
  /usr/share/qt5/translations/qtquickcontrols2_uk.qm
  /usr/share/qt5/translations/qtwebengine_de.qm
  /usr/share/qt5/translations/qtwebengine_ru.qm
  /usr/share/qt5/translations/qtwebengine_uk.qm
  /usr/share/qt5/translations/qtwebengine_en.qm
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
qttranslations: 5 installed and not shipped files. [installed-vs-shipped]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 14:45:14 +01:00
Martin Jansa
ad2e26f135 qtwebengine: Hide textrel QA warning until there is proper fix for it
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 14:45:14 +01:00
Martin Jansa
0d66bb0d51 qtwebengine: Fix QA warning
* drop section with list of static libraries in workdir
* feel free to fix it properly in Qt build, I need quick hack to unblock
  my bitbake world builds

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 14:45:14 +01:00
Martin Jansa
1fea2d7b4c qtwebkit: Fix QA Warning
* there are multiple -L paths to workdir, causing QA warning like this:
  ERROR: qtwebkit-5.5.99+5.6.0-rc+gitAUTOINC+d2ff5a0855-r0 do_populate_sysroot: QA Issue: Qt5WebKit.pc failed sanity test
  (tmpdir) in path qtwebkit/5.5.99+5.6.0-rc+gitAUTOINC+d2ff5a0855-r0/sysroot-destdir//usr/lib/pkgconfig [pkgconfig]
* qtwebkit is dead, so hack it with simple sed, feel free to fix it in
  mkspecs if you want

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 14:45:14 +01:00
Martin Jansa
7f8c441d96 examples: fix few thousands host-user-contaminated QA warnings
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 14:45:14 +01:00
Martin Jansa
2f265b3d88 qtbase: Don't install libQt* files twice
* they are installed by make correctly (at least with latest 5.6 revisions)
* I wanted to remove .la files (in qmake5_base_do_install) and this copies them back to ${D} which is annoying.
So I've removed this cp line and checked what gets missing and it turns
out that nothing important is missing and even more importantly the fixed *prl files
are overwritten with their original version.

OE @ ~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase $ diff -rq 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0*/image
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5Bootstrap.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5BootstrapDBus.a
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5BootstrapDBus.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5BootstrapDBus.prl
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5Concurrent.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5Core.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5DBus.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5Gui.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5Network.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5OpenGL.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5OpenGLExtensions.la
Files 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib/libQt5OpenGLExtensions.prl and
5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0/image/usr/lib/libQt5OpenGLExtensions.prl differ
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5PlatformSupport.la
Files 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib/libQt5PlatformSupport.prl and
5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0/image/usr/lib/libQt5PlatformSupport.prl differ
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5PrintSupport.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5Sql.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5Test.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5Widgets.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5XcbQpa.la
Only in 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib: libQt5Xml.la

OE @ ~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase $ diff -uNr 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib/libQt5OpenGLExtensions.prl
5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0/image/usr/lib/libQt5OpenGLExtensions.prl
--- 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib/libQt5OpenGLExtensions.prl      2016-02-17 22:34:16.397812156 +0100
+++ 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0/image/usr/lib/libQt5OpenGLExtensions.prl   2016-02-17 22:38:56.637811683 +0100
@@ -3,4 +3,4 @@
 QMAKE_PRL_TARGET = libQt5OpenGLExtensions.a
 QMAKE_PRL_CONFIG = silent lex yacc depend_includepath testcase_targets import_plugins import_qpa_plugin qt warn_on release link_prl incremental cross_compile
qpa no_mocdepend release qt_no_framework linux unix posix \$(OE_QMAKE_COMPILER) gcc cross_compile compile_examples qpa largefile use_gold_linker sse2 sse3
ssse3 sse4_1 sse4_2 avx avx2 pcre prefix_build force_independent force_bootstrap create_prl link_prl prepare_docs qt_docs_targets
no_private_qt_headers_warning QTDIR_build exceptions_off testcase_exceptions qt_example_installs warning_clean c++11 static opengl relative_qt_rpath git_build
qmake_cache target_qt c++11 strict_c++ c++14 c++1z hide_symbols bsymbolic_functions qt_install_headers need_fwd_pri qt_install_module create_cmake
compiler_supports_fpmath create_pc create_libtool have_target staticlib thread opengl moc resources
 QMAKE_PRL_VERSION = 5.6.0
-QMAKE_PRL_LIBS = -L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0/build/lib -lQt5Gui -lQt5Core -lpthread -lGL
+QMAKE_PRL_LIBS =  -lQt5Gui -lQt5Core -lpthread -lGL

OE @ ~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase $ diff -uNr 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib/libQt5PlatformSupport.prl
5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0/image/usr/lib/libQt5PlatformSupport.prl
--- 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0.orig/image/usr/lib/libQt5PlatformSupport.prl       2016-02-17 22:34:16.438812156 +0100
+++ 5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0/image/usr/lib/libQt5PlatformSupport.prl    2016-02-17 22:38:56.969811683 +0100
@@ -3,4 +3,4 @@
 QMAKE_PRL_TARGET = libQt5PlatformSupport.a
 QMAKE_PRL_CONFIG = silent lex yacc depend_includepath testcase_targets import_plugins import_qpa_plugin qt warn_on release link_prl incremental cross_compile
qpa no_mocdepend release qt_no_framework linux unix posix \$(OE_QMAKE_COMPILER) gcc cross_compile compile_examples qpa largefile use_gold_linker sse2 sse3
ssse3 sse4_1 sse4_2 avx avx2 pcre prefix_build force_independent force_bootstrap create_prl link_prl prepare_docs qt_docs_targets
no_private_qt_headers_warning QTDIR_build exceptions_off testcase_exceptions qt_example_installs warning_clean c++11 static internal_module egl opentype
qpa/genericunixfontdatabase relative_qt_rpath git_build qmake_cache target_qt c++11 strict_c++ c++14 c++1z hide_symbols bsymbolic_functions qt_install_headers
need_fwd_pri qt_install_module compiler_supports_fpmath create_libtool have_target staticlib qpa/basicunixfontdatabase thread opengl dbusadaptors
dbusinterfaces moc resources
 QMAKE_PRL_VERSION = 5.6.0
-QMAKE_PRL_LIBS = -L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.5.99+5.6.0-rc+gitAUTOINC+ac8a3b948d-r0/build/lib -lQt5Gui -lQt5DBus -lQt5Core
-lpthread -lgthread-2.0 -pthread -lglib-2.0 -lqtfreetype -lz -lpng -lXrender -lXext -lX11 -lm -ludev -lEGL -lGL
+QMAKE_PRL_LIBS =  -lQt5Gui -lQt5DBus -lQt5Core -lpthread -lgthread-2.0 -pthread -lglib-2.0 -lqtfreetype -lz -lpng -lXrender -lXext -lX11 -lm -ludev -lEGL
-lGL

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 14:45:14 +01:00
Martin Jansa
8d9da5db2f qtbase: Resolve QA warning about /bin/bash dependency
* WARNING: QA Issue:
  /usr/lib/qt5/mkspecs/features/data/mac/objc@underscore@namespace.sh_qtbase-mkspecs
  contained in package qtbase-mkspecs requires /bin/bash, but no
  providers found in its RDEPENDS [file-rdeps]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 14:45:14 +01:00
Martin Jansa
ce361b6eb1 qtbase: Fix WORKDIR references in pkg-config files
* otherwise all builds fail with:
  ERROR: QA Issue: Qt5Core.pc failed sanity test (tmpdir) in path qtbase/5.5.99+5.6.0-alpha1+gitAUTOINC+f7f4dde80e-r0/sysroot-destdir//usr/lib/pkgconfig [pkgconfig]
  since oe-core insane.bbclass was fixed to properly search for tmpdir
  in all pkg-config files.
* this issue was there for long time, I've checked the build with jethro
  branch and it already has
  prefix=<TOPDIR>/tmp-glibc/sysroots/qemux86/usr
  it just wasn't detected by QA checks until now
2016-02-20 14:45:13 +01:00
Martin Jansa
e434995a73 qt5: upgrade to latest revisions in 5.6 branch (5.6 RC)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-20 14:45:09 +01:00
Martin Jansa
e91dea6565 qmake5_base: delete *.la files
* they reference workdir and trip sanity check:
  ERROR: QA Issue: libQt5Sql.la failed sanity test (workdir) in path qtbase/5.5.99+5.6.0-alpha1+gitAUTOINC+f7f4dde80e-r0/sysroot-destdir//usr/lib [la]
* I'm intentionally not using remove-libtool.bbclass recently
  added to oe-core, because many people combine newer meta-qt5
  with older oe-core and can be missing this bbclass, I've
  pending patch to migrate this to remove-libtool.bbclass, will
  probably merge it after 2.1 or 2.2 release.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-17 22:55:37 +01:00
Samuli Piippo
7ac1481d0a qt5: add Qml support to lupdate
Add dependency to qtdeclarative to qttools' native and nativesdk builds.
This gives us lupdate with a support for Qml files. The nativesdk builds
of qtdeclarative depend on more modules (Xml, Sql) from nativesdk-qtbase,
so preserve all libs that are already built. This brings few extra libs
to the package that might not be needed, but keeps the recipe simpler.

Signed-off-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-14 18:54:55 +01:00
Samuli Piippo
fd8fc6ffdb qt3d: support qgltf in native and nativesdk builds
qgltf is used to import a variety of 3D model formats and export into
fast-to-load, optimized glTF assets embedded into Qt resource files

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-14 18:54:55 +01:00
Samuli Piippo
909858baf0 qt5: use common PACKAGECONFIG to build examples
Each Qt module's examples can now be enabled with PACKAGECONFIG.
Replace the webkit patch with a PACKAGECONFIG option and follow
common practice by not building QtWayland examples by default,
those can be enabled in a .bbappend with PACKAGECONFIG += "examples"

Enabling PACKAGECONFIG[examples] in qtbase, will still cause every
Qt module to build their examples.

Signed-off-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-08 14:19:10 +01:00
Otavio Salvador
8e70eeb909 qt5-git.inc: Ensure we export the SRCREV as the module name
For components which use multiple Git repositories (e.g QtWebEngine)
it is important to have the module name exported so it can be referred
in SRCREV_FORMAT.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-08 14:19:00 +01:00
Simon Aittamaa
d6aeedb7f2 qtbase: Fix installation of fonts and libraries
This patch fixes three problems
    1) Running on a case-sensitive system would result in an error
       due to invalid casing of pattern to install.
    2) Using install on symlinks would cause multiple copies of the
       same file to be installed on the target-system, since install
       doesn't preserve symlinks. This wastes a lot of space and it
       causes ldconfig to complain about non-symlinked files.
    3) Leakage of user-ids, i.e. cp -a would preserve the uid/gid of
       whoever built the files, which is usually not what you want.

Signed-off-by: Simon Aittamaa <simon.aittamaa@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-01 16:23:18 +01:00
Samuli Piippo
4a0acfa411 qtbase: use PACKAGECONFIG to ensure runtime dependency to libssl
Using openssl-linked configure has side effect that gdb catches the SIGILL
signal, which openssl uses internally on ARM, every time when starting
debugging any Qt application. This is annoying and somewhat confusing
behavior even with QtCreator.

Using the default openssl configure argument prevents this, while using
the 4th argument for PACKAGECONFIG keeps the runtime dependency to libssl
correctly in place.

Signed-off-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-14 11:18:23 +01:00
Samuli Piippo
3bd297278d qtbase: re-enable replacing host paths in qconfig.pri
Uncomment code that replaces host paths with qmake built-in properties
in qconfig.pri. Modified to replace paths in all *.pri files in mkspecs
directory and to also change paths without space in front of it.

Signed-off-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-14 11:16:27 +01:00
Samuli Piippo
3e2058f2e7 qt5: allow overriding git protocol used with QT_GIT uri
Add option QT_GIT_PROTOCOL to specify the protocol to be used
with the QT_GIT uri.

Signed-off-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-14 11:16:18 +01:00
Javier Viguera
c7cd9cb466 qtconnectivity, qtsystems: fix bluetooth support
QMAKE_CACHE_EVAL is only used in qtwebengine and qtwebkit, but not in
the rest of the QT5 packages, so use EXTRA_QMAKEVARS_PRE to pass the
packageconfig options to the do_configure task.

Also generalize bluetooth support so it can be used not only with bluez4
but with bluez5 as well.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-14 11:14:01 +01:00
Andreas Müller
511a376450 qtscript/qtwebkit: disable thumb for armv4 and armv5 only to fix segfault on armv7
We have a simple application containing a QWebView which segfaulted during
loading a page on a CortexA9 (armv7 thumb2). After enabling debug information
for qtwebkit and remote debug session the point of segfault was detected in

Source/JavaScriptCore/llint/LowLevelInterpreter.asm:1082
  callSlowPath(_llint_slow_path_new_func_exp)

Further digging around lead to similar source in:

* qtwebkit: Source/JavaScriptCore/assembler/ARMv7Assembler.h
* qtscript: src/3rdparty/javascriptcore/JavaScriptCore/assembler/ARMv7Assembler.h

In these files a class ARMThumbImmediate is declared and used in many places.
This lead me to the suspicion that compiligng for armv7 expects thumb support.

The following tests were performed:

* our application is working fine again
* qtscript and qtwebkit were build with
  'ARM_INSTRUCTION_SET = "thumb"' => TUNE_FEATURES = "arm armv5 thumb dsp"
  for qemuarm without issues

This is a partial/rebased revert of:
commit 932b32c1c9
Author: Martin Jansa <Martin.Jansa@gmail.com>
Date:   Wed Apr 22 15:33:01 2015 +0200

    qtscript,qtwebking: disable thumb

    * qemuarm builds fail when thumb is enabled

    Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-14 11:13:58 +01:00
Cleiton Bueno
d8b2426588 qtwebengine: Fix error jpeg_codec.cc, media_capture_devices_dispatcher.cpp and file API qquickwebengineview_p_p.h.
Fix build codec jpeg_codec.cc error: invalid conversion from 'int' to 'boolean' [-fpermissive],
media_capture_devices_dispatcher.cpp error: 'QCoreApplication' has not been declared fix include <QCoreApplication>
and file API qquickwebengineview_p_p.h field 'm_backgroundColor' has incomplete type 'QColor' add include <QColor>

Signed-off-by: Cleiton Bueno <cleitonrbueno@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-14 11:13:58 +01:00