sw_rtfexport: use a template for makefiles
in order to remove duplicated code Change-Id: Ic1e7d331b14f74051ed23bf6c7e64016eca61206 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116651 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
@@ -9,51 +9,7 @@
|
|||||||
#
|
#
|
||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_CppunitTest,sw_rtfexport))
|
# empty second argument (i.e. no 1)
|
||||||
|
$(eval $(call sw_rtfexport_test,))
|
||||||
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_rtfexport))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_add_exception_objects,sw_rtfexport, \
|
|
||||||
sw/qa/extras/rtfexport/rtfexport \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_libraries,sw_rtfexport, \
|
|
||||||
comphelper \
|
|
||||||
cppu \
|
|
||||||
cppuhelper \
|
|
||||||
sal \
|
|
||||||
sfx \
|
|
||||||
sw \
|
|
||||||
swqahelper \
|
|
||||||
test \
|
|
||||||
unotest \
|
|
||||||
utl \
|
|
||||||
tl \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_externals,sw_rtfexport,\
|
|
||||||
boost_headers \
|
|
||||||
libxml2 \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_set_include,sw_rtfexport,\
|
|
||||||
-I$(SRCDIR)/sw/inc \
|
|
||||||
-I$(SRCDIR)/sw/source/core/inc \
|
|
||||||
-I$(SRCDIR)/sw/qa/inc \
|
|
||||||
$$(INCLUDE) \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_api,sw_rtfexport,\
|
|
||||||
udkapi \
|
|
||||||
offapi \
|
|
||||||
oovbaapi \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_ure,sw_rtfexport))
|
|
||||||
$(eval $(call gb_CppunitTest_use_vcl,sw_rtfexport))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_rdb,sw_rtfexport,services))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_configuration,sw_rtfexport))
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
# vim: set noet sw=4 ts=4:
|
||||||
|
|||||||
@@ -9,53 +9,6 @@
|
|||||||
#
|
#
|
||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_CppunitTest,sw_rtfexport2))
|
$(eval $(call sw_rtfexport_test,2))
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_rtfexport2))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_add_exception_objects,sw_rtfexport2, \
|
|
||||||
sw/qa/extras/rtfexport/rtfexport2 \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_libraries,sw_rtfexport2, \
|
|
||||||
comphelper \
|
|
||||||
cppu \
|
|
||||||
cppuhelper \
|
|
||||||
i18nlangtag \
|
|
||||||
sal \
|
|
||||||
sfx \
|
|
||||||
sw \
|
|
||||||
swqahelper \
|
|
||||||
test \
|
|
||||||
unotest \
|
|
||||||
utl \
|
|
||||||
vcl \
|
|
||||||
tl \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_externals,sw_rtfexport2,\
|
|
||||||
boost_headers \
|
|
||||||
libxml2 \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_set_include,sw_rtfexport2,\
|
|
||||||
-I$(SRCDIR)/sw/inc \
|
|
||||||
-I$(SRCDIR)/sw/source/core/inc \
|
|
||||||
-I$(SRCDIR)/sw/qa/inc \
|
|
||||||
$$(INCLUDE) \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_api,sw_rtfexport2,\
|
|
||||||
udkapi \
|
|
||||||
offapi \
|
|
||||||
oovbaapi \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_ure,sw_rtfexport2))
|
|
||||||
$(eval $(call gb_CppunitTest_use_vcl,sw_rtfexport2))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_rdb,sw_rtfexport2,services))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_configuration,sw_rtfexport2))
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
# vim: set noet sw=4 ts=4:
|
||||||
|
|||||||
@@ -9,51 +9,6 @@
|
|||||||
#
|
#
|
||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_CppunitTest,sw_rtfexport3))
|
$(eval $(call sw_rtfexport_test,3))
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_rtfexport3))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_add_exception_objects,sw_rtfexport3, \
|
|
||||||
sw/qa/extras/rtfexport/rtfexport3 \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_libraries,sw_rtfexport3, \
|
|
||||||
comphelper \
|
|
||||||
cppu \
|
|
||||||
cppuhelper \
|
|
||||||
sal \
|
|
||||||
sfx \
|
|
||||||
sw \
|
|
||||||
swqahelper \
|
|
||||||
test \
|
|
||||||
unotest \
|
|
||||||
utl \
|
|
||||||
tl \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_externals,sw_rtfexport3,\
|
|
||||||
boost_headers \
|
|
||||||
libxml2 \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_set_include,sw_rtfexport3,\
|
|
||||||
-I$(SRCDIR)/sw/inc \
|
|
||||||
-I$(SRCDIR)/sw/source/core/inc \
|
|
||||||
-I$(SRCDIR)/sw/qa/inc \
|
|
||||||
$$(INCLUDE) \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_api,sw_rtfexport3,\
|
|
||||||
udkapi \
|
|
||||||
offapi \
|
|
||||||
oovbaapi \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_ure,sw_rtfexport3))
|
|
||||||
$(eval $(call gb_CppunitTest_use_vcl,sw_rtfexport3))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_rdb,sw_rtfexport3,services))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_configuration,sw_rtfexport3))
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
# vim: set noet sw=4 ts=4:
|
||||||
|
|||||||
@@ -9,52 +9,6 @@
|
|||||||
#
|
#
|
||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_CppunitTest,sw_rtfexport4))
|
$(eval $(call sw_rtfexport_test,4))
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_rtfexport4))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_add_exception_objects,sw_rtfexport4, \
|
|
||||||
sw/qa/extras/rtfexport/rtfexport4 \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_libraries,sw_rtfexport4, \
|
|
||||||
comphelper \
|
|
||||||
cppu \
|
|
||||||
cppuhelper \
|
|
||||||
sal \
|
|
||||||
svl \
|
|
||||||
sfx \
|
|
||||||
sw \
|
|
||||||
swqahelper \
|
|
||||||
test \
|
|
||||||
unotest \
|
|
||||||
utl \
|
|
||||||
tl \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_externals,sw_rtfexport4,\
|
|
||||||
boost_headers \
|
|
||||||
libxml2 \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_set_include,sw_rtfexport4,\
|
|
||||||
-I$(SRCDIR)/sw/inc \
|
|
||||||
-I$(SRCDIR)/sw/source/core/inc \
|
|
||||||
-I$(SRCDIR)/sw/qa/inc \
|
|
||||||
$$(INCLUDE) \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_api,sw_rtfexport4,\
|
|
||||||
udkapi \
|
|
||||||
offapi \
|
|
||||||
oovbaapi \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_ure,sw_rtfexport4))
|
|
||||||
$(eval $(call gb_CppunitTest_use_vcl,sw_rtfexport4))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_rdb,sw_rtfexport4,services))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_configuration,sw_rtfexport4))
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
# vim: set noet sw=4 ts=4:
|
||||||
|
|||||||
@@ -9,53 +9,6 @@
|
|||||||
#
|
#
|
||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_CppunitTest,sw_rtfexport5))
|
$(eval $(call sw_rtfexport_test,5))
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_rtfexport5))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_add_exception_objects,sw_rtfexport5, \
|
|
||||||
sw/qa/extras/rtfexport/rtfexport5 \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_libraries,sw_rtfexport5, \
|
|
||||||
comphelper \
|
|
||||||
cppu \
|
|
||||||
cppuhelper \
|
|
||||||
i18nlangtag \
|
|
||||||
sal \
|
|
||||||
sfx \
|
|
||||||
sw \
|
|
||||||
swqahelper \
|
|
||||||
test \
|
|
||||||
unotest \
|
|
||||||
utl \
|
|
||||||
vcl \
|
|
||||||
tl \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_externals,sw_rtfexport5,\
|
|
||||||
boost_headers \
|
|
||||||
libxml2 \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_set_include,sw_rtfexport5,\
|
|
||||||
-I$(SRCDIR)/sw/inc \
|
|
||||||
-I$(SRCDIR)/sw/source/core/inc \
|
|
||||||
-I$(SRCDIR)/sw/qa/inc \
|
|
||||||
$$(INCLUDE) \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_api,sw_rtfexport5,\
|
|
||||||
udkapi \
|
|
||||||
offapi \
|
|
||||||
oovbaapi \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_ure,sw_rtfexport5))
|
|
||||||
$(eval $(call gb_CppunitTest_use_vcl,sw_rtfexport5))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_rdb,sw_rtfexport5,services))
|
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_use_configuration,sw_rtfexport5))
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
# vim: set noet sw=4 ts=4:
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
include $(SRCDIR)/sw/layoutwriter_setup.mk
|
include $(SRCDIR)/sw/layoutwriter_setup.mk
|
||||||
include $(SRCDIR)/sw/ooxmlexport_setup.mk
|
include $(SRCDIR)/sw/ooxmlexport_setup.mk
|
||||||
|
include $(SRCDIR)/sw/rtfexport_setup.mk
|
||||||
include $(SRCDIR)/sw/uiwriter_setup.mk
|
include $(SRCDIR)/sw/uiwriter_setup.mk
|
||||||
include $(SRCDIR)/sw/ww8export_setup.mk
|
include $(SRCDIR)/sw/ww8export_setup.mk
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
||||||
|
#*************************************************************************
|
||||||
|
#
|
||||||
|
# This file is part of the LibreOffice project.
|
||||||
|
#
|
||||||
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
#
|
||||||
|
#*************************************************************************
|
||||||
|
|
||||||
|
# template for rtfexport tests
|
||||||
|
define sw_rtfexport_test
|
||||||
|
|
||||||
|
$(eval $(call gb_CppunitTest_CppunitTest,sw_rtfexport$(1)))
|
||||||
|
|
||||||
|
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_rtfexport$(1)))
|
||||||
|
|
||||||
|
$(eval $(call gb_CppunitTest_add_exception_objects,sw_rtfexport$(1), \
|
||||||
|
sw/qa/extras/rtfexport/rtfexport$(1) \
|
||||||
|
))
|
||||||
|
|
||||||
|
$(eval $(call gb_CppunitTest_use_libraries,sw_rtfexport$(1), \
|
||||||
|
comphelper \
|
||||||
|
cppu \
|
||||||
|
cppuhelper \
|
||||||
|
i18nlangtag \
|
||||||
|
sal \
|
||||||
|
sfx \
|
||||||
|
svl \
|
||||||
|
sw \
|
||||||
|
swqahelper \
|
||||||
|
test \
|
||||||
|
unotest \
|
||||||
|
utl \
|
||||||
|
vcl \
|
||||||
|
tl \
|
||||||
|
))
|
||||||
|
|
||||||
|
$(eval $(call gb_CppunitTest_use_externals,sw_rtfexport$(1),\
|
||||||
|
boost_headers \
|
||||||
|
libxml2 \
|
||||||
|
))
|
||||||
|
|
||||||
|
$(eval $(call gb_CppunitTest_set_include,sw_rtfexport$(1),\
|
||||||
|
-I$(SRCDIR)/sw/inc \
|
||||||
|
-I$(SRCDIR)/sw/source/core/inc \
|
||||||
|
-I$(SRCDIR)/sw/qa/inc \
|
||||||
|
$$(INCLUDE) \
|
||||||
|
))
|
||||||
|
|
||||||
|
$(eval $(call gb_CppunitTest_use_api,sw_rtfexport$(1),\
|
||||||
|
udkapi \
|
||||||
|
offapi \
|
||||||
|
oovbaapi \
|
||||||
|
))
|
||||||
|
|
||||||
|
$(eval $(call gb_CppunitTest_use_ure,sw_rtfexport$(1)))
|
||||||
|
$(eval $(call gb_CppunitTest_use_vcl,sw_rtfexport$(1)))
|
||||||
|
|
||||||
|
$(eval $(call gb_CppunitTest_use_rdb,sw_rtfexport$(1),services))
|
||||||
|
|
||||||
|
$(eval $(call gb_CppunitTest_use_configuration,sw_rtfexport$(1)))
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
|
# vim: set noet sw=4 ts=4:
|
||||||
Reference in New Issue
Block a user