aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch
blob: 144c9a788087a280615db2c8e6e7d8d7ae33fa49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From d3053e33c76cdb41eeeec3c853fa88c7c7bfb8a5 Mon Sep 17 00:00:00 2001
From: Samuli Piippo <samuli.piippo@qt.io>
Date: Fri, 17 Aug 2018 13:23:58 +0300
Subject: [PATCH] Allow a tools-only build

---
 qt3d.pro                                  | 7 ++++++-
 src/3rdparty/assimp/assimp_dependency.pri | 2 +-
 tools/tools.pro                           | 2 +-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/qt3d.pro b/qt3d.pro
index 3fc7d1452..7311eff5b 100644
--- a/qt3d.pro
+++ b/qt3d.pro
@@ -1,4 +1,4 @@
-requires(qtConfig(opengl):!wasm)
+!tools-only:requires(qtConfig(opengl):!wasm)
 
 CONFIG += examples_need_tools
 load(qt_parts)
@@ -14,3 +14,8 @@ load(qt_parts)
 
 OTHER_FILES += \
     sync.profile
+
+tools-only {
+    sub_tools.depends -= sub_src
+    SUBDIRS = sub_tools
+}
diff --git a/src/3rdparty/assimp/assimp_dependency.pri b/src/3rdparty/assimp/assimp_dependency.pri
index 8ba2d9a41..e973d93dd 100644
--- a/src/3rdparty/assimp/assimp_dependency.pri
+++ b/src/3rdparty/assimp/assimp_dependency.pri
@@ -1,5 +1,5 @@
 QT_FOR_CONFIG += 3dcore-private
-qtConfig(system-assimp):!if(cross_compile:host_build) {
+!tools-only:qtConfig(system-assimp):!if(cross_compile:host_build) {
     QMAKE_USE_PRIVATE += assimp
 } else {
     include(assimp.pri)
diff --git a/tools/tools.pro b/tools/tools.pro
index 121507613..24c49ad5a 100644
--- a/tools/tools.pro
+++ b/tools/tools.pro
@@ -1,5 +1,5 @@
 TEMPLATE = subdirs
 QT_FOR_CONFIG += 3dcore-private
-qtConfig(assimp):qtConfig(commandlineparser): {
+tools-only|qtConfig(assimp):qtConfig(commandlineparser): {
     SUBDIRS += qgltf
 }