Commit 72c96cb7 authored by Thomas Zander's avatar Thomas Zander

Fixes: compile

Details: Add test EXPORT so the test can use this class

svn path=/trunk/koffice/; revision=886862
parent 7c03d4b5
......@@ -2,6 +2,11 @@ project(koffice)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
if(KDE4_BUILD_TESTS)
# only with this definition will the FOO_TEST_EXPORT macro do something
add_definitions(-DCOMPILING_TESTS)
endif(KDE4_BUILD_TESTS)
# define the generic version of the KOffice libraries here
# this makes it easy to advance it when the next KOffice release comes
set(GENERIC_KOFFICE_LIB_VERSION "5.0.0")
......
/*
This file is part of krita
Copyright (c) 2008 Boudewijn Rempt <boud@valdyas.org>
Copyright (c) 2008 Thomas Zander <zander@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
......@@ -58,4 +59,19 @@
#endif /* not windows */
/* Now the same for Krita*_TEST_EXPORT, if compiling with unit tests enabled */
#ifdef COMPILING_TESTS
#if defined _WIN32 || defined _WIN64
# if defined(MAKE_KRITAUI_LIB)
# define KRITAUI_TEST_EXPORT KDE_EXPORT
# else
# define KRITAUI_TEST_EXPORT KDE_IMPORT
# endif
# else /* not windows */
# define KRITAUI_TEST_EXPORT KDE_EXPORT
# endif
#else /* not compiling tests */
# define KRITAUI_TEST_EXPORT
#endif
#endif /* KRITA_EXPORT_H */
......@@ -24,6 +24,7 @@
#include <kis_types.h>
#include <kis_external_layer_iface.h>
#include <krita_export.h>
class QRect;
class QPainter;
......@@ -47,7 +48,7 @@ const QString KIS_SHAPE_LAYER_ID = "KisShapeLayer";
XXX: what about removing shapes?
*/
class KisShapeLayer : public KisExternalLayer, public KoShapeLayer
class KRITAUI_TEST_EXPORT KisShapeLayer : public KisExternalLayer, public KoShapeLayer
{
Q_OBJECT
......
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