mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-06-21 08:52:35 +02:00
qmake5: don't always look in directories recursively
QT needs to be compiled without the -r parameter from the qmake command line. This is necessary to avoid those errors when building qtdeclarative or qt3d without opengl for example: Project ERROR: Unknown module(s) in QT: quick-private or Project ERROR: Unknown module(s) in QT: quick Also update comments regarding the dependencies. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
f90537a7de
commit
d9c741cce2
@@ -13,6 +13,9 @@ OE_QMAKE_PLATFORM = "linux-oe-g++"
|
||||
# Add -d to show debug output from every qmake call, but it prints *a lot*, better to add it only to debugged recipe
|
||||
OE_QMAKE_DEBUG_OUTPUT ?= ""
|
||||
|
||||
# Look through supplied directories recursively by default
|
||||
OE_QMAKE_RECURSIVE ?= "-r"
|
||||
|
||||
# Paths in .prl files contain SYSROOT value
|
||||
SSTATE_SCAN_FILES += "*.pri *.prl *.prf"
|
||||
|
||||
@@ -159,8 +162,8 @@ qmake5_base_do_configure () {
|
||||
# for config.tests to read this
|
||||
export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}"
|
||||
|
||||
CMD="${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} -r $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST"
|
||||
${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} -r $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST || die "Error calling $CMD"
|
||||
CMD="${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST"
|
||||
${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST || die "Error calling $CMD"
|
||||
}
|
||||
|
||||
qmake5_base_do_install() {
|
||||
|
||||
@@ -18,6 +18,8 @@ OE_QMAKE_PATH_SETTINGS = "${OE_QMAKE_PATH_QT_SETTINGS}"
|
||||
OE_QMAKE_PATH_EXAMPLES = "${OE_QMAKE_PATH_QT_EXAMPLES}"
|
||||
OE_QMAKE_PATH_TESTS = "${OE_QMAKE_PATH_QT_TESTS}"
|
||||
|
||||
OE_QMAKE_RECURSIVE = ""
|
||||
|
||||
# If Qt5 (qtbase) is machine specific, then everything will be,
|
||||
# because the (initial) qtbase configuration becomes part of Qt5/qmake
|
||||
python __anonymous() {
|
||||
|
||||
@@ -29,8 +29,6 @@ RDEPENDS_${PN}-tools += "perl"
|
||||
# PACKAGECONFIG is kept rather minimal for people who don't need
|
||||
# stuff like webkit (and it's easier to add options than remove)
|
||||
|
||||
# gl or gles needs to be enabled in order to build qtdeclarative
|
||||
# http://qt.gitorious.org/qt/qtdeclarative/commit/e988998a08b1420ed10bd02d9d4b3b8ed2289df9
|
||||
PACKAGECONFIG_GL ?= "${@base_contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}"
|
||||
PACKAGECONFIG_FB ?= "${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}"
|
||||
PACKAGECONFIG_X11 ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'xcb xvideo xsync xshape xrender xrandr xfixes xinput2 xinput xinerama xcursor gtkstyle xkb', '', d)}"
|
||||
@@ -76,7 +74,6 @@ PACKAGECONFIG[jpeg] = "-system-libjpeg,-no-libjpeg,jpeg"
|
||||
PACKAGECONFIG[libpng] = "-system-libpng,-no-libpng,libpng"
|
||||
PACKAGECONFIG[zlib] = "-system-zlib,-qt-zlib,zlib"
|
||||
PACKAGECONFIG[pcre] = "-system-pcre,-qt-pcre,pcre"
|
||||
# gl or gles2 is needed in order to build qtdeclarative (qtdeclarative.do_configure fails to find quick module without)
|
||||
PACKAGECONFIG[gl] = "-opengl desktop -no-eglfs,,virtual/libgl"
|
||||
PACKAGECONFIG[gles2] = "-opengl es2 -eglfs,,virtual/libgles2 virtual/egl"
|
||||
PACKAGECONFIG[tslib] = "-tslib,-no-tslib,tslib"
|
||||
@@ -114,7 +111,7 @@ PACKAGECONFIG[directfb] = "-directfb,-no-directfb,directfb"
|
||||
PACKAGECONFIG[linuxfb] = "-linuxfb,-no-linuxfb"
|
||||
PACKAGECONFIG[mitshm] = "-mitshm,-no-mitshm,mitshm"
|
||||
PACKAGECONFIG[kms] = "-kms,-no-kms,virtual/mesa virtual/egl"
|
||||
# needed for qtdeclarative (qtdeclarative.do_configure fails to find quick module without)
|
||||
# needed for qtwebkit
|
||||
PACKAGECONFIG[icu] = "-icu,-no-icu,icu"
|
||||
PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev"
|
||||
# use -openssl-linked here to ensure that RDEPENDS for libcrypto and libssl are detected
|
||||
|
||||
Reference in New Issue
Block a user