GCLinkage.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // (c) 2007 by Basler Vision Technologies
3 // Section: Vision Components
4 // Project: GenICam
5 // Author: Fritz Dierks
6 //
7 // License: This file is published under the license of the EMVA GenICam Standard Group.
8 // A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
9 // If for some reason you are missing this file please contact the EMVA or visit the website
10 // (http://www.genicam.org) for a full copy.
11 //
12 // THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
13 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
14 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
15 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
16 // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
17 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
18 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
19 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
20 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
21 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
22 // POSSIBILITY OF SUCH DAMAGE.
23 //-----------------------------------------------------------------------------
29 #ifndef LINKAGE_H
30 #define LINKAGE_H
31 
32 #include <GenICamVersion.h>
33 
34 #if defined (_MSC_VER)
35 
36 # if defined (_WIN32) && defined (_MT )
37 # if defined(GENICAM_USER_ALWAYS_LINK_RELEASE)
38 // for the central installation always the Release version is used
39 # define CONFIGURATION "MD"
40 # else
41 # if defined(_DEBUG) || defined(DEBUG)
42 # define CONFIGURATION "MDd"
43 # else
44 # define CONFIGURATION "MD"
45 # endif
46 # endif // defined(GENICAM_USER_ALWAYS_LINK_RELEASE)
47 # else
48 # error Invalid configuration
49 # endif
50 
51 # if defined(COMPILER) // COMPILER may be force set from outside
52 # undef GENICAM_COMPILER_STR
53 # define GENICAM_COMPILER_STR COMPILER
54 # endif
55 
56 // _MSC_VER==1400 : VC80 : Visual C++ 2005
57 // _MSC_VER==1500 : VC90 : Visual C++ 2008
58 // _MSC_VER==1600 : VC100 : Visual C++ 2010
59 // _MSC_VER==1700 : VC110 : Visual C++ 2012
60 // _MSC_VER==1800 : VC120 : Visual C++ 2013
61 // _MSC_VER==1900 : VC140 : Visual C++ 2015
62 # if !( _MSC_VER==1400 || _MSC_VER==1500 || _MSC_VER==1600 || _MSC_VER==1700 || _MSC_VER==1800 || _MSC_VER==1900 ) && ! defined(GENICAM_USER_ACCEPTS_ANY_COMPILER)
63 # define COMPILER_VERSION_2( s ) #s
64 # define COMPILER_VERSION_STRING(version) COMPILER_VERSION_2( version )
65 # pragma message( "Notice: Using GenICam with untested compiler, version " COMPILER_VERSION_STRING(_MSC_VER) " detected!" )
66 # pragma message( "Following versions were tested: 1400, 1500, 1600, 1700, 1800, 1900." )
67 # undef COMPILER_VERSION_2
68 # undef COMPILER_VERSION_STRING
69 # endif
70 
71 # if defined(GENICAM_COMPANY_SUFFIX)
72 # define GENICAM_SUFFIX( CONFIGURATION, GENICAM_COMPILER_STR, VERSION_MAJOR, VERSION_MINOR, EXTENSION ) \
73  "_" CONFIGURATION "_" GENICAM_COMPILER_STR "_v" VERSION_MAJOR "_" VERSION_MINOR "_" TOSTRING(GENICAM_COMPANY_SUFFIX) "." EXTENSION
74 # else
75 # define GENICAM_SUFFIX( CONFIGURATION, GENICAM_COMPILER_STR, VERSION_MAJOR, VERSION_MINOR, EXTENSION ) \
76  "_" CONFIGURATION "_" GENICAM_COMPILER_STR "_v" VERSION_MAJOR "_" VERSION_MINOR "." EXTENSION
77 # endif
78  // _MDd_VC80_v3_0_Company
79  // _MD_VC80_v3_0_Company
80  // _MDd_VC80_v3_0
81  // _MD_VC80_v3_0
82 
83 # define LIB_SUFFIX \
84  GENICAM_SUFFIX( CONFIGURATION, GENICAM_COMPILER_STR, GENICAM_VERSION_MAJOR_STR, GENICAM_VERSION_MINOR_STR, "lib" )
85 #if defined(UNDER_RTSS)
86 # define DLL_SUFFIX \
87  GENICAM_SUFFIX( CONFIGURATION, GENICAM_COMPILER_STR, GENICAM_VERSION_MAJOR_STR, GENICAM_VERSION_MINOR_STR, "rtdll" )
88 #else
89 # define DLL_SUFFIX \
90  GENICAM_SUFFIX( CONFIGURATION, GENICAM_COMPILER_STR, GENICAM_VERSION_MAJOR_STR, GENICAM_VERSION_MINOR_STR, "dll" )
91 #endif // defined(UNDER_RTSS)
92 # define EXE_SUFFIX \
93  GENICAM_SUFFIX( CONFIGURATION, GENICAM_COMPILER_STR, GENICAM_VERSION_MAJOR_STR, GENICAM_VERSION_MINOR_STR, "exe" )
94 
95 # define DLL_PREFIX ""
96 
97 #elif defined (__GNUC__) && (defined (__linux__) || defined(__APPLE__) || defined(VXWORKS))
98 
99 # if defined(_DEBUG) || defined(DEBUG)
100 # define CONFIGURATION "_d"
101 # else
102 # define CONFIGURATION ""
103 # endif
104 
105 # if defined(GENICAM_COMPANY_SUFFIX)
106 # define GENICAM_SUFFIX( CONFIGURATION, VERSION_MAJOR, VERSION_MINOR, EXTENSION ) \
107  CONFIGURATION "_" GENICAM_COMPILER_STR "_v" VERSION_MAJOR "_" VERSION_MINOR "_" TOSTRING(GENICAM_COMPANY_SUFFIX) "." EXTENSION
108 # else
109 # define GENICAM_SUFFIX( CONFIGURATION, VERSION_MAJOR, VERSION_MINOR, EXTENSION ) \
110  CONFIGURATION "_" GENICAM_COMPILER_STR "_v" VERSION_MAJOR "_" VERSION_MINOR "." EXTENSION
111 # endif
112  // _d_gcc40_v3_0_Company
113  // _gcc40_v3_0_Company
114  // _d_gcc40_v3_0
115  // _gcc40_v3_0
116 
117 
118 # define LIB_SUFFIX \
119  GENICAM_SUFFIX( CONFIGURATION, GENICAM_VERSION_MAJOR_STR, GENICAM_VERSION_MINOR_STR, "a" )
120 
121 # if defined(__linux__)
122 # define DLL_SUFFIX \
123  GENICAM_SUFFIX( CONFIGURATION, GENICAM_VERSION_MAJOR_STR, GENICAM_VERSION_MINOR_STR, "so" )
124 # elif defined(VXWORKS)
125 # define DLL_SUFFIX \
126  GENICAM_SUFFIX( CONFIGURATION, GENICAM_VERSION_MAJOR_STR, GENICAM_VERSION_MINOR_STR, "out" )
127 # else
128 # define DLL_SUFFIX \
129  GENICAM_SUFFIX( CONFIGURATION, GENICAM_VERSION_MAJOR_STR, GENICAM_VERSION_MINOR_STR, "dylib" )
130 # endif
131 
132 # define EXE_SUFFIX \
133  GENICAM_SUFFIX( CONFIGURATION, GENICAM_VERSION_MAJOR_STR, GENICAM_VERSION_MINOR_STR, "" )
134 
135 # if defined(VXWORKS)
136 # define DLL_PREFIX ""
137 # else
138 # define DLL_PREFIX "lib"
139 # endif
140 
141 #else
142 
143 # error Unknown shared library support
144 
145 #endif
146 
147 #define LIB_NAME( MODULE ) \
148  MODULE LIB_SUFFIX
149 
150 #define DLL_NAME( MODULE ) \
151  DLL_PREFIX MODULE DLL_SUFFIX
152 
153 #define EXE_NAME( MODULE ) \
154  MODULE EXE_SUFFIX
155 
156 
157 // The CameraLink standard defines the names for certain DLLs we build that do not match the GenICam naming scheme
158 #if defined(_DEBUG) || defined(DEBUG)
159 # define CAMERALINK_CONFIGURATION "d"
160 #else
161 # define CAMERALINK_CONFIGURATION ""
162 #endif
163 #
164 #if defined(_MSC_VER)
165 # if defined(UNDER_RTSS)
166 # define CAMERALINK_DLL_SUFFIX ".rtdll"
167 # else
168 # define CAMERALINK_DLL_SUFFIX ".dll"
169 # endif
170 #elif defined (__GNUC__) && (defined (__linux__) || defined(__APPLE__) || defined(VXWORKS))
171 # if defined(__linux__)
172 # define CAMERALINK_DLL_SUFFIX ".so"
173 # elif defined(VXWORKS)
174 # define CAMERALINK_DLL_SUFFIX ".out"
175 # else
176 # define CAMERALINK_DLL_SUFFIX ".dylib"
177 # endif
178 #endif
179 #
180 #define CAMERALINK_DLL_NAME( MODULE) \
181  MODULE CAMERALINK_CONFIGURATION CAMERALINK_DLL_SUFFIX
182 
183 #endif // LINKAGE_H
central versioning counters


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54