summaryrefslogtreecommitdiffstats
path: root/solenv/gbuild/Configuration.mk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-02-27 13:48:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-02-27 13:48:06 +0100
commit1ab01b025014975b0f2bb831d9a986ae5c3c7430 (patch)
tree3b3d459e4db09b5416ce5aa710f294db13bcf365 /solenv/gbuild/Configuration.mk
parentenable disabled test for rotated anchored shape, (diff)
downloadcore-1ab01b025014975b0f2bb831d9a986ae5c3c7430.tar.gz
core-1ab01b025014975b0f2bb831d9a986ae5c3c7430.zip
Do not depend on (not-yet) delivered .xcs files in --stringparam schemaRoot
.xcs/.xcu files can reference other .xcs files via oor:component attributes, and the various xsltproc scripts called from solenv/gbuild/Configure.mk try to load the referenced .xcs files, locating them via --stringparam schemaRoot arguments. These references among .xcs/.xcu files are not tracked via dependencies in the build system. When building the primary registry in module officecfg, schemaRoot must therefore not reference solver, as any referenced .xcs files need not yet be delivered. In the old dmake build system, this was solved by basing the schemaRoot argument on an ABSXCSROOT variable that was set differently in officecfg/util/makefile.pmk (pointing into officecfg/ itself) than in other modules (like in connectivity/makefile.pmk, pointing into solver/). Reproduced that hack in the new gbuild system now, too (which already had that hack partially implemented for .xcs files). Change-Id: Ib2300686c4de144f0b1e18d0e985e6fc7d9f64ae
Diffstat (limited to 'solenv/gbuild/Configuration.mk')
-rw-r--r--solenv/gbuild/Configuration.mk22
1 files changed, 16 insertions, 6 deletions
diff --git a/solenv/gbuild/Configuration.mk b/solenv/gbuild/Configuration.mk
index 328c5a88a8c0..11eb5fe290a8 100644
--- a/solenv/gbuild/Configuration.mk
+++ b/solenv/gbuild/Configuration.mk
@@ -54,8 +54,15 @@
#
gb_Configuration__get_source = $(SRCDIR)/$(2)
-# The main LibreOffice registry
+# The main LibreOffice registry (cf. officecfg/Configuration_officecfg.mk):
gb_Configuration_PRIMARY_REGISTRY_NAME := registry
+gb_Configuration_PRIMARY_REGISTRY_SCHEMA_ROOT = \
+ $(SRCDIR)/officecfg/registry/schema
+
+gb_Configuration__stringparam_schemaRoot = --stringparam schemaRoot \
+ $(if $(PRIMARY_REGISTRY), \
+ $(gb_Configuration_PRIMARY_REGISTRY_SCHEMA_ROOT), \
+ $(call gb_XcsTarget_get_outdir_target,))
gb_Configuration_XSLTCOMMAND = $(call gb_ExternalExecutable_get_command,xsltproc)
gb_Configuration_XSLTCOMMAND_DEPS = $(call gb_ExternalExecutable_get_dependencies,xsltproc)
@@ -82,7 +89,7 @@ $(call gb_Helper_abbreviate_dirs,\
--noout \
--stringparam componentName $(subst /,.,$(basename $(XCSFILE))) \
--stringparam root $(subst $(XCSFILE),,$(3)) \
- $(if $(PRIMARY_REGISTRY),,--stringparam schemaRoot $(call gb_XcsTarget_get_outdir_target,)) \
+ $(gb_Configuration__stringparam_schemaRoot) \
$(gb_XcsTarget_XSLT_SchemaVal) \
$(3) && \
$(gb_Configuration_XSLTCOMMAND) --nonet \
@@ -131,14 +138,14 @@ $(call gb_Helper_abbreviate_dirs,\
$(gb_Configuration_XSLTCOMMAND) --nonet \
--noout \
--stringparam xcs $(call gb_XcsTarget_for_XcuTarget,$(XCUFILE)) \
- --stringparam schemaRoot $(call gb_XcsTarget_get_outdir_target,) \
+ $(gb_Configuration__stringparam_schemaRoot) \
--path $(gb_Configuration_registry) \
$(gb_XcuDataTarget_XSLT_DataVal) \
$(3) && \
$(gb_Configuration_XSLTCOMMAND) --nonet \
-o $(1) \
--stringparam xcs $(call gb_XcsTarget_for_XcuTarget,$(XCUFILE)) \
- --stringparam schemaRoot $(call gb_XcsTarget_get_outdir_target,) \
+ $(gb_Configuration__stringparam_schemaRoot) \
--path $(gb_Configuration_registry) \
$(gb_XcuTarget_XSLT_AllLang) \
$(3))
@@ -183,7 +190,7 @@ $(call gb_Helper_abbreviate_dirs,\
$(gb_Configuration_XSLTCOMMAND) --nonet \
-o $(1) \
--stringparam xcs $(4) \
- --stringparam schemaRoot $(call gb_XcsTarget_get_outdir_target,) \
+ $(gb_Configuration__stringparam_schemaRoot) \
--stringparam module $(notdir $(subst -,/,$(basename $(notdir $(2))))) \
$(gb_XcuTarget_XSLT_AllLang) \
$(3))
@@ -302,7 +309,7 @@ $(call gb_Helper_abbreviate_dirs,\
$(gb_Configuration_XSLTCOMMAND) --nonet \
-o $(1) \
--stringparam xcs $(call gb_XcsTarget_for_XcuTarget,$(XCUFILE)) \
- --stringparam schemaRoot $(call gb_XcsTarget_get_outdir_target,) \
+ $(gb_Configuration__stringparam_schemaRoot) \
--stringparam locale $(word 2,$(subst /, ,$(2))) \
--path $(gb_Configuration_registry) \
$(gb_XcuTarget_XSLT_AllLang) \
@@ -330,6 +337,7 @@ $(call gb_XcuResTarget_get_target,$(1)) : \
endif
$(call gb_XcuResTarget_get_target,$(1)) : \
$(call gb_XcsTarget_for_XcuTarget,$(4))
+$(call gb_XcuResTarget_get_target,$(1)) : PRIMARY_REGISTRY := $(filter $(2),$(gb_Configuration_PRIMARY_REGISTRY_NAME))
$(call gb_XcuResTarget_get_target,$(1)) : XCUFILE := $(4)
endef
@@ -411,6 +419,7 @@ $(call gb_XcuDataTarget_get_target,$(2)/$(3)) : \
$(call gb_Configuration__get_source,$(1),$(2)/$(3)) \
$(call gb_Configuration_get_preparation_target,$(1)) \
$(call gb_XcsTarget_for_XcuTarget,$(3))
+$(call gb_XcuDataTarget_get_target,$(2)/$(3)) : PRIMARY_REGISTRY := $(filter $(1),$(gb_Configuration_PRIMARY_REGISTRY_NAME))
$(call gb_XcuDataTarget_get_target,$(2)/$(3)) : XCUFILE := $(3)
$(call gb_XcuDataTarget_get_clean_target,$(2)/$(3)) : XCUFILE := $(3)
ifeq ($(strip $(gb_Configuration_NODELIVER_$(1))),)
@@ -444,6 +453,7 @@ $(call gb_XcuModuleTarget_get_target,$(2)/$(3)) : \
$(call gb_XcuDataSource_for_XcuModuleTarget,$(1),$(2)/$(3)) \
$(call gb_Configuration_get_preparation_target,$(1)) \
$(call gb_XcsTarget_for_XcuModuleTarget,$(3))
+$(call gb_XcuModuleTarget_get_target,$(2)/$(3)) : PRIMARY_REGISTRY := $(filter $(1),$(gb_Configuration_PRIMARY_REGISTRY_NAME))
$(call gb_XcuModuleTarget_get_clean_target,$(2)/$(3)) : XCUFILE := $(3)
ifeq ($(strip $(gb_Configuration_NODELIVER_$(1))),)
$(call gb_Configuration_get_target,$(1)) : \