kexi

kexi_export.h
1/* This file is part of the KDE project
2 Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl>
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _KEXI_EXPORT_H_
21#define _KEXI_EXPORT_H_
22
23#include <kexidb/kexidb_export.h>
24
25#ifdef MAKE_KEXICORE_LIB
26# define KEXICORE_EXPORT TDE_EXPORT
27#elif defined(KDE_MAKE_LIB)
28# define KEXICORE_EXPORT KDE_IMPORT
29#else
30# define KEXICORE_EXPORT
31#endif
32
33#ifdef MAKE_KEXIMAIN_LIB
34# define KEXIMAIN_EXPORT TDE_EXPORT
35#elif defined(KDE_MAKE_LIB)
36# define KEXIMAIN_EXPORT KDE_IMPORT
37#else
38# define KEXIMAIN_EXPORT
39#endif
40
41#ifdef MAKE_KEXITABLEFILTERS_LIB
42# define KEXITABLEFILTERS_EXPORT TDE_EXPORT
43#elif defined(KDE_MAKE_LIB)
44# define KEXITABLEFILTERS_EXPORT KDE_IMPORT
45#else
46# define KEXITABLEFILTERS_EXPORT //for apps
47#endif
48
49#ifdef MAKE_KEXIDATATABLE_LIB
50# define KEXIDATATABLE_EXPORT TDE_EXPORT
51#elif defined(KDE_MAKE_LIB)
52# define KEXIDATATABLE_EXPORT KDE_IMPORT
53#else
54# define KEXIDATATABLE_EXPORT //for apps
55#endif
56
57#ifndef KEXIEXTWIDGETS_EXPORT //tmp
58
59#ifdef MAKE_KEXIEXTWIDGETS_LIB
60# define KEXIEXTWIDGETS_EXPORT TDE_EXPORT
61#elif defined(KDE_MAKE_LIB)
62# define KEXIEXTWIDGETS_EXPORT KDE_IMPORT
63#else
64# define KEXIEXTWIDGETS_EXPORT //for apps
65#endif
66
67#endif
68
69#ifdef MAKE_KFORMEDITOR_LIB
70# define KFORMEDITOR_EXPORT TDE_EXPORT
71#elif defined(KDE_MAKE_LIB)
72# define KFORMEDITOR_EXPORT KDE_IMPORT
73#else
74# define KFORMEDITOR_EXPORT //for apps
75#endif
76
77#ifdef MAKE_KEXIPRJWIZARD_LIB
78# define KEXIPRJWIZARD_EXPORT TDE_EXPORT
79#elif defined(KDE_MAKE_LIB)
80# define KEXIPRJWIZARD_EXPORT KDE_IMPORT
81#else
82# define KEXIPRJWIZARD_EXPORT //for apps
83#endif
84
85#ifdef MAKE_KEXIFILTER_LIB
86# define KEXIFILTER_EXPORT TDE_EXPORT
87#elif defined(KDE_MAKE_LIB)
88# define KEXIFILTER_EXPORT KDE_IMPORT
89#else
90# define KEXIFILTER_EXPORT //for apps
91#endif
92
93#ifdef MAKE_KEXIWIDGETS_LIB
94# define KEXIWIDGETS_EXPORT TDE_EXPORT
95#elif defined(KDE_MAKE_LIB)
96# define KEXIWIDGETS_EXPORT KDE_IMPORT
97#else
98# define KEXIWIDGETS_EXPORT //for apps
99#endif
100
101#ifdef MAKE_KEXIUUID_LIB
102# define KEXIUUID_EXPORT TDE_EXPORT
103#else
104# define KEXIUUID_EXPORT //for apps
105#endif
106
107#ifdef MAKE_KEXIRELATIONSVIEW_LIB
108# define KEXIRELATIONSVIEW_EXPORT TDE_EXPORT
109#elif defined(KDE_MAKE_LIB)
110# define KEXIRELATIONSVIEW_EXPORT KDE_IMPORT
111#else
112# define KEXIRELATIONSVIEW_EXPORT //for apps
113#endif
114
115#ifdef MAKE_KEXIGUIUTILS_LIB
116# define KEXIGUIUTILS_EXPORT TDE_EXPORT
117#elif defined(KDE_MAKE_LIB)
118# define KEXIGUIUTILS_EXPORT KDE_IMPORT
119#else
120# define KEXIGUIUTILS_EXPORT //for apps
121#endif
122
123#ifdef MAKE_KROSS_MAIN_LIB
124# define KROSS_MAIN_EXPORT TDE_EXPORT
125#elif defined(KDE_MAKE_LIB)
126# define KROSS_MAIN_EXPORT KDE_IMPORT
127#else
128# define KROSS_MAIN_EXPORT //for apps
129#endif
130
131#ifdef MAKE_KEXIFORMUTILS_LIB
132# define KEXIFORMUTILS_EXPORT TDE_EXPORT
133#elif defined(KDE_MAKE_LIB)
134# define KEXIFORMUTILS_EXPORT KDE_IMPORT
135#else
136# define KEXIFORMUTILS_EXPORT //for apps
137#endif
138
139#ifdef MAKE_KEXIREPORTUTILS_LIB
140# define KEXIREPORTUTILS_EXPORT TDE_EXPORT
141#elif defined(KDE_MAKE_LIB)
142# define KEXIREPORTUTILS_EXPORT KDE_IMPORT
143#else
144# define KEXIREPORTUTILS_EXPORT //for apps
145#endif
146
147/* temporary */
148#ifndef KOPROPERTY_EXPORT
149# ifdef MAKE_KOPROPERTY_LIB
150# define KOPROPERTY_EXPORT TDE_EXPORT
151# elif defined(KDE_MAKE_LIB)
152# define KOPROPERTY_EXPORT KDE_IMPORT
153# else
154# define KOPROPERTY_EXPORT
155# endif
156#endif
157
158/* temporary */
159#ifndef KOMACRO_EXPORT
160# ifdef MAKE_KOMACRO_LIB
161# define KOMACRO_EXPORT TDE_EXPORT
162# elif defined(KDE_MAKE_LIB)
163# define KOMACRO_EXPORT KDE_IMPORT
164# else
165# define KOMACRO_EXPORT
166# endif
167#endif
168
169/* additional default options */
170#ifndef KEXI_NO_CTXT_HELP
171# define KEXI_NO_CTXT_HELP
172#endif
173# define KDE_CXXFLAGS
174
175/* -- compile-time settings -- */
176#if defined(TQ_WS_WIN) || defined(KEXI_OPTIONS)
177/* defined in a .pro file or 'KEXI_OPTIONS' env. variable */
178#else
179
180/* unfinished features visibility */
181/* -- undefined because people asked why these doesn't work: --
182# define KEXI_SHOW_UNIMPLEMENTED
183# define KEXI_STARTUP_SHOW_TEMPLATES
184# define KEXI_STARTUP_SHOW_RECENT
185# define KEXI_REPORTS_SUPPORT
186*/
187# define KEXI_NO_UNFINISHED
188# define KEXI_FORMS_SUPPORT
189//# define KEXI_NO_FEEDBACK_AGENT
190#endif
191
192#endif //KEXI_EXPORT_H