TSP Solver and Generator
version.h
Go to the documentation of this file.
1 
28 #ifndef VERSION_H
29 #define VERSION_H
30 
31 #ifndef BUILD_VERSION_MAJOR
32 # define BUILD_VERSION_MAJOR 0
34 #endif // BUILD_VERSION_MAJOR
35 #ifndef BUILD_VERSION_MINOR
36 # define BUILD_VERSION_MINOR 0
38 #endif // BUILD_VERSION_MINOR
39 #ifndef BUILD_RELEASE
40 # define BUILD_RELEASE 0
42 #endif // BUILD_RELEASE
43 
44 #ifndef BUILD_NUMBER
45 # define BUILD_NUMBER 0
47 #endif // BUILD_NUMBER
48 
53 #ifdef DEBUG
54 # ifndef BUILD_STATUS
55 # define BUILD_STATUS_STR (debug build)
56 # else
57 # define BUILD_STATUS_STR (debug BUILD_STATUS)
58 # endif
59 #else
60 # if !defined(TSPSG_RELEASE_BUILD)
61 # define BUILD_STATUS_STR (nightly build)
62 # elif !defined(BUILD_STATUS)
63 # define BUILD_STATUS_STR (build BUILD_NUMBER)
64 # else
65 # define BUILD_STATUS_STR (BUILD_STATUS)
66 # endif // TSPSG_RELEASE_BUILD
67 #endif // DEBUG
68 
70 #define QUOTE_X(x) #x
71 #define QUOTE(x) QUOTE_X(x)
73 
75 #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS_STR)
76 
81 #ifdef REVISION
82 # define REVISION_STR QUOTE(REVISION)
83 #else
84 # define REVISION_STR "0c8813f6050deb29be145a20cd5db234548844ae"
85 #endif
86 
87 #endif // VERSION_H