mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-09-11 00:25:19 +02:00
qt5: use PACKAGECONFIG to disable tests and examples
Currently if qtbase has tests or examples enabled, they will be enabled for every Qt module as well. Change the PACKAGECONFIG options so that they need to be explicitly enabled for each Qt module. Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
This commit is contained in:
committed by
Martin Jansa
parent
1a7c8fa42c
commit
fd7ac08991
@@ -8,8 +8,8 @@ PACKAGECONFIG_OPENSSL ?= "openssl"
|
||||
PACKAGECONFIG[examples] = ""
|
||||
PACKAGECONFIG[tests] = ""
|
||||
PACKAGECONFIG[qtquickcompiler] = ",,qtdeclarative-native"
|
||||
EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'examples', 'QT_BUILD_PARTS+=examples', '', d)}"
|
||||
EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'tests', 'QT_BUILD_PARTS+=tests', '', d)}"
|
||||
EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'examples', 'QT_BUILD_PARTS+=examples', 'QT_BUILD_PARTS-=examples', d)}"
|
||||
EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'tests', 'QT_BUILD_PARTS+=tests', 'QT_BUILD_PARTS-=tests', d)}"
|
||||
EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'qtquickcompiler', 'CONFIG+=qtquickcompiler', '', d)}"
|
||||
|
||||
# we don't want conflicts with qt4
|
||||
|
||||
Reference in New Issue
Block a user