summaryrefslogtreecommitdiff
path: root/test
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 /test
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>
Diffstat (limited to 'test')
-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
4 files changed, 40 insertions, 2 deletions
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 \