diff options
author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2016-02-09 13:54:43 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2016-02-11 14:45:55 +0000 |
commit | 67b665ee119a0f4c459d396e1da15446c6e5439f (patch) | |
tree | fde4bf8a9b151513afbe84de63ee8ef0be2283bf | |
parent | b492b6782d81d6d0d53d2c722e05542b6af80137 (diff) | |
download | meta-boot2qt-67b665ee119a0f4c459d396e1da15446c6e5439f.tar.gz |
qt3d: support qgltf in native and nativesdk builds
Change-Id: I6d781e890e05cf3062015784cee5d2d10b9094c6
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
3 files changed, 47 insertions, 1 deletions
diff --git a/recipes-qt/packagegroups/nativesdk-packagegroup-b2qt-embedded-qt5-toolchain-host.bb b/recipes-qt/packagegroups/nativesdk-packagegroup-b2qt-embedded-qt5-toolchain-host.bb index e351597..ce323d3 100644 --- a/recipes-qt/packagegroups/nativesdk-packagegroup-b2qt-embedded-qt5-toolchain-host.bb +++ b/recipes-qt/packagegroups/nativesdk-packagegroup-b2qt-embedded-qt5-toolchain-host.bb | |||
@@ -32,4 +32,5 @@ RDEPENDS_${PN} += "\ | |||
32 | nativesdk-qtbase-tools-staticdev \ | 32 | nativesdk-qtbase-tools-staticdev \ |
33 | nativesdk-qtdeclarative-tools \ | 33 | nativesdk-qtdeclarative-tools \ |
34 | nativesdk-qtdeclarative-staticdev \ | 34 | nativesdk-qtdeclarative-staticdev \ |
35 | nativesdk-qt3d-tools \ | ||
35 | " | 36 | " |
diff --git a/recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch b/recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch new file mode 100644 index 0000000..c9d2223 --- /dev/null +++ b/recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 778d0c4515bae5bdeb650fb3e6b3e32a73722b51 Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@theqtcompany.com> | ||
3 | Date: Wed, 10 Feb 2016 09:02:09 +0200 | ||
4 | Subject: [PATCH] Allow a tools-only build | ||
5 | |||
6 | --- | ||
7 | qt3d.pro | 7 ++++++- | ||
8 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
9 | |||
10 | diff --git a/qt3d.pro b/qt3d.pro | ||
11 | index a26e76d..263e3c4 100644 | ||
12 | --- a/qt3d.pro | ||
13 | +++ b/qt3d.pro | ||
14 | @@ -1,4 +1,4 @@ | ||
15 | -requires(contains(QT_CONFIG, opengl)) | ||
16 | +!tools-only:requires(contains(QT_CONFIG, opengl)) | ||
17 | |||
18 | load(configure) | ||
19 | qtCompileTest(assimp) | ||
20 | @@ -17,3 +17,8 @@ load(qt_parts) | ||
21 | |||
22 | OTHER_FILES += \ | ||
23 | sync.profile | ||
24 | + | ||
25 | +tools-only { | ||
26 | + sub_tools.depends -= sub_src | ||
27 | + SUBDIRS = sub_tools | ||
28 | +} | ||
29 | -- | ||
30 | 1.9.1 | ||
31 | |||
diff --git a/recipes-qt/qt5/qt3d_git.bbappend b/recipes-qt/qt5/qt3d_git.bbappend index d13b7f1..e816436 100644 --- a/recipes-qt/qt5/qt3d_git.bbappend +++ b/recipes-qt/qt5/qt3d_git.bbappend | |||
@@ -21,8 +21,22 @@ | |||
21 | 21 | ||
22 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" | 22 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" |
23 | 23 | ||
24 | SRC_URI += " \ | 24 | SRC_URI_append_class-target = " \ |
25 | file://0001-Remove-qgltf.patch \ | 25 | file://0001-Remove-qgltf.patch \ |
26 | " | 26 | " |
27 | 27 | ||
28 | SRCREV = "ab5dcff44a80884834c5e480e59a2424003c39f1" | 28 | SRCREV = "ab5dcff44a80884834c5e480e59a2424003c39f1" |
29 | |||
30 | DEPENDS += "qt3d-native" | ||
31 | |||
32 | SRC_URI += " \ | ||
33 | file://0001-Allow-a-tools-only-build.patch \ | ||
34 | " | ||
35 | PACKAGECONFIG ??= "" | ||
36 | PACKAGECONFIG_class-native ??= "tools-only" | ||
37 | PACKAGECONFIG_class-nativesdk ??= "tools-only" | ||
38 | PACKAGECONFIG[tools-only] = "CONFIG+=tools-only" | ||
39 | |||
40 | EXTRA_QMAKEVARS_PRE += "${EXTRA_OECONF}" | ||
41 | |||
42 | BBCLASSEXTEND += "native nativesdk" | ||