diff options
author | Tomofumi Yagi <yagitmknada@gmail.com> | 2020-09-16 18:11:22 +0900 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-09-30 10:18:23 +0200 |
commit | ef77a256de527f6d00212839e55f949024f2e7bc (patch) | |
tree | a116d76a0fe68f4f5e611452680db2e9f5c357d1 /sw/CppunitTest_sw_txtimport.mk | |
parent | 0b536d542fe937d221aa465775ece41104b1f0bb (diff) |
tdf#60145 sw: fix UTF-8 encoding without BOM is not detected
Writer can now detect Unicode type even if importing text file does not
have a BOM.
Change-Id: I70fa4145672d855f9ef9df040a930ff5d1564905
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102884
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw/CppunitTest_sw_txtimport.mk')
-rw-r--r-- | sw/CppunitTest_sw_txtimport.mk | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/sw/CppunitTest_sw_txtimport.mk b/sw/CppunitTest_sw_txtimport.mk new file mode 100644 index 000000000000..646a2ea83391 --- /dev/null +++ b/sw/CppunitTest_sw_txtimport.mk @@ -0,0 +1,63 @@ +# -*- 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_txtimport)) + +$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_txtimport)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sw_txtimport, \ + sw/qa/extras/txtimport/txtimport \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sw_txtimport, \ + comphelper \ + cppu \ + cppuhelper \ + i18nlangtag \ + sal \ + sfx \ + sw \ + swqahelper \ + test \ + tl \ + unotest \ + utl \ + vcl \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sw_txtimport,\ + boost_headers \ + libxml2 \ +)) + +$(eval $(call gb_CppunitTest_set_include,sw_txtimport,\ + -I$(SRCDIR)/sw/inc \ + -I$(SRCDIR)/sw/source/core/inc \ + -I$(SRCDIR)/sw/source/uibase/inc \ + -I$(SRCDIR)/sw/qa/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sw_txtimport,\ + udkapi \ + offapi \ + oovbaapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sw_txtimport)) +$(eval $(call gb_CppunitTest_use_vcl,sw_txtimport)) + +$(eval $(call gb_CppunitTest_use_rdb,sw_txtimport,services)) + +$(eval $(call gb_CppunitTest_use_configuration,sw_txtimport)) + +# vim: set noet sw=4 ts=4: |