diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/qtquickcompiler.bbclass | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/classes/qtquickcompiler.bbclass b/classes/qtquickcompiler.bbclass index 3a1bcbe..f54887c 100644 --- a/classes/qtquickcompiler.bbclass +++ b/classes/qtquickcompiler.bbclass | |||
@@ -1,6 +1,6 @@ | |||
1 | ############################################################################ | 1 | ############################################################################ |
2 | ## | 2 | ## |
3 | ## Copyright (C) 2016 The Qt Company Ltd. | 3 | ## Copyright (C) 2018 The Qt Company Ltd. |
4 | ## Contact: https://www.qt.io/licensing/ | 4 | ## Contact: https://www.qt.io/licensing/ |
5 | ## | 5 | ## |
6 | ## This file is part of the Boot to Qt meta layer. | 6 | ## This file is part of the Boot to Qt meta layer. |
@@ -27,27 +27,4 @@ | |||
27 | ## | 27 | ## |
28 | ############################################################################ | 28 | ############################################################################ |
29 | 29 | ||
30 | python __anonymous() { | 30 | EXTRA_QMAKEVARS_PRE += "CONFIG+=qtquickcompiler" |
31 | if d.getVar('DISABLE_QTQUICKCOMPILER', True) == "1": | ||
32 | return | ||
33 | |||
34 | provider = "" | ||
35 | sdk_path = d.getVar('B2QTBASE', True) + "/recipes-qt/qt5-addons/qtquickcompiler-sdk" | ||
36 | pn = d.getVar("PN", True) | ||
37 | |||
38 | if d.getVar('ENABLE_QTQUICKCOMPILER', True) == "1": | ||
39 | provider = "qtquickcompiler" | ||
40 | elif os.path.isdir(sdk_path): | ||
41 | provider = "qtquickcompiler-sdk" | ||
42 | else: | ||
43 | bb.note("qtquickcompiler not enabled for %s" % pn) | ||
44 | return | ||
45 | |||
46 | if "toolchain-host" in pn: | ||
47 | d.appendVar('RDEPENDS_' + pn, " nativesdk-%s-tools" % provider) | ||
48 | if "toolchain-target" in pn: | ||
49 | d.appendVar('RDEPENDS_' + pn, " %s-dev" % provider) | ||
50 | else: | ||
51 | d.appendVar('DEPENDS', " %s %s-native" % (provider, provider)) | ||
52 | d.appendVar('EXTRA_QMAKEVARS_PRE', " CONFIG+=qtquickcompiler") | ||
53 | } | ||