mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
should avoid displaying to an user a version number like 3.15.81 will remove some duplicated code should allow to always use same way to display to an user the version number will make "3.15.81" be shown as "3.16.0 rc1" Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
53 lines
2.7 KiB
C
53 lines
2.7 KiB
C
/*
|
|
* Copyright (C) by Klaas Freitag <freitag@owncloud.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef VERSION_H
|
|
#define VERSION_H
|
|
|
|
#cmakedefine GIT_SHA1 "@GIT_SHA1@"
|
|
|
|
#define MIRALL_STRINGIFY(s) MIRALL_TOSTRING(s)
|
|
#define MIRALL_TOSTRING(s) #s
|
|
|
|
/* MIRALL version */
|
|
constexpr int MIRALL_VERSION_MAJOR = @MIRALL_VERSION_MAJOR@;
|
|
constexpr int MIRALL_VERSION_MINOR = @MIRALL_VERSION_MINOR@;
|
|
constexpr int MIRALL_VERSION_PATCH = @MIRALL_VERSION_PATCH@;
|
|
constexpr int MIRALL_VERSION_BUILD = @MIRALL_VERSION_BUILD@;
|
|
constexpr auto MIRALL_VERSION_SUFFIX = "@MIRALL_VERSION_SUFFIX@";
|
|
|
|
#cmakedefine MIRALL_VERSION @MIRALL_VERSION@
|
|
#cmakedefine MIRALL_VERSION_FULL @MIRALL_VERSION_FULL@
|
|
|
|
#cmakedefine MIRALL_VERSION_STRING "@MIRALL_VERSION_STRING@"
|
|
#cmakedefine MIRALL_HUMAN_VERSION_STRING "@MIRALL_HUMAN_VERSION_STRING@"
|
|
|
|
constexpr int NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_MAJOR = @NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_MAJOR@;
|
|
constexpr int NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_MINOR = @NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_MINOR@;
|
|
constexpr int NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_PATCH = @NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_PATCH@;
|
|
|
|
constexpr int NEXTCLOUD_SERVER_VERSION_SECURE_FILEDROP_MIN_SUPPORTED_MAJOR = @NEXTCLOUD_SERVER_VERSION_SECURE_FILEDROP_MIN_SUPPORTED_MAJOR@;
|
|
constexpr int NEXTCLOUD_SERVER_VERSION_SECURE_FILEDROP_MIN_SUPPORTED_MINOR = @NEXTCLOUD_SERVER_VERSION_SECURE_FILEDROP_MIN_SUPPORTED_MINOR@;
|
|
constexpr int NEXTCLOUD_SERVER_VERSION_SECURE_FILEDROP_MIN_SUPPORTED_PATCH = @NEXTCLOUD_SERVER_VERSION_SECURE_FILEDROP_MIN_SUPPORTED_PATCH@;
|
|
|
|
constexpr int NEXTCLOUD_SERVER_VERSION_MOUNT_ROOT_PROPERTY_SUPPORTED_MAJOR = @NEXTCLOUD_SERVER_VERSION_MOUNT_ROOT_PROPERTY_SUPPORTED_MAJOR@;
|
|
constexpr int NEXTCLOUD_SERVER_VERSION_MOUNT_ROOT_PROPERTY_SUPPORTED_MINOR = @NEXTCLOUD_SERVER_VERSION_MOUNT_ROOT_PROPERTY_SUPPORTED_MINOR@;
|
|
constexpr int NEXTCLOUD_SERVER_VERSION_MOUNT_ROOT_PROPERTY_SUPPORTED_PATCH = @NEXTCLOUD_SERVER_VERSION_MOUNT_ROOT_PROPERTY_SUPPORTED_PATCH@;
|
|
|
|
#endif // VERSION_H
|