summaryrefslogtreecommitdiff
path: root/unoidl/Module_unoidl.mk
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-08-20 22:37:13 +0200
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-08-21 07:25:40 +0200
commit399ed986e5a15988c8b08dc715ad698ef3f4fe83 (patch)
treeedc6ad8838cad08916f81634ebb6a6fbdd245ad9 /unoidl/Module_unoidl.mk
parent85e4dc15d09dc3193870041b2814263971a27791 (diff)
Clean up conditions in Module_unoidl
unoidl-check and unoidl-write are needed during the build. unoidl-read and unoidl-write are part of the SDK. Change-Id: I82fc79a09524fa14638b4d2daeafeeb024f1fd66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172159 Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de> Tested-by: Jenkins
Diffstat (limited to 'unoidl/Module_unoidl.mk')
-rw-r--r--unoidl/Module_unoidl.mk12
1 files changed, 4 insertions, 8 deletions
diff --git a/unoidl/Module_unoidl.mk b/unoidl/Module_unoidl.mk
index 834c8668c661..01f7f8852ae3 100644
--- a/unoidl/Module_unoidl.mk
+++ b/unoidl/Module_unoidl.mk
@@ -9,17 +9,13 @@
$(eval $(call gb_Module_Module,unoidl))
-# unoidl-check is needed as a component of the ODK / SDK package and
-# a build-tool. In case of cross-compiling a build-native tool must
-# be provided in addition to the ODK one (!CROSS_COMPILING phase).
-
$(eval $(call gb_Module_add_targets,unoidl, \
- $(if $(filter DESKTOP,$(BUILD_TYPE)), \
+ $(if $(call gb_not,$(CROSS_COMPILING)), \
+ Executable_unoidl-check) \
+ $(if $(filter ODK,$(BUILD_TYPE)), \
Executable_unoidl-read) \
$(if $(or $(filter ODK,$(BUILD_TYPE)),$(call gb_not,$(CROSS_COMPILING))), \
- Executable_unoidl-check \
- Executable_unoidl-write \
- ) \
+ Executable_unoidl-write) \
Library_unoidl \
))