[430bd7f7e9] | 1 | /* |
---|
| 2 | * TSPSG: TSP Solver and Generator |
---|
| 3 | * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> |
---|
| 4 | * |
---|
| 5 | * $Id$ |
---|
| 6 | * $URL$ |
---|
| 7 | * |
---|
| 8 | * This file is part of TSPSG. |
---|
| 9 | * |
---|
| 10 | * TSPSG is free software: you can redistribute it and/or modify |
---|
| 11 | * it under the terms of the GNU General Public License as published by |
---|
| 12 | * the Free Software Foundation, either version 3 of the License, or |
---|
| 13 | * (at your option) any later version. |
---|
| 14 | * |
---|
| 15 | * TSPSG is distributed in the hope that it will be useful, |
---|
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 18 | * GNU General Public License for more details. |
---|
| 19 | * |
---|
| 20 | * You should have received a copy of the GNU General Public License |
---|
| 21 | * along with TSPSG. If not, see <http://www.gnu.org/licenses/>. |
---|
| 22 | */ |
---|
| 23 | |
---|
| 24 | #ifndef VERSION_H |
---|
| 25 | #define VERSION_H |
---|
| 26 | |
---|
| 27 | #define BUILD_VERSION_MAJOR 0 |
---|
| 28 | #define BUILD_VERSION_MINOR 1 |
---|
[ec54b4490b] | 29 | #define BUILD_RELEASE 2 |
---|
| 30 | // This will only change on releases and will be the same as revision number |
---|
| 31 | #define BUILD_NUMBER 65535 |
---|
| 32 | // Release number meanings: |
---|
| 33 | // 1 -- 3: alpha 1 to 3 |
---|
| 34 | // 4 -- 7: beta 1 to 4 |
---|
| 35 | // 8 -- 10: rc 1 to 3 |
---|
| 36 | // 11 --...: release 1 to ... |
---|
| 37 | #if BUILD_NUMBER == 65535 |
---|
| 38 | #define BUILD_STATUS (dev build) |
---|
| 39 | #elif BUILD_RELEASE < 4 |
---|
| 40 | #define BUILD_STATUS (alpha) |
---|
| 41 | #elif BUILD_RELEASE < 8 |
---|
| 42 | #define BUILD_STATUS (beta) |
---|
| 43 | #elif BUILD_RELEASE < 11 |
---|
| 44 | #define BUILD_STATUS (rc) |
---|
| 45 | #endif // BUILD_NUMBER == 65535 |
---|
[430bd7f7e9] | 46 | |
---|
| 47 | // "Converting" number to string |
---|
| 48 | #define QUOTE_X(x) #x |
---|
| 49 | #define QUOTE(x) QUOTE_X(x) |
---|
| 50 | |
---|
[ec54b4490b] | 51 | #ifndef BUILD_STATUS |
---|
| 52 | #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE) |
---|
| 53 | #else |
---|
| 54 | #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS) |
---|
| 55 | #endif |
---|
[430bd7f7e9] | 56 | |
---|
| 57 | #endif // VERSION_H |
---|