|
1 |
| - |
2 |
| -// QGSCONFIG.H |
3 |
| - |
4 |
| -#ifndef QGSCONFIG_H |
5 |
| -#define QGSCONFIG_H |
6 |
| - |
7 |
| -// Version must be specified according to |
8 |
| -// <int>.<int>.<int>-<any text>. |
9 |
| -// or else upgrading old project file will not work |
10 |
| -// reliably. |
11 |
| -#define VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${RELEASE_NAME}" |
12 |
| - |
13 |
| -//used in vim src/core/qgis.cpp |
14 |
| -//The way below should work but it resolves to a number like 0110 which the compiler treats as octal I think |
15 |
| -//because debuggin it out shows the decimal number 72 which results in incorrect version status. |
16 |
| -//As a short term fix I (Tim) am defining the version in top level cmake. It would be good to |
17 |
| -//reinstate this more generic approach below at some point though |
18 |
| -//#define VERSION_INT ${CPACK_PACKAGE_VERSION_MAJOR}${CPACK_PACKAGE_VERSION_MINOR}${CPACK_PACKAGE_VERSION_PATCH} |
19 |
| -#define VERSION_INT ${QGIS_VERSION_INT} |
20 |
| -//used in main.cpp and anywhere else where the release name is needed |
21 |
| -#define RELEASE_NAME "${RELEASE_NAME}" |
22 |
| - |
23 |
| -#define QGIS_PLUGIN_SUBDIR "${QGIS_PLUGIN_SUBDIR}" |
24 |
| -#define QGIS_DATA_SUBDIR "${QGIS_DATA_SUBDIR}" |
25 |
| - |
26 |
| -#cmakedefine HAVE_POSTGRESQL |
27 |
| - |
28 |
| -#cmakedefine HAVE_SPATIALITE |
29 |
| - |
30 |
| -#cmakedefine HAVE_PYTHON |
31 |
| - |
32 |
| -#endif |
33 |
| - |
| 1 | + |
| 2 | +// QGSCONFIG.H |
| 3 | + |
| 4 | +#ifndef QGSCONFIG_H |
| 5 | +#define QGSCONFIG_H |
| 6 | + |
| 7 | +// Version must be specified according to |
| 8 | +// <int>.<int>.<int>-<any text>. |
| 9 | +// or else upgrading old project file will not work |
| 10 | +// reliably. |
| 11 | +#define VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${RELEASE_NAME}" |
| 12 | + |
| 13 | +//used in vim src/core/qgis.cpp |
| 14 | +//The way below should work but it resolves to a number like 0110 which the compiler treats as octal I think |
| 15 | +//because debuggin it out shows the decimal number 72 which results in incorrect version status. |
| 16 | +//As a short term fix I (Tim) am defining the version in top level cmake. It would be good to |
| 17 | +//reinstate this more generic approach below at some point though |
| 18 | +//#define VERSION_INT ${CPACK_PACKAGE_VERSION_MAJOR}${CPACK_PACKAGE_VERSION_MINOR}${CPACK_PACKAGE_VERSION_PATCH} |
| 19 | +#define VERSION_INT ${QGIS_VERSION_INT} |
| 20 | +//used in main.cpp and anywhere else where the release name is needed |
| 21 | +#define RELEASE_NAME "${RELEASE_NAME}" |
| 22 | + |
| 23 | +#define QGIS_PLUGIN_SUBDIR "${QGIS_PLUGIN_SUBDIR}" |
| 24 | +#define QGIS_DATA_SUBDIR "${QGIS_DATA_SUBDIR}" |
| 25 | +#define QGIS_LIBEXEC_SUBDIR "${QGIS_LIBEXEC_SUBDIR}" |
| 26 | + |
| 27 | +#cmakedefine HAVE_POSTGRESQL |
| 28 | + |
| 29 | +#cmakedefine HAVE_SPATIALITE |
| 30 | + |
| 31 | +#cmakedefine HAVE_PYTHON |
| 32 | + |
| 33 | +#endif |
| 34 | + |
0 commit comments