summaryrefslogtreecommitdiffstats
path: root/classes/qtquickcompiler.bbclass
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2016-08-25 16:16:13 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2016-08-25 16:16:59 +0300
commit0765ab46150bfa6a930487e25ecb0eed365d90f1 (patch)
tree6ad4a5b5b24828ffdf6897f3f90197cd281624c5 /classes/qtquickcompiler.bbclass
parent38f883909812a8ca6815431295c8a0fa4e92489d (diff)
parent960945859db570e237c022b2c3269cec3902c876 (diff)
downloadmeta-boot2qt-0765ab46150bfa6a930487e25ecb0eed365d90f1.tar.gz
Merge remote-tracking branch 'origin/jethro' into dev
* origin/jethro: Update meta layers Reuse qt5-git.inc in automotive recipes ota: update recipe Correctly update qtquickcompiler SHA1 Reuse qt5-git.inc to define git repo location Remove automotive recipes Update Qt5 submodules Handle qtquickcompiler in update-qt5-modules.sh script qtwebbrowser: update source uri Correctly use QtQuickCompiler when available gammaray: update revision to match gammaray plugin in QtC 4.1 Fix adb to toradex-imx6 image Change git protocol from ssh to http Update qtdeclarative module Update boot2qt-demos version Change-Id: I1665b538bcd12a0dffb6403a6d387eebb100c762
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: