summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/configure.json4
-rw-r--r--src/render/configure.json4
-rw-r--r--src/src.pro3
3 files changed, 11 insertions, 0 deletions
diff --git a/src/core/configure.json b/src/core/configure.json
index e72c5ed2b..2ba205530 100644
--- a/src/core/configure.json
+++ b/src/core/configure.json
@@ -1,5 +1,9 @@
{
"module": "3dcore",
+ "depends": [
+ "gui"
+ ],
+ "condition": "module.gui && features.opengl && !config.wasm",
"testDir": "../../config.tests",
"commandline": {
diff --git a/src/render/configure.json b/src/render/configure.json
index ee5002707..02a6e3747 100644
--- a/src/render/configure.json
+++ b/src/render/configure.json
@@ -1,5 +1,9 @@
{
"module": "3drender",
+ "depends": [
+ "3dcore"
+ ],
+ "condition": "module.3dcore",
"testDir": "./config.tests",
"commandline": {
diff --git a/src/src.pro b/src/src.pro
index 853ae8fb5..0a3ed8cb7 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -1,5 +1,8 @@
TEMPLATE = subdirs
+!qtHaveModule(gui): \
+ return()
+
src_core.subdir = $$PWD/core
src_core.target = sub-core