Separate kritabrush_export.h out of krita_export.h

parent 2f347028
......@@ -59,21 +59,12 @@
# endif
#endif
#ifndef BRUSH_EXPORT
# ifdef MAKE_KRITALIBBRUSH_LIB
# define BRUSH_EXPORT KDE_EXPORT
# else
# define BRUSH_EXPORT KDE_IMPORT
# endif
#endif
#else // not windows
#define KRITASKETCH_EXPORT KDE_EXPORT
#define KRITAUI_EXPORT KDE_EXPORT
#define KRITAIMAGE_EXPORT KDE_EXPORT
#define PAINTOP_EXPORT KDE_EXPORT
#define BRUSH_EXPORT KDE_EXPORT
#endif /* not windows */
......
......@@ -28,7 +28,7 @@
#include "kis_shared.h"
#include "kis_paint_information.h"
#include "kis_abr_brush_collection.h"
#include "krita_export.h"
#include "kritabrush_export.h"
class KisQImagemask;
typedef KisSharedPtr<KisQImagemask> KisQImagemaskSP;
......
......@@ -19,7 +19,7 @@
#ifndef _KIS_AUTOBRUSH_RESOURCE_H_
#define _KIS_AUTOBRUSH_RESOURCE_H_
#include "krita_export.h"
#include "kritabrush_export.h"
#include "kis_brush.h"
class KisMaskGenerator;
......
......@@ -22,7 +22,7 @@
#include <QPair>
#include <QPainter>
#include <krita_export.h>
#include <kritabrush_export.h>
#include "kis_types.h"
......
......@@ -26,7 +26,7 @@
#include <kis_types.h>
#include <kis_shared.h>
#include <krita_export.h>
#include <kritabrush_export.h>
class KisQImagemask;
typedef KisSharedPtr<KisQImagemask> KisQImagemaskSP;
......
......@@ -24,7 +24,7 @@
#include "kis_types.h"
#include "KoGenericRegistry.h"
#include <krita_export.h>
#include <kritabrush_export.h>
#include "kis_brush.h"
#include "kis_brush_factory.h"
......
......@@ -25,7 +25,7 @@
#include <KoResourceServer.h>
#include <KoResourceServerAdapter.h>
#include "krita_export.h"
#include "kritabrush_export.h"
#include "kis_brush.h"
class KoResource;
......
......@@ -28,7 +28,7 @@
#include "kis_shared.h"
#include "kis_paint_information.h"
#include "krita_export.h"
#include "kritabrush_export.h"
class KisQImagemask;
typedef KisSharedPtr<KisQImagemask> KisQImagemaskSP;
......
......@@ -21,7 +21,7 @@
#include <QImage>
#include <QVector>
#include <krita_export.h>
#include <kritabrush_export.h>
class BRUSH_EXPORT KisQImagePyramid
......
......@@ -23,7 +23,7 @@
#include <QFont>
#include "kis_brush.h"
#include "krita_export.h"
#include "kritabrush_export.h"
#include "kis_gbr_brush.h"
class KisTextBrushesPipe;
......
/*
This file is part of krita
Copyright (c) 2015 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef KRITABRUSH_EXPORT_H
#define KRITABRUSH_EXPORT_H
#include <kdemacros.h>
/* We use _WIN32/_WIN64 instead of Q_OS_WIN so that this header can be used from C files too */
#if defined(_WIN32) || defined(_WIN64)
#ifndef BRUSH_EXPORT
# ifdef MAKE_KRITALIBBRUSH_LIB
# define BRUSH_EXPORT KDE_EXPORT
# else
# define BRUSH_EXPORT KDE_IMPORT
# endif
#endif
#else // not windows
#define BRUSH_EXPORT KDE_EXPORT
#endif /* not windows */
#endif /* KRITABRUSH_EXPORT_H */
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