~ubuntu-branches/ubuntu/trusty/qgis/trusty

« back to all changes in this revision

Viewing changes to cmake_templates/qgsconfig.h.in

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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