summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qt5.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qt5.inc')
-rw-r--r--recipes-qt/qt5/qt5.inc22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc
index b4915138..99105bd9 100644
--- a/recipes-qt/qt5/qt5.inc
+++ b/recipes-qt/qt5/qt5.inc
@@ -37,6 +37,14 @@ python __anonymous() {
37 d.setVar("PACKAGE_ARCH", tarch) 37 d.setVar("PACKAGE_ARCH", tarch)
38} 38}
39 39
40# if building static Qt5, add qtdeclarative-native dependency to all recipes
41# that depend on qtdeclarative as it's required for qmlimportscannertool
42python __anonymous() {
43 if bb.utils.contains('DISTRO_FEATURES', "qt5-static", True, False, d):
44 if bb.utils.contains('DEPENDS', "qtdeclarative", True, False, d):
45 d.appendVar("DEPENDS", " qtdeclarative-native")
46}
47
40# Many examples come with libraries installed outside of standard libdir, 48# Many examples come with libraries installed outside of standard libdir,
41# suppress QA check complaining 49# suppress QA check complaining
42INSANE_SKIP_${PN}-dbg += "libdir" 50INSANE_SKIP_${PN}-dbg += "libdir"
@@ -48,6 +56,8 @@ PACKAGES =. "${PN}-qmlplugins-dbg ${PN}-tools-dbg ${PN}-plugins-dbg ${PN}-qmldes
48 56
49ALLOW_EMPTY_${PN} = "1" 57ALLOW_EMPTY_${PN} = "1"
50ALLOW_EMPTY_${PN}-dbg = "1" 58ALLOW_EMPTY_${PN}-dbg = "1"
59ALLOW_EMPTY_${PN}-plugins = "1"
60ALLOW_EMPTY_${PN}-qmlplugins = "1"
51 61
52RRECOMMENDS_${PN} = " \ 62RRECOMMENDS_${PN} = " \
53 ${PN}-plugins \ 63 ${PN}-plugins \
@@ -159,6 +169,18 @@ FILES_${PN}-dbg += " \
159" 169"
160FILES_${PN}-staticdev += " \ 170FILES_${PN}-staticdev += " \
161 ${OE_QMAKE_PATH_LIBS}/*.a \ 171 ${OE_QMAKE_PATH_LIBS}/*.a \
172 ${OE_QMAKE_PATH_PLUGINS}/*/*.a \
173 ${OE_QMAKE_PATH_PLUGINS}/*/*.prl \
174 ${OE_QMAKE_PATH_PLUGINS}/*/*/*.a \
175 ${OE_QMAKE_PATH_PLUGINS}/*/*/*.prl \
176 ${OE_QMAKE_PATH_QML}/*/*.a \
177 ${OE_QMAKE_PATH_QML}/*/*.prl \
178 ${OE_QMAKE_PATH_QML}/*/*/*.a \
179 ${OE_QMAKE_PATH_QML}/*/*/*.prl \
180 ${OE_QMAKE_PATH_QML}/*/*/*/*.a \
181 ${OE_QMAKE_PATH_QML}/*/*/*/*.prl \
182 ${OE_QMAKE_PATH_QML}/*/*/*/*/*.a \
183 ${OE_QMAKE_PATH_QML}/*/*/*/*/*.prl \
162" 184"
163FILES_${PN}-examples = " \ 185FILES_${PN}-examples = " \
164 ${OE_QMAKE_PATH_EXAMPLES}/* \ 186 ${OE_QMAKE_PATH_EXAMPLES}/* \