static/Module_static.mk |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit fe845e40ab23a3fa9fd401498edf925b7b00776f
Author:     Tor Lillqvist <[email protected]>
AuthorDate: Fri Nov 25 15:26:10 2022 +0200
Commit:     Thorsten Behrens <[email protected]>
CommitDate: Tue Nov 29 01:56:23 2022 +0100

    Don't build the Qt5 Mandelbrot demos unless we have Qt5
    
    Change-Id: I968f9d9a94e3db219c7dd900db1b0261cd8f09cb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143397
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <[email protected]>

diff --git a/static/Module_static.mk b/static/Module_static.mk
index a21b2355741b..cd37748e1396 100644
--- a/static/Module_static.mk
+++ b/static/Module_static.mk
@@ -18,8 +18,10 @@ $(eval $(call gb_Module_add_targets,static,\
 ifeq (EMSCRIPTEN,$(OS))
 $(eval $(call gb_Module_add_targets,static,\
     CustomTarget_emscripten_fs_image \
-    CustomTarget_wasm-qt5-mandelbrot_moc \
-    Executable_wasm-qt5-mandelbrot \
+    $(if $(ENABLE_QT5), \
+        CustomTarget_wasm-qt5-mandelbrot_moc \
+        Executable_wasm-qt5-mandelbrot \
+    ) \
 ))
 endif
 

Reply via email to