[67] | 1 | /*! |
---|
| 2 | * \file version.h |
---|
[97] | 3 | * \author Copyright © 2007-2010 Lёppa <contacts[at]oleksii[dot]name> |
---|
[42] | 4 | * |
---|
[67] | 5 | * $Id: version.h 100 2010-04-08 21:02:26Z 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 |
---|
[66] | 29 | * \image html tspsg.png |
---|
[64] | 30 | * <b>TSPSG: TSP Solver and Generator</b> |
---|
[97] | 31 | * \author Copyright © 2007-2010 Lёppa <contacts[at]oleksii[dot]name> |
---|
[64] | 32 | * |
---|
[97] | 33 | * \b Homepage: <a href="http://tspsg.sourceforge.net/">tspsg.sourceforge.net</a> |
---|
[42] | 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 | |
---|
[97] | 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 |
---|
[98] | 61 | //! TSPSG release number |
---|
[97] | 62 | #define BUILD_RELEASE 0 |
---|
| 63 | #endif // BUILD_RELEASE |
---|
[64] | 64 | |
---|
[97] | 65 | #ifndef BUILD_NUMBER |
---|
[98] | 66 | //! Current TSPSG build number |
---|
[97] | 67 | #define BUILD_NUMBER 0 |
---|
| 68 | #endif // BUILD_NUMBER |
---|
[64] | 69 | |
---|
| 70 | /*! |
---|
| 71 | * \def BUILD_STATUS |
---|
| 72 | * \brief TSPSG build status |
---|
| 73 | */ |
---|
[100] | 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 |
---|
[42] | 85 | |
---|
[66] | 86 | //! \internal \brief A helper for QUOTE(x). |
---|
| 87 | #define QUOTE_X(x) #x |
---|
[64] | 88 | //! Used for "conversion" of \a x to quoted string |
---|
[42] | 89 | #define QUOTE(x) QUOTE_X(x) |
---|
| 90 | |
---|
[98] | 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) |
---|
[42] | 93 | |
---|
| 94 | #endif // VERSION_H |
---|