mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2024-11-16 04:42:45 +01:00
8b6c86a305
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
32 lines
1.3 KiB
CMake
32 lines
1.3 KiB
CMake
set( MIRALL_VERSION_MAJOR 3 )
|
|
set( MIRALL_VERSION_MINOR 2 )
|
|
set( MIRALL_VERSION_PATCH 3 )
|
|
set( MIRALL_VERSION_YEAR 2021 )
|
|
set( MIRALL_SOVERSION 0 )
|
|
|
|
# Minimum supported server version according to https://docs.nextcloud.com/server/latest/admin_manual/release_schedule.html
|
|
set(NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_MAJOR 19)
|
|
set(NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_MINOR 0)
|
|
set(NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_PATCH 0)
|
|
|
|
if ( NOT DEFINED MIRALL_VERSION_SUFFIX )
|
|
set( MIRALL_VERSION_SUFFIX "git") #e.g. beta1, beta2, rc1
|
|
endif( NOT DEFINED MIRALL_VERSION_SUFFIX )
|
|
|
|
if( NOT DEFINED MIRALL_VERSION_BUILD )
|
|
set( MIRALL_VERSION_BUILD "0" ) # Integer ID. Generated by the build system
|
|
endif( NOT DEFINED MIRALL_VERSION_BUILD )
|
|
# Composite defines
|
|
# Used e.g. for libraries Keep at x.y.z.
|
|
set( MIRALL_VERSION "${MIRALL_VERSION_MAJOR}.${MIRALL_VERSION_MINOR}.${MIRALL_VERSION_PATCH}" )
|
|
# Version with Build ID. Used in the installer
|
|
set( MIRALL_VERSION_FULL ${MIRALL_VERSION} )
|
|
set( MIRALL_VERSION_STRING ${MIRALL_VERSION} )
|
|
set( MIRALL_VERSION_FULL "${MIRALL_VERSION_FULL}.${MIRALL_VERSION_BUILD}" )
|
|
|
|
set( MIRALL_VERSION_STRING "${MIRALL_VERSION}${MIRALL_VERSION_SUFFIX}" )
|
|
|
|
if( MIRALL_VERSION_BUILD )
|
|
set( MIRALL_VERSION_STRING "${MIRALL_VERSION_STRING} (build ${MIRALL_VERSION_BUILD})" )
|
|
endif( MIRALL_VERSION_BUILD )
|