* Update Version.cmake * Add TLS to Synergy (Lite edition) (#7202) * Add TLS to synergy light * Requested changes * License registration for Business edition (#7203) * License registration for business * Rename register to registry * Add email into the request * Add decoded serial key into the request * Revert "Add decoded serial key into the request" This reverts commit 0e18c8941664e86ae2264bbef072df68cab07751. * Revert "Add email into the request" This reverts commit 8dff01bc242769008897947d66187cb726fb34bf. * Change field guid_generated to guid_type * Update ChangeLog * Update ChangeLog * Fix build issue for ubuntu16 and ubuntu18 (#7204) * Fix issue with settings * Custom about screen for Elite Backers (#7211) * Hide irrelevant information from the About screen for B2B * Fix size for Windows and Linux * Requested changes * Fix Enterprise * Revert "Fix Enterprise" This reverts commit befd8d2ce36b6ca903250bada62293491f0b56a2. * Revert "Requested changes" This reverts commit 5f728e00aaeb4bed3e3c006539d380f74d3aff76. * Change features based on edition (#7212) * Change features based on edition * Fix enterprise build * Update window titles and about screen (#7214) * Fix About screen for Business edition * Change dialog title * Refactored upgrade prompt for TLS and hotkeys (#7215) * Prompt Basic users to upgrade to Pro to access TLS encryption * Fixed Enterprise build * Fix code smells * Fix sonar bug
83 lines
2.6 KiB
CMake
83 lines
2.6 KiB
CMake
cmake_minimum_required (VERSION 3.4)
|
|
|
|
#
|
|
# Synergy Version
|
|
#
|
|
|
|
set (SYNERGY_VERSION_MAJOR 1)
|
|
set (SYNERGY_VERSION_MINOR 14)
|
|
set (SYNERGY_VERSION_PATCH 5)
|
|
set (SYNERGY_VERSION_BUILD 1)
|
|
set (SYNERGY_VERSION_STAGE "stable")
|
|
|
|
#
|
|
# Version from CI
|
|
#
|
|
|
|
if (DEFINED ENV{SYNERGY_VERSION_MAJOR})
|
|
set (SYNERGY_VERSION_MAJOR $ENV{SYNERGY_VERSION_MAJOR})
|
|
endif()
|
|
|
|
if (DEFINED ENV{SYNERGY_VERSION_MINOR})
|
|
set (SYNERGY_VERSION_MINOR $ENV{SYNERGY_VERSION_MINOR})
|
|
endif()
|
|
|
|
if (DEFINED ENV{SYNERGY_VERSION_PATCH})
|
|
set (SYNERGY_VERSION_PATCH $ENV{SYNERGY_VERSION_PATCH})
|
|
endif()
|
|
|
|
if (DEFINED ENV{SYNERGY_VERSION_STAGE})
|
|
set (SYNERGY_VERSION_STAGE $ENV{SYNERGY_VERSION_STAGE})
|
|
endif()
|
|
|
|
if (NOT DEFINED SYNERGY_REVISION)
|
|
if (DEFINED ENV{GIT_COMMIT})
|
|
string (SUBSTRING $ENV{GIT_COMMIT} 0 8 SYNERGY_REVISION)
|
|
elseif (SYNERGY_VERSION_STAGE STREQUAL "snapshot")
|
|
execute_process (
|
|
COMMAND git rev-parse --short=8 HEAD
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
OUTPUT_VARIABLE SYNERGY_REVISION
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
if (DEFINED SYNERGY_REVISION)
|
|
string(LENGTH ${SYNERGY_REVISION} SYNERGY_REVISION_LENGTH)
|
|
if (NOT ((SYNERGY_REVISION MATCHES "^[a-f0-9]+") AND (SYNERGY_REVISION_LENGTH EQUAL "8")))
|
|
message (FATAL_ERROR "SYNERGY_REVISION ('${SYNERGY_REVISION}') should be a short commit hash")
|
|
endif()
|
|
unset (SYNERGY_REVISION_LENGTH)
|
|
else()
|
|
set (SYNERGY_REVISION "0badc0de")
|
|
endif()
|
|
|
|
if (DEFINED ENV{BUILD_NUMBER})
|
|
set (SYNERGY_VERSION_BUILD $ENV{BUILD_NUMBER})
|
|
endif()
|
|
|
|
string (TIMESTAMP SYNERGY_BUILD_DATE "%Y%m%d" UTC)
|
|
set (SYNERGY_SNAPSHOT_INFO "${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}")
|
|
set (SYNERGY_VERSION_TAG "${SYNERGY_VERSION_STAGE}.b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}")
|
|
set (SYNERGY_VERSION "${SYNERGY_VERSION_MAJOR}.${SYNERGY_VERSION_MINOR}.${SYNERGY_VERSION_PATCH}")
|
|
set (SYNERGY_VERSION_STRING "${SYNERGY_VERSION}-${SYNERGY_VERSION_TAG}")
|
|
message (STATUS "Full Synergy version string is '" ${SYNERGY_VERSION_STRING} "'")
|
|
|
|
add_definitions (-DSYNERGY_VERSION="${SYNERGY_VERSION}")
|
|
add_definitions (-DSYNERGY_VERSION_STRING="${SYNERGY_VERSION_STRING}")
|
|
add_definitions (-DSYNERGY_REVISION="${SYNERGY_REVISION}")
|
|
add_definitions (-DSYNERGY_BUILD_DATE="${SYNERGY_BUILD_DATE}")
|
|
add_definitions (-DSYNERGY_VERSION_BUILD=${SYNERGY_VERSION_BUILD})
|
|
|
|
if (SYNERGY_DEVELOPER_MODE)
|
|
add_definitions (-DSYNERGY_DEVELOPER_MODE=1)
|
|
endif()
|
|
|
|
if (SYNERGY_ENTERPRISE)
|
|
add_definitions (-DSYNERGY_ENTERPRISE=1)
|
|
endif()
|
|
|
|
if (SYNERGY_BUSINESS)
|
|
add_definitions(-DSYNERGY_BUSINESS=1)
|
|
endif()
|