diff options
-rw-r--r-- | sc/CppunitTest_sc_macros_test.mk | 1 | ||||
-rw-r--r-- | sc/CppunitTest_sc_vba_macro_test.mk | 82 | ||||
-rw-r--r-- | sc/Module_sc.mk | 1 | ||||
-rw-r--r-- | sc/qa/extras/vba-macro-test.cxx | 2 |
4 files changed, 85 insertions, 1 deletions
diff --git a/sc/CppunitTest_sc_macros_test.mk b/sc/CppunitTest_sc_macros_test.mk index f5dabb960015..a6dd427cde67 100644 --- a/sc/CppunitTest_sc_macros_test.mk +++ b/sc/CppunitTest_sc_macros_test.mk @@ -19,7 +19,6 @@ $(eval $(call gb_CppunitTest_use_common_precompiled_header,sc_macros_test)) $(eval $(call gb_CppunitTest_add_exception_objects,sc_macros_test, \ sc/qa/extras/macros-test \ - sc/qa/extras/vba-macro-test \ )) $(eval $(call gb_CppunitTest_use_libraries,sc_macros_test, \ diff --git a/sc/CppunitTest_sc_vba_macro_test.mk b/sc/CppunitTest_sc_vba_macro_test.mk new file mode 100644 index 000000000000..e648d1240213 --- /dev/null +++ b/sc/CppunitTest_sc_vba_macro_test.mk @@ -0,0 +1,82 @@ +# -*- 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,sc_vba_macro_test)) + +$(eval $(call gb_CppunitTest_use_externals,sc_vba_macro_test, \ + boost_headers \ + mdds_headers \ + libxml2 \ +)) + +$(eval $(call gb_CppunitTest_use_common_precompiled_header,sc_vba_macro_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_vba_macro_test, \ + sc/qa/extras/vba-macro-test \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_vba_macro_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + drawinglayercore \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sb \ + sc \ + scqahelper \ + sfx \ + sot \ + subsequenttest \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + $(call gb_Helper_optional,SCRIPTING, \ + vbahelper) \ + vcl \ + xo \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_vba_macro_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + -I$(SRCDIR)/sc/qa/unit \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_vba_macro_test,\ + offapi \ + oovbaapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_vba_macro_test)) +$(eval $(call gb_CppunitTest_use_vcl,sc_vba_macro_test)) + +$(eval $(call gb_CppunitTest_use_rdb,sc_vba_macro_test,services)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_vba_macro_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk index 6dde171ebdc8..5cea4b59d426 100644 --- a/sc/Module_sc.mk +++ b/sc/Module_sc.mk @@ -82,6 +82,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \ CppunitTest_sc_subsequent_export_test \ CppunitTest_sc_subsequent_export_test2 \ CppunitTest_sc_uicalc \ + CppunitTest_sc_vba_macro_test \ )) ifneq ($(ENABLE_JUMBO_SHEETS),) diff --git a/sc/qa/extras/vba-macro-test.cxx b/sc/qa/extras/vba-macro-test.cxx index 78f5b1c3f4b2..cb39490d29ae 100644 --- a/sc/qa/extras/vba-macro-test.cxx +++ b/sc/qa/extras/vba-macro-test.cxx @@ -781,4 +781,6 @@ void VBAMacroTest::testTdf149531() } CPPUNIT_TEST_SUITE_REGISTRATION(VBAMacroTest); +CPPUNIT_PLUGIN_IMPLEMENT(); + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |