[64] | 1 | /*! \mainpage |
---|
[42] | 2 | * |
---|
[66] | 3 | * \image html tspsg.png |
---|
[64] | 4 | * <b>TSPSG: TSP Solver and Generator</b> |
---|
[66] | 5 | * \author Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> |
---|
[64] | 6 | * |
---|
[42] | 7 | * $Id: version.h 66 2009-10-21 12:48:49Z laleppa $ |
---|
| 8 | * $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/version.h $ |
---|
| 9 | * |
---|
| 10 | * This file is part of TSPSG. |
---|
| 11 | * |
---|
| 12 | * TSPSG is free software: you can redistribute it and/or modify |
---|
| 13 | * it under the terms of the GNU General Public License as published by |
---|
| 14 | * the Free Software Foundation, either version 3 of the License, or |
---|
| 15 | * (at your option) any later version. |
---|
| 16 | * |
---|
| 17 | * TSPSG is distributed in the hope that it will be useful, |
---|
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 20 | * GNU General Public License for more details. |
---|
| 21 | * |
---|
| 22 | * You should have received a copy of the GNU General Public License |
---|
| 23 | * along with TSPSG. If not, see <http://www.gnu.org/licenses/>. |
---|
| 24 | */ |
---|
| 25 | |
---|
| 26 | #ifndef VERSION_H |
---|
| 27 | #define VERSION_H |
---|
| 28 | |
---|
[64] | 29 | /*! |
---|
| 30 | * \file version.h |
---|
| 31 | * \brief This file contains TSPSG version information defines. |
---|
| 32 | */ |
---|
| 33 | |
---|
| 34 | //! TSPSG version ID |
---|
[63] | 35 | #define VERSIONID "$Id: version.h 66 2009-10-21 12:48:49Z laleppa $" |
---|
[64] | 36 | //! Major version of current TSPSG build |
---|
[42] | 37 | #define BUILD_VERSION_MAJOR 0 |
---|
[64] | 38 | //! Minor version of current TSPSG build |
---|
[42] | 39 | #define BUILD_VERSION_MINOR 1 |
---|
[64] | 40 | //! TSPSG release number |
---|
[45] | 41 | #define BUILD_RELEASE 2 |
---|
[64] | 42 | |
---|
| 43 | /*! |
---|
| 44 | * \brief Current TSPSG build number |
---|
| 45 | * |
---|
| 46 | * This will only change on releases and will be the same as revision number. |
---|
| 47 | * |
---|
| 48 | * Build number meanings: |
---|
[66] | 49 | * - 1 -- 3: <b>alpha</b> 1 to 3 |
---|
| 50 | * - 4 -- 7: <b>beta</b> 1 to 4 |
---|
| 51 | * - 8 -- 10: <b>rc</b> 1 to 3 |
---|
| 52 | * - 11 -- x: <b>release</b> 1 to x-10 |
---|
[64] | 53 | */ |
---|
[45] | 54 | #define BUILD_NUMBER 65535 |
---|
[64] | 55 | |
---|
| 56 | /*! |
---|
| 57 | * \def BUILD_STATUS |
---|
| 58 | * \brief TSPSG build status |
---|
| 59 | * |
---|
| 60 | * Determined based on BUILD_NUMBER. |
---|
| 61 | */ |
---|
[45] | 62 | #if BUILD_NUMBER == 65535 |
---|
| 63 | #define BUILD_STATUS (dev build) |
---|
| 64 | #elif BUILD_RELEASE < 4 |
---|
| 65 | #define BUILD_STATUS (alpha) |
---|
| 66 | #elif BUILD_RELEASE < 8 |
---|
| 67 | #define BUILD_STATUS (beta) |
---|
| 68 | #elif BUILD_RELEASE < 11 |
---|
| 69 | #define BUILD_STATUS (rc) |
---|
| 70 | #endif // BUILD_NUMBER == 65535 |
---|
[42] | 71 | |
---|
[66] | 72 | //! \internal \brief A helper for QUOTE(x). |
---|
| 73 | #define QUOTE_X(x) #x |
---|
[64] | 74 | //! Used for "conversion" of \a x to quoted string |
---|
[42] | 75 | #define QUOTE(x) QUOTE_X(x) |
---|
| 76 | |
---|
[64] | 77 | /*! |
---|
| 78 | * \def BUILD_VERSION |
---|
[66] | 79 | * \brief Full version of TSPSG in the form: \c major.\c minor.\c release[ \c status]. |
---|
[64] | 80 | */ |
---|
[45] | 81 | #ifndef BUILD_STATUS |
---|
| 82 | #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE) |
---|
| 83 | #else |
---|
| 84 | #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS) |
---|
| 85 | #endif |
---|
[42] | 86 | |
---|
| 87 | #endif // VERSION_H |
---|