summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/GenExportH.BAT
blob: 2c56945b0acda3ee2d3a4b735277c4fae5f078c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@Echo off
REM 
REM $Id$
REM
REM Usage:
REM	GenExportH.BAT <EXPORT_TAG>   >   <export_file.h>
REM
REM Author: Nanbor Wang <nanbor@cs.wustl.edu>
REM

if "%1" == "" goto emptyexport
Echo // Definition for Win32 Export directives.
Echo // This file is generated automatically by
Echo // ${TAO_ROOT}/TAO_IDL/GenExportH.BAT
Echo // ------------------------------
Echo #if !defined (%1_EXPORT_H)
Echo #define %1_EXPORT_H
Echo.
Echo #include "ace/OS.h"
Echo.
Echo #if defined (%1_HAS_DLL) 
Echo #  if (%1_HAS_DLL == 1)
Echo #    if defined (%1_BUILD_DLL)
Echo #      define %1_Export ACE_Proper_Export_Flag
Echo #      define %1_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
Echo #      define %1_SINGLETON_INSTANTIATION(T) ACE_PROPER_SINGLETON_INSTANTIATION (T)
Echo #    else
Echo #      define %1_Export ACE_Proper_Import_Flag
Echo #      define %1_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
Echo #      define %1_SINGLETON_INSTANTIATION(T)
Echo #    endif /* %1_BUILD_DLL */
Echo #  else 
Echo #    define %1_Export
Echo #    define %1_SINGLETON_DECLARATION(T)
Echo #    define %1_SINGLETON_INSTANTIATION(T)
Echo #  endif   /* ! %1_HAS_DLL == 1 */
Echo #else
Echo #  define %1_Export
Echo #  define %1_SINGLETON_DECLARATION(T)
Echo #  define %1_SINGLETON_INSTANTIATION(T)
Echo #endif     /* %1_HAS_DLL */
Echo.
Echo #endif     /* %1_EXPORT_H */
Echo            // End of auto generated file.
goto endrun
:emptyexport
Echo #error usage: GenExportH.BAT EXPORT_TAG (Remember to redirect the output to a file.)
:endrun