summaryrefslogtreecommitdiff
path: root/sw/ooxmlexport_setup.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sw/ooxmlexport_setup.mk')
-rw-r--r--sw/ooxmlexport_setup.mk51
1 files changed, 51 insertions, 0 deletions
diff --git a/sw/ooxmlexport_setup.mk b/sw/ooxmlexport_setup.mk
index 400bc836567e..03f6bacac7cc 100644
--- a/sw/ooxmlexport_setup.mk
+++ b/sw/ooxmlexport_setup.mk
@@ -61,4 +61,55 @@ define sw_ooxmlexport_components
xmloff/util/xo
endef
+# template for ooxmlexport tests (there are several so that they can be run in parallel)
+define sw_ooxmlexport_test
+
+$(eval $(call gb_CppunitTest_CppunitTest,sw_ooxmlexport$(1)))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sw_ooxmlexport$(1), \
+ sw/qa/extras/ooxmlexport/ooxmlexport$(1) \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sw_ooxmlexport$(1), \
+ $(sw_ooxmlexport_libraries) \
+))
+
+$(eval $(call gb_CppunitTest_use_externals,sw_ooxmlexport$(1),\
+ boost_headers \
+ libxml2 \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sw_ooxmlexport$(1),\
+ -I$(SRCDIR)/sw/inc \
+ -I$(SRCDIR)/sw/source/core/inc \
+ -I$(SRCDIR)/sw/qa/extras/inc \
+ $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_api,sw_ooxmlexport$(1),\
+ offapi \
+ udkapi \
+))
+
+$(eval $(call gb_CppunitTest_use_ure,sw_ooxmlexport$(1)))
+$(eval $(call gb_CppunitTest_use_vcl,sw_ooxmlexport$(1)))
+
+$(eval $(call gb_CppunitTest_use_components,sw_ooxmlexport$(1),\
+ $(sw_ooxmlexport_components) \
+ filter/source/storagefilterdetect/storagefd \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sw_ooxmlexport$(1)))
+
+$(eval $(call gb_CppunitTest_use_unittest_configuration,sw_ooxmlexport$(1)))
+
+$(eval $(call gb_CppunitTest_use_packages,sw_ooxmlexport$(1),\
+ oox_customshapes \
+ oox_generated \
+))
+
+$(call gb_CppunitTest_get_target,sw_ooxmlexport$(1)) : $(call gb_Library_get_target,iti)
+
+endef
+
# vim: set noet sw=4 ts=4: