COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coExport.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef CO_EXPORT_H
9 #define CO_EXPORT_H
10 
11 /* ---------------------------------------------------------------------- //
12 // //
13 // //
14 // Description: DLL EXPORT/IMPORT specification and type definitions //
15 // //
16 // //
17 // //
18 // //
19 // //
20 // //
21 // (C)2003 HLRS //
22 // Author: Uwe Woessner, Ruth Lang //
23 // Date: 30.10.03 V1.0 */
24 
25 #if defined(__APPLE__) || defined(CO_rhel3) || (defined(CO_ia64icc) && (__GNUC__ >= 4))
26 #define EXPORT_TEMPLATE(x)
27 #define EXPORT_TEMPLATE2(x, y)
28 #define EXPORT_TEMPLATE3(x, y, z)
29 #define INST_TEMPLATE1(x)
30 #define INST_TEMPLATE2(x, y)
31 #define INST_TEMPLATE3(x, y, z)
32 #else
33 #define EXPORT_TEMPLATE(x) x;
34 #define EXPORT_TEMPLATE2(x, y) x, y;
35 #define EXPORT_TEMPLATE3(x, y, z) x, y, z;
36 #define INST_TEMPLATE1(x) x;
37 #define INST_TEMPLATE2(x, y) x, y;
38 #define INST_TEMPLATE3(x, y, z) x, y, z;
39 #endif
40 
41 #if defined(_WIN32) && !defined(NODLL)
42 #define COIMPORT __declspec(dllimport)
43 #define COEXPORT __declspec(dllexport)
44 
45 #elif(defined(__GNUC__) && __GNUC__ >= 4 && !defined(CO_ia64icc)) || defined(__clang__)
46 #define COEXPORT __attribute__((visibility("default")))
47 #define COIMPORT COEXPORT
48 
49 #else
50 #define COIMPORT
51 #define COEXPORT
52 #endif
53 
54 #if defined(COVISE_APPL)
55 #define APPLEXPORT COEXPORT
56 #else
57 #define APPLEXPORT COIMPORT
58 #endif
59 
60 #if defined(COVISE_VR_INTERACTOR)
61 #define VR_INTERACTOR_EXPORT COEXPORT
62 #else
63 #define VR_INTERACTOR_EXPORT COIMPORT
64 #endif
65 
66 #if defined(COVISE_OSGVRUI)
67 #define OSGVRUIEXPORT COEXPORT
68 #else
69 #define OSGVRUIEXPORT COIMPORT
70 #endif
71 
72 #if defined(SG_VRUI)
73 #define SGVRUIEXPORT COEXPORT
74 #else
75 #define SGVRUIEXPORT COIMPORT
76 #endif
77 
78 #if defined(COVISE_VRB)
79 #define VRBEXPORT COEXPORT
80 #else
81 #define VRBEXPORT COIMPORT
82 #endif
83 
84 #if defined(COVISE_FILE)
85 #define FILEEXPORT COEXPORT
86 #else
87 #define FILEEXPORT COIMPORT
88 #endif
89 
90 #if defined(COVISE_GPU)
91 #define GPUEXPORT COEXPORT
92 #else
93 #define GPUEXPORT COIMPORT
94 #endif
95 
96 #if defined(COIMAGE_EXPORT)
97 #define COIMAGEEXPORT COEXPORT
98 #else
99 #define COIMAGEEXPORT COIMPORT
100 #endif
101 #if defined(IMPORT_PLUGIN)
102 #define PLUGINEXPORT COEXPORT
103 #else
104 #define PLUGINEXPORT COIMPORT
105 #endif
106 
107 #if defined(ROADTERRAIN_PLUGIN)
108 #define ROADTERRAINPLUGINEXPORT COEXPORT
109 #else
110 #define ROADTERRAINPLUGINEXPORT COIMPORT
111 #endif
112 
113 #if defined(VEHICLE_UTIL)
114 #define VEHICLEUTILEXPORT COEXPORT
115 #else
116 #define VEHICLEUTILEXPORT COIMPORT
117 #endif
118 
119 #if defined(VRML97_IMPORT_PLUGIN)
120 #define VRML97PLUGINEXPORT COEXPORT
121 #else
122 #define VRML97PLUGINEXPORT COIMPORT
123 #endif
124 
125 #if defined(Vrml97Cover_EXPORTS)
126 #define VRML97COVEREXPORT COEXPORT
127 #else
128 #define VRML97COVEREXPORT COIMPORT
129 #endif
130 
131 #if defined(COVISEPluginUtil_EXPORTS)
132 #define COVISEPLUGINEXPORT COEXPORT
133 #else
134 #define COVISEPLUGINEXPORT COIMPORT
135 #endif
136 
137 #if defined(COVISE_VRUI)
138 #define VRUIEXPORT COEXPORT
139 #else
140 #define VRUIEXPORT COIMPORT
141 #endif
142 
143 #if defined(COVISE_PLUGIN_UTIL)
144 #define PLUGIN_UTILEXPORT COEXPORT
145 #else
146 #define PLUGIN_UTILEXPORT COIMPORT
147 #endif
148 
149 #if defined(input_legacy_EXPORTS)
150 #define INPUT_LEGACY_EXPORT COEXPORT
151 #else
152 #define INPUT_LEGACY_EXPORT COIMPORT
153 #endif
154 
155 #if defined(coOpenCOVER_EXPORTS)
156 #define COVEREXPORT COEXPORT
157 #else
158 #define COVEREXPORT COIMPORT
159 #endif
160 
161 #if defined(COVISE_PFIV)
162 #define PFIVEXPORT COEXPORT
163 #else
164 #define PFIVEXPORT COIMPORT
165 #endif
166 
167 #if defined(COVISE_PFOBJ)
168 #define PFOBJEXPORT COEXPORT
169 #else
170 #define PFOBJEXPORT COIMPORT
171 #endif
172 
173 #if defined(COVISE_COVISE)
174 #define COVISEEXPORT COEXPORT
175 #else
176 #define COVISEEXPORT COIMPORT
177 #endif
178 
179 #if defined(UTIL_EXPORTS) || defined(COVISE_UTIL)
180 #define UTILEXPORT COEXPORT
181 #else
182 #define UTILEXPORT COIMPORT
183 #endif
184 
185 #if defined(COVISE_STAR)
186 #define STAREXPORT COEXPORT
187 #else
188 #define STAREXPORT COIMPORT
189 #endif
190 
191 #if defined(COVISE_ENGINE)
192 #define ENGINEEXPORT COEXPORT
193 #else
194 #define ENGINEEXPORT COIMPORT
195 #endif
196 
197 #if defined(COVISE_READER)
198 #define READEREXPORT COEXPORT
199 #else
200 #define READEREXPORT COIMPORT
201 #endif
202 
203 #if defined(COVISE_COLORMAP)
204 #define CMAPEXPORT COEXPORT
205 #else
206 #define CMAPEXPORT COIMPORT
207 #endif
208 
209 #if defined(CONFIG_EXPORT)
210 #define CONFIGEXPORT COEXPORT
211 #else
212 #define CONFIGEXPORT COIMPORT
213 #endif
214 
215 #if defined(NET_EXPORT)
216 #define NETEXPORT COEXPORT
217 #else
218 #define NETEXPORT COIMPORT
219 #endif
220 
221 #if defined(REG_EXPORT)
222 #define REGEXPORT COEXPORT
223 #else
224 #define REGEXPORT COIMPORT
225 #endif
226 
227 /* tracker client */
228 #if defined(OSG_TCLIENT) && defined(_WIN32)
229 #define OSGTCLIENT COEXPORT
230 #else
231 #define OSGTCLIENT COIMPORT
232 #endif
233 
234 /* backend */
235 #if defined(WIN32DLL_VINCEBACKEND) && defined(_WIN32)
236 #define WIN32_DLL_VINCEBACKEND COEXPORT
237 #else
238 #define WIN32_DLL_VINCEBACKEND COIMPORT
239 #endif
240 
241 /* ViNCE renderer */
242 #if defined(VINCE_EXPORT) && defined(_WIN32)
243 #define VINCEEXPORT COEXPORT
244 #else
245 #define VINCEEXPORT COIMPORT
246 #endif
247 
248 #if defined(COVISE_API) || defined(YAC_API)
249 #define APIEXPORT COEXPORT
250 #else
251 #define APIEXPORT COIMPORT
252 #endif
253 
254 #if defined(COVISE_COMM) || defined(COMM_EXPORTS)
255 #define COMMEXPORT COEXPORT
256 #define COMMEXPORTONLY COEXPORT
257 #else
258 #define COMMEXPORT COIMPORT
259 #define COMMEXPORTONLY
260 #endif
261 
262 #if defined(SHM_EXPORTS)
263 #define SHMEXPORT COEXPORT
264 #else
265 #define SHMEXPORT COIMPORT
266 #endif
267 
268 #if defined(IMPORT_PLUGIN)
269 #define PLUGINEXPORT COEXPORT
270 #else
271 #define PLUGINEXPORT COIMPORT
272 #endif
273 
274 #if defined(YAC_JAVA_API)
275 #define JAVAAPIEXPORT COEXPORT
276 #else
277 #define JAVAAPIEXPORT COIMPORT
278 #endif
279 
280 #if defined(RENDERER_EXPORTS)
281 #define RENDEREXPORT COEXPORT
282 #else
283 #define RENDEREXPORT COIMPORT
284 #endif
285 
286 #if defined(CRYPT_EXPORTS)
287 #define CRYPTEXPORT COEXPORT
288 #else
289 #define CRYPTEXPORT COIMPORT
290 #endif
291 
292 #if defined(COVISE_THREAD) || defined(COVISE_THREADS) || defined(THREADS_EXPORTS)
293 #define THREADEXPORT COEXPORT
294 #else
295 #define THREADEXPORT COIMPORT
296 #endif
297 
298 #if defined(COVISE_DMGR) || defined(DMGR_EXPORTS)
299 #define DMGREXPORT COEXPORT
300 #else
301 #define DMGREXPORT COIMPORT
302 #endif
303 
304 #if defined(DO_EXPORTS) || defined(COVISE_DO)
305 #define DOEXPORT COEXPORT
306 #else
307 #define DOEXPORT COIMPORT
308 #endif
309 
310 #if defined(COVISE_ALG) || defined(ALG_EXPORTS)
311 #define ALGEXPORT COEXPORT
312 #else
313 #define ALGEXPORT COIMPORT
314 #endif
315 
316 #if defined(COVISE_GRMSG) || defined(GRMSGEXPORT)
317 #define GRMSGEXPORT COEXPORT
318 #else
319 #define GRMSGEXPORT COIMPORT
320 #endif
321 
322 #if defined(COVISE_VR_INTERACTOR)
323 #define VR_INTERACTOR_EXPORT COEXPORT
324 #else
325 #define VR_INTERACTOR_EXPORT COIMPORT
326 #endif
327 
328 #if defined(COVISE_OPENVRUI)
329 #define OPENVRUIEXPORT COEXPORT
330 #else
331 #define OPENVRUIEXPORT COIMPORT
332 #endif
333 
334 #if defined(CONFIG_EXPORT)
335 #define CONFIGEXPORT COEXPORT
336 #else
337 #define CONFIGEXPORT COIMPORT
338 #endif
339 
340 #if defined(NET_EXPORT)
341 #define NETEXPORT COEXPORT
342 #else
343 #define NETEXPORT COIMPORT
344 #endif
345 
346 #if defined(CONFIGEDITOR_EXPORT)
347 #define CONFIGEDITOREXPORT COEXPORT
348 #else
349 #define CONFIGEDITOREXPORT COIMPORT
350 #endif
351 
352 #if defined(WSLIB_EXPORT)
353 #define WSLIBEXPORT COEXPORT
354 #else
355 #define WSLIBEXPORT COIMPORT
356 #endif
357 
358 #if defined(UI_EXPORT)
359 #define UIEXPORT COEXPORT
360 #else
361 #define UIEXPORT COIMPORT
362 #endif
363 
364 #if defined(SCA_EXPORT)
365 #define SCAEXPORT COEXPORT
366 #else
367 #define SCAEXPORT COIMPORT
368 #endif
369 
370 #endif