2424#define DNAVERSION_HPP
2525
2626#if defined(_MSC_VER)
27- #if defined(LIST_INCLUDES_ON_BUILD)
28- #pragma message(" " __FILE__)
29- #endif
27+ #if defined(LIST_INCLUDES_ON_BUILD)
28+ #pragma message(" " __FILE__)
29+ #endif
3030#endif
3131
3232#ifdef _MSC_VER
@@ -119,54 +119,54 @@ const char* const __metadata_app_name__ = "metadata";
119119const char * const __dynadjust_app_name__ = " dynadjust" ;
120120
121121#if defined(_WIN32) || defined(_Wp64)
122- #ifdef _MSDEBUG
123- #if defined(_M_IX86)
124- #define __BINARY_BUILDTYPE__ " Debug (32-bit)"
125- #elif defined(_M_X64)
126- #define __BINARY_BUILDTYPE__ " Debug (64-bit)"
127- #endif
128- #else
129- #if defined(_M_IX86)
130- #define __BINARY_BUILDTYPE__ " Release (32-bit)"
131- #elif defined(_M_X64)
132- #define __BINARY_BUILDTYPE__ " Release (64-bit)"
133- #endif
134- #endif
135-
136- const char * const __import_app_name__ = " import" ;
137- const char * const __reftran_app_name__ = " reftran" ;
138- const char * const __geoid_app_name__ = " geoid" ;
139- const char * const __segment_app_name__ = " segment" ;
140- const char * const __adjust_app_name__ = " adjust" ;
141- const char * const __plot_app_name__ = " plot" ;
142-
143- const char * const __import_dll_name__ = " dnaInterop.dll" ;
144- const char * const __reftran_dll_name__ = " dnaRefTran.dll" ;
145- const char * const __geoid_dll_name__ = " dnaGeoid.dll" ;
146- const char * const __segment_dll_name__ = " dnaSegment.dll" ;
147- const char * const __adjust_dll_name__ = " dnaAdjust.dll" ;
148- const char * const __plot_dll_name__ = " dnaPlot.dll" ;
122+ #ifdef _MSDEBUG
123+ #if defined(_M_IX86)
124+ #define __BINARY_BUILDTYPE__ " Debug (32-bit)"
125+ #elif defined(_M_X64)
126+ #define __BINARY_BUILDTYPE__ " Debug (64-bit)"
127+ #endif
128+ #else
129+ #if defined(_M_IX86)
130+ #define __BINARY_BUILDTYPE__ " Release (32-bit)"
131+ #elif defined(_M_X64)
132+ #define __BINARY_BUILDTYPE__ " Release (64-bit)"
133+ #endif
134+ #endif
135+
136+ const char * const __import_app_name__ = " import" ;
137+ const char * const __reftran_app_name__ = " reftran" ;
138+ const char * const __geoid_app_name__ = " geoid" ;
139+ const char * const __segment_app_name__ = " segment" ;
140+ const char * const __adjust_app_name__ = " adjust" ;
141+ const char * const __plot_app_name__ = " plot" ;
142+
143+ const char * const __import_dll_name__ = " dnaInterop.dll" ;
144+ const char * const __reftran_dll_name__ = " dnaRefTran.dll" ;
145+ const char * const __geoid_dll_name__ = " dnaGeoid.dll" ;
146+ const char * const __segment_dll_name__ = " dnaSegment.dll" ;
147+ const char * const __adjust_dll_name__ = " dnaAdjust.dll" ;
148+ const char * const __plot_dll_name__ = " dnaPlot.dll" ;
149149
150150#elif defined(__linux) || defined(sun) || defined(__unix__) || defined(__APPLE__)
151- #ifdef NDEBUG
152- #define __BINARY_BUILDTYPE__ " Release"
153- #else
154- #define __BINARY_BUILDTYPE__ " Debug"
155- #endif
156-
157- const char * const __import_app_name__ = " dnaimport" ;
158- const char * const __reftran_app_name__ = " dnareftran" ;
159- const char * const __geoid_app_name__ = " dnageoid" ;
160- const char * const __segment_app_name__ = " dnasegment" ;
161- const char * const __adjust_app_name__ = " dnaadjust" ;
162- const char * const __plot_app_name__ = " dnaplot" ;
163-
164- const char * const __import_dll_name__ = " libdnaimport.so" ;
165- const char * const __reftran_dll_name__ = " libdnareftran.so" ;
166- const char * const __geoid_dll_name__ = " libdnageoid.so" ;
167- const char * const __segment_dll_name__ = " libdnasegment.so" ;
168- const char * const __adjust_dll_name__ = " libdnaadjust.so" ;
169- const char * const __plot_dll_name__ = " libdnaplot.so" ;
151+ #ifdef NDEBUG
152+ #define __BINARY_BUILDTYPE__ " Release"
153+ #else
154+ #define __BINARY_BUILDTYPE__ " Debug"
155+ #endif
156+
157+ const char * const __import_app_name__ = " dnaimport" ;
158+ const char * const __reftran_app_name__ = " dnareftran" ;
159+ const char * const __geoid_app_name__ = " dnageoid" ;
160+ const char * const __segment_app_name__ = " dnasegment" ;
161+ const char * const __adjust_app_name__ = " dnaadjust" ;
162+ const char * const __plot_app_name__ = " dnaplot" ;
163+
164+ const char * const __import_dll_name__ = " libdnaimport.so" ;
165+ const char * const __reftran_dll_name__ = " libdnareftran.so" ;
166+ const char * const __geoid_dll_name__ = " libdnageoid.so" ;
167+ const char * const __segment_dll_name__ = " libdnasegment.so" ;
168+ const char * const __adjust_dll_name__ = " libdnaadjust.so" ;
169+ const char * const __plot_dll_name__ = " libdnaplot.so" ;
170170
171171#endif
172172
@@ -191,8 +191,8 @@ const char* const __dynadjust_app_name__ = "dynadjust";
191191// 2.2.0.a1 02020001 Alpha release
192192// 2.2.0.b2 02020002 Beta release
193193// 2.2.0.rc2 02020003 Release candidate 1 (unless bug notification is received, this is taken to be the final release)
194- #define __BINARY_VERSION__ " 1.2.2 "
195- #define __SHORT_VERSION__ " 10202 " // used to record DynAdjust version in binary file header
194+ #define __BINARY_VERSION__ " 1.2.3 "
195+ #define __SHORT_VERSION__ " 10203 " // used to record DynAdjust version in binary file header
196196
197197// define executable name
198198#define __GLOBAL_BINARY_NAME__ __dynadjust_app_name__
@@ -202,19 +202,19 @@ const char* const __dynadjust_app_name__ = "dynadjust";
202202#define __BINARY_NAME__ __import_dll_name__
203203#define __BINARY_DESC__ " File import and format exchange library"
204204#endif
205-
205+
206206// define BUILD_DNASEGMENT_DLL when building libdnasegment.dll
207207#ifdef BUILD_DNASEGMENT_DLL
208208#define __BINARY_NAME__ __segment_dll_name__
209209#define __BINARY_DESC__ " Automated network segmentation library"
210210#endif
211-
211+
212212// define BUILD_DNASEGMENT_DLL when building libdnasegment.dll
213213#ifdef BUILD_DNAADJUST_DLL
214214#define __BINARY_NAME__ __adjust_dll_name__
215215#define __BINARY_DESC__ " Geodetic network adjustment library"
216216#endif
217-
217+
218218// define BUILD_DNAPLOT_DLL when building libdnaplot.dll
219219#ifdef BUILD_DNAPLOT_DLL
220220#define __BINARY_NAME__ __plot_dll_name__
@@ -226,13 +226,13 @@ const char* const __dynadjust_app_name__ = "dynadjust";
226226#define __BINARY_NAME__ __geoid_dll_name__
227227#define __BINARY_DESC__ " Geoid grid file interpolation library"
228228#endif
229-
229+
230230// define BUILD_DNAREFTRAN_DLL when building libdnareftran.dll
231231#ifdef BUILD_DNAREFTRAN_DLL
232232#define __BINARY_NAME__ __reftran_dll_name__
233233#define __BINARY_DESC__ " Reference frame transformation library"
234234#endif
235-
235+
236236// define executable name
237237#ifdef BUILD_DYNADJUST_EXE
238238#define __BINARY_NAME__ __dynadjust_app_name__
@@ -289,61 +289,65 @@ const char* const __dynadjust_app_name__ = "dynadjust";
289289
290290
291291#if defined(_MSC_VER) && (_MSC_VER > 1100)
292- #define _MS_COMPILER_ _MSC_VER
293- // #include <boost/preprocessor/stringize.hpp>
294- // #pragma message("_MSC_VER=" BOOST_PP_STRINGIZE(_MSC_VER))
292+ #define _MS_COMPILER_ _MSC_VER
293+ // #include <boost/preprocessor/stringize.hpp>
294+ // #pragma message("_MSC_VER=" BOOST_PP_STRINGIZE(_MSC_VER))
295295#endif
296296
297297
298298#if defined(__GNUC__) || defined(__GNUG__) // GNU GCC
299- #define __COMPILER__ " GNU GCC"
300- #define __COMPILER_VERSION__ __VERSION__
299+ #define __COMPILER__ " GNU GCC"
300+ #define __COMPILER_VERSION__ __VERSION__
301301#elif defined(__SUNPRO_CC) // Oracle Solaris
302- #define __COMPILER__ " Solaris"
303- #define __COMPILER_VERSION__ __SUNPRO_CC
302+ #define __COMPILER__ " Solaris"
303+ #define __COMPILER_VERSION__ __SUNPRO_CC
304304#elif defined(__ICC) || defined(__INTEL_COMPILER) // Intel compiler
305- #define __COMPILER__ " Intel ICC"
306- #define __COMPILER_VERSION__ lexical_cast<string>(__INTEL_COMPILER)
305+ #define __COMPILER__ " Intel ICC"
306+ #define __COMPILER_VERSION__ lexical_cast<string>(__INTEL_COMPILER)
307307#elif defined(__HP_aCC) // Oracle Solaris
308- #define __COMPILER__ " HP C++"
309- #define __COMPILER_VERSION__ __HP_aCC
308+ #define __COMPILER__ " HP C++"
309+ #define __COMPILER_VERSION__ __HP_aCC
310310#elif defined(_MSC_VER)
311- #define __COMPILER__ " MSVC++"
312- #if (_MSC_VER == 1100)
313- #define __COMPILER_VERSION__ " 5.0"
314- #elif (_MSC_VER == 1200)
315- #define __COMPILER_VERSION__ " 6.0"
316- #elif (_MSC_VER == 1300)
317- #define __COMPILER_VERSION__ " 7.0"
318- #elif (_MSC_VER == 1310)
319- #define __COMPILER_VERSION__ " 7.1, VS2003"
320- #elif (_MSC_VER == 1400)
321- #define __COMPILER_VERSION__ " 8.0, VS2005"
322- #elif (_MSC_VER == 1500)
323- #define __COMPILER_VERSION__ " 9.0, VS2008"
324- #elif (_MSC_VER == 1600)
325- #define __COMPILER_VERSION__ " 10.0, VS2010"
326- #elif (_MSC_VER == 1700)
327- #define __COMPILER_VERSION__ " 11.0, VS2012"
328- #elif (_MSC_VER == 1800)
329- #define __COMPILER_VERSION__ " 12.0, VS2013"
330- #elif (_MSC_VER == 1900)
331- #define __COMPILER_VERSION__ " 14.0, VS2015"
332- #elif (_MSC_VER == 1910)
333- #define __COMPILER_VERSION__ " 14.1, VS2017"
334- #elif (_MSC_VER == 1911)
335- #define __COMPILER_VERSION__ " 14.11, VS2017"
336- #elif (_MSC_VER == 1912)
337- #define __COMPILER_VERSION__ " 14.12, VS2017"
338- #elif (_MSC_VER == 1913)
339- #define __COMPILER_VERSION__ " 14.13, VS2017"
340- #elif (_MSC_VER == 1914)
341- #define __COMPILER_VERSION__ " 14.14, VS2017"
342- #elif (_MSC_VER > 1914)
343- #define __COMPILER_VERSION__ _MSC_VER
344- #endif
311+ #define __COMPILER__ " MSVC++"
312+ #if (_MSC_VER == 1100)
313+ #define __COMPILER_VERSION__ " 5.0"
314+ #elif (_MSC_VER == 1200)
315+ #define __COMPILER_VERSION__ " 6.0"
316+ #elif (_MSC_VER == 1300)
317+ #define __COMPILER_VERSION__ " 7.0"
318+ #elif (_MSC_VER == 1310)
319+ #define __COMPILER_VERSION__ " 7.1, VS2003"
320+ #elif (_MSC_VER == 1400)
321+ #define __COMPILER_VERSION__ " 8.0, VS2005"
322+ #elif (_MSC_VER == 1500)
323+ #define __COMPILER_VERSION__ " 9.0, VS2008"
324+ #elif (_MSC_VER == 1600)
325+ #define __COMPILER_VERSION__ " 10.0, VS2010"
326+ #elif (_MSC_VER == 1700)
327+ #define __COMPILER_VERSION__ " 11.0, VS2012"
328+ #elif (_MSC_VER == 1800)
329+ #define __COMPILER_VERSION__ " 12.0, VS2013"
330+ #elif (_MSC_VER == 1900)
331+ #define __COMPILER_VERSION__ " 14.0, VS2015"
332+ #elif (_MSC_VER == 1910)
333+ #define __COMPILER_VERSION__ " 14.1, VS2017"
334+ #elif (_MSC_VER == 1911)
335+ #define __COMPILER_VERSION__ " 15.3, VS2017"
336+ #elif (_MSC_VER == 1912)
337+ #define __COMPILER_VERSION__ " 15.5, VS2017"
338+ #elif (_MSC_VER == 1913)
339+ #define __COMPILER_VERSION__ " 15.6, VS2017"
340+ #elif (_MSC_VER == 1914)
341+ #define __COMPILER_VERSION__ " 15.7, VS2017"
342+ #elif (_MSC_VER == 1915)
343+ #define __COMPILER_VERSION__ " 15.8, VS2017"
344+ #elif (_MSC_VER == 1916)
345+ #define __COMPILER_VERSION__ " 15.9, VS2017"
346+ #elif (_MSC_VER > 1916)
347+ #define __COMPILER_VERSION__ _MSC_VER
348+ #endif
345349#else
346- #define __COMPILER__ " Unknown"
350+ #define __COMPILER__ " Unknown"
347351#endif
348-
352+
349353#endif // DNAVERSION_HPP
0 commit comments