Soprano 2.9.4
soprano_export.h
Go to the documentation of this file.
1/*
2 * This file is part of Soprano Project
3 *
4 * Copyright (C) 2006 Kevin Ottens <ervin@kde.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 */
21
22#ifndef SOPRANO_EXPORT_H
23#define SOPRANO_EXPORT_H
24
25/* needed for KDE_EXPORT and KDE_IMPORT macros */
26#include <QtCore/QtGlobal>
27
28#ifndef SOPRANO_EXPORT
29# if defined(SOPRANO_STATIC_LIBS)
30 /* No export/import for static libraries */
31# define SOPRANO_EXPORT
32# elif defined(MAKE_SOPRANO_LIB)
33 /* We are building this library */
34# define SOPRANO_EXPORT Q_DECL_EXPORT
35# else
36 /* We are using this library */
37# define SOPRANO_EXPORT Q_DECL_IMPORT
38# endif
39#endif
40
41#ifndef SOPRANO_SERVER_EXPORT
42# if defined(SOPRANO_STATIC_LIBS)
43 /* No export/import for static libraries */
44# define SOPRANO_SERVER_EXPORT
45# elif defined(MAKE_SOPRANO_SERVER_LIB)
46 /* We are building this library */
47# define SOPRANO_SERVER_EXPORT Q_DECL_EXPORT
48# else
49 /* We are using this library */
50# define SOPRANO_SERVER_EXPORT Q_DECL_IMPORT
51# endif
52#endif
53
54#ifndef SOPRANO_CLIENT_EXPORT
55# if defined(SOPRANO_STATIC_LIBS)
56 /* No export/import for static libraries */
57# define SOPRANO_CLIENT_EXPORT
58# elif defined(MAKE_SOPRANO_CLIENT_LIB)
59 /* We are building this library */
60# define SOPRANO_CLIENT_EXPORT Q_DECL_EXPORT
61# else
62 /* We are using this library */
63# define SOPRANO_CLIENT_EXPORT Q_DECL_IMPORT
64# endif
65#endif
66
67#ifndef SOPRANO_INDEX_EXPORT
68# if defined(MAKE_SOPRANO_INDEX_LIB)
69 /* We are building this library */
70# define SOPRANO_INDEX_EXPORT Q_DECL_EXPORT
71# else
72 /* We are using this library */
73# define SOPRANO_INDEX_EXPORT Q_DECL_IMPORT
74# endif
75#endif
76
77#endif