Make .component files directly usable within UNO_SERVICES.

* solenv/bin/createcomponent.xslt simply surrounds it output by <components>.
* solenv/gbuild/CppunitTest.mk got new functions
gb_CppunitTest_add[_old]_component[s] (like their gb_RdbTarget_ predecessors).
* This obsoleted current uses of solenv/gbuild/RdbTarget.mk, which also does not
work currently, as it catenates the input component files instead of passing
them through packcomponents.xslt (which now takes care about the surrounding
<components> in the input).  In the future, it will likely be combined with the
recently added solenv/gbuild/ComponentsTarget.mk.
This commit is contained in:
Stephan Bergmann
2011-11-11 10:01:19 +01:00
parent 9cf9fb0b78
commit f66ac29343
34 changed files with 235 additions and 589 deletions

View File

@@ -63,8 +63,12 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,hwpfilter_test_hwpfilter,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,hwpfilter_test_hwpfilter,\
hwpfilter_test_hwpfilter \
$(eval $(call gb_CppunitTest_add_components,hwpfilter_test_hwpfilter,\
hwpfilter/source/hwp \
))
$(eval $(call gb_CppunitTest_add_old_components,hwpfilter_test_hwpfilter,\
ucb1 \
ucpfile1 \
))
$(eval $(call gb_CppunitTest_set_args,hwpfilter_test_hwpfilter,\

View File

@@ -34,7 +34,6 @@ $(eval $(call gb_Module_add_targets,hwpfilter,\
$(eval $(call gb_Module_add_check_targets,hwpfilter,\
CppunitTest_hwpfilter_test_hwpfilter \
RdbTarget_hwpfilter_test_hwpfilter \
))
# vim: set noet sw=4 ts=4:

View File

@@ -1,44 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Bjoern Michaelsen, Canonical Ltd. <bjoern.michaelsen@canonical.com>
# Portions created by the Initial Developer are Copyright (C) 2010 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
# Caolán McNamara, Red Hat, Inc. <caolanm@redhat.com>
# David Tardon, Red Hat Inc. <dtardon@redhat.com>
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
#*************************************************************************
$(eval $(call gb_RdbTarget_RdbTarget,hwpfilter_test_hwpfilter))
$(eval $(call gb_RdbTarget_add_components,hwpfilter_test_hwpfilter,\
hwpfilter/source/hwp,\
))
$(eval $(call gb_RdbTarget_add_old_components,hwpfilter_test_hwpfilter,\
ucb1 \
ucpfile1 \
))
# vim: set noet sw=4 ts=4:

View File

@@ -55,8 +55,8 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,i18npool_test_breakiterator,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,i18npool_test_breakiterator,\
i18npool_test_breakiterator \
$(eval $(call gb_CppunitTest_add_components,i18npool_test_breakiterator,\
i18npool/util/i18npool \
))
$(eval $(call gb_CppunitTest_set_args,i18npool_test_breakiterator,\

View File

@@ -59,7 +59,6 @@ endif
$(eval $(call gb_Module_add_check_targets,i18npool,\
CppunitTest_i18npool_test_breakiterator \
RdbTarget_i18npool_test_breakiterator \
))
ifeq ($(OS),IOS)

View File

@@ -1,35 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Matúš Kukan <matus.kukan@gmail.com>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_RdbTarget_RdbTarget,i18npool_test_breakiterator))
$(eval $(call gb_RdbTarget_add_components,i18npool_test_breakiterator,\
i18npool/util/i18npool \
))
# vim: set noet sw=4 ts=4:

View File

@@ -63,8 +63,8 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,lotuswordpro_test_lotuswordpro,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,lotuswordpro_test_lotuswordpro,\
lotuswordpro_test_lotuswordpro \
$(eval $(call gb_CppunitTest_add_components,lotuswordpro_test_lotuswordpro,\
lotuswordpro/util/lwpfilter,\
))
$(eval $(call gb_CppunitTest_set_args,lotuswordpro_test_lotuswordpro,\

View File

@@ -34,7 +34,6 @@ $(eval $(call gb_Module_add_targets,lotuswordpro,\
$(eval $(call gb_Module_add_check_targets,lotuswordpro,\
CppunitTest_lotuswordpro_test_lotuswordpro \
RdbTarget_lotuswordpro_test_lotuswordpro \
))
# vim: set noet sw=4 ts=4:

View File

@@ -1,39 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Bjoern Michaelsen, Canonical Ltd. <bjoern.michaelsen@canonical.com>
# Portions created by the Initial Developer are Copyright (C) 2010 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
# Caolán McNamara, Red Hat, Inc. <caolanm@redhat.com>
# David Tardon, Red Hat Inc. <dtardon@redhat.com>
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
#*************************************************************************
$(eval $(call gb_RdbTarget_RdbTarget,lotuswordpro_test_lotuswordpro))
$(eval $(call gb_RdbTarget_add_components,lotuswordpro_test_lotuswordpro,\
lotuswordpro/util/lwpfilter,\
))
# vim: set noet sw=4 ts=4:

View File

@@ -88,8 +88,49 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,sc_filters_test,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,sc_filters_test,\
sc_filters_test \
$(eval $(call gb_CppunitTest_add_components,sc_filters_test,\
basic/util/sb \
comphelper/util/comphelp \
dbaccess/util/dba \
fileaccess/source/fileacc \
filter/source/config/cache/filterconfig1 \
forms/util/frm \
framework/util/fwk \
i18npool/util/i18npool \
oox/util/oox \
package/source/xstor/xstor \
package/util/package2 \
sax/source/expatwrap/expwrap \
sax/source/fastparser/fastsax \
sc/util/sc \
sc/util/scfilt \
sfx2/util/sfx \
sot/util/sot \
toolkit/util/tk \
unotools/util/utl \
unoxml/source/rdf/unordf \
unoxml/source/service/unoxml \
xmlsecurity/util/xsec_fw \
xmlsecurity/util/xmlsecurity \
))
ifeq ($(OS),WNT)
$(eval $(call gb_CppunitTest_add_components,sc_filters_test,\
xmlsecurity/util/xsec_xmlsec.windows \
))
else
$(eval $(call gb_CppunitTest_add_components,sc_filters_test,\
xmlsecurity/util/xsec_xmlsec \
))
endif
$(eval $(call gb_CppunitTest_add_old_components,sc_filters_test,\
configmgr \
ucb1 \
ucpfile1 \
ucptdoc1 \
))
$(eval $(call gb_CppunitTest_set_args,sc_filters_test,\

View File

@@ -92,8 +92,40 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,sc_macros_test,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,sc_macros_test,\
sc_macros_test \
$(eval $(call gb_CppunitTest_add_components,sc_macros_test,\
basic/util/sb \
comphelper/util/comphelp \
dbaccess/util/dba \
fileaccess/source/fileacc \
filter/source/config/cache/filterconfig1 \
forms/util/frm \
framework/util/fwk \
i18npool/util/i18npool \
oox/util/oox \
package/source/xstor/xstor \
package/util/package2 \
sax/source/expatwrap/expwrap \
sax/source/fastparser/fastsax \
sc/util/sc \
sc/util/scd \
sc/util/scfilt \
sc/util/vbaobj \
scripting/source/basprov/basprov \
scripting/util/scriptframe \
sfx2/util/sfx \
sot/util/sot \
svl/source/fsstor/fsstorage \
toolkit/util/tk \
unotools/util/utl \
unoxml/source/rdf/unordf \
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_add_old_components,sc_macros_test,\
configmgr \
ucb1 \
ucpfile1 \
ucptdoc1 \
))
$(eval $(call gb_CppunitTest_set_args,sc_macros_test,\

View File

@@ -94,8 +94,16 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,sc_ucalc,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,sc_ucalc,\
sc_ucalc \
$(eval $(call gb_CppunitTest_add_components,sc_ucalc,\
framework/util/fwk \
i18npool/util/i18npool \
sfx2/util/sfx \
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_add_old_components,sc_ucalc,\
ucb1 \
ucpfile1 \
))
$(eval $(call gb_CppunitTest_set_args,sc_ucalc,\

View File

@@ -38,9 +38,6 @@ $(eval $(call gb_Module_add_check_targets,sc,\
CppunitTest_sc_filters_test \
CppunitTest_sc_macros_test \
CppunitTest_sc_ucalc \
RdbTarget_sc_filters_test \
RdbTarget_sc_macros_test \
RdbTarget_sc_ucalc \
))

View File

@@ -1,79 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Caolán McNamara, Red Hat, Inc. <caolanm@redhat.com>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
#*************************************************************************
$(eval $(call gb_RdbTarget_RdbTarget,sc_filters_test))
$(eval $(call gb_RdbTarget_add_components,sc_filters_test,\
basic/util/sb \
comphelper/util/comphelp \
dbaccess/util/dba \
fileaccess/source/fileacc \
filter/source/config/cache/filterconfig1 \
forms/util/frm \
framework/util/fwk \
i18npool/util/i18npool \
oox/util/oox \
package/source/xstor/xstor \
package/util/package2 \
sax/source/expatwrap/expwrap \
sax/source/fastparser/fastsax \
sc/util/sc \
sc/util/scfilt \
sfx2/util/sfx \
sot/util/sot \
toolkit/util/tk \
unotools/util/utl \
unoxml/source/rdf/unordf \
unoxml/source/service/unoxml \
xmlsecurity/util/xsec_fw \
xmlsecurity/util/xmlsecurity \
))
ifeq ($(OS),WNT)
$(eval $(call gb_RdbTarget_add_components,sc_filters_test,\
xmlsecurity/util/xsec_xmlsec.windows \
))
else
$(eval $(call gb_RdbTarget_add_components,sc_filters_test,\
xmlsecurity/util/xsec_xmlsec \
))
endif
$(eval $(call gb_RdbTarget_add_old_components,sc_filters_test,\
configmgr \
ucb1 \
ucpfile1 \
ucptdoc1 \
))
# vim: set noet sw=4 ts=4:

View File

@@ -1,69 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Caolán McNamara, Red Hat, Inc. <caolanm@redhat.com>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
#*************************************************************************
$(eval $(call gb_RdbTarget_RdbTarget,sc_macros_test))
$(eval $(call gb_RdbTarget_add_components,sc_macros_test,\
basic/util/sb \
comphelper/util/comphelp \
dbaccess/util/dba \
fileaccess/source/fileacc \
filter/source/config/cache/filterconfig1 \
forms/util/frm \
framework/util/fwk \
i18npool/util/i18npool \
oox/util/oox \
package/source/xstor/xstor \
package/util/package2 \
sax/source/expatwrap/expwrap \
sax/source/fastparser/fastsax \
sc/util/sc \
sc/util/scd \
sc/util/scfilt \
sc/util/vbaobj \
scripting/source/basprov/basprov \
scripting/util/scriptframe \
sfx2/util/sfx \
sot/util/sot \
svl/source/fsstor/fsstorage \
toolkit/util/tk \
unotools/util/utl \
unoxml/source/rdf/unordf \
unoxml/source/service/unoxml \
))
$(eval $(call gb_RdbTarget_add_old_components,sc_macros_test,\
configmgr \
ucb1 \
ucpfile1 \
ucptdoc1 \
))
# vim: set noet sw=4 ts=4:

View File

@@ -1,46 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Bjoern Michaelsen, Canonical Ltd. <bjoern.michaelsen@canonical.com>
# Portions created by the Initial Developer are Copyright (C) 2010 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
# David Tardon, Red Hat Inc. <dtardon@redhat.com>
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
#*************************************************************************
$(eval $(call gb_RdbTarget_RdbTarget,sc_ucalc))
$(eval $(call gb_RdbTarget_add_components,sc_ucalc,\
framework/util/fwk \
i18npool/util/i18npool \
sfx2/util/sfx \
unoxml/source/service/unoxml \
))
$(eval $(call gb_RdbTarget_add_old_components,sc_ucalc,\
ucb1 \
ucpfile1 \
))
# vim: set noet sw=4 ts=4:

View File

@@ -88,8 +88,37 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,sd_filters_test,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,sd_filters_test,\
sd_filters_test \
$(eval $(call gb_CppunitTest_add_components,sd_filters_test,\
basic/util/sb \
comphelper/util/comphelp \
dbaccess/util/dba \
fileaccess/source/fileacc \
filter/source/config/cache/filterconfig1 \
forms/util/frm \
framework/util/fwk \
i18npool/util/i18npool \
oox/util/oox \
package/source/xstor/xstor \
package/util/package2 \
sax/source/expatwrap/expwrap \
sax/source/fastparser/fastsax \
sd/util/sd \
sd/util/sdfilt \
sfx2/util/sfx \
sot/util/sot \
toolkit/util/tk \
unotools/util/utl \
unoxml/source/rdf/unordf \
unoxml/source/service/unoxml \
xmlsecurity/util/xsec_fw \
xmlsecurity/util/xmlsecurity \
))
$(eval $(call gb_CppunitTest_add_old_components,sd_filters_test,\
configmgr \
ucb1 \
ucpfile1 \
ucptdoc1 \
))
$(eval $(call gb_CppunitTest_set_args,sd_filters_test,\

View File

@@ -86,8 +86,9 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,sd_uimpress,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,sd_uimpress,\
sd_uimpress \
$(eval $(call gb_CppunitTest_add_components,sd_uimpress,\
framework/util/fwk \
i18npool/util/i18npool \
))
$(eval $(call gb_CppunitTest_set_args,sd_uimpress,\

View File

@@ -44,8 +44,6 @@ ifneq ($(OS),DRAGONFLY)
$(eval $(call gb_Module_add_check_targets,sd,\
CppunitTest_sd_uimpress \
CppunitTest_sd_filters_test \
RdbTarget_sd_uimpress \
RdbTarget_sd_filters_test \
))
endif

View File

@@ -1,36 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# David Tardon, Red Hat Inc. <dtardon@redhat.com>
# Portions created by the Initial Developer are Copyright (C) 2010 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_RdbTarget_RdbTarget,sd_uimpress))
$(eval $(call gb_RdbTarget_add_components,sd_uimpress,\
framework/util/fwk \
i18npool/util/i18npool \
))
# vim: set noet sw=4 ts=4:

View File

@@ -27,17 +27,21 @@
**********************************************************************-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="uc"
xmlns="http://openoffice.org/2010/uno-components"
xmlns:uc="http://openoffice.org/2010/uno-components">
<xsl:param name="uri"/>
<xsl:strip-space elements="*"/>
<xsl:template match="uc:component">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="uri">
<xsl:value-of select="$uri"/>
</xsl:attribute>
<xsl:apply-templates/>
</xsl:copy>
<components>
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="uri">
<xsl:value-of select="$uri"/>
</xsl:attribute>
<xsl:apply-templates/>
</xsl:copy>
</components>
</xsl:template>
<xsl:template match="*">
<xsl:copy>

View File

@@ -27,6 +27,8 @@
**********************************************************************-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="uc"
xmlns="http://openoffice.org/2010/uno-components"
xmlns:uc="http://openoffice.org/2010/uno-components">
<xsl:param name="prefix"/>
<xsl:strip-space elements="*"/>
@@ -36,8 +38,8 @@
<xsl:for-each select="list/filename">
<xsl:variable name="doc" select="document(concat($prefix, .))"/>
<xsl:choose>
<xsl:when test="count($doc/uc:component) = 1">
<xsl:copy-of select="$doc/uc:component"/>
<xsl:when test="count($doc/uc:components/uc:component) = 1">
<xsl:copy-of select="$doc/uc:components/uc:component"/>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">

View File

@@ -70,8 +70,8 @@ $(if $(strip $(UNO_TYPES)),\
$(call gb_CppunitTarget__make_url,$(call gb_CppunitTest__get_uno_type_target,$(rdb))))") \
$(if $(strip $(UNO_SERVICES)),\
"-env:UNO_SERVICES=$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/ure/services.rdb) \
$(foreach rdb,$(UNO_SERVICES),\
$(call gb_CppunitTarget__make_url,$(call gb_RdbTarget_get_target,$(rdb))))") \
$(foreach item,$(UNO_SERVICES),\
$(call gb_CppunitTarget__make_url,$(item)))") \
$(if $(URE),\
$(foreach dir,URE_INTERNAL_LIB_DIR LO_LIB_DIR,\
-env:$(dir)=$(call gb_CppunitTarget__make_url,$(gb_CppunitTest_LIBDIR))))
@@ -146,7 +146,8 @@ endef
define gb_CppunitTest_add_service_rdb
$(call gb_CppunitTest_get_target,$(1)) : $(call gb_RdbTarget_get_target,$(2))
$(call gb_CppunitTest_get_clean_target,$(1)) : $(call gb_RdbTarget_get_clean_target,$(2))
$(call gb_CppunitTest_get_target,$(1)) : UNO_SERVICES += $(2)
$(call gb_CppunitTest_get_target,$(1)) : \
UNO_SERVICES += $(call gb_RdbTarget_get_target,$(2))
endef
@@ -155,6 +156,36 @@ $(foreach rdb,$(2),$(call gb_CppunitTest_add_service_rdb,$(1),$(rdb)))
endef
define gb_CppunitTest_add_component
$(call gb_CppunitTest_get_target,$(1)) : \
$(call gb_ComponentTarget_get_target,$(2))
$(call gb_CppunitTest_get_clean_target,$(1)) : \
$(call gb_ComponentTarget_get_clean_target,$(2))
$(call gb_CppunitTest_get_target,$(1)) : \
UNO_SERVICES += $(call gb_ComponentTarget_get_target,$(2))
endef
define gb_CppunitTest_add_components
$(foreach component,$(2),$(call gb_CppunitTest_add_component,$(1),$(component)))
endef
define gb_CppunitTest_add_old_component
$(call gb_CppunitTest_get_target,$(1)) : \
$(call gb_CppunitTest__get_old_component_target,$(2))
$(call gb_CppunitTest_get_target,$(1)) : \
UNO_SERVICES += $(call gb_ComponentTarget__get_old_component_target,$(2))
endef
define gb_CppunitTest_add_old_components
$(foreach component,$(2),$(call gb_CppunitTest_add_old_component,$(1),$(component)))
endef
gb_ComponentTarget__get_old_component_target = $(OUTDIR)/xml/$(1).component
define gb_CppunitTest__forward_to_Linktarget
gb_CppunitTest_$(1) = $$(call gb_LinkTarget_$(1),$$(call gb_CppunitTest__get_linktargetname,$$(1)),$$(2),$$(3))

View File

@@ -84,10 +84,26 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,starmath_qa_cppunit,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,starmath_qa_cppunit,\
starmath_qa_cppunit \
$(eval $(call gb_CppunitTest_add_components,starmath_qa_cppunit,\
framework/util/fwk \
i18npool/util/i18npool \
toolkit/util/tk \
sfx2/util/sfx \
))
$(eval $(call gb_CppunitTest_add_old_components,starmath_qa_cppunit,\
component/vcl/vcl \
configmgr \
mcnttype \
))
ifeq ($(strip $(OS)),WNT)
$(eval $(call gb_CppunitTest_add_old_components,starmath_qa_cppunit,\
ftransl \
sysdtrans \
))
endif
$(eval $(call gb_CppunitTest_set_args,starmath_qa_cppunit,\
--protector unoexceptionprotector$(gb_Library_DLLEXT) unoexceptionprotector \
))

View File

@@ -38,7 +38,6 @@ $(eval $(call gb_Module_add_targets,starmath,\
# was this missing accidentally?
#$(eval $(call gb_Module_add_check_targets,starmath,\
CppunitTest_starmath_qa_cppunit \
RdbTarget_starmath_qa_cppunit \
))
$(eval $(call gb_Module_add_subsequentcheck_targets,starmath,\

View File

@@ -1,51 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# David Tardon, Red Hat Inc. <dtardon@redhat.com>
# Portions created by the Initial Developer are Copyright (C) 2010 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_RdbTarget_RdbTarget,starmath_qa_cppunit))
$(eval $(call gb_RdbTarget_add_components,starmath_qa_cppunit,\
framework/util/fwk \
i18npool/util/i18npool \
toolkit/util/tk \
sfx2/util/sfx \
))
$(eval $(call gb_RdbTarget_add_old_components,starmath_qa_cppunit,\
component/vcl/vcl \
configmgr \
mcnttype \
))
ifeq ($(strip $(OS)),WNT)
$(eval $(call gb_RdbTarget_add_old_components,starmath_qa_cppunit,\
ftransl \
sysdtrans \
))
endif
# vim: set noet sw=4 ts=4:

View File

@@ -80,8 +80,24 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,sw_filters_test,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,sw_filters_test,\
sw_filters_test \
$(eval $(call gb_CppunitTest_add_components,sw_filters_test,\
sw/util/sw \
sw/util/msword \
forms/util/frm \
dbaccess/util/dba \
sfx2/util/sfx \
framework/util/fwk \
toolkit/util/tk \
unoxml/source/service/unoxml \
fileaccess/source/fileacc \
comphelper/util/comphelp \
i18npool/util/i18npool \
package/util/package2 \
))
$(eval $(call gb_CppunitTest_add_old_components,sw_filters_test,\
ucb1 \
ucpfile1 \
))
$(eval $(call gb_CppunitTest_set_args,sw_filters_test,\

View File

@@ -94,8 +94,18 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,sw_swdoc_test,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,sw_swdoc_test,\
sw_swdoc_test \
$(eval $(call gb_CppunitTest_add_components,sw_swdoc_test,\
sfx2/util/sfx \
framework/util/fwk \
unoxml/source/service/unoxml \
fileaccess/source/fileacc \
comphelper/util/comphelp \
i18npool/util/i18npool \
))
$(eval $(call gb_CppunitTest_add_old_components,sw_swdoc_test,\
ucb1 \
ucpfile1 \
))
$(call gb_CppunitTest_get_target,sw_swdoc_test) : \

View File

@@ -43,8 +43,6 @@ $(eval $(call gb_Module_add_targets,sw,\
$(eval $(call gb_Module_add_check_targets,sw,\
CppunitTest_sw_filters_test \
CppunitTest_sw_swdoc_test \
RdbTarget_sw_filters_test \
RdbTarget_sw_swdoc_test \
))
$(eval $(call gb_Module_add_subsequentcheck_targets,sw,\

View File

@@ -1,53 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Caolán McNamara, Red Hat, Inc. <caolanm@redhat.com>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
#*************************************************************************
$(eval $(call gb_RdbTarget_RdbTarget,sw_filters_test))
$(eval $(call gb_RdbTarget_add_components,sw_filters_test,\
sw/util/sw \
sw/util/msword \
forms/util/frm \
dbaccess/util/dba \
sfx2/util/sfx \
framework/util/fwk \
toolkit/util/tk \
unoxml/source/service/unoxml \
fileaccess/source/fileacc \
comphelper/util/comphelp \
i18npool/util/i18npool \
package/util/package2 \
))
$(eval $(call gb_RdbTarget_add_old_components,sw_filters_test,\
ucb1 \
ucpfile1 \
))
# vim: set noet sw=4 ts=4:

View File

@@ -1,47 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Caolán McNamara, Red Hat, Inc. <caolanm@redhat.com>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
#*************************************************************************
$(eval $(call gb_RdbTarget_RdbTarget,sw_swdoc_test))
$(eval $(call gb_RdbTarget_add_components,sw_swdoc_test,\
sfx2/util/sfx \
framework/util/fwk \
unoxml/source/service/unoxml \
fileaccess/source/fileacc \
comphelper/util/comphelp \
i18npool/util/i18npool \
))
$(eval $(call gb_RdbTarget_add_old_components,sw_swdoc_test,\
ucb1 \
ucpfile1 \
))
# vim: set noet sw=4 ts=4:

View File

@@ -58,8 +58,13 @@ $(eval $(call gb_CppunitTest_add_type_rdbs,writerfilter_rtftok,\
types \
))
$(eval $(call gb_CppunitTest_add_service_rdbs,writerfilter_rtftok,\
writerfilter_rtftok \
$(eval $(call gb_CppunitTest_add_components,writerfilter_rtftok,\
writerfilter/util/writerfilter \
))
$(eval $(call gb_CppunitTest_add_old_components,writerfilter_rtftok,\
ucb1 \
ucpfile1 \
))
$(eval $(call gb_CppunitTest_set_args,writerfilter_rtftok,\

View File

@@ -41,7 +41,6 @@ $(eval $(call gb_Module_add_targets,writerfilter,\
$(eval $(call gb_Module_add_check_targets,writerfilter,\
CppunitTest_writerfilter_doctok \
CppunitTest_writerfilter_rtftok \
RdbTarget_writerfilter_rtftok \
))
$(eval $(call gb_Module_add_subsequentcheck_targets,writerfilter,\

View File

@@ -1,42 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Miklos Vajna <vmiklos@frugalware.org>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
#*************************************************************************
$(eval $(call gb_RdbTarget_RdbTarget,writerfilter_rtftok))
$(eval $(call gb_RdbTarget_add_components,writerfilter_rtftok,\
writerfilter/util/writerfilter \
))
$(eval $(call gb_RdbTarget_add_old_components,writerfilter_rtftok,\
ucb1 \
ucpfile1 \
))
# vim: set noet sw=4 ts=4: