Kaydet (Commit) 40f9be70 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: move the uitest files to vcl

This allows us to use them in vcl as well without introducing dependency
problems.

Change-Id: Ib97af2d559902f1a6b47f9255bb0426411670647
üst dde9b4d8
...@@ -486,7 +486,6 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_NONE, \ ...@@ -486,7 +486,6 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_NONE, \
testtools_cppobj \ testtools_cppobj \
testtools_bridgetest \ testtools_bridgetest \
testtools_constructors \ testtools_constructors \
uitest \
unobootstrapprotector \ unobootstrapprotector \
unoexceptionprotector \ unoexceptionprotector \
unotest \ unotest \
......
...@@ -28,12 +28,6 @@ ...@@ -28,12 +28,6 @@
#define OOO_DLLPUBLIC_TEST SAL_DLLPUBLIC_IMPORT #define OOO_DLLPUBLIC_TEST SAL_DLLPUBLIC_IMPORT
#endif #endif
#if defined DLLIMPLEMENTATION_UITEST
#define UITEST_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define UITEST_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -29,6 +29,12 @@ ...@@ -29,6 +29,12 @@
#define VCL_DLLPUBLIC SAL_DLLPUBLIC_IMPORT #define VCL_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif #endif
#if defined DLLIMPLEMENTATION_UITEST
#define UITEST_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define UITEST_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#if defined UNX && ! defined MACOS #if defined UNX && ! defined MACOS
#define VCL_PLUGIN_PUBLIC VCL_DLLPUBLIC #define VCL_PLUGIN_PUBLIC VCL_DLLPUBLIC
#else #else
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include <memory> #include <memory>
#include <vcl/window.hxx> #include <vcl/window.hxx>
#include <test/testdllapi.hxx> #include <vcl/dllapi.h>
enum class UIObjectType enum class UIObjectType
{ {
......
...@@ -7,12 +7,11 @@ ...@@ -7,12 +7,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#include <test/testdllapi.hxx> #include <vcl/dllapi.h>
class UITEST_DLLPUBLIC UITest class UITEST_DLLPUBLIC UITest
{ {
public: public:
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
# -*- 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,uitest))
$(eval $(call gb_Library_add_defs,uitest,\
-DDLLIMPLEMENTATION_UITEST \
))
$(eval $(call gb_Library_use_sdk_api,uitest))
$(eval $(call gb_Library_use_externals,uitest,\
boost_headers \
cppunit \
libxml2 \
))
$(eval $(call gb_Library_use_libraries,uitest,\
basegfx \
comphelper \
cppu \
cppuhelper \
drawinglayer \
i18nlangtag \
sal \
svt \
tl \
unotest \
utl \
vcl \
$(gb_UWINAPI) \
))
$(eval $(call gb_Library_add_exception_objects,uitest,\
test/source/uitest/uitest \
test/source/uitest/uiobject \
))
# vim: set noet sw=4 ts=4:
...@@ -14,7 +14,6 @@ ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) ...@@ -14,7 +14,6 @@ ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
$(eval $(call gb_Module_add_targets,test,\ $(eval $(call gb_Module_add_targets,test,\
Library_test \ Library_test \
Library_subsequenttest \ Library_subsequenttest \
Library_uitest \
Library_vclbootstrapprotector \ Library_vclbootstrapprotector \
Package_unittest \ Package_unittest \
)) ))
......
...@@ -46,6 +46,7 @@ $(eval $(call gb_Library_set_include,vcl,\ ...@@ -46,6 +46,7 @@ $(eval $(call gb_Library_set_include,vcl,\
$(eval $(call gb_Library_add_defs,vcl,\ $(eval $(call gb_Library_add_defs,vcl,\
-DVCL_DLLIMPLEMENTATION \ -DVCL_DLLIMPLEMENTATION \
-DDLLIMPLEMENTATION_UITEST \
-DCUI_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,cui))\" \ -DCUI_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,cui))\" \
-DDESKTOP_DETECTOR_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,desktop_detector))\" \ -DDESKTOP_DETECTOR_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,desktop_detector))\" \
-DTK_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,tk))\" \ -DTK_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,tk))\" \
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#include <test/uiobject.hxx> #include <vcl/uitest/uiobject.hxx>
#include <iostream> #include <iostream>
...@@ -39,7 +39,6 @@ std::unique_ptr<UIObject> UIObject::get_child(const OUString&) ...@@ -39,7 +39,6 @@ std::unique_ptr<UIObject> UIObject::get_child(const OUString&)
return std::unique_ptr<UIObject>(); return std::unique_ptr<UIObject>();
} }
WindowUIObject::WindowUIObject(VclPtr<vcl::Window> xWindow): WindowUIObject::WindowUIObject(VclPtr<vcl::Window> xWindow):
mxWindow(xWindow) mxWindow(xWindow)
{ {
......
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#include <test/uitest.hxx> #include <vcl/uitest/uitest.hxx>
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment