summaryrefslogtreecommitdiffstats
path: root/classes/qtquickcompiler.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/qtquickcompiler.bbclass')
-rw-r--r--classes/qtquickcompiler.bbclass20
1 files changed, 10 insertions, 10 deletions
diff --git a/classes/qtquickcompiler.bbclass b/classes/qtquickcompiler.bbclass
index 8dbaf49..3564ad1 100644
--- a/classes/qtquickcompiler.bbclass
+++ b/classes/qtquickcompiler.bbclass
@@ -28,18 +28,18 @@
28############################################################################ 28############################################################################
29 29
30python __anonymous() { 30python __anonymous() {
31 provider = "qtquickcompiler" 31 provider = ""
32 sdk_path = d.getVar('B2QTBASE', True) + "/recipes-qt/qt5-addons/qtquickcompiler-sdk"
33 pn = d.getVar("PN", True)
32 34
33 sdk_path = d.getVar('QT_SDK_PATH', True) or "" 35 if d.getVar('ENABLE_QTQUICKCOMPILER', True) == "1":
34 if len(sdk_path) != 0: 36 provider = "qtquickcompiler"
35 qtquickcompiler_path = d.getVar('B2QTBASE', True) + "/recipes-qt/qt5-addons/qtquickcompiler-sdk" 37 elif os.path.isdir(sdk_path):
36 if not os.path.isdir(qtquickcompiler_path): 38 provider = "qtquickcompiler-sdk"
37 bb.note("QtQuickCompiler not available") 39 else:
38 return 40 bb.note("qtquickcompiler not enabled for %s" % pn)
39 else: 41 return
40 provider = "qtquickcompiler-sdk"
41 42
42 pn = d.getVar("PN", True)
43 if "toolchain-host" in pn: 43 if "toolchain-host" in pn:
44 d.appendVar('RDEPENDS_' + pn, " nativesdk-%s-tools" % provider) 44 d.appendVar('RDEPENDS_' + pn, " nativesdk-%s-tools" % provider)
45 if "toolchain-target" in pn: 45 if "toolchain-target" in pn: