-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
version.cmake
61 lines (50 loc) · 2.08 KB
/
version.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# SPDX-License-Identifier: GPL-3.0-only
# MuseScore-Studio-CLA-applies
#
# MuseScore Studio
# Music Composition & Notation
#
# Copyright (C) 2024 MuseScore Limited
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
set(MUSE_APP_NAME_HUMAN_READABLE "MuseScore Studio")
set(MUSE_APP_NAME_MACHINE_READABLE "MuseScoreStudio")
set(MUSE_APP_NAME_HUMAN_READABLE_COMPAT "MuseScore")
set(MUSE_APP_NAME_MACHINE_READABLE_COMPAT "MuseScore")
set(MUSE_APP_GUI_IDENTIFIER org.musescore.${MUSE_APP_NAME_MACHINE_READABLE_COMPAT})
set(MUSE_APP_VERSION_MAJOR "4")
set(MUSE_APP_VERSION_MINOR "5")
set(MUSE_APP_VERSION_PATCH "0")
set(MUSE_APP_VERSION_MAJ_MIN "${MUSE_APP_VERSION_MAJOR}.${MUSE_APP_VERSION_MINOR}")
set(MUSE_APP_VERSION "${MUSE_APP_VERSION_MAJ_MIN}.${MUSE_APP_VERSION_PATCH}")
set(MUSE_APP_VERSION_LABEL "")
# TODO: Remove
set(MUSE_APP_TITLE "${MUSE_APP_NAME_HUMAN_READABLE}")
set(MUSE_APP_NAME "${MUSE_APP_NAME_MACHINE_READABLE_COMPAT}")
set(MUSE_APP_TITLE_VERSION "${MUSE_APP_TITLE} ${MUSE_APP_VERSION_MAJOR}")
set(MUSE_APP_NAME_VERSION "${MUSE_APP_NAME} ${MUSE_APP_VERSION_MAJOR}")
# ---
set(MUSE_APP_UNSTABLE ON)
set(MUSE_APP_IS_PRERELEASE ON)
if(MUSE_APP_BUILD_MODE MATCHES "dev")
set(MUSE_APP_RELEASE_CHANNEL "devel")
endif()
if(MUSE_APP_BUILD_MODE MATCHES "testing")
set(MUSE_APP_RELEASE_CHANNEL "testing")
endif()
if(MUSE_APP_BUILD_MODE MATCHES "release")
set(MUSE_APP_RELEASE_CHANNEL "stable")
endif()
# Print variables which are needed by CI build scripts.
message(STATUS "MUSE_APP_RELEASE_CHANNEL ${MUSE_APP_RELEASE_CHANNEL}")
message(STATUS "MUSE_APP_VERSION ${MUSE_APP_VERSION}")