diff options
Diffstat (limited to 'classes/qtquickcompiler.bbclass')
-rw-r--r-- | classes/qtquickcompiler.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/qtquickcompiler.bbclass b/classes/qtquickcompiler.bbclass index 1478741..acb1bd6 100644 --- a/classes/qtquickcompiler.bbclass +++ b/classes/qtquickcompiler.bbclass | |||
@@ -26,8 +26,10 @@ python __anonymous() { | |||
26 | bb.note("TODO: QtQuickCompiler not yet available for external builds") | 26 | bb.note("TODO: QtQuickCompiler not yet available for external builds") |
27 | else: | 27 | else: |
28 | pn = d.getVar("PN", True) | 28 | pn = d.getVar("PN", True) |
29 | if pn.startswith("nativesdk-"): | 29 | if "toolchain-host" in pn: |
30 | d.appendVar('RDEPENDS_' + pn, " nativesdk-qtquickcompiler-tools") | 30 | d.appendVar('RDEPENDS_' + pn, " nativesdk-qtquickcompiler-tools") |
31 | if "toolchain-target" in pn: | ||
32 | d.appendVar('RDEPENDS_' + pn, " qtquickcompiler-dev") | ||
31 | else: | 33 | else: |
32 | d.appendVar('DEPENDS', " qtquickcompiler qtquickcompiler-native") | 34 | d.appendVar('DEPENDS', " qtquickcompiler qtquickcompiler-native") |
33 | d.appendVar('EXTRA_QMAKEVARS_PRE', " CONFIG+=qtquickcompiler CONFIG+=no_qtquickcompiler_depend") | 35 | d.appendVar('EXTRA_QMAKEVARS_PRE', " CONFIG+=qtquickcompiler CONFIG+=no_qtquickcompiler_depend") |