2010-06-23 16:33:54 +00:00
|
|
|
|
|
|
|
// QGSCONFIG.H
|
|
|
|
|
|
|
|
#ifndef QGSCONFIG_H
|
|
|
|
#define QGSCONFIG_H
|
|
|
|
|
|
|
|
// Version must be specified according to
|
|
|
|
// <int>.<int>.<int>-<any text>.
|
|
|
|
// or else upgrading old project file will not work
|
|
|
|
// reliably.
|
2019-09-02 16:51:31 +02:00
|
|
|
// TODO QGIS 4: remove in favor of _QGIS_VERSION
|
2010-06-23 16:33:54 +00:00
|
|
|
#define VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${RELEASE_NAME}"
|
2019-09-02 14:03:51 +02:00
|
|
|
#define _QGIS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${RELEASE_NAME}"
|
2010-06-23 16:33:54 +00:00
|
|
|
|
|
|
|
//used in vim src/core/qgis.cpp
|
|
|
|
//The way below should work but it resolves to a number like 0110 which the compiler treats as octal I think
|
|
|
|
//because debuggin it out shows the decimal number 72 which results in incorrect version status.
|
2017-07-26 17:01:12 +02:00
|
|
|
//As a short term fix I (Tim) am defining the version in top level cmake. It would be good to
|
2010-06-23 16:33:54 +00:00
|
|
|
//reinstate this more generic approach below at some point though
|
|
|
|
//#define VERSION_INT ${CPACK_PACKAGE_VERSION_MAJOR}${CPACK_PACKAGE_VERSION_MINOR}${CPACK_PACKAGE_VERSION_PATCH}
|
2019-09-02 16:51:31 +02:00
|
|
|
// TODO QGIS 4: Remove in favor of _QGIS_VERSION_INT
|
2010-06-23 16:33:54 +00:00
|
|
|
#define VERSION_INT ${QGIS_VERSION_INT}
|
2019-09-02 14:03:57 +02:00
|
|
|
#define _QGIS_VERSION_INT ${QGIS_VERSION_INT}
|
2012-07-26 16:09:00 +02:00
|
|
|
#define ABISYM(x) x ## ${QGIS_VERSION_INT}
|
2010-06-23 16:33:54 +00:00
|
|
|
//used in main.cpp and anywhere else where the release name is needed
|
|
|
|
#define RELEASE_NAME "${RELEASE_NAME}"
|
|
|
|
|
|
|
|
#define QGIS_PLUGIN_SUBDIR "${QGIS_PLUGIN_SUBDIR}"
|
|
|
|
#define QGIS_DATA_SUBDIR "${QGIS_DATA_SUBDIR}"
|
|
|
|
#define QGIS_LIBEXEC_SUBDIR "${QGIS_LIBEXEC_SUBDIR}"
|
2010-07-12 15:45:42 +00:00
|
|
|
#define QGIS_LIB_SUBDIR "${QGIS_LIB_SUBDIR}"
|
2018-04-26 13:33:48 +02:00
|
|
|
#define QGIS_QML_SUBDIR "${QGIS_QML_SUBDIR}"
|
2010-08-22 10:20:28 +00:00
|
|
|
#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
|
2012-01-08 21:53:52 +01:00
|
|
|
#define CMAKE_SOURCE_DIR "${CMAKE_SOURCE_DIR}"
|
2010-06-23 16:33:54 +00:00
|
|
|
|
2016-12-16 11:24:43 +01:00
|
|
|
#define QGIS_SERVER_MODULE_SUBDIR "${QGIS_SERVER_MODULE_SUBDIR}"
|
|
|
|
|
2012-10-17 18:17:14 -06:00
|
|
|
#define QSCINTILLA_VERSION_STR "${QSCINTILLA_VERSION_STR}"
|
|
|
|
|
2014-02-22 15:02:51 -07:00
|
|
|
#if defined( __APPLE__ )
|
|
|
|
//used by Mac to find system or bundle resources relative to amount of bundling
|
|
|
|
#define QGIS_MACAPP_BUNDLE ${QGIS_MACAPP_BUNDLE}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define QT_PLUGINS_DIR "${QT_PLUGINS_DIR}"
|
2013-11-11 18:48:27 -07:00
|
|
|
|
2013-03-08 19:57:40 -07:00
|
|
|
#cmakedefine USING_NMAKE
|
|
|
|
|
2016-05-24 12:53:24 +10:00
|
|
|
#cmakedefine USING_NINJA
|
|
|
|
|
2017-07-06 14:05:08 +02:00
|
|
|
#cmakedefine HAVE_GUI
|
|
|
|
|
2010-06-23 16:33:54 +00:00
|
|
|
#cmakedefine HAVE_POSTGRESQL
|
|
|
|
|
2013-01-09 16:46:30 +01:00
|
|
|
#cmakedefine HAVE_ORACLE
|
|
|
|
|
2014-11-28 16:00:53 +01:00
|
|
|
#cmakedefine SERVER_SKIP_ECW
|
2013-05-22 14:17:12 +02:00
|
|
|
|
2014-11-28 16:00:53 +01:00
|
|
|
#cmakedefine HAVE_SERVER_PYTHON_PLUGINS
|
2014-10-09 15:04:04 +02:00
|
|
|
|
2018-04-10 08:50:12 +02:00
|
|
|
#cmakedefine HAVE_OPENCL
|
|
|
|
|
2014-12-19 12:33:53 +01:00
|
|
|
#cmakedefine ENABLE_MODELTEST
|
|
|
|
|
2017-07-26 17:01:12 +02:00
|
|
|
#cmakedefine HAVE_3D
|
|
|
|
|
2020-05-24 18:53:17 +10:00
|
|
|
#cmakedefine HAVE_GEOREFERENCER
|
|
|
|
|
2017-11-06 09:16:12 +10:00
|
|
|
#cmakedefine USE_THREAD_LOCAL
|
|
|
|
|
2018-01-04 16:49:21 +01:00
|
|
|
#cmakedefine QGISDEBUG
|
|
|
|
|
2018-04-26 13:33:48 +02:00
|
|
|
#cmakedefine HAVE_QUICK
|
|
|
|
|
2018-10-10 18:05:45 +02:00
|
|
|
#cmakedefine HAVE_QT5SERIALPORT
|
|
|
|
|
2019-09-02 16:49:36 +02:00
|
|
|
#cmakedefine HAVE_STATIC_PROVIDERS
|
|
|
|
|
2020-10-23 19:14:23 +02:00
|
|
|
#cmakedefine HAVE_ZSTD
|
|
|
|
|
|
|
|
#cmakedefine HAVE_LAZPERF
|
|
|
|
|
2020-11-06 09:18:43 +10:00
|
|
|
#cmakedefine HAVE_PDAL
|
|
|
|
#define PDAL_VERSION "${PDAL_VERSION}"
|
|
|
|
#define PDAL_VERSION_MAJOR "${PDAL_VERSION_MAJOR}"
|
|
|
|
#define PDAL_VERSION_MINOR "${PDAL_VERSION_MINOR}"
|
|
|
|
#define PDAL_VERSION_MICRO "${PDAL_VERSION_MICRO}"
|
|
|
|
|
2010-06-23 16:33:54 +00:00
|
|
|
#endif
|
|
|
|
|