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(coVRBServer_EXPORTS)
85 #define VRBSERVEREXPORT COEXPORT
86 #else
87 #define VRBSERVEREXPORT COIMPORT
88 #endif
89 
90 #if defined(COVISE_FILE)
91 #define FILEEXPORT COEXPORT
92 #else
93 #define FILEEXPORT COIMPORT
94 #endif
95 
96 #if defined(COVISE_GPU)
97 #define GPUEXPORT COEXPORT
98 #else
99 #define GPUEXPORT COIMPORT
100 #endif
101 
102 #if defined(COIMAGE_EXPORT)
103 #define COIMAGEEXPORT COEXPORT
104 #else
105 #define COIMAGEEXPORT COIMPORT
106 #endif
107 #if defined(IMPORT_PLUGIN)
108 #define PLUGINEXPORT COEXPORT
109 #else
110 #define PLUGINEXPORT COIMPORT
111 #endif
112 
113 #if defined(ROADTERRAIN_PLUGIN)
114 #define ROADTERRAINPLUGINEXPORT COEXPORT
115 #else
116 #define ROADTERRAINPLUGINEXPORT COIMPORT
117 #endif
118 
119 #if defined(VEHICLE_UTIL)
120 #define VEHICLEUTILEXPORT COEXPORT
121 #else
122 #define VEHICLEUTILEXPORT COIMPORT
123 #endif
124 
125 #if defined(coTrafficSimulation_EXPORTS)
126 #define TRAFFICSIMULATIONEXPORT COEXPORT
127 #else
128 #define TRAFFICSIMULATIONEXPORT COIMPORT
129 #endif
130 
131 #if defined(VRML97_IMPORT_PLUGIN)
132 #define VRML97PLUGINEXPORT COEXPORT
133 #else
134 #define VRML97PLUGINEXPORT COIMPORT
135 #endif
136 
137 #if defined(Vrml97Cover_EXPORTS)
138 #define VRML97COVEREXPORT COEXPORT
139 #else
140 #define VRML97COVEREXPORT COIMPORT
141 #endif
142 
143 #if defined(CovisePluginUtil_EXPORTS)
144 #define COVISEPLUGINEXPORT COEXPORT
145 #else
146 #define COVISEPLUGINEXPORT COIMPORT
147 #endif
148 
149 #if defined(COVISE_VRUI)
150 #define VRUIEXPORT COEXPORT
151 #else
152 #define VRUIEXPORT COIMPORT
153 #endif
154 
155 #if defined(COVISE_PLUGIN_UTIL)
156 #define PLUGIN_UTILEXPORT COEXPORT
157 #else
158 #define PLUGIN_UTILEXPORT COIMPORT
159 #endif
160 
161 #if defined(input_legacy_EXPORTS)
162 #define INPUT_LEGACY_EXPORT COEXPORT
163 #else
164 #define INPUT_LEGACY_EXPORT COIMPORT
165 #endif
166 
167 #if defined(coOpenCOVER_EXPORTS)
168 #define COVEREXPORT COEXPORT
169 #else
170 #define COVEREXPORT COIMPORT
171 #endif
172 
173 #if defined(COVISE_PFIV)
174 #define PFIVEXPORT COEXPORT
175 #else
176 #define PFIVEXPORT COIMPORT
177 #endif
178 
179 #if defined(COVISE_PFOBJ)
180 #define PFOBJEXPORT COEXPORT
181 #else
182 #define PFOBJEXPORT COIMPORT
183 #endif
184 
185 #if defined(COVISE_COVISE)
186 #define COVISEEXPORT COEXPORT
187 #else
188 #define COVISEEXPORT COIMPORT
189 #endif
190 
191 #if defined(UTIL_EXPORTS) || defined(COVISE_UTIL)
192 #define UTILEXPORT COEXPORT
193 #else
194 #define UTILEXPORT COIMPORT
195 #endif
196 
197 #if defined(COVISE_STAR)
198 #define STAREXPORT COEXPORT
199 #else
200 #define STAREXPORT COIMPORT
201 #endif
202 
203 #if defined(COVISE_ENGINE)
204 #define ENGINEEXPORT COEXPORT
205 #else
206 #define ENGINEEXPORT COIMPORT
207 #endif
208 
209 #if defined(COVISE_READER)
210 #define READEREXPORT COEXPORT
211 #else
212 #define READEREXPORT COIMPORT
213 #endif
214 
215 #if defined(COVISE_COLORMAP)
216 #define CMAPEXPORT COEXPORT
217 #else
218 #define CMAPEXPORT COIMPORT
219 #endif
220 
221 #if defined(CONFIG_EXPORT)
222 #define CONFIGEXPORT COEXPORT
223 #else
224 #define CONFIGEXPORT COIMPORT
225 #endif
226 
227 #if defined(NET_EXPORT)
228 #define NETEXPORT COEXPORT
229 #else
230 #define NETEXPORT COIMPORT
231 #endif
232 
233 #if defined(REG_EXPORT)
234 #define REGEXPORT COEXPORT
235 #else
236 #define REGEXPORT COIMPORT
237 #endif
238 
239 /* tracker client */
240 #if defined(OSG_TCLIENT) && defined(_WIN32)
241 #define OSGTCLIENT COEXPORT
242 #else
243 #define OSGTCLIENT COIMPORT
244 #endif
245 
246 /* backend */
247 #if defined(WIN32DLL_VINCEBACKEND) && defined(_WIN32)
248 #define WIN32_DLL_VINCEBACKEND COEXPORT
249 #else
250 #define WIN32_DLL_VINCEBACKEND COIMPORT
251 #endif
252 
253 /* ViNCE renderer */
254 #if defined(VINCE_EXPORT) && defined(_WIN32)
255 #define VINCEEXPORT COEXPORT
256 #else
257 #define VINCEEXPORT COIMPORT
258 #endif
259 
260 #if defined(COVISE_API) || defined(YAC_API)
261 #define APIEXPORT COEXPORT
262 #else
263 #define APIEXPORT COIMPORT
264 #endif
265 
266 #if defined(COVISE_COMM) || defined(COMM_EXPORTS)
267 #define COMMEXPORT COEXPORT
268 #define COMMEXPORTONLY COEXPORT
269 #else
270 #define COMMEXPORT COIMPORT
271 #define COMMEXPORTONLY
272 #endif
273 
274 #if defined(SHM_EXPORTS)
275 #define SHMEXPORT COEXPORT
276 #else
277 #define SHMEXPORT COIMPORT
278 #endif
279 
280 #if defined(IMPORT_PLUGIN)
281 #define PLUGINEXPORT COEXPORT
282 #else
283 #define PLUGINEXPORT COIMPORT
284 #endif
285 
286 #if defined(YAC_JAVA_API)
287 #define JAVAAPIEXPORT COEXPORT
288 #else
289 #define JAVAAPIEXPORT COIMPORT
290 #endif
291 
292 #if defined(RENDERER_EXPORTS)
293 #define RENDEREXPORT COEXPORT
294 #else
295 #define RENDEREXPORT COIMPORT
296 #endif
297 
298 #if defined(CRYPT_EXPORTS)
299 #define CRYPTEXPORT COEXPORT
300 #else
301 #define CRYPTEXPORT COIMPORT
302 #endif
303 
304 #if defined(COVISE_THREAD) || defined(COVISE_THREADS) || defined(THREADS_EXPORTS)
305 #define THREADEXPORT COEXPORT
306 #else
307 #define THREADEXPORT COIMPORT
308 #endif
309 
310 #if defined(COVISE_DMGR) || defined(DMGR_EXPORTS)
311 #define DMGREXPORT COEXPORT
312 #else
313 #define DMGREXPORT COIMPORT
314 #endif
315 
316 #if defined(DO_EXPORTS) || defined(COVISE_DO)
317 #define DOEXPORT COEXPORT
318 #else
319 #define DOEXPORT COIMPORT
320 #endif
321 
322 #if defined(COVISE_ALG) || defined(ALG_EXPORTS)
323 #define ALGEXPORT COEXPORT
324 #else
325 #define ALGEXPORT COIMPORT
326 #endif
327 
328 #if defined(COVISE_VTK) || defined(VTK_EXPORTS)
329 #define VTKEXPORT COEXPORT
330 #else
331 #define VTKEXPORT COIMPORT
332 #endif
333 
334 #if defined(COVISE_GRMSG) || defined(GRMSGEXPORT)
335 #define GRMSGEXPORT COEXPORT
336 #else
337 #define GRMSGEXPORT COIMPORT
338 #endif
339 
340 #if defined(COVISE_VR_INTERACTOR)
341 #define VR_INTERACTOR_EXPORT COEXPORT
342 #else
343 #define VR_INTERACTOR_EXPORT COIMPORT
344 #endif
345 
346 #if defined(COVISE_OPENVRUI)
347 #define OPENVRUIEXPORT COEXPORT
348 #else
349 #define OPENVRUIEXPORT COIMPORT
350 #endif
351 
352 #if defined(CONFIG_EXPORT)
353 #define CONFIGEXPORT COEXPORT
354 #else
355 #define CONFIGEXPORT COIMPORT
356 #endif
357 
358 #if defined(NET_EXPORT)
359 #define NETEXPORT COEXPORT
360 #else
361 #define NETEXPORT COIMPORT
362 #endif
363 
364 #if defined(CONFIGEDITOR_EXPORT)
365 #define CONFIGEDITOREXPORT COEXPORT
366 #else
367 #define CONFIGEDITOREXPORT COIMPORT
368 #endif
369 
370 #if defined(WSLIB_EXPORT)
371 #define WSLIBEXPORT COEXPORT
372 #else
373 #define WSLIBEXPORT COIMPORT
374 #endif
375 
376 #if defined(UI_EXPORT)
377 #define UIEXPORT COEXPORT
378 #else
379 #define UIEXPORT COIMPORT
380 #endif
381 
382 #if defined(SCA_EXPORT)
383 #define SCAEXPORT COEXPORT
384 #else
385 #define SCAEXPORT COIMPORT
386 #endif
387 
388 #endif