compile- and run-time use of UNO must be split

There are unit tests that do not use URE, e.g., in cppuhelper.

This reverts commit 33e9f3d3d6.

Conflicts:

	sot/CppunitTest_sot_test_sot.mk
	svl/CppunitTest_svl_urihelper.mk
This commit is contained in:
David Tardon
2012-04-08 15:12:18 +02:00
parent cd2c512f9f
commit fbbb833dda
38 changed files with 77 additions and 3 deletions

View File

@@ -83,6 +83,8 @@ $(eval $(call gb_CppunitTest_use_api,dbaccess_macros_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,dbaccess_macros_test))
$(eval $(call gb_CppunitTest_use_components,dbaccess_macros_test,\ $(eval $(call gb_CppunitTest_use_components,dbaccess_macros_test,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -61,6 +61,8 @@ $(eval $(call gb_CppunitTest_use_api,extensions_test_update,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,extensions_test_update))
$(eval $(call gb_CppunitTest_use_components,extensions_test_update,\ $(eval $(call gb_CppunitTest_use_components,extensions_test_update,\
configmgr/source/configmgr \ configmgr/source/configmgr \
extensions/source/update/feed/updatefeed \ extensions/source/update/feed/updatefeed \

View File

@@ -46,6 +46,8 @@ $(eval $(call gb_CppunitTest_use_api,filter_tga_test,\
offapi \ offapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,filter_tga_test))
$(eval $(call gb_CppunitTest_use_components,filter_tga_test,\ $(eval $(call gb_CppunitTest_use_components,filter_tga_test,\
configmgr/source/configmgr \ configmgr/source/configmgr \
)) ))

View File

@@ -46,6 +46,8 @@ $(eval $(call gb_CppunitTest_use_api,filter_tiff_test,\
offapi \ offapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,filter_tiff_test))
$(eval $(call gb_CppunitTest_use_components,filter_tiff_test,\ $(eval $(call gb_CppunitTest_use_components,filter_tiff_test,\
configmgr/source/configmgr \ configmgr/source/configmgr \
)) ))

View File

@@ -50,6 +50,8 @@ $(eval $(call gb_CppunitTest_use_api,hwpfilter_test_hwpfilter,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,hwpfilter_test_hwpfilter))
$(eval $(call gb_CppunitTest_use_components,hwpfilter_test_hwpfilter,\ $(eval $(call gb_CppunitTest_use_components,hwpfilter_test_hwpfilter,\
configmgr/source/configmgr \ configmgr/source/configmgr \
hwpfilter/source/hwp \ hwpfilter/source/hwp \

View File

@@ -44,6 +44,8 @@ $(eval $(call gb_CppunitTest_add_exception_objects,i18npool_test_breakiterator,\
i18npool/qa/cppunit/test_breakiterator \ i18npool/qa/cppunit/test_breakiterator \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,i18npool_test_breakiterator))
$(eval $(call gb_CppunitTest_use_components,i18npool_test_breakiterator,\ $(eval $(call gb_CppunitTest_use_components,i18npool_test_breakiterator,\
i18npool/util/i18npool \ i18npool/util/i18npool \
)) ))

View File

@@ -50,6 +50,8 @@ $(eval $(call gb_CppunitTest_use_api,lotuswordpro_test_lotuswordpro,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,lotuswordpro_test_lotuswordpro))
$(eval $(call gb_CppunitTest_use_components,lotuswordpro_test_lotuswordpro,\ $(eval $(call gb_CppunitTest_use_components,lotuswordpro_test_lotuswordpro,\
configmgr/source/configmgr \ configmgr/source/configmgr \
lotuswordpro/util/lwpfilter \ lotuswordpro/util/lwpfilter \

View File

@@ -83,6 +83,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_cellrangesbase,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_cellrangesbase))
$(eval $(call gb_CppunitTest_use_components,sc_cellrangesbase,\ $(eval $(call gb_CppunitTest_use_components,sc_cellrangesbase,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -80,6 +80,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_chart_regression_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_chart_regression_test))
$(eval $(call gb_CppunitTest_use_components,sc_chart_regression_test,\ $(eval $(call gb_CppunitTest_use_components,sc_chart_regression_test,\
basic/util/sb \ basic/util/sb \
chart2/source/controller/chartcontroller \ chart2/source/controller/chartcontroller \

View File

@@ -83,6 +83,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_databaserangeobj,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_databaserangeobj))
$(eval $(call gb_CppunitTest_use_components,sc_databaserangeobj,\ $(eval $(call gb_CppunitTest_use_components,sc_databaserangeobj,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -83,6 +83,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_datapilotfieldobj,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_datapilotfieldobj))
$(eval $(call gb_CppunitTest_use_components,sc_datapilotfieldobj,\ $(eval $(call gb_CppunitTest_use_components,sc_datapilotfieldobj,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -83,6 +83,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_datapilottableobj,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_datapilottableobj))
$(eval $(call gb_CppunitTest_use_components,sc_datapilottableobj,\ $(eval $(call gb_CppunitTest_use_components,sc_datapilottableobj,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -80,6 +80,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_filters_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_filters_test))
$(eval $(call gb_CppunitTest_use_components,sc_filters_test,\ $(eval $(call gb_CppunitTest_use_components,sc_filters_test,\
basic/util/sb \ basic/util/sb \
chart2/source/controller/chartcontroller \ chart2/source/controller/chartcontroller \

View File

@@ -80,6 +80,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_macros_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_macros_test))
$(eval $(call gb_CppunitTest_use_components,sc_macros_test,\ $(eval $(call gb_CppunitTest_use_components,sc_macros_test,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -83,6 +83,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_namedrangeobj,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_namedrangeobj))
$(eval $(call gb_CppunitTest_use_components,sc_namedrangeobj,\ $(eval $(call gb_CppunitTest_use_components,sc_namedrangeobj,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -83,6 +83,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_namedrangesobj,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_namedrangesobj))
$(eval $(call gb_CppunitTest_use_components,sc_namedrangesobj,\ $(eval $(call gb_CppunitTest_use_components,sc_namedrangesobj,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -80,6 +80,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_subsequent_filters_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_subsequent_filters_test))
$(eval $(call gb_CppunitTest_use_components,sc_subsequent_filters_test,\ $(eval $(call gb_CppunitTest_use_components,sc_subsequent_filters_test,\
chart2/source/controller/chartcontroller \ chart2/source/controller/chartcontroller \
chart2/source/tools/charttools \ chart2/source/tools/charttools \

View File

@@ -83,6 +83,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_tableautoformatfield,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_tableautoformatfield))
$(eval $(call gb_CppunitTest_use_components,sc_tableautoformatfield,\ $(eval $(call gb_CppunitTest_use_components,sc_tableautoformatfield,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -83,6 +83,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_spreadsheetobj,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_spreadsheetobj))
$(eval $(call gb_CppunitTest_use_components,sc_spreadsheetobj,\ $(eval $(call gb_CppunitTest_use_components,sc_spreadsheetobj,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -83,6 +83,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_spreadsheetsobj,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_spreadsheetsobj))
$(eval $(call gb_CppunitTest_use_components,sc_spreadsheetsobj,\ $(eval $(call gb_CppunitTest_use_components,sc_spreadsheetsobj,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -87,6 +87,8 @@ $(eval $(call gb_CppunitTest_use_api,sc_ucalc,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sc_ucalc))
$(eval $(call gb_CppunitTest_use_components,sc_ucalc,\ $(eval $(call gb_CppunitTest_use_components,sc_ucalc,\
configmgr/source/configmgr \ configmgr/source/configmgr \
framework/util/fwk \ framework/util/fwk \

View File

@@ -78,6 +78,8 @@ $(eval $(call gb_CppunitTest_use_api,sd_filters_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sd_filters_test))
$(eval $(call gb_CppunitTest_use_components,sd_filters_test,\ $(eval $(call gb_CppunitTest_use_components,sd_filters_test,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -79,6 +79,8 @@ $(eval $(call gb_CppunitTest_use_api,sd_regression_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sd_regression_test))
$(eval $(call gb_CppunitTest_use_components,sd_regression_test,\ $(eval $(call gb_CppunitTest_use_components,sd_regression_test,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -76,6 +76,8 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sd_uimpress,\
sd/qa/unit/uimpress \ sd/qa/unit/uimpress \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sd_uimpress))
$(eval $(call gb_CppunitTest_use_components,sd_uimpress,\ $(eval $(call gb_CppunitTest_use_components,sd_uimpress,\
configmgr/source/configmgr \ configmgr/source/configmgr \
framework/util/fwk \ framework/util/fwk \

View File

@@ -65,6 +65,8 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sdext_pdfimport,\
sdext/source/pdfimport/test/tests \ sdext/source/pdfimport/test/tests \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sdext_pdfimport))
$(eval $(call gb_CppunitTest_use_components,sdext_pdfimport,\ $(eval $(call gb_CppunitTest_use_components,sdext_pdfimport,\
comphelper/util/comphelp \ comphelper/util/comphelp \
configmgr/source/configmgr \ configmgr/source/configmgr \

View File

@@ -146,7 +146,9 @@ $(call gb_CppunitTest_get_target,$(1)) : ARGS += $(2)
endef endef
define gb_CppunitTest_uses_ure define gb_CppunitTest_uses_ure
$$(call gb_Output_error,gb_CppunitTest_uses_ure: use gb_CppunitTest_use_api instead.)) $(call gb_CppunitTest_use_rdb,$(1),ure/services)
$(call gb_CppunitTest_get_target,$(1)) : URE := $(true)
endef endef
define gb_CppunitTest_add_type_rdb define gb_CppunitTest_add_type_rdb
@@ -178,8 +180,6 @@ endef
define gb_CppunitTest_use_api define gb_CppunitTest_use_api
$(call gb_LinkTarget_use_api,$(call gb_CppunitTest__get_linktargetname,$(1)),$(2)) $(call gb_LinkTarget_use_api,$(call gb_CppunitTest__get_linktargetname,$(1)),$(2))
$(foreach rdb,$(2),$(call gb_CppunitTest__use_api,$(1),$(rdb))) $(foreach rdb,$(2),$(call gb_CppunitTest__use_api,$(1),$(rdb)))
$(call gb_CppunitTest_use_rdb,$(1),ure/services)
$(call gb_CppunitTest_get_target,$(1)) : URE := $(true)
endef endef

View File

@@ -52,4 +52,6 @@ $(eval $(call gb_CppunitTest_use_api,sot_test_sot,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sot_test_sot))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:

View File

@@ -75,6 +75,8 @@ $(eval $(call gb_CppunitTest_add_exception_objects,starmath_qa_cppunit,\
starmath/qa/cppunit/test_starmath \ starmath/qa/cppunit/test_starmath \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,starmath_qa_cppunit))
$(eval $(call gb_CppunitTest_use_components,starmath_qa_cppunit,\ $(eval $(call gb_CppunitTest_use_components,starmath_qa_cppunit,\
configmgr/source/configmgr \ configmgr/source/configmgr \
framework/util/fwk \ framework/util/fwk \

View File

@@ -50,3 +50,5 @@ $(eval $(call gb_CppunitTest_use_libraries,svl_urihelper, \
utl \ utl \
$(gb_STDLIBS) \ $(gb_STDLIBS) \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,svl_urihelper))

View File

@@ -49,6 +49,8 @@ $(eval $(call gb_CppunitTest_use_api,svtools_filters_test,\
offapi \ offapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,svtools_filters_test))
$(eval $(call gb_CppunitTest_use_components,svtools_filters_test,\ $(eval $(call gb_CppunitTest_use_components,svtools_filters_test,\
configmgr/source/configmgr \ configmgr/source/configmgr \
)) ))

View File

@@ -71,6 +71,8 @@ $(eval $(call gb_CppunitTest_use_api,sw_filters_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sw_filters_test))
$(eval $(call gb_CppunitTest_use_components,sw_filters_test,\ $(eval $(call gb_CppunitTest_use_components,sw_filters_test,\
comphelper/util/comphelp \ comphelper/util/comphelp \
configmgr/source/configmgr \ configmgr/source/configmgr \

View File

@@ -81,6 +81,8 @@ $(eval $(call gb_CppunitTest_use_api,sw_layout_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sw_layout_test))
$(eval $(call gb_CppunitTest_use_components,sw_layout_test,\ $(eval $(call gb_CppunitTest_use_components,sw_layout_test,\
comphelper/util/comphelp \ comphelper/util/comphelp \
configmgr/source/configmgr \ configmgr/source/configmgr \

View File

@@ -82,6 +82,8 @@ $(eval $(call gb_CppunitTest_use_api,sw_macros_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sw_macros_test))
$(eval $(call gb_CppunitTest_use_components,sw_macros_test,\ $(eval $(call gb_CppunitTest_use_components,sw_macros_test,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -82,6 +82,8 @@ $(eval $(call gb_CppunitTest_use_api,sw_regression_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sw_regression_test))
$(eval $(call gb_CppunitTest_use_components,sw_regression_test,\ $(eval $(call gb_CppunitTest_use_components,sw_regression_test,\
basic/util/sb \ basic/util/sb \
comphelper/util/comphelp \ comphelper/util/comphelp \

View File

@@ -48,6 +48,8 @@ $(eval $(call gb_CppunitTest_use_api,sw_subsequent_ooxmltok,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sw_subsequent_ooxmltok))
$(eval $(call gb_CppunitTest_use_components,sw_subsequent_ooxmltok,\ $(eval $(call gb_CppunitTest_use_components,sw_subsequent_ooxmltok,\
comphelper/util/comphelp \ comphelper/util/comphelp \
configmgr/source/configmgr \ configmgr/source/configmgr \

View File

@@ -48,6 +48,8 @@ $(eval $(call gb_CppunitTest_use_api,sw_subsequent_rtftok,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sw_subsequent_rtftok))
$(eval $(call gb_CppunitTest_use_components,sw_subsequent_rtftok,\ $(eval $(call gb_CppunitTest_use_components,sw_subsequent_rtftok,\
configmgr/source/configmgr \ configmgr/source/configmgr \
fileaccess/source/fileacc \ fileaccess/source/fileacc \

View File

@@ -85,6 +85,8 @@ $(eval $(call gb_CppunitTest_use_api,sw_swdoc_test,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,sw_swdoc_test))
$(eval $(call gb_CppunitTest_use_components,sw_swdoc_test,\ $(eval $(call gb_CppunitTest_use_components,sw_swdoc_test,\
comphelper/util/comphelp \ comphelper/util/comphelp \
configmgr/source/configmgr \ configmgr/source/configmgr \

View File

@@ -52,6 +52,8 @@ $(eval $(call gb_CppunitTest_use_api,writerfilter_rtftok,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_uses_ure,writerfilter_rtftok))
$(eval $(call gb_CppunitTest_use_components,writerfilter_rtftok,\ $(eval $(call gb_CppunitTest_use_components,writerfilter_rtftok,\
configmgr/source/configmgr \ configmgr/source/configmgr \
ucb/source/core/ucb1 \ ucb/source/core/ucb1 \