diff options
Diffstat (limited to 'classes/qtquickcompiler.bbclass')
-rw-r--r-- | classes/qtquickcompiler.bbclass | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/classes/qtquickcompiler.bbclass b/classes/qtquickcompiler.bbclass index b6710be..90fcfb4 100644 --- a/classes/qtquickcompiler.bbclass +++ b/classes/qtquickcompiler.bbclass | |||
@@ -20,18 +20,18 @@ | |||
20 | ############################################################################## | 20 | ############################################################################## |
21 | 21 | ||
22 | python __anonymous() { | 22 | python __anonymous() { |
23 | provider = "qtquickcompiler" | 23 | provider = "" |
24 | sdk_path = d.getVar('B2QTBASE', True) + "/recipes-qt/qt5-addons/qtquickcompiler-sdk" | ||
25 | pn = d.getVar("PN", True) | ||
24 | 26 | ||
25 | sdk_path = d.getVar('QT_SDK_PATH', True) or "" | 27 | if d.getVar('ENABLE_QTQUICKCOMPILER', True) == "1": |
26 | if len(sdk_path) != 0: | 28 | provider = "qtquickcompiler" |
27 | qtquickcompiler_path = d.getVar('B2QTBASE', True) + "/recipes-qt/qt5-addons/qtquickcompiler-sdk" | 29 | elif os.path.isdir(sdk_path): |
28 | if not os.path.isdir(qtquickcompiler_path): | 30 | provider = "qtquickcompiler-sdk" |
29 | bb.note("QtQuickCompiler not available") | 31 | else: |
30 | return | 32 | bb.note("qtquickcompiler not enabled for %s" % pn) |
31 | else: | 33 | return |
32 | provider = "qtquickcompiler-sdk" | ||
33 | 34 | ||
34 | pn = d.getVar("PN", True) | ||
35 | if "toolchain-host" in pn: | 35 | if "toolchain-host" in pn: |
36 | d.appendVar('RDEPENDS_' + pn, " nativesdk-%s-tools" % provider) | 36 | d.appendVar('RDEPENDS_' + pn, " nativesdk-%s-tools" % provider) |
37 | if "toolchain-target" in pn: | 37 | if "toolchain-target" in pn: |