source: tspsg-svn/trunk/src/version.h @ 97

Last change on this file since 97 was 97, checked in by laleppa, 15 years ago

+ Added precompiled header (PCH) file: should decrease project build time.

  • Improved installation and deployment rules in .pro file.
  • Improved translucency effect under Windows Vista/7.
  • Slightly modified qtwin.h to be included into the source documentation.
  • Regenerated source documentation.
  • Property svn:keywords set to Id URL
File size: 3.5 KB
Line 
1/*!
2 * \file version.h
3 * \author Copyright &copy; 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
4 *
5 *  $Id: version.h 97 2010-03-02 23:55:23Z laleppa $
6 *  $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/version.h $
7 *
8 * \brief Contains TSPSG version information defines.
9 *
10 *  <b>TSPSG: TSP Solver and Generator</b>
11 *
12 *  This file is part of TSPSG.
13 *
14 *  TSPSG is free software: you can redistribute it and/or modify
15 *  it under the terms of the GNU General Public License as published by
16 *  the Free Software Foundation, either version 3 of the License, or
17 *  (at your option) any later version.
18 *
19 *  TSPSG is distributed in the hope that it will be useful,
20 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 *  GNU General Public License for more details.
23 *
24 *  You should have received a copy of the GNU General Public License
25 *  along with TSPSG.  If not, see <http://www.gnu.org/licenses/>.
26 */
27/*!
28 * \mainpage
29 * \image html tspsg.png
30 *  <b>TSPSG: TSP Solver and Generator</b>
31 * \author Copyright &copy; 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
32 *
33 *  \b Homepage: <a href="http://tspsg.sourceforge.net/">tspsg.sourceforge.net</a>
34 *
35 *  TSPSG is free software: you can redistribute it and/or modify
36 *  it under the terms of the GNU General Public License as published by
37 *  the Free Software Foundation, either version 3 of the License, or
38 *  (at your option) any later version.
39 *
40 *  TSPSG is distributed in the hope that it will be useful,
41 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
42 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43 *  GNU General Public License for more details.
44 *
45 *  You should have received a copy of the GNU General Public License
46 *  along with TSPSG.  If not, see <http://www.gnu.org/licenses/>.
47 */
48
49#ifndef VERSION_H
50#define VERSION_H
51
52#ifndef BUILD_VERSION_MAJOR
53        //! Major version of current TSPSG build
54        #define BUILD_VERSION_MAJOR 0
55#endif // BUILD_VERSION_MAJOR
56#ifndef BUILD_VERSION_MINOR
57        //! Minor version of current TSPSG build
58        #define BUILD_VERSION_MINOR 0
59#endif // BUILD_VERSION_MINOR
60/*!
61 * \brief TSPSG release number
62 *
63 *  Release number meanings:
64 *    - 1  --  3: <b>alpha</b> 1 to 3
65 *    - 4  --  7: <b>beta</b> 1 to 4
66 *    - 8  -- 10: <b>rc</b> 1 to 3
67 *    - 11 --  x: <b>release</b> 1 to x-10
68 */
69#ifndef BUILD_RELEASE
70        #define BUILD_RELEASE 0
71#endif // BUILD_RELEASE
72
73/*!
74 * \brief Current TSPSG build number
75 *
76 *  This will only change on releases and will be the same as revision number.
77 */
78#ifndef BUILD_NUMBER
79        #define BUILD_NUMBER 0
80#endif // BUILD_NUMBER
81
82/*!
83 * \def BUILD_STATUS
84 * \brief TSPSG build status
85 *
86 * Determined based on BUILD_NUMBER and BUILD_RELEASE.
87 */
88#ifndef TSPSG_RELEASE_BUILD
89        #define BUILD_STATUS (dev build)
90#elif BUILD_RELEASE < 4
91        #define BUILD_STATUS (alpha)
92#elif BUILD_RELEASE < 8
93        #define BUILD_STATUS (beta)
94#elif BUILD_RELEASE < 11
95        #define BUILD_STATUS (rc)
96#endif // TSPSG_RELEASE_BUILD
97
98//! \internal \brief A helper for QUOTE(x).
99#define QUOTE_X(x) #x
100//! Used for "conversion" of \a x to quoted string
101#define QUOTE(x) QUOTE_X(x)
102
103/*!
104 * \def BUILD_VERSION
105 * \brief Full version of TSPSG in the form: \c major.minor.release.build [\c status].
106 */
107#ifndef BUILD_STATUS
108        #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE.BUILD_NUMBER)
109#else
110        #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE.BUILD_NUMBER BUILD_STATUS)
111#endif
112
113#endif // VERSION_H
Note: See TracBrowser for help on using the repository browser.