mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-09-17 20:51:54 +02:00
When `QT_DIR_NAME` is defined as an empty string (default is "qt5"),
package.bbclass will throw lots of QA warnings because now the paths contain
double slashes ("//").
We can address these warnings by explicitly defining a slash in the
variable itself.
Signed-off-by: Adam YH Lee <adam.yh.lee@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
38 lines
1.4 KiB
BlitzBasic
38 lines
1.4 KiB
BlitzBasic
require qt5.inc
|
|
require qt5-git.inc
|
|
|
|
# There are no LGPLv3-only licensed files in this component.
|
|
LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & The-Qt-Company-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
|
|
LIC_FILES_CHKSUM = " \
|
|
file://LICENSE.LGPLv21;md5=58a180e1cf84c756c29f782b3a485c29 \
|
|
file://LICENSE.LGPLv3;md5=c4fe8c6de4eef597feec6e90ed62e962 \
|
|
file://LGPL_EXCEPTION.txt;md5=9625233da42f9e0ce9d63651a9d97654 \
|
|
file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
|
|
"
|
|
|
|
DEPENDS += "qtbase"
|
|
|
|
SRC_URI += " \
|
|
file://0001-qmltestexample-fix-link.patch \
|
|
"
|
|
|
|
EXTRA_OEMAKE += "QMAKE_SYNCQT=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/syncqt"
|
|
|
|
PACKAGECONFIG ??= "qtxmlpatterns"
|
|
PACKAGECONFIG[qtxmlpatterns] = ",,qtxmlpatterns"
|
|
|
|
do_configure_prepend() {
|
|
# disable qtxmlpatterns test if it isn't enabled by PACKAGECONFIG
|
|
sed -e 's/^\(qtHaveModule(xmlpatterns)\)/OE_QTXMLPATTERNS_ENABLED:\1/' -i ${S}/src/imports/imports.pro
|
|
sed -e 's/^\(!qtHaveModule(xmlpatterns)\)/!OE_QTXMLPATTERNS_ENABLED|\1/' -i ${S}/tests/auto/quick/quick.pro
|
|
|
|
#set the path for syncqt properly
|
|
echo "QT_TOOL.syncqt.binary = \"${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/syncqt\"" > ${B}/.qmake.cache
|
|
}
|
|
|
|
EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'qtxmlpatterns', 'CONFIG+=OE_QTXMLPATTERNS_ENABLED', '', d)}"
|
|
|
|
SRCREV = "cc0df64bb0e1dea2fe37950816095802f527a241"
|
|
|
|
BBCLASSEXTEND =+ "native nativesdk"
|