diff options
Diffstat (limited to 'recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch')
-rw-r--r-- | recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch | 29 |
1 files changed, 16 insertions, 13 deletions
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 index b1e662bc..05a86a70 100644 --- a/recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch +++ b/recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch | |||
@@ -1,26 +1,24 @@ | |||
1 | From 98509dbb66b3d93cdb6ca73cb5db537fa8ff8bd3 Mon Sep 17 00:00:00 2001 | 1 | From 1e64f9b509e6794c6f01e62443e93f771ac2a65c Mon Sep 17 00:00:00 2001 |
2 | From: Samuli Piippo <samuli.piippo@qt.io> | 2 | From: Samuli Piippo <samuli.piippo@qt.io> |
3 | Date: Fri, 17 Aug 2018 13:23:58 +0300 | 3 | Date: Fri, 17 Aug 2018 13:23:58 +0300 |
4 | Subject: [PATCH] Allow a tools-only build | 4 | Subject: [PATCH] Allow a tools-only build |
5 | 5 | ||
6 | --- | 6 | --- |
7 | qt3d.pro | 9 +++++++-- | 7 | qt3d.pro | 7 ++++++- |
8 | src/3rdparty/assimp/assimp_dependency.pri | 2 +- | 8 | src/3rdparty/assimp/assimp_dependency.pri | 2 +- |
9 | tools/tools.pro | 2 +- | 9 | tools/tools.pro | 4 ++-- |
10 | 3 files changed, 9 insertions(+), 4 deletions(-) | 10 | 3 files changed, 9 insertions(+), 4 deletions(-) |
11 | 11 | ||
12 | diff --git a/qt3d.pro b/qt3d.pro | 12 | diff --git a/qt3d.pro b/qt3d.pro |
13 | index 847507f17..286286dd0 100644 | 13 | index d5dbda4..6809470 100644 |
14 | --- a/qt3d.pro | 14 | --- a/qt3d.pro |
15 | +++ b/qt3d.pro | 15 | +++ b/qt3d.pro |
16 | @@ -1,5 +1,5 @@ | 16 | @@ -1,4 +1,4 @@ |
17 | -requires(qtHaveModule(gui)) | 17 | -qtHaveModule(gui): \ |
18 | -requires(qtConfig(opengl):!wasm) | 18 | +!tools-only:qtHaveModule(gui): \ |
19 | +!tools-only:requires(qtHaveModule(gui)) | 19 | requires(qtConfig(opengl):!wasm) |
20 | +!tools-only:requires(qtConfig(opengl):!wasm) | ||
21 | 20 | ||
22 | CONFIG += examples_need_tools | 21 | CONFIG += examples_need_tools |
23 | load(qt_parts) | ||
24 | @@ -15,3 +15,8 @@ load(qt_parts) | 22 | @@ -15,3 +15,8 @@ load(qt_parts) |
25 | 23 | ||
26 | OTHER_FILES += \ | 24 | OTHER_FILES += \ |
@@ -31,7 +29,7 @@ index 847507f17..286286dd0 100644 | |||
31 | + SUBDIRS = sub_tools | 29 | + SUBDIRS = sub_tools |
32 | +} | 30 | +} |
33 | diff --git a/src/3rdparty/assimp/assimp_dependency.pri b/src/3rdparty/assimp/assimp_dependency.pri | 31 | diff --git a/src/3rdparty/assimp/assimp_dependency.pri b/src/3rdparty/assimp/assimp_dependency.pri |
34 | index 8ba2d9a41..e973d93dd 100644 | 32 | index 8ba2d9a..e973d93 100644 |
35 | --- a/src/3rdparty/assimp/assimp_dependency.pri | 33 | --- a/src/3rdparty/assimp/assimp_dependency.pri |
36 | +++ b/src/3rdparty/assimp/assimp_dependency.pri | 34 | +++ b/src/3rdparty/assimp/assimp_dependency.pri |
37 | @@ -1,5 +1,5 @@ | 35 | @@ -1,5 +1,5 @@ |
@@ -42,11 +40,16 @@ index 8ba2d9a41..e973d93dd 100644 | |||
42 | } else { | 40 | } else { |
43 | include(assimp.pri) | 41 | include(assimp.pri) |
44 | diff --git a/tools/tools.pro b/tools/tools.pro | 42 | diff --git a/tools/tools.pro b/tools/tools.pro |
45 | index 121507613..24c49ad5a 100644 | 43 | index 3b457ed..9f5376a 100644 |
46 | --- a/tools/tools.pro | 44 | --- a/tools/tools.pro |
47 | +++ b/tools/tools.pro | 45 | +++ b/tools/tools.pro |
48 | @@ -1,5 +1,5 @@ | 46 | @@ -1,9 +1,9 @@ |
49 | TEMPLATE = subdirs | 47 | TEMPLATE = subdirs |
48 | |||
49 | -!qtHaveModule(3dcore): \ | ||
50 | +!tools-only:!qtHaveModule(3dcore): \ | ||
51 | return() | ||
52 | |||
50 | QT_FOR_CONFIG += 3dcore-private | 53 | QT_FOR_CONFIG += 3dcore-private |
51 | -qtConfig(assimp):qtConfig(commandlineparser): { | 54 | -qtConfig(assimp):qtConfig(commandlineparser): { |
52 | +tools-only|qtConfig(assimp):qtConfig(commandlineparser): { | 55 | +tools-only|qtConfig(assimp):qtConfig(commandlineparser): { |