summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2013-03-08 14:14:46 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2013-03-13 16:26:10 +0100
commitbdfdd054bd25714f9c52c974f22228bee4bfbe67 (patch)
tree5d52309c4d07614d1e555af2e010544cdb3994a1 /idlc
parent3909015f5dd1cbd18de80f38cd1fe675b7c59b7e (diff)
more subtle dependencies for cross-compilation
Now we build only what we really need for 'build' platform - there is new build-tools make target. The list of tools is in solenv/gbuild/extensions/pre_BuildTools.mk. Also similar is done to some extent for 'host' platform using gb_Module_add_targets_for_build which is ignored for 'host'. Change-Id: I6acd1762b16aca366aac1a0688500f27869cfca2
Diffstat (limited to 'idlc')
-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: