[e0fcac5f2c] | 1 | /*! |
---|
| 2 | * \file version.h |
---|
[f19df0a3e5] | 3 | * \author Copyright © 2007-2010 Lёppa <contacts[at]oleksii[dot]name> |
---|
[e0fcac5f2c] | 4 | * |
---|
| 5 | * $Id$ |
---|
| 6 | * $URL$ |
---|
| 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. |
---|
[bc1b8837b6] | 18 | * |
---|
[e0fcac5f2c] | 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 |
---|
[85ad815b0b] | 29 | * \image html tspsg.png |
---|
[bc1b8837b6] | 30 | * <b>TSPSG: TSP Solver and Generator</b> |
---|
[f19df0a3e5] | 31 | * \author Copyright © 2007-2010 Lёppa <contacts[at]oleksii[dot]name> |
---|
[430bd7f7e9] | 32 | * |
---|
[f19df0a3e5] | 33 | * \b Homepage: <a href="http://tspsg.sourceforge.net/">tspsg.sourceforge.net</a> |
---|
[430bd7f7e9] | 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 | |
---|
[f19df0a3e5] | 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 | #ifndef BUILD_RELEASE |
---|
[e2abfd326f] | 61 | //! TSPSG release number |
---|
[f19df0a3e5] | 62 | #define BUILD_RELEASE 0 |
---|
| 63 | #endif // BUILD_RELEASE |
---|
[bc1b8837b6] | 64 | |
---|
[f19df0a3e5] | 65 | #ifndef BUILD_NUMBER |
---|
[e2abfd326f] | 66 | //! Current TSPSG build number |
---|
[f19df0a3e5] | 67 | #define BUILD_NUMBER 0 |
---|
| 68 | #endif // BUILD_NUMBER |
---|
[bc1b8837b6] | 69 | |
---|
| 70 | /*! |
---|
| 71 | * \def BUILD_STATUS |
---|
| 72 | * \brief TSPSG build status |
---|
| 73 | */ |
---|
[1babbd6ba3] | 74 | #ifdef DEBUG |
---|
| 75 | #ifndef BUILD_STATUS |
---|
| 76 | #define BUILD_STATUS (debug build BUILD_NUMBER) |
---|
| 77 | #endif |
---|
| 78 | #else |
---|
| 79 | #if !defined(TSPSG_RELEASE_BUILD) |
---|
| 80 | #define BUILD_STATUS (dev build) |
---|
| 81 | #elif !defined(BUILD_STATUS) |
---|
| 82 | #define BUILD_STATUS (build BUILD_NUMBER) |
---|
| 83 | #endif // TSPSG_RELEASE_BUILD |
---|
| 84 | #endif // DEBUG |
---|
[430bd7f7e9] | 85 | |
---|
[85ad815b0b] | 86 | //! \internal \brief A helper for QUOTE(x). |
---|
[430bd7f7e9] | 87 | #define QUOTE_X(x) #x |
---|
[85ad815b0b] | 88 | //! Used for "conversion" of \a x to quoted string |
---|
[430bd7f7e9] | 89 | #define QUOTE(x) QUOTE_X(x) |
---|
| 90 | |
---|
[e2abfd326f] | 91 | //! Full version of TSPSG in the form: \c major.minor.release.build \c status. |
---|
| 92 | #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS) |
---|
[430bd7f7e9] | 93 | |
---|
| 94 | #endif // VERSION_H |
---|