summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-29 22:53:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-30 05:40:36 +0000
commit965f379b6ed2884f60b7fd6c0aae107fa5fceea7 (patch)
treeca3da58f75cf92f8fadd4f9ab481baf3125aa79f
parent11351e9a2e8f417772c33d36e5756c5e63d94984 (diff)
Break test::setUpVcl into a test-setupvcl library of its own
...so it can be gb_CppunitTest_use_library_objects-included in upcoming <https://gerrit.libreoffice.org/#/c/28322/> "tdf#99402: fix Metafile Font handling". Executable_pdf2xml.mk linked against test since b0da8f00a0d41f2b17639fcee4ed4956421e55c5 "Make pdf2xml usable at least from within buildenv again", but that seems unnecessary and would now cause problems when linking the pdf2xml executable on Linux, as the linker for whatever reason wouldn't find the libtest-setupvcl.so referenced from libtest.so, even though the latter has a proper DT_RPATH. Change-Id: Iba5d80266520ce1f5dafedffa520d18e853f7ec5 Reviewed-on: https://gerrit.libreoffice.org/28473 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--Repository.mk1
-rw-r--r--include/test/setupvcl.hxx2
-rw-r--r--include/test/testdllapi.hxx6
-rw-r--r--sdext/Executable_pdf2xml.mk1
-rw-r--r--test/Library_test-setupvcl.mk37
-rw-r--r--test/Library_test.mk2
-rw-r--r--test/Library_vclbootstrapprotector.mk2
-rw-r--r--test/Module_test.mk1
8 files changed, 48 insertions, 4 deletions
diff --git a/Repository.mk b/Repository.mk
index 03573fb27e32..23dc36533645 100644
--- a/Repository.mk
+++ b/Repository.mk
@@ -484,6 +484,7 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_NONE, \
smoketest \
subsequenttest \
test \
+ test-setupvcl \
testtools_cppobj \
testtools_bridgetest \
testtools_constructors \
diff --git a/include/test/setupvcl.hxx b/include/test/setupvcl.hxx
index b2b3afaf7b37..e7a1d08bba2c 100644
--- a/include/test/setupvcl.hxx
+++ b/include/test/setupvcl.hxx
@@ -17,7 +17,7 @@
namespace test {
// Calls InitVCL etc.; needed from multiple places in the test infrastructure:
-OOO_DLLPUBLIC_TEST void setUpVcl();
+OOO_DLLPUBLIC_TEST_SETUPVCL void setUpVcl();
}
diff --git a/include/test/testdllapi.hxx b/include/test/testdllapi.hxx
index 3e33b0b51ec0..c0a1eb02909b 100644
--- a/include/test/testdllapi.hxx
+++ b/include/test/testdllapi.hxx
@@ -28,6 +28,12 @@
#define OOO_DLLPUBLIC_TEST SAL_DLLPUBLIC_IMPORT
#endif
+#if defined OOO_DLLIMPLEMENTATION_TEST_SETUPVCL
+#define OOO_DLLPUBLIC_TEST_SETUPVCL SAL_DLLPUBLIC_EXPORT
+#else
+#define OOO_DLLPUBLIC_TEST_SETUPVCL SAL_DLLPUBLIC_IMPORT
+#endif
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sdext/Executable_pdf2xml.mk b/sdext/Executable_pdf2xml.mk
index 6dcb26f9fc2a..373f40da36fd 100644
--- a/sdext/Executable_pdf2xml.mk
+++ b/sdext/Executable_pdf2xml.mk
@@ -28,7 +28,6 @@ $(eval $(call gb_Executable_use_libraries,pdf2xml,\
comphelper \
cppu \
unotest \
- test \
cppuhelper \
sal \
))
diff --git a/test/Library_test-setupvcl.mk b/test/Library_test-setupvcl.mk
new file mode 100644
index 000000000000..dd48ad813758
--- /dev/null
+++ b/test/Library_test-setupvcl.mk
@@ -0,0 +1,37 @@
+# -*- 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_Library_Library,test-setupvcl))
+
+$(eval $(call gb_Library_add_defs,test-setupvcl,\
+ -DOOO_DLLIMPLEMENTATION_TEST_SETUPVCL \
+))
+
+$(eval $(call gb_Library_add_exception_objects,test-setupvcl, \
+ test/source/setupvcl \
+))
+
+$(eval $(call gb_Library_use_externals,test-setupvcl, \
+ boost_headers \
+))
+
+$(eval $(call gb_Library_use_libraries,test-setupvcl, \
+ comphelper \
+ cppu \
+ i18nlangtag \
+ sal \
+ tl \
+ utl \
+ vcl \
+ $(gb_UWINAPI) \
+))
+
+$(eval $(call gb_Library_use_sdk_api,test-setupvcl))
+
+# vim: set noet sw=4 ts=4:
diff --git a/test/Library_test.mk b/test/Library_test.mk
index c0f073b87975..c2fb00be1d98 100644
--- a/test/Library_test.mk
+++ b/test/Library_test.mk
@@ -30,6 +30,7 @@ $(eval $(call gb_Library_use_libraries,test,\
i18nlangtag \
sal \
svt \
+ test-setupvcl \
tl \
utl \
unotest \
@@ -48,7 +49,6 @@ $(eval $(call gb_Library_add_exception_objects,test,\
test/source/xmlwriter \
test/source/primitive2dxmldump \
test/source/screenshot_test \
- test/source/setupvcl \
))
# vim: set noet sw=4 ts=4:
diff --git a/test/Library_vclbootstrapprotector.mk b/test/Library_vclbootstrapprotector.mk
index d16145b4991d..eb19f860c0bd 100644
--- a/test/Library_vclbootstrapprotector.mk
+++ b/test/Library_vclbootstrapprotector.mk
@@ -23,7 +23,7 @@ $(eval $(call gb_Library_use_libraries,vclbootstrapprotector, \
cppu \
i18nlangtag \
sal \
- test \
+ test-setupvcl \
tl \
utl \
vcl \
diff --git a/test/Module_test.mk b/test/Module_test.mk
index 7482d280e94e..5e9bb15dacb7 100644
--- a/test/Module_test.mk
+++ b/test/Module_test.mk
@@ -13,6 +13,7 @@ ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
$(eval $(call gb_Module_add_targets,test,\
Library_test \
+ Library_test-setupvcl \
Library_subsequenttest \
Library_vclbootstrapprotector \
Package_unittest \