summaryrefslogtreecommitdiffstats
path: root/win/tdelibs_export_win.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-16 16:06:07 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-16 16:06:07 -0600
commitb63b93fb56b967427b1e3ac1b8adb6d16c7d245f (patch)
tree4a3e013842336b7511f911586b23e45fadfdc9dd /win/tdelibs_export_win.h
parent0722ee612ec7e4364c7c604bdec429c35c3e0048 (diff)
downloadtdelibs-b63b93fb56b967427b1e3ac1b8adb6d16c7d245f.tar.gz
tdelibs-b63b93fb56b967427b1e3ac1b8adb6d16c7d245f.zip
Finish rename from prior commit
Diffstat (limited to 'win/tdelibs_export_win.h')
-rw-r--r--win/tdelibs_export_win.h152
1 files changed, 152 insertions, 0 deletions
diff --git a/win/tdelibs_export_win.h b/win/tdelibs_export_win.h
new file mode 100644
index 000000000..17663a5fa
--- /dev/null
+++ b/win/tdelibs_export_win.h
@@ -0,0 +1,152 @@
+/*
+ This file is part of the KDE libraries
+ Copyright (C) 2004 Jaroslaw Staniek <js@iidea.pl>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License version 2 as published by the Free Software Foundation.
+
+ 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.
+*/
+
+#include <io.h> /* to avoid #includes */
+
+#define KPATH_SEPARATOR ';'
+#define popen _popen
+#define pclose _pclose
+
+#define KDE_IMPORT __declspec(dllimport)
+
+#ifdef MAKE_TDECORE_LIB
+# define TDECORE_EXPORT KDE_EXPORT
+#else
+# ifndef TDECORE_EXPORT
+# define TDECORE_EXPORT KDE_IMPORT //for apps and other libs
+# endif
+#endif
+
+#ifdef MAKE_KDEWIN32_LIB
+# define KDEWIN32_EXPORT KDE_EXPORT
+#else
+# define KDEWIN32_EXPORT KDE_IMPORT
+#endif
+
+/* some classes, i.e. KDock* already use EXPORT_* macro: define it too */
+#ifdef MAKE_TDEUI_LIB
+# define TDEUI_EXPORT KDE_EXPORT
+# define EXPORT_DOCKCLASS KDE_EXPORT
+#elif KDE_MAKE_LIB
+# define TDEUI_EXPORT KDE_IMPORT
+# define EXPORT_DOCKCLASS KDE_IMPORT /* for library build export docklass by default */
+#else
+# define TDEUI_EXPORT
+# define EXPORT_DOCKCLASS
+#endif
+
+#ifdef MAKE_TDEFX_LIB
+# define TDEFX_EXPORT KDE_EXPORT
+#else
+# define TDEFX_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_TDEPRINT_LIB
+# define TDEPRINT_EXPORT KDE_EXPORT
+#else
+# define TDEPRINT_EXPORT KDE_IMPORT
+#endif
+
+#ifndef KIO_EXPORT
+# ifdef MAKE_KIO_LIB
+# define KIO_EXPORT KDE_EXPORT
+# else
+# define KIO_EXPORT KDE_IMPORT
+# endif
+#endif
+
+#ifdef MAKE_DCOP_LIB
+# define DCOP_EXPORT KDE_EXPORT
+#else
+# define DCOP_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_KPARTS_LIB
+# define KPARTS_EXPORT KDE_EXPORT
+#else
+# define KPARTS_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_KTEXTEDITOR_LIB
+# define KTEXTEDITOR_EXPORT KDE_EXPORT
+#else
+# define KTEXTEDITOR_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_KABC_LIB
+# define KABC_EXPORT KDE_EXPORT
+#else
+# define KABC_EXPORT KDE_IMPORT
+#endif
+
+
+#ifdef MAKE_KVCARD_LIB
+# define KVCARD_EXPORT KDE_EXPORT
+#else
+# define KVCARD_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_KRESOURCES_LIB
+# define KRESOURCES_EXPORT KDE_EXPORT
+#else
+# define KRESOURCES_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_TDESU_LIB
+# define TDESU_EXPORT KDE_EXPORT
+#else
+# define TDESU_EXPORT KDE_IMPORT
+#endif
+
+// all KStyle libs
+#ifdef MAKE_KSTYLE_LIB
+# define KSTYLE_EXPORT KDE_EXPORT
+#else
+# define KSTYLE_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_KMDI_LIB
+# define KMDI_EXPORT KDE_EXPORT
+#else
+# define KMDI_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_KUTILS_LIB
+# define KUTILS_EXPORT KDE_EXPORT
+#else
+# define KUTILS_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_KATEPARTINTERFACES_LIB
+# define KATEPARTINTERFACES_EXPORT KDE_EXPORT
+#else
+# define KATEPARTINTERFACES_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_KATEPART_LIB
+# define KATEPART_EXPORT KDE_EXPORT
+#else
+# define KATEPART_EXPORT KDE_IMPORT
+#endif
+
+#ifdef MAKE_KHTML_LIB
+# define KHTML_EXPORT KDE_EXPORT
+#else
+# define KHTML_EXPORT KDE_IMPORT
+#endif