summaryrefslogtreecommitdiff
path: root/officecfg/CustomTarget_registry.mk
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-19 13:50:29 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-19 14:17:59 +0200
commitc79be77c3506e2c6b28beffb744cd46ab49e19bc (patch)
tree676d7c664cbd0dea4af909c15dc6f98fdc3087d5 /officecfg/CustomTarget_registry.mk
parent38fd69053ea0917ab82a364c0e1409a8dd27bd2f (diff)
officecfg: replace hardcoded includes in unit test with generated header
Change-Id: Id2c6758055ad9c12b23bbb9dc8c84f0c4b65b83d
Diffstat (limited to 'officecfg/CustomTarget_registry.mk')
-rw-r--r--officecfg/CustomTarget_registry.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/officecfg/CustomTarget_registry.mk b/officecfg/CustomTarget_registry.mk
index 0f63c711a2aa..fac8aee073ae 100644
--- a/officecfg/CustomTarget_registry.mk
+++ b/officecfg/CustomTarget_registry.mk
@@ -31,7 +31,16 @@ include $(SRCDIR)/officecfg/registry/files.mk
$(eval $(call gb_CustomTarget_CustomTarget,officecfg/registry))
$(call gb_CustomTarget_get_target,officecfg/registry) : \
- $(foreach i,$(officecfg_FILES),$(call gb_CustomTarget_get_workdir,officecfg/registry)/$(i).hxx)
+ $(foreach i,officecfg_qa_allheaders $(officecfg_FILES),\
+ $(call gb_CustomTarget_get_workdir,officecfg/registry)/$(i).hxx)
+
+# auto generated header file for unit test qa/cppheader.cxx
+$(call gb_CustomTarget_get_workdir,officecfg/registry)/officecfg_qa_allheaders.hxx: \
+ $(SRCDIR)/officecfg/registry/files.mk
+ $(call gb_Output_announce,officecfg_qa_allheaders.hxx,$(true),CAT,1)
+ rm -f $@ \
+ $(foreach file,$(officecfg_FILES),\
+ && echo "#include <officecfg/$(file).hxx>" >> $@)
define officecfg_TARGET
$(call gb_CustomTarget_get_workdir,officecfg/registry)/$(if $(1),$(1)/$(if $(2),$(2)/))%.hxx: \