mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-14 10:24:19 +01:00
25 lines
1.3 KiB
CMake
25 lines
1.3 KiB
CMake
# Change this file when releasing a new version.
|
|
|
|
# Version numbers.
|
|
set(CLEMENTINE_VERSION_MAJOR 0)
|
|
set(CLEMENTINE_VERSION_MINOR 5)
|
|
set(CLEMENTINE_VERSION_PATCH 3)
|
|
|
|
set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
|
|
if(BUILDBOT_REVISION)
|
|
set(CLEMENTINE_VERSION_STRING "${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR} - buildbot r${BUILDBOT_REVISION}") # Displayed in GUIs
|
|
set(CLEMENTINE_VERSION_SHORT_STRING "${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}r${BUILDBOT_REVISION}") # Used in filenames
|
|
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.90.r${BUILDBOT_REVISION})
|
|
set(CLEMENTINE_DEB_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.90~r${BUILDBOT_REVISION}~${DEB_DIST})
|
|
else(BUILDBOT_REVISION)
|
|
if (CLEMENTINE_VERSION_PATCH)
|
|
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.${CLEMENTINE_VERSION_PATCH})
|
|
else (CLEMENTINE_VERSION_PATCH)
|
|
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR})
|
|
endif (CLEMENTINE_VERSION_PATCH)
|
|
set(CLEMENTINE_DEB_VERSION ${CLEMENTINE_VERSION}~${DEB_DIST})
|
|
set(CLEMENTINE_VERSION_STRING "${CLEMENTINE_VERSION}")
|
|
set(CLEMENTINE_VERSION_SHORT_STRING "${CLEMENTINE_VERSION}")
|
|
endif(BUILDBOT_REVISION)
|
|
|