summaryrefslogtreecommitdiff
path: root/idlc/Module_idlc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'idlc/Module_idlc.mk')
-rw-r--r--idlc/Module_idlc.mk14
1 files changed, 11 insertions, 3 deletions
diff --git a/idlc/Module_idlc.mk b/idlc/Module_idlc.mk
index 4a79c0b5e4c4..a20d105cd829 100644
--- a/idlc/Module_idlc.mk
+++ b/idlc/Module_idlc.mk
@@ -9,9 +9,17 @@
$(eval $(call gb_Module_Module,idlc))
-ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
-$(eval $(call gb_Module_add_targets,idlc,Executable_idlc))
-$(eval $(call gb_Module_add_check_targets,idlc,CustomTarget_parser_test))
+# if not cross-compiling or we need this for ODK
+ifneq (,$(if $(CROSS_COMPILING),,T)$(filter ODK,$(BUILD_TYPE)))
+
+$(eval $(call gb_Module_add_targets,idlc,\
+ Executable_idlc \
+))
+
+$(eval $(call gb_Module_add_check_targets,idlc,\
+ CustomTarget_parser_test \
+))
+
endif
# vim:set noet sw=4 ts=4: