libreoffice/sw/CppunitTest_sw_mailmerge.mk
Jan-Marek Glogowski bbf246e40c tdf#102010 Never overwrite MM files via UNO
Fixes the regression introduced by
  commit e637b6743a506ef74c93ccbe15ab6642f3baa34f

This commit removed the crazy bSubjectIsFilename handling,
where I didn't understood the case of bSubjectIsFilename
and a user supplied prefix.

Mail merge to files never overwrites an existing document,
but there is the special case, when a user selects a target
filename in the MM dialog for single file MM.

Should be fixed by a successive commmit, reverting this and
removing an existing file before starting the MM job.

Change-Id: Idda487023e6984de9c1e701fc088a6b7f92e9847
2016-11-25 16:27:06 +01:00

99 lines
2.6 KiB
Makefile

# -*- 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/.
#
$(eval $(call gb_CppunitTest_CppunitTest,sw_mailmerge))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_mailmerge, \
sw/qa/extras/mailmerge/mailmerge \
))
$(eval $(call gb_CppunitTest_use_libraries,sw_mailmerge, \
comphelper \
cppu \
cppuhelper \
sal \
sfx \
sw \
test \
tl \
unotest \
utl \
))
$(eval $(call gb_CppunitTest_use_externals,sw_mailmerge, \
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_use_sdk_api,sw_mailmerge))
$(eval $(call gb_CppunitTest_use_components,sw_mailmerge, \
basic/util/sb \
comphelper/util/comphelp \
configmgr/source/configmgr \
connectivity/source/cpool/dbpool2 \
connectivity/source/drivers/calc/calc \
connectivity/source/manager/sdbc2 \
dbaccess/source/filter/xml/dbaxml \
dbaccess/util/dba \
embeddedobj/util/embobj \
filter/source/config/cache/filterconfig1 \
filter/source/storagefilterdetect/storagefd \
forms/util/frm \
framework/util/fwk \
i18npool/util/i18npool \
lingucomponent/source/languageguessing/guesslang \
linguistic/source/lng \
oox/util/oox \
package/source/xstor/xstor \
package/util/package2 \
sax/source/expatwrap/expwrap \
sc/util/sc \
sc/util/scfilt \
sfx2/util/sfx \
sot/util/sot \
svl/source/fsstor/fsstorage \
svl/util/svl \
svtools/util/svt \
sw/util/sw \
sw/util/swd \
toolkit/util/tk \
ucb/source/core/ucb1 \
ucb/source/ucp/file/ucpfile1 \
ucb/source/ucp/tdoc/ucptdoc1 \
unotools/util/utl \
unoxml/source/rdf/unordf \
unoxml/source/service/unoxml \
uui/util/uui \
$(if $(filter-out MACOSX WNT,$(OS)), \
$(if $(ENABLE_HEADLESS),, \
vcl/vcl.unx \
) \
) \
xmloff/util/xo \
))
$(eval $(call gb_CppunitTest_use_instdir_configuration,sw_mailmerge))
$(eval $(call gb_CppunitTest_use_ure,sw_mailmerge))
$(eval $(call gb_CppunitTest_use_vcl,sw_mailmerge))
$(eval $(call gb_CppunitTest_set_include,sw_mailmerge,\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/core/inc \
-I$(SRCDIR)/sw/qa/extras/inc \
-I$(SRCDIR)/sw/source/uibase/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_uiconfigs,sw_mailmerge,\
modules/swriter \
))
# vim: set noet sw=4 ts=4: