Commit Graph

7 Commits

Author SHA1 Message Date
Samuli Piippo
7faa5d8f39 qt5: remove all references to qtquick1 import path
Since qtquick1 recipes have been removed, there is no need to have
OE_QMAKE_PATH_IMPORTS anymore.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-07-03 15:00:57 -03:00
Anders Darander
00a9e0a887 cmake_qt5.bbclass: add qtbase-native to DEPENDS
When building with recipe-specific-sysroot's, qmake can't be found:

| CMake Error at WORKDIR/recipe-sysroot/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:32 (message):
|   The imported target Qt5::Core references the file
|
|      WORKDIR/recipe-sysroot-native/usr/bin/qt5/qmake
|
|   but this file does not exist.  Possible reasons include:
|
|   * The file was deleted, renamed, or moved to another location.
|
|   * An install or uninstall procedure did not complete successfully.
|
|   * The installation package was faulty and contained
|
|      WORKDIR/recipe-sysroot/usr/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake
|
|   but not all the files it references.
|
| Call Stack (most recent call first):
|   WORKDIR/recipe-sysroot/usr/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:6 (_qt5_Core_check_file_exists)
|   WORKDIR/recipe-sysroot/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:163 (include)
|   WORKDIR/recipe-sysroot/usr/lib/cmake/Qt5/Qt5Config.cmake:31 (find_package)
|   CMakeLists.txt:56 (find_package)
|

This is solved by adding qtbase-native to the exported DEPENDS.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-02-02 21:16:21 +01:00
Denys Dmytriyenko
9606c517ec cmake_qt5.bbclass: when using _prepend don't forget to add space at the end
Previous commit 0717c65abc 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-03 16:18:41 +02:00
Pascal Bach
0717c65abc 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-05-18 21:29:56 +02:00
Mikko Rapeli
3d7f446135 cmake_qt5.bbclass: add DEPENDS to qtbase
All packages using this class need it and it is too easy for developers
to miss and leave race conditions into builds.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-12-15 16:46:42 +01:00
Simon Busch
ee6c2abf6a classes: cmake_qt5: export all qt5 related paths to cmake
Signed-off-by: Simon Busch <morphis@gravedo.de>
2013-08-02 11:27:25 +02:00
Simon Busch
6b39eda7a6 classes: add new cmake_qt5 class
A cmake specific qt5 class which sets all required configuration parameters to
successfully compile cmake based applications.

Signed-off-by: Simon Busch <morphis@gravedo.de>
2013-07-25 22:33:59 +02:00