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, \
testtools_cppobj \
testtools_bridgetest \
testtools_constructors \
uitest \
unobootstrapprotector \
unoexceptionprotector \
unotest \
......
......@@ -28,12 +28,6 @@
#define OOO_DLLPUBLIC_TEST SAL_DLLPUBLIC_IMPORT
#endif
#if defined DLLIMPLEMENTATION_UITEST
#define UITEST_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define UITEST_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -29,6 +29,12 @@
#define VCL_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#if defined DLLIMPLEMENTATION_UITEST
#define UITEST_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define UITEST_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#if defined UNX && ! defined MACOS
#define VCL_PLUGIN_PUBLIC VCL_DLLPUBLIC
#else
......
......@@ -12,7 +12,7 @@
#include <memory>
#include <vcl/window.hxx>
#include <test/testdllapi.hxx>
#include <vcl/dllapi.h>
enum class UIObjectType
{
......
......@@ -7,12 +7,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <test/testdllapi.hxx>
#include <vcl/dllapi.h>
class UITEST_DLLPUBLIC UITest
{
public:
};
/* 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)))
$(eval $(call gb_Module_add_targets,test,\
Library_test \
Library_subsequenttest \
Library_uitest \
Library_vclbootstrapprotector \
Package_unittest \
))
......
......@@ -46,6 +46,7 @@ $(eval $(call gb_Library_set_include,vcl,\
$(eval $(call gb_Library_add_defs,vcl,\
-DVCL_DLLIMPLEMENTATION \
-DDLLIMPLEMENTATION_UITEST \
-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))\" \
-DTK_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,tk))\" \
......
......@@ -7,7 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <test/uiobject.hxx>
#include <vcl/uitest/uiobject.hxx>
#include <iostream>
......@@ -39,7 +39,6 @@ std::unique_ptr<UIObject> UIObject::get_child(const OUString&)
return std::unique_ptr<UIObject>();
}
WindowUIObject::WindowUIObject(VclPtr<vcl::Window> xWindow):
mxWindow(xWindow)
{
......
......@@ -7,6 +7,6 @@
* 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: */
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