removed config.h

This commit is contained in:
Igor Korsukov 2023-02-13 19:43:22 +02:00
parent a337c00b83
commit c3fbb9fc8f
79 changed files with 311 additions and 536 deletions

View File

@ -138,6 +138,7 @@ jobs:
- name: Setup environment - name: Setup environment
if: env.DO_BUILD == 'true' if: env.DO_BUILD == 'true'
run: | run: |
echo "============================= gggg ======================="
sudo bash ./build/ci/linux/setup.sh sudo bash ./build/ci/linux/setup.sh
- name: Generate _en.ts files - name: Generate _en.ts files
if: env.DO_BUILD == 'true' if: env.DO_BUILD == 'true'

View File

@ -34,7 +34,7 @@ jobs:
- name: Setup environment - name: Setup environment
run: | run: |
bash ./build/ci/linux/setup.sh sudo bash ./build/ci/linux/setup.sh
- name: Build - name: Build
run: | run: |
source $HOME/build_tools/environment.sh source $HOME/build_tools/environment.sh

View File

@ -39,12 +39,12 @@ set(CMAKE_MODULE_PATH
########################################### ###########################################
# Setup option and build settings # Setup option and build settings
########################################### ###########################################
set(MUSESCORE_BUILD_CONFIGURE "app" CACHE STRING "Build configure") set(MUSESCORE_BUILD_CONFIGURATION "app" CACHE STRING "Build configuration")
# Possible MUSESCORE_BUILD_CONFIGURE values: # Possible MUSESCORE_BUILD_CONFIGURATION values:
# - app - for desktop app # - app - for desktop app
# - app-portable - for desktop portable app (Windows build for PortableApps.com) # - app-portable - for desktop portable app (Windows build for PortableApps.com)
# - vtest - for visual tests # - vtest - for visual tests
# - utest - for unit tests # - utest - for unit tests (for CI)
set(MUSESCORE_BUILD_MODE "dev" CACHE STRING "Build mode") set(MUSESCORE_BUILD_MODE "dev" CACHE STRING "Build mode")
# Possible MUSESCORE_BUILD_MODE values: # Possible MUSESCORE_BUILD_MODE values:
@ -89,7 +89,7 @@ option(MUE_DOWNLOAD_SOUNDFONT "Download the latest soundfont version as part of
# === Pack === # === Pack ===
option(MUE_RUN_LRELEASE "Generate .qm files" ON) option(MUE_RUN_LRELEASE "Generate .qm files" ON)
option(MUE_PACKAGE_FILE_ASSOCIATION "File types association" OFF) option(MUE_ENABLE_FILE_ASSOCIATION "File types association (using for package)" OFF)
# === Tests === # === Tests ===
option(MUE_BUILD_UNIT_TESTS "Build unit tests" ON) option(MUE_BUILD_UNIT_TESTS "Build unit tests" ON)
@ -123,6 +123,8 @@ option(MUE_ENABLE_ENGRAVING_PAINT_DEBUGGER "Enable diagnostic engraving paint de
########################################### ###########################################
include(SetupConfigure) include(SetupConfigure)
set(THIRDPARTY_DIR ${PROJECT_SOURCE_DIR}/thirdparty)
########################################### ###########################################
# Setup compiler and build environment # Setup compiler and build environment
########################################### ###########################################
@ -133,17 +135,6 @@ if (MUE_COMPILE_USE_CCACHE)
include(TryUseCcache) include(TryUseCcache)
endif(MUE_COMPILE_USE_CCACHE) endif(MUE_COMPILE_USE_CCACHE)
###########################################
# Setup MuseScore config
###########################################
include(${CMAKE_CURRENT_LIST_DIR}/config.cmake)
configure_file (
${PROJECT_SOURCE_DIR}/build/config.h.in
${PROJECT_BINARY_DIR}/config.h
)
set(THIRDPARTY_DIR ${PROJECT_SOURCE_DIR}/thirdparty)
########################################### ###########################################
# Setup external dependencies # Setup external dependencies

View File

@ -18,37 +18,70 @@
#============================================================================= #=============================================================================
include(GetBuildType) include(GetBuildType)
include(GetPlatformInfo)
include(version)
message(STATUS "MUSESCORE_BUILD_CONFIGURE: ${MUSESCORE_BUILD_CONFIGURE}")
if (NOT MUSESCORE_BUILD_CONFIGURATION)
set(MUSESCORE_BUILD_CONFIGURATION "app")
endif()
if (NOT MUSESCORE_BUILD_MODE)
set(MUSESCORE_BUILD_MODE "dev")
endif()
# Set revision for local builds
# Before need run 'make revision' or 'msvc_build.bat revision'
include(${CMAKE_CURRENT_LIST_DIR}/build/cmake/TryUseLocalRevision.cmake)
message(STATUS "MUSESCORE_BUILD_CONFIGURATION: ${MUSESCORE_BUILD_CONFIGURATION}")
message(STATUS "MUSESCORE_BUILD_MODE: ${MUSESCORE_BUILD_MODE}") message(STATUS "MUSESCORE_BUILD_MODE: ${MUSESCORE_BUILD_MODE}")
message(STATUS "MUSESCORE_BUILD_NUMBER: ${CMAKE_BUILD_NUMBER}")
string(TOUPPER ${MUSESCORE_BUILD_CONFIGURE} BUILD_CONFIGURE) string(TOUPPER ${MUSESCORE_BUILD_CONFIGURATION} BUILD_CONFIGURE)
string(TOUPPER ${MUSESCORE_BUILD_MODE} BUILD_MODE)
########################################### ###########################################
# General # Setup by mode
########################################### ###########################################
if(BUILD_MODE MATCHES "DEV")
set(QT_SUPPORT ON) set(MUSESCORE_UNSTABLE ON)
set(MUSESCORE_VERSION_LABEL "dev")
if (NOT MUE_BUILD_AUDIO_MODULE) set(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME} ${MUSESCORE_VERSION_MAJOR}")
set(MUE_BUILD_MUSESAMPLER_MODULE OFF)
set(MUE_BUILD_VST_MODULE OFF)
endif() endif()
if (NOT MUE_BUILD_IMPORTEXPORT_MODULE) if(BUILD_MODE MATCHES "TESTING")
set(MUE_BUILD_VIDEOEXPORT_MODULE OFF) set(MUSESCORE_UNSTABLE OFF)
set(MUSESCORE_VERSION_LABEL "Testing")
set(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME} ${MUSESCORE_VERSION_MAJOR}.${MUSESCORE_VERSION_MINOR} ${MUSESCORE_VERSION_LABEL}")
endif() endif()
if (NOT MUE_BUILD_DIAGNOSTICS_MODULE) if(BUILD_MODE MATCHES "RELEASE")
set(MUE_BUILD_CRASHPAD_CLIENT OFF) set(MUSESCORE_UNSTABLE OFF)
set(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME} ${MUSESCORE_VERSION_MAJOR}")
endif() endif()
if (MUE_BUILD_ASAN) if (MUSESCORE_UNSTABLE)
set(MUE_ENABLE_CUSTOM_ALLOCATOR OFF) set (MUSESCORE_NAME_VERSION "${MUSESCORE_NAME_VERSION} (${MUSESCORE_VERSION_FULL} unstable)")
endif() endif()
########################################### ###########################################
# Desktop App # Setup paths
###########################################
if (OS_IS_MAC)
SET(Mscore_INSTALL_NAME "Contents/Resources/")
SET(Mscore_SHARE_NAME "mscore.app/")
elseif (OS_IS_WIN)
SET(Mscore_INSTALL_NAME "")
SET(Mscore_SHARE_NAME "./")
else()
SET(Mscore_INSTALL_NAME "mscore${MUSESCORE_INSTALL_SUFFIX}-${MUSESCORE_VERSION}/")
SET(Mscore_SHARE_NAME "share/")
endif()
###########################################
# CONFIGURE: Desktop App
########################################### ###########################################
set(MUE_GENERAL_APP OFF) set(MUE_GENERAL_APP OFF)
if(BUILD_CONFIGURE MATCHES "APP") if(BUILD_CONFIGURE MATCHES "APP")
@ -68,14 +101,12 @@ if (MUE_GENERAL_APP)
endif() endif()
endif() endif()
if (OS_IS_MAC OR OS_IS_WIN) if (WIN_PORTABLE)
if (WIN_PORTABLE) set(MUE_BUILD_UPDATE_MODULE OFF)
set(MUE_BUILD_UPDATE_MODULE OFF)
endif()
endif() endif()
########################################### ###########################################
# VTest # CONFIGURE: VTest
########################################### ###########################################
if(BUILD_CONFIGURE MATCHES "VTEST") if(BUILD_CONFIGURE MATCHES "VTEST")
set(MUE_BUILD_AUDIO_MODULE OFF) set(MUE_BUILD_AUDIO_MODULE OFF)
@ -102,16 +133,53 @@ if(BUILD_CONFIGURE MATCHES "VTEST")
endif() endif()
########################################### ###########################################
# UTest # CONFIGURE: UTest
########################################### ###########################################
if(BUILD_CONFIGURE MATCHES "UTEST") if(BUILD_CONFIGURE MATCHES "UTEST")
set(MUE_BUILD_UNIT_TESTS ON) set(MUE_BUILD_UNIT_TESTS ON)
set(MUE_ENABLE_LOGGER_DEBUGLEVEL ON) set(MUE_ENABLE_LOGGER_DEBUGLEVEL ON)
endif() endif()
###########################################
# Subsystem
###########################################
set(QT_SUPPORT ON)
if (NOT MUE_BUILD_AUDIO_MODULE)
set(MUE_BUILD_MUSESAMPLER_MODULE OFF)
set(MUE_BUILD_VST_MODULE OFF)
endif()
if (NOT MUE_BUILD_IMPORTEXPORT_MODULE)
set(MUE_BUILD_VIDEOEXPORT_MODULE OFF)
endif()
if (NOT MUE_BUILD_DIAGNOSTICS_MODULE)
set(MUE_BUILD_CRASHPAD_CLIENT OFF)
endif()
if (MUE_BUILD_ASAN)
set(MUE_ENABLE_CUSTOM_ALLOCATOR OFF)
endif()
########################################### ###########################################
# Global definitions # Global definitions
########################################### ###########################################
add_definitions(-DMUSESCORE_REVISION="${MUSESCORE_REVISION}")
add_definitions(-DMUSESCORE_BUILD_NUMBER="${CMAKE_BUILD_NUMBER}")
add_definitions(-DMUSESCORE_VERSION="${MUSESCORE_VERSION_FULL}")
add_definitions(-DMUSESCORE_VERSION_LABEL="${MUSESCORE_VERSION_LABEL}")
add_definitions(-DMUSESCORE_INSTALL_SUFFIX="${MUSESCORE_INSTALL_SUFFIX}")
add_definitions(-DMUSESCORE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")
add_definitions(-DMUSESCORE_INSTALL_NAME="${Mscore_INSTALL_NAME}")
if (MUSESCORE_UNSTABLE)
add_definitions(-DMUSESCORE_UNSTABLE)
endif()
function(def_opt name val) function(def_opt name val)
if (${val}) if (${val})
add_definitions(-D${name}) add_definitions(-D${name})
@ -153,7 +221,6 @@ if (WIN_PORTABLE)
add_definitions(-DWIN_PORTABLE) add_definitions(-DWIN_PORTABLE)
endif() endif()
add_definitions(-DMUSESCORE_REVISION="${MUSESCORE_REVISION}")
add_definitions(-DHAW_PROFILER_ENABLED) add_definitions(-DHAW_PROFILER_ENABLED)
if (MUE_ENABLE_LOAD_QML_FROM_SOURCE) if (MUE_ENABLE_LOAD_QML_FROM_SOURCE)

View File

@ -7,8 +7,8 @@
.Dt @MAN_MSCORE_UPPER@ 1 .Dt @MAN_MSCORE_UPPER@ 1
.Os MuseScore .Os MuseScore
.Sh NAME@Variables_substituted_by_CMAKE_on_installation@ .Sh NAME@Variables_substituted_by_CMAKE_on_installation@
.Nm mscore@MSCORE_INSTALL_SUFFIX@ , .Nm mscore@MUSESCORE_INSTALL_SUFFIX@ ,
.Nm musescore@MSCORE_INSTALL_SUFFIX@ .Nm musescore@MUSESCORE_INSTALL_SUFFIX@
.Nd @MUSESCORE_NAME_VERSION@ sheet music editor .Nd @MUSESCORE_NAME_VERSION@ sheet music editor
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
@ -80,7 +80,7 @@ GNU General Public Licence (GPLv2).
@MAN_PORTABLE@If MuseScore is installed, the manual can be viewed using @MAN_PORTABLE@If MuseScore is installed, the manual can be viewed using
@MAN_PORTABLE@the familiar command: @MAN_PORTABLE@the familiar command:
@MAN_PORTABLE@.Pp @MAN_PORTABLE@.Pp
@MAN_PORTABLE@.Dl man mscore@MSCORE_INSTALL_SUFFIX@ @MAN_PORTABLE@.Dl man mscore@MUSESCORE_INSTALL_SUFFIX@
@MAN_PORTABLE@.It Cm install Oo Fl i Oc Op Ar prefix @MAN_PORTABLE@.It Cm install Oo Fl i Oc Op Ar prefix
@MAN_PORTABLE@Run this without the options to fully integrate MuseScore @MAN_PORTABLE@Run this without the options to fully integrate MuseScore
@MAN_PORTABLE@with the desktop environment (GNOME, KDE, etc). @MAN_PORTABLE@with the desktop environment (GNOME, KDE, etc).

View File

@ -32,7 +32,7 @@ esac
sed \ sed \
-e 's!@MAN_MSCORE_UPPER@!MSCORE!g' \ -e 's!@MAN_MSCORE_UPPER@!MSCORE!g' \
-e 's!@Variables_substituted_by_CMAKE_on_installation@!!g' \ -e 's!@Variables_substituted_by_CMAKE_on_installation@!!g' \
-e 's!@MSCORE_INSTALL_SUFFIX@!!g' \ -e 's!@MUSESCORE_INSTALL_SUFFIX@!!g' \
-e 's!@MUSESCORE_NAME_VERSION@!MuseScore 4!g' \ -e 's!@MUSESCORE_NAME_VERSION@!MuseScore 4!g' \
-e 's!@MAN_PORTABLE@!'"$portable"'!g' \ -e 's!@MAN_PORTABLE@!'"$portable"'!g' \
-e 's!@PORTABLE_INSTALL_NAME@!MuseScorePortable!g' \ -e 's!@PORTABLE_INSTALL_NAME@!MuseScorePortable!g' \

View File

@ -7,7 +7,7 @@
<comment>MuseScore File</comment> <comment>MuseScore File</comment>
<glob pattern="*.mscz"/> <glob pattern="*.mscz"/>
<sub-class-of type="application/zip"/> <sub-class-of type="application/zip"/>
<icon name="application-x-musescore@MSCORE_INSTALL_SUFFIX@"/> <icon name="application-x-musescore@MUSESCORE_INSTALL_SUFFIX@"/>
</mime-type> </mime-type>
<mime-type type="application/x-musescore+xml"> <mime-type type="application/x-musescore+xml">
@ -15,7 +15,7 @@
<glob pattern="*.mscx"/> <glob pattern="*.mscx"/>
<sub-class-of type="application/xml"/> <sub-class-of type="application/xml"/>
<root-XML namespaceURI="" localName="museScore"/> <root-XML namespaceURI="" localName="museScore"/>
<icon name="application-x-musescore@MSCORE_INSTALL_SUFFIX@+xml"/> <icon name="application-x-musescore@MUSESCORE_INSTALL_SUFFIX@+xml"/>
<magic> <magic>
<match type="string" value="&lt;?xml" offset="0"> <match type="string" value="&lt;?xml" offset="0">
<match type="string" value="&lt;museScore" offset="0:128"> <match type="string" value="&lt;museScore" offset="0:128">
@ -30,7 +30,7 @@
<glob pattern="*.mscsx"/> <glob pattern="*.mscsx"/>
<sub-class-of type="application/xml"/> <sub-class-of type="application/xml"/>
<root-XML namespaceURI="" localName="museScore"/> <root-XML namespaceURI="" localName="museScore"/>
<icon name="application-x-musescore@MSCORE_INSTALL_SUFFIX@+xml"/> <icon name="application-x-musescore@MUSESCORE_INSTALL_SUFFIX@+xml"/>
<magic> <magic>
<match type="string" value="&lt;?xml" offset="0"> <match type="string" value="&lt;?xml" offset="0">
<match type="string" value="&lt;museScore" offset="0:128"> <match type="string" value="&lt;museScore" offset="0:128">
@ -44,7 +44,7 @@
<comment>MuseScore compressed backup score</comment> <comment>MuseScore compressed backup score</comment>
<glob pattern="*.mscz,"/> <glob pattern="*.mscz,"/>
<sub-class-of type="application/zip"/> <sub-class-of type="application/zip"/>
<icon name="application-x-musescore@MSCORE_INSTALL_SUFFIX@"/> <icon name="application-x-musescore@MUSESCORE_INSTALL_SUFFIX@"/>
</mime-type> </mime-type>
<mime-type type="application/x-musescore+xml"> <mime-type type="application/x-musescore+xml">
@ -52,7 +52,7 @@
<glob pattern="*.mscx,"/> <glob pattern="*.mscx,"/>
<sub-class-of type="application/xml"/> <sub-class-of type="application/xml"/>
<root-XML namespaceURI="" localName="museScore"/> <root-XML namespaceURI="" localName="museScore"/>
<icon name="application-x-musescore@MSCORE_INSTALL_SUFFIX@+xml"/> <icon name="application-x-musescore@MUSESCORE_INSTALL_SUFFIX@+xml"/>
<magic> <magic>
<match type="string" value="&lt;?xml" offset="0"> <match type="string" value="&lt;?xml" offset="0">
<match type="string" value="&lt;museScore" offset="0:128"> <match type="string" value="&lt;museScore" offset="0:128">
@ -105,7 +105,7 @@
<comment>MusicXML compressed score</comment> <comment>MusicXML compressed score</comment>
<glob pattern="*.mxl"/> <glob pattern="*.mxl"/>
<sub-class-of type="application/zip"/> <sub-class-of type="application/zip"/>
<icon name="application-vnd.recordare.musicxml@MSCORE_INSTALL_SUFFIX@"/> <icon name="application-vnd.recordare.musicxml@MUSESCORE_INSTALL_SUFFIX@"/>
</mime-type> </mime-type>
<mime-type type="application/vnd.recordare.musicxml+xml"> <mime-type type="application/vnd.recordare.musicxml+xml">
@ -116,7 +116,7 @@
<sub-class-of type="application/xml"/> <sub-class-of type="application/xml"/>
<root-XML namespaceURI="" localName="score-partwise"/> <root-XML namespaceURI="" localName="score-partwise"/>
<root-XML namespaceURI="" localName="score-timewise"/> <root-XML namespaceURI="" localName="score-timewise"/>
<icon name="application-vnd.recordare.musicxml@MSCORE_INSTALL_SUFFIX@+xml"/> <icon name="application-vnd.recordare.musicxml@MUSESCORE_INSTALL_SUFFIX@+xml"/>
<magic> <magic>
<match type="string" value="&lt;?xml" offset="0"> <match type="string" value="&lt;?xml" offset="0">
<match type="string" value="score-partwise" offset="0:128"/> <match type="string" value="score-partwise" offset="0:128"/>

View File

@ -9,11 +9,11 @@
$ appstreamcli validate [filename] $ appstreamcli validate [filename]
$ appstream-util validate-relax [filename] $ appstream-util validate-relax [filename]
--> -->
<id>org.musescore.MuseScore@MSCORE_INSTALL_SUFFIX@</id> <id>org.musescore.MuseScore@MUSESCORE_INSTALL_SUFFIX@</id>
<metadata_license>CC0-1.0</metadata_license><!-- License of this file. See <project_license> for MuseScore license. --> <metadata_license>CC0-1.0</metadata_license><!-- License of this file. See <project_license> for MuseScore license. -->
<name>MuseScore</name> <name>MuseScore</name>
<summary>Create, play and print beautiful sheet music</summary> <summary>Create, play and print beautiful sheet music</summary>
<icon type="stock">mscore@MSCORE_INSTALL_SUFFIX@</icon> <icon type="stock">mscore@MUSESCORE_INSTALL_SUFFIX@</icon>
<description> <description>
<p>MuseScore is cross-platform, multi-lingual, open source music notation software. It features an easy to use WYSIWYG editor with audio score playback for results that look and sound beautiful. It supports unlimited staves with up to four voices each, dynamics, articulations, lyrics, chords, lead sheet notation, import/export of MIDI and MusicXML, export to PDF and WAV, plus online score sharing.</p> <p>MuseScore is cross-platform, multi-lingual, open source music notation software. It features an easy to use WYSIWYG editor with audio score playback for results that look and sound beautiful. It supports unlimited staves with up to four voices each, dynamics, articulations, lyrics, chords, lead sheet notation, import/export of MIDI and MusicXML, export to PDF and WAV, plus online score sharing.</p>
<p>MuseScore can upload scores directly to the score sharing site musescore.com. Program support is provided on musescore.org.</p> <p>MuseScore can upload scores directly to the score sharing site musescore.com. Program support is provided on musescore.org.</p>
@ -55,11 +55,11 @@
<url type="contact">https://musescore.org/en/forum/6</url> <url type="contact">https://musescore.org/en/forum/6</url>
<url type="vcs-browser">https://github.com/musescore/MuseScore</url> <url type="vcs-browser">https://github.com/musescore/MuseScore</url>
<url type="contribute">https://musescore.org/en/contribute</url> <url type="contribute">https://musescore.org/en/contribute</url>
<launchable type="desktop-id">org.musescore.MuseScore@MSCORE_INSTALL_SUFFIX@.desktop</launchable> <launchable type="desktop-id">org.musescore.MuseScore@MUSESCORE_INSTALL_SUFFIX@.desktop</launchable>
<provides> <provides>
<!-- <mediatype> in .desktop file as MimeType --> <!-- <mediatype> in .desktop file as MimeType -->
<binary>mscore@MSCORE_INSTALL_SUFFIX@</binary> <binary>mscore@MUSESCORE_INSTALL_SUFFIX@</binary>
<id>org.musescore.MuseScore@MSCORE_INSTALL_SUFFIX@.desktop</id> <id>org.musescore.MuseScore@MUSESCORE_INSTALL_SUFFIX@.desktop</id>
</provides> </provides>
<!-- <releases> moved to bottom of this file to keep it out the way --> <!-- <releases> moved to bottom of this file to keep it out the way -->
<supports> <supports>
@ -101,10 +101,10 @@
<image>https://raw.githubusercontent.com/flathub/org.musescore.MuseScore/master/screenshots/07-new-score-wizard.png</image> <image>https://raw.githubusercontent.com/flathub/org.musescore.MuseScore/master/screenshots/07-new-score-wizard.png</image>
</screenshot> </screenshot>
</screenshots> </screenshots>
<translation type="qt">mscore@MSCORE_INSTALL_SUFFIX@-@MUSESCORE_VERSION@/locale/instruments</translation> <translation type="qt">mscore@MUSESCORE_INSTALL_SUFFIX@-@MUSESCORE_VERSION@/locale/instruments</translation>
<translation type="qt">mscore@MSCORE_INSTALL_SUFFIX@-@MUSESCORE_VERSION@/locale/musescore</translation> <translation type="qt">mscore@MUSESCORE_INSTALL_SUFFIX@-@MUSESCORE_VERSION@/locale/musescore</translation>
<translation type="qt">mscore@MSCORE_INSTALL_SUFFIX@-@MUSESCORE_VERSION@/locale/qt</translation> <translation type="qt">mscore@MUSESCORE_INSTALL_SUFFIX@-@MUSESCORE_VERSION@/locale/qt</translation>
<translation type="qt">mscore@MSCORE_INSTALL_SUFFIX@-@MUSESCORE_VERSION@/locale/qtbase</translation> <translation type="qt">mscore@MUSESCORE_INSTALL_SUFFIX@-@MUSESCORE_VERSION@/locale/qtbase</translation>
<content_rating type="oars-1.1"/> <content_rating type="oars-1.1"/>
<!-- GNOME extensions --> <!-- GNOME extensions -->
<kudos> <kudos>

View File

@ -11,8 +11,8 @@ GenericName[fr]=Notation musicale
Comment=Create, play and print beautiful sheet music Comment=Create, play and print beautiful sheet music
Comment[ru]=Визуальный редактор нотных партитур Comment[ru]=Визуальный редактор нотных партитур
Comment[fr]=Gravure de partitions musicales Comment[fr]=Gravure de partitions musicales
Icon=mscore@MSCORE_INSTALL_SUFFIX@ Icon=mscore@MUSESCORE_INSTALL_SUFFIX@
Exec=mscore@MSCORE_INSTALL_SUFFIX@ %F Exec=mscore@MUSESCORE_INSTALL_SUFFIX@ %F
Terminal=false Terminal=false
MimeType=application/x-musescore;application/x-musescore+xml;application/vnd.recordare.musicxml;application/vnd.recordare.musicxml+xml;audio/midi;application/x-bww;application/x-biab;application/x-capella;audio/x-gtp;application/x-musedata;application/x-overture;audio/x-ptb;application/x-sf2;application/x-sf3; MimeType=application/x-musescore;application/x-musescore+xml;application/vnd.recordare.musicxml;application/vnd.recordare.musicxml+xml;audio/midi;application/x-bww;application/x-biab;application/x-capella;audio/x-gtp;application/x-musedata;application/x-overture;audio/x-ptb;application/x-sf2;application/x-sf3;
Categories=AudioVideo;Audio;Graphics;2DGraphics;VectorGraphics;RasterGraphics;Publishing;Midi;Mixer;Sequencer;Music;Qt; Categories=AudioVideo;Audio;Graphics;2DGraphics;VectorGraphics;RasterGraphics;Publishing;Midi;Mixer;Sequencer;Music;Qt;

View File

@ -28,6 +28,6 @@ case "$1" in
"${APPDIR}/bin/portable-utils" "$@" "${APPDIR}/bin/portable-utils" "$@"
;; ;;
* ) * )
"${APPDIR}/bin/mscore@MSCORE_INSTALL_SUFFIX@" "$@" "${APPDIR}/bin/mscore@MUSESCORE_INSTALL_SUFFIX@" "$@"
;; ;;
esac esac

View File

@ -18,7 +18,7 @@ function main() {
removeResources "$2" "$3" || errorMsg "Unable to remove from '${prefix}'" removeResources "$2" "$3" || errorMsg "Unable to remove from '${prefix}'"
;; ;;
man|manual|manpage ) man|manual|manpage )
man "${APPDIR}/share/man/man1/mscore@MSCORE_INSTALL_SUFFIX@.1.gz" man "${APPDIR}/share/man/man1/mscore@MUSESCORE_INSTALL_SUFFIX@.1.gz"
;; ;;
check-depends|check-dependencies ) check-depends|check-dependencies )
checkDependencies "$2" checkDependencies "$2"
@ -48,13 +48,13 @@ Special options for MuseScore Portable AppImage:
check-depends [exes-only] Displays system information for developers. check-depends [exes-only] Displays system information for developers.
Ordinary MuseScore options: Ordinary MuseScore options:
$("${APPDIR}/bin/mscore@MSCORE_INSTALL_SUFFIX@" --help | tail -n +5) $("${APPDIR}/bin/mscore@MUSESCORE_INSTALL_SUFFIX@" --help | tail -n +5)
EOF EOF
} }
function printVersion() { function printVersion() {
local pretty=$(sed -rn "s|^Name=([^#]*)|\1|p" "${APPDIR}/org.musescore.MuseScore@MSCORE_INSTALL_SUFFIX@.desktop") local pretty=$(sed -rn "s|^Name=([^#]*)|\1|p" "${APPDIR}/org.musescore.MuseScore@MUSESCORE_INSTALL_SUFFIX@.desktop")
local long=$("${APPDIR}/bin/mscore@MSCORE_INSTALL_SUFFIX@" --long-version 2>&1 | tail -n 1) local long=$("${APPDIR}/bin/mscore@MUSESCORE_INSTALL_SUFFIX@" --long-version 2>&1 | tail -n 1)
if [ "$1" == "centered" ]; then if [ "$1" == "centered" ]; then
printf "%*s\n" "$(((${#pretty}+80)/2))" "$pretty" printf "%*s\n" "$(((${#pretty}+80)/2))" "$pretty"
printf "%*s\n" "$(((${#long}+80)/2))" "$long" printf "%*s\n" "$(((${#long}+80)/2))" "$long"
@ -183,18 +183,18 @@ EOF
echo "Please enter 'm', 'c', 'n', or 'h'. ('h' shows help)" echo "Please enter 'm', 'c', 'n', or 'h'. ('h' shows help)"
done done
fi fi
sed -ri "s|^Exec=[^#%]*(.*)\$|Exec=${APPIMAGE} \1|" "share/applications/org.musescore.MuseScore@MSCORE_INSTALL_SUFFIX@.desktop" sed -ri "s|^Exec=[^#%]*(.*)\$|Exec=${APPIMAGE} \1|" "share/applications/org.musescore.MuseScore@MUSESCORE_INSTALL_SUFFIX@.desktop"
echo "Finished installing MuseScore to $prefix" echo "Finished installing MuseScore to $prefix"
cat <<EOF cat <<EOF
Step 3 of 3. Step 3 of 3.
Symlinks can be created to make it easier to launch MuseScore from Symlinks can be created to make it easier to launch MuseScore from
the command line. (Symlinks are like shortcuts or aliases.) the command line. (Symlinks are like shortcuts or aliases.)
EOF EOF
[ "$interactive" ] && printf "Create symlinks 'mscore@MSCORE_INSTALL_SUFFIX@' and 'musescore@MSCORE_INSTALL_SUFFIX@' [Y/n]?" [ "$interactive" ] && printf "Create symlinks 'mscore@MUSESCORE_INSTALL_SUFFIX@' and 'musescore@MUSESCORE_INSTALL_SUFFIX@' [Y/n]?"
if [ ! "$interactive" ] || readYes ; then if [ ! "$interactive" ] || readYes ; then
cd bin cd bin
ln -sf "${name}" "mscore@MSCORE_INSTALL_SUFFIX@" ln -sf "${name}" "mscore@MUSESCORE_INSTALL_SUFFIX@"
ln -sf "${name}" "musescore@MSCORE_INSTALL_SUFFIX@" ln -sf "${name}" "musescore@MUSESCORE_INSTALL_SUFFIX@"
fi fi
if ! which "${name}" >/dev/null; then if ! which "${name}" >/dev/null; then
cat <<EOF cat <<EOF
@ -280,8 +280,8 @@ function removeResources() {
readYes || return 0 readYes || return 0
cd "$prefix" && <"${APPDIR}/install_manifest.txt" xargs rm || return 1 cd "$prefix" && <"${APPDIR}/install_manifest.txt" xargs rm || return 1
actual_location="$(readlink -f "${APPIMAGE}")" # get before deleting symlinks actual_location="$(readlink -f "${APPIMAGE}")" # get before deleting symlinks
rm "bin/mscore@MSCORE_INSTALL_SUFFIX@" rm "bin/mscore@MUSESCORE_INSTALL_SUFFIX@"
rm "bin/musescore@MSCORE_INSTALL_SUFFIX@" rm "bin/musescore@MUSESCORE_INSTALL_SUFFIX@"
<"${APPDIR}/install_manifest.txt" xargs "${APPDIR}/bin/rm-empty-dirs" <"${APPDIR}/install_manifest.txt" xargs "${APPDIR}/bin/rm-empty-dirs"
updateCache "${prefix}" updateCache "${prefix}"
echo -ne "Resources removed from ${PWD}.\nRemove MuseScore itself (delete ${actual_location}) [Y/n]?" echo -ne "Resources removed from ${PWD}.\nRemove MuseScore itself (delete ${actual_location}) [Y/n]?"

View File

@ -17,7 +17,7 @@ SET(CPACK_PACKAGE_INSTALL_DIRECTORY "MuseScore ${MUSESCORE_VERSION_MAJOR}.${MUSE
message("CPACK_PACKAGE_VERSION: ${CPACK_PACKAGE_VERSION}") message("CPACK_PACKAGE_VERSION: ${CPACK_PACKAGE_VERSION}")
set(git_date_string "") set(git_date_string "")
if (MSCORE_UNSTABLE) if (MUSESCORE_UNSTABLE)
find_program(GIT_EXECUTABLE git PATHS ENV PATH) find_program(GIT_EXECUTABLE git PATHS ENV PATH)
if (GIT_EXECUTABLE) if (GIT_EXECUTABLE)
execute_process( execute_process(
@ -30,7 +30,7 @@ if (MSCORE_UNSTABLE)
STRING(REGEX REPLACE "-" "" git_date "${git_date}") STRING(REGEX REPLACE "-" "" git_date "${git_date}")
set(git_date_string "~git${git_date}") set(git_date_string "~git${git_date}")
endif (git_date) endif (git_date)
endif (MSCORE_UNSTABLE) endif (MUSESCORE_UNSTABLE)
SET(CPACK_NSIS_COMPRESSOR "/FINAL /SOLID lzma") SET(CPACK_NSIS_COMPRESSOR "/FINAL /SOLID lzma")
@ -51,8 +51,8 @@ IF(MINGW OR MSVC)
SET(CPACK_STRIP_FILES "${MSCORE_EXECUTABLE_NAME}.exe") SET(CPACK_STRIP_FILES "${MSCORE_EXECUTABLE_NAME}.exe")
# File types association: # File types association:
message(STATUS "[Packaging.cmake] PACKAGE_FILE_ASSOCIATION: ${MUE_PACKAGE_FILE_ASSOCIATION}") message(STATUS "[Packaging.cmake] PACKAGE_FILE_ASSOCIATION: ${MUE_ENABLE_FILE_ASSOCIATION}")
IF (MUE_PACKAGE_FILE_ASSOCIATION) IF (MUE_ENABLE_FILE_ASSOCIATION)
SET(CPACK_NSIS_DEFINES "!include ${PROJECT_SOURCE_DIR}/build/packaging\\\\FileAssociation.nsh") SET(CPACK_NSIS_DEFINES "!include ${PROJECT_SOURCE_DIR}/build/packaging\\\\FileAssociation.nsh")
SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS " SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
@ -67,9 +67,9 @@ IF(MINGW OR MSVC)
") ")
list(APPEND CPACK_WIX_CANDLE_EXTRA_FLAGS -dCPACK_WIX_FILE_ASSOCIATION=ON) list(APPEND CPACK_WIX_CANDLE_EXTRA_FLAGS -dCPACK_WIX_FILE_ASSOCIATION=ON)
ELSE(MUE_PACKAGE_FILE_ASSOCIATION) ELSE(MUE_ENABLE_FILE_ASSOCIATION)
list(APPEND CPACK_WIX_CANDLE_EXTRA_FLAGS -dCPACK_WIX_FILE_ASSOCIATION=OFF) list(APPEND CPACK_WIX_CANDLE_EXTRA_FLAGS -dCPACK_WIX_FILE_ASSOCIATION=OFF)
ENDIF(MUE_PACKAGE_FILE_ASSOCIATION) ENDIF(MUE_ENABLE_FILE_ASSOCIATION)
file(TO_CMAKE_PATH $ENV{PROGRAMFILES} PROGRAMFILES) file(TO_CMAKE_PATH $ENV{PROGRAMFILES} PROGRAMFILES)
SET(CPACK_WIX_ROOT "${PROGRAMFILES}/WiX Toolset v3.11") SET(CPACK_WIX_ROOT "${PROGRAMFILES}/WiX Toolset v3.11")

View File

@ -33,7 +33,7 @@ if [ -z "$MUSESCORE_BUILD_MODE" ]; then echo "error: not set MUSESCORE_BUILD_MOD
echo "MUSESCORE_BUILD_MODE: $MUSESCORE_BUILD_MODE" echo "MUSESCORE_BUILD_MODE: $MUSESCORE_BUILD_MODE"
export MSCORE_RELEASE_CHANNEL=$(cmake -DMUSESCORE_BUILD_MODE=$MUSESCORE_BUILD_MODE -P config.cmake | sed -n -e 's/^.*MSCORE_RELEASE_CHANNEL *//p') export MUSESCORE_RELEASE_CHANNEL=$(cmake -DMUSESCORE_BUILD_MODE=$MUSESCORE_BUILD_MODE -P version.cmake | sed -n -e 's/^.*MUSESCORE_RELEASE_CHANNEL *//p')
echo ${MSCORE_RELEASE_CHANNEL} > $ARTIFACTS_DIR/env/release_channel.env echo ${MUSESCORE_RELEASE_CHANNEL} > $ARTIFACTS_DIR/env/release_channel.env
cat $ARTIFACTS_DIR/env/release_channel.env cat $ARTIFACTS_DIR/env/release_channel.env

View File

@ -26,7 +26,7 @@ ARTIFACTS_DIR="build.artifacts" # default output dir
if [ -z "$2" ]; then OUT_DIR=${ARTIFACTS_DIR}/env; fi if [ -z "$2" ]; then OUT_DIR=${ARTIFACTS_DIR}/env; fi
export MUSESCORE_VERSION=$(cmake -P config.cmake | sed -n -e 's/^.*MUSESCORE_VERSION_FULL *//p') export MUSESCORE_VERSION=$(cmake -P version.cmake | sed -n -e 's/^.*MUSESCORE_VERSION_FULL *//p')
MUSESCORE_VERSION_FULL=$MUSESCORE_VERSION.$BUILD_NUMBER MUSESCORE_VERSION_FULL=$MUSESCORE_VERSION.$BUILD_NUMBER

View File

@ -54,16 +54,16 @@ SET "PATH=%QT_DIR%\msvc2019_64\bin;%JACK_DIR%;%PATH%"
SET BUILD_VST=ON SET BUILD_VST=ON
SET VST3_SDK_PATH=C:\vst\VST3_SDK SET VST3_SDK_PATH=C:\vst\VST3_SDK
SET MUSESCORE_BUILD_CONFIGURE="app" SET MUSESCORE_BUILD_CONFIGURATION="app"
IF %BUILD_WIN_PORTABLE% == ON ( IF %BUILD_WIN_PORTABLE% == ON (
SET INSTALL_DIR=../build.install/App/MuseScore SET INSTALL_DIR=../build.install/App/MuseScore
SET MUSESCORE_BUILD_CONFIGURE="app-portable" SET MUSESCORE_BUILD_CONFIGURATION="app-portable"
) )
bash ./build/ci/tools/make_revision_env.sh bash ./build/ci/tools/make_revision_env.sh
SET /p MUSESCORE_REVISION=<%ARTIFACTS_DIR%\env\build_revision.env SET /p MUSESCORE_REVISION=<%ARTIFACTS_DIR%\env\build_revision.env
SET MUSESCORE_BUILD_CONFIGURE=%MUSESCORE_BUILD_CONFIGURE% SET MUSESCORE_BUILD_CONFIGURATION=%MUSESCORE_BUILD_CONFIGURATION%
SET MUSESCORE_BUILD_MODE=%MUSESCORE_BUILD_MODE% SET MUSESCORE_BUILD_MODE=%MUSESCORE_BUILD_MODE%
SET MUSESCORE_BUILD_NUMBER=%BUILD_NUMBER% SET MUSESCORE_BUILD_NUMBER=%BUILD_NUMBER%
SET MUSESCORE_REVISION=%MUSESCORE_REVISION% SET MUSESCORE_REVISION=%MUSESCORE_REVISION%

View File

@ -147,7 +147,7 @@ IF %BUILD_MODE% == stable_build (
SET PACKAGE_FILE_ASSOCIATION=ON SET PACKAGE_FILE_ASSOCIATION=ON
) )
cd "%BUILD_DIR%" cd "%BUILD_DIR%"
cmake -DMUE_PACKAGE_FILE_ASSOCIATION=%PACKAGE_FILE_ASSOCIATION% .. cmake -DMUE_ENABLE_FILE_ASSOCIATION=%PACKAGE_FILE_ASSOCIATION% ..
SET PATH=%WIX_DIR%;%PATH% SET PATH=%WIX_DIR%;%PATH%
cmake --build . --target package || GOTO END_ERROR cmake --build . --target package || GOTO END_ERROR

View File

@ -11,54 +11,55 @@ else()
message(FATAL_ERROR "Unsupported platform: ${CMAKE_HOST_SYSTEM_NAME}") message(FATAL_ERROR "Unsupported platform: ${CMAKE_HOST_SYSTEM_NAME}")
endif() endif()
# architecture detection if (NOT ARCH_DETECTED)
# based on QT5 processor detection code # architecture detection
# qtbase/blobs/master/src/corelib/global/qprocessordetection.h # based on QT5 processor detection code
# qtbase/blobs/master/src/corelib/global/qprocessordetection.h
# we only have binary blobs compatible with x86_64, aarch64, and armv7l # we only have binary blobs compatible with x86_64, aarch64, and armv7l
set(archdetect_c_code " set(archdetect_c_code "
#if defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM) || defined(__aarch64__) || defined(__ARM64__) #if defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM) || defined(__aarch64__) || defined(__ARM64__)
#if defined(__aarch64__) || defined(__ARM64__) #if defined(__aarch64__) || defined(__ARM64__)
#error cmake_ARCH aarch64 #error cmake_ARCH aarch64
#elif defined(__ARM_ARCH_7A__) #elif defined(__ARM_ARCH_7A__)
#error cmake_ARCH armv7l #error cmake_ARCH armv7l
#endif
#elif defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64)
#error cmake_ARCH x86_64
#endif #endif
#elif defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64) #error cmake_ARCH unknown
#error cmake_ARCH x86_64 ")
#endif
#error cmake_ARCH unknown
")
if(CMAKE_C_COMPILER_LOADED) if(CMAKE_C_COMPILER_LOADED)
set(TA_EXTENSION "c") set(TA_EXTENSION "c")
elseif(CMAKE_CXX_COMPILER_LOADED) elseif(CMAKE_CXX_COMPILER_LOADED)
set(TA_EXTENSION "cpp") set(TA_EXTENSION "cpp")
elseif(CMAKE_FORTRAN_COMPILER_LOADED) elseif(CMAKE_FORTRAN_COMPILER_LOADED)
set(TA_EXTENSION "F90") set(TA_EXTENSION "F90")
else() else()
message(FATAL_ERROR "You must enable a C, CXX, or Fortran compiler to use TargetArch.cmake") message(FATAL_ERROR "You must enable a C, CXX, or Fortran compiler to use TargetArch.cmake")
endif() endif()
file(WRITE "${CMAKE_BINARY_DIR}/arch.${TA_EXTENSION}" "${archdetect_c_code}") file(WRITE "${CMAKE_BINARY_DIR}/arch.${TA_EXTENSION}" "${archdetect_c_code}")
try_run( try_run(
run_result_unused run_result_unused
compile_result_unused compile_result_unused
"${CMAKE_BINARY_DIR}" "${CMAKE_BINARY_DIR}"
"${CMAKE_BINARY_DIR}/arch.${TA_EXTENSION}" "${CMAKE_BINARY_DIR}/arch.${TA_EXTENSION}"
COMPILE_OUTPUT_VARIABLE ARCH COMPILE_OUTPUT_VARIABLE ARCH
CMAKE_FLAGS ${TA_CMAKE_FLAGS} CMAKE_FLAGS ${TA_CMAKE_FLAGS}
) )
string(REGEX MATCH "cmake_ARCH ([a-zA-Z0-9_]+)" ARCH "${ARCH}") string(REGEX MATCH "cmake_ARCH ([a-zA-Z0-9_]+)" ARCH "${ARCH}")
string(REPLACE "cmake_ARCH " "" ARCH "${ARCH}") string(REPLACE "cmake_ARCH " "" ARCH "${ARCH}")
if (NOT ARCH_MSG)
message(STATUS "Detected CPU Architecture: ${ARCH}") message(STATUS "Detected CPU Architecture: ${ARCH}")
set(ARCH_MSG ON)
endif() set(ARCH_DETECTED ON)
endif(NOT ARCH_DETECTED)
if(${ARCH} MATCHES "armv7l") if(${ARCH} MATCHES "armv7l")
set(ARCH_IS_ARMV7L 1) set(ARCH_IS_ARMV7L 1)

View File

@ -6,24 +6,24 @@ if (NOT MINGW AND NOT MSVC AND NOT APPLE)
# qt libraries as we used at compile time # qt libraries as we used at compile time
# #
if (MSCORE_UNSTABLE) if (MUSESCORE_UNSTABLE)
# Use short name to avoid truncation by GNOME launcher. Save room for # Use short name to avoid truncation by GNOME launcher. Save room for
# a suffix in case multiple dev/nightly builds are installed. # a suffix in case multiple dev/nightly builds are installed.
set(DESKTOP_LAUNCHER_NAME "MU ${MUSESCORE_VERSION}") # MU X.Y set(DESKTOP_LAUNCHER_NAME "MU ${MUSESCORE_VERSION}") # MU X.Y
else (MSCORE_UNSTABLE) else (MUSESCORE_UNSTABLE)
# Use full name for stable releases # Use full name for stable releases
set(DESKTOP_LAUNCHER_NAME "${MUSESCORE_NAME} ${MUSESCORE_VERSION}") # MuseScore X.Y set(DESKTOP_LAUNCHER_NAME "${MUSESCORE_NAME} ${MUSESCORE_VERSION}") # MuseScore X.Y
endif(MSCORE_UNSTABLE) endif(MUSESCORE_UNSTABLE)
if (${MSCORE_INSTALL_SUFFIX} MATCHES "dev") if (${MUSESCORE_INSTALL_SUFFIX} MATCHES "dev")
set(DESKTOP_LAUNCHER_NAME "${DESKTOP_LAUNCHER_NAME} Dev") set(DESKTOP_LAUNCHER_NAME "${DESKTOP_LAUNCHER_NAME} Dev")
elseif (${MSCORE_INSTALL_SUFFIX} MATCHES "nightly") elseif (${MUSESCORE_INSTALL_SUFFIX} MATCHES "nightly")
set(DESKTOP_LAUNCHER_NAME "${DESKTOP_LAUNCHER_NAME} Nightly") set(DESKTOP_LAUNCHER_NAME "${DESKTOP_LAUNCHER_NAME} Nightly")
elseif (${MSCORE_INSTALL_SUFFIX} MATCHES "testing") elseif (${MUSESCORE_INSTALL_SUFFIX} MATCHES "testing")
set(DESKTOP_LAUNCHER_NAME "${DESKTOP_LAUNCHER_NAME} Testing") set(DESKTOP_LAUNCHER_NAME "${DESKTOP_LAUNCHER_NAME} Testing")
endif(${MSCORE_INSTALL_SUFFIX} MATCHES "dev") endif(${MUSESCORE_INSTALL_SUFFIX} MATCHES "dev")
if (${MSCORE_INSTALL_SUFFIX} MATCHES "portable") # Note: "portableanything" would match if (${MUSESCORE_INSTALL_SUFFIX} MATCHES "portable") # Note: "portableanything" would match
set(DESKTOP_LAUNCHER_NAME "${DESKTOP_LAUNCHER_NAME} Portable") # distinguish our build from distro packages set(DESKTOP_LAUNCHER_NAME "${DESKTOP_LAUNCHER_NAME} Portable") # distinguish our build from distro packages
# Build portable AppImage as per https://github.com/probonopd/AppImageKit # Build portable AppImage as per https://github.com/probonopd/AppImageKit
add_subdirectory(build/Linux+BSD/portable) add_subdirectory(build/Linux+BSD/portable)
@ -32,9 +32,9 @@ if (NOT MINGW AND NOT MSVC AND NOT APPLE)
endif (NOT DEFINED ARCH) endif (NOT DEFINED ARCH)
get_filename_component(PORTABLE_INSTALL_PATH ${CMAKE_INSTALL_PREFIX} PATH)# Get path (dirname) get_filename_component(PORTABLE_INSTALL_PATH ${CMAKE_INSTALL_PREFIX} PATH)# Get path (dirname)
get_filename_component(PORTABLE_INSTALL_NAME ${CMAKE_INSTALL_PREFIX} NAME)# Strip path (basename) get_filename_component(PORTABLE_INSTALL_NAME ${CMAKE_INSTALL_PREFIX} NAME)# Strip path (basename)
if (NOT MSCORE_UNSTABLE) if (NOT MUSESCORE_UNSTABLE)
set(PORTABLE_INSTALL_NAME "${PORTABLE_INSTALL_NAME}-${MUSESCORE_VERSION_FULL}") # Append version info. set(PORTABLE_INSTALL_NAME "${PORTABLE_INSTALL_NAME}-${MUSESCORE_VERSION_FULL}") # Append version info.
endif (NOT MSCORE_UNSTABLE) endif (NOT MUSESCORE_UNSTABLE)
set(PORTABLE_INSTALL_NAME "${PORTABLE_INSTALL_NAME}-${ARCH}") # Append system architecture. set(PORTABLE_INSTALL_NAME "${PORTABLE_INSTALL_NAME}-${ARCH}") # Append system architecture.
set(CMAKE_INSTALL_PREFIX ${PORTABLE_INSTALL_PATH}/${PORTABLE_INSTALL_NAME}.AppDir) # E.g. "MuseScore-X.Y.Z-x86_64.AppDir" set(CMAKE_INSTALL_PREFIX ${PORTABLE_INSTALL_PATH}/${PORTABLE_INSTALL_NAME}.AppDir) # E.g. "MuseScore-X.Y.Z-x86_64.AppDir"
execute_process(COMMAND echo ${CMAKE_INSTALL_PREFIX} OUTPUT_FILE PREFIX.txt) execute_process(COMMAND echo ${CMAKE_INSTALL_PREFIX} OUTPUT_FILE PREFIX.txt)
@ -46,41 +46,41 @@ if (NOT MINGW AND NOT MSVC AND NOT APPLE)
build/Linux+BSD/portable/ldd-recursive build/Linux+BSD/portable/ldd-recursive
build/rm-empty-dirs DESTINATION bin COMPONENT portable) build/rm-empty-dirs DESTINATION bin COMPONENT portable)
install(FILES build/Linux+BSD/portable/qt.conf DESTINATION bin COMPONENT portable) install(FILES build/Linux+BSD/portable/qt.conf DESTINATION bin COMPONENT portable)
else (${MSCORE_INSTALL_SUFFIX} MATCHES "portable") else (${MUSESCORE_INSTALL_SUFFIX} MATCHES "portable")
set(MAN_PORTABLE ".\\\"") # comment out lines in man page that are only relevant to the portable version set(MAN_PORTABLE ".\\\"") # comment out lines in man page that are only relevant to the portable version
endif (${MSCORE_INSTALL_SUFFIX} MATCHES "portable") endif (${MUSESCORE_INSTALL_SUFFIX} MATCHES "portable")
# Identify MuseScore's main window so that it receives the correct name # Identify MuseScore's main window so that it receives the correct name
# and icon in the OS dock / taskbar. Run `xprop WM_CLASS` and click on # and icon in the OS dock / taskbar. Run `xprop WM_CLASS` and click on
# MuseScore's main window to find out what string to use here. # MuseScore's main window to find out what string to use here.
if (MSCORE_UNSTABLE) if (MUSESCORE_UNSTABLE)
set(WINDOW_MANAGER_CLASS "MuseScore4Development") set(WINDOW_MANAGER_CLASS "MuseScore4Development")
else (MSCORE_UNSTABLE) else (MUSESCORE_UNSTABLE)
set(WINDOW_MANAGER_CLASS "MuseScore4") set(WINDOW_MANAGER_CLASS "MuseScore4")
endif(MSCORE_UNSTABLE) endif(MUSESCORE_UNSTABLE)
# Install desktop file (perform variable substitution first) # Install desktop file (perform variable substitution first)
configure_file(build/Linux+BSD/org.musescore.MuseScore.desktop.in org.musescore.MuseScore${MSCORE_INSTALL_SUFFIX}.desktop) configure_file(build/Linux+BSD/org.musescore.MuseScore.desktop.in org.musescore.MuseScore${MUSESCORE_INSTALL_SUFFIX}.desktop)
install( FILES ${PROJECT_BINARY_DIR}/org.musescore.MuseScore${MSCORE_INSTALL_SUFFIX}.desktop DESTINATION share/applications) install( FILES ${PROJECT_BINARY_DIR}/org.musescore.MuseScore${MUSESCORE_INSTALL_SUFFIX}.desktop DESTINATION share/applications)
# Install appdata file (perform variable substitution first) # Install appdata file (perform variable substitution first)
if ("${MSCORE_INSTALL_SUFFIX}" MATCHES "-") if ("${MUSESCORE_INSTALL_SUFFIX}" MATCHES "-")
message(FATAL_ERROR message(FATAL_ERROR
"MSCORE_INSTALL_SUFFIX='${MSCORE_INSTALL_SUFFIX}'\n" "MUSESCORE_INSTALL_SUFFIX='${MUSESCORE_INSTALL_SUFFIX}'\n"
"MSCORE_INSTALL_SUFFIX must not contain hyphen characters. It will be used " "MUSESCORE_INSTALL_SUFFIX must not contain hyphen characters. It will be used "
"inside the <id> tag in *.appdata.xml and hyphens are discouraged there." "inside the <id> tag in *.appdata.xml and hyphens are discouraged there."
) )
endif ("${MSCORE_INSTALL_SUFFIX}" MATCHES "-") endif ("${MUSESCORE_INSTALL_SUFFIX}" MATCHES "-")
configure_file(build/Linux+BSD/org.musescore.MuseScore.appdata.xml.in org.musescore.MuseScore${MSCORE_INSTALL_SUFFIX}.appdata.xml) configure_file(build/Linux+BSD/org.musescore.MuseScore.appdata.xml.in org.musescore.MuseScore${MUSESCORE_INSTALL_SUFFIX}.appdata.xml)
install( FILES ${PROJECT_BINARY_DIR}/org.musescore.MuseScore${MSCORE_INSTALL_SUFFIX}.appdata.xml DESTINATION share/metainfo) install( FILES ${PROJECT_BINARY_DIR}/org.musescore.MuseScore${MUSESCORE_INSTALL_SUFFIX}.appdata.xml DESTINATION share/metainfo)
# Substitute variables within man pages # Substitute variables within man pages
set(MAN_NAME mscore) set(MAN_NAME mscore)
set(MAN_ALIAS musescore) set(MAN_ALIAS musescore)
set(MAN_EXTENSION .1) set(MAN_EXTENSION .1)
set(MAN_FULL_NAME ${MAN_NAME}${MSCORE_INSTALL_SUFFIX}${MAN_EXTENSION}) set(MAN_FULL_NAME ${MAN_NAME}${MUSESCORE_INSTALL_SUFFIX}${MAN_EXTENSION})
set(MAN_FULL_ALIAS ${MAN_ALIAS}${MSCORE_INSTALL_SUFFIX}${MAN_EXTENSION}) set(MAN_FULL_ALIAS ${MAN_ALIAS}${MUSESCORE_INSTALL_SUFFIX}${MAN_EXTENSION})
set(MAN_TARGET ${PROJECT_SOURCE_DIR}/build/Linux+BSD/${MAN_NAME}${MAN_EXTENSION}.in) set(MAN_TARGET ${PROJECT_SOURCE_DIR}/build/Linux+BSD/${MAN_NAME}${MAN_EXTENSION}.in)
set(MAN_BUILD ${PROJECT_BINARY_DIR}/${MAN_FULL_NAME}) set(MAN_BUILD ${PROJECT_BINARY_DIR}/${MAN_FULL_NAME})
string(TOUPPER "mscore${MSCORE_INSTALL_SUFFIX}" MAN_MSCORE_UPPER) # Command name shown in uppercase in man pages by convention string(TOUPPER "mscore${MUSESCORE_INSTALL_SUFFIX}" MAN_MSCORE_UPPER) # Command name shown in uppercase in man pages by convention
configure_file(${MAN_TARGET} ${MAN_BUILD}) configure_file(${MAN_TARGET} ${MAN_BUILD})
# Compress man pages if gzip is installed (don't on OpenBSD) # Compress man pages if gzip is installed (don't on OpenBSD)
# Note: Compressing man pages is normal on Linux but not OpenBSD # Note: Compressing man pages is normal on Linux but not OpenBSD
@ -89,8 +89,8 @@ if (NOT MINGW AND NOT MSVC AND NOT APPLE)
message(STATUS "Found 'gzip'. Man pages will be compressed.") message(STATUS "Found 'gzip'. Man pages will be compressed.")
set(MAN_TARGET ${MAN_BUILD}) set(MAN_TARGET ${MAN_BUILD})
set(MAN_EXTENSION ${MAN_EXTENSION}.gz) set(MAN_EXTENSION ${MAN_EXTENSION}.gz)
set(MAN_FULL_NAME ${MAN_NAME}${MSCORE_INSTALL_SUFFIX}${MAN_EXTENSION}) set(MAN_FULL_NAME ${MAN_NAME}${MUSESCORE_INSTALL_SUFFIX}${MAN_EXTENSION})
set(MAN_FULL_ALIAS ${MAN_ALIAS}${MSCORE_INSTALL_SUFFIX}${MAN_EXTENSION}) set(MAN_FULL_ALIAS ${MAN_ALIAS}${MUSESCORE_INSTALL_SUFFIX}${MAN_EXTENSION})
set(MAN_BUILD ${PROJECT_BINARY_DIR}/${MAN_FULL_NAME}) set(MAN_BUILD ${PROJECT_BINARY_DIR}/${MAN_FULL_NAME})
add_custom_command( add_custom_command(
OUTPUT ${MAN_BUILD} OUTPUT ${MAN_BUILD}
@ -130,7 +130,7 @@ if (NOT MINGW AND NOT MSVC AND NOT APPLE)
message(STATUS "'ln' not found (it is optional). No symlink aliases will be created.") message(STATUS "'ln' not found (it is optional). No symlink aliases will be created.")
endif (LN_EXECUTABLE) endif (LN_EXECUTABLE)
# Add .MSCZ, .MSCX and .MSCS to MIME database (informs system that filetypes .MSCZ, .MSCX and .MSCS are MuseScore files) # Add .MSCZ, .MSCX and .MSCS to MIME database (informs system that filetypes .MSCZ, .MSCX and .MSCS are MuseScore files)
configure_file(build/Linux+BSD/musescore.xml.in musescore${MSCORE_INSTALL_SUFFIX}.xml) configure_file(build/Linux+BSD/musescore.xml.in musescore${MUSESCORE_INSTALL_SUFFIX}.xml)
install( FILES ${PROJECT_BINARY_DIR}/musescore${MSCORE_INSTALL_SUFFIX}.xml DESTINATION share/mime/packages COMPONENT doc) install( FILES ${PROJECT_BINARY_DIR}/musescore${MUSESCORE_INSTALL_SUFFIX}.xml DESTINATION share/mime/packages COMPONENT doc)
# Note: Must now run "update-mime-database" to apply changes. # Note: Must now run "update-mime-database" to apply changes.
endif (NOT MINGW AND NOT MSVC AND NOT APPLE) endif (NOT MINGW AND NOT MSVC AND NOT APPLE)

View File

@ -1,27 +0,0 @@
#=============================================================================
# MuseScore
# Music Composition & Notation
#
# Copyright (C) 2002-2020 MuseScore BVBA and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2.
#
# 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, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
set(MSCORE_UNSTABLE TRUE) # Mark as unstable
set(MSCORE_RELEASE_CHANNEL "devel")
if (NOT MUSESCORE_VERSION_LABEL)
SET(MUSESCORE_VERSION_LABEL "dev")
endif (NOT MUSESCORE_VERSION_LABEL)
SET(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME} ${MUSESCORE_VERSION_MAJOR}")

View File

@ -1,23 +0,0 @@
#=============================================================================
# MuseScore
# Music Composition & Notation
#
# Copyright (C) 2002-2020 MuseScore BVBA and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2.
#
# 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, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
set(MSCORE_UNSTABLE FALSE)
set(MSCORE_RELEASE_CHANNEL "stable")
SET(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME} ${MUSESCORE_VERSION_MAJOR}")

View File

@ -1,27 +0,0 @@
#=============================================================================
# MuseScore
# Music Composition & Notation
#
# Copyright (C) 2002-2020 MuseScore BVBA and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2.
#
# 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, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
set(MSCORE_UNSTABLE FALSE)
set(MSCORE_RELEASE_CHANNEL "testing")
if (NOT MUSESCORE_VERSION_LABEL)
SET(MUSESCORE_VERSION_LABEL "Testing")
endif (NOT MUSESCORE_VERSION_LABEL)
SET(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME} ${MUSESCORE_VERSION_MAJOR}.${MUSESCORE_VERSION_MINOR} ${MUSESCORE_VERSION_LABEL}")

View File

@ -1,37 +0,0 @@
/*
* SPDX-License-Identifier: GPL-3.0-only
* MuseScore-CLA-applies
*
* MuseScore
* Music Composition & Notation
*
* Copyright (C) 2021 MuseScore BVBA and others
*
* 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/>.
*/
#ifndef MUSESCORE_CONFIG_H
#define MUSESCORE_CONFIG_H
#cmakedefine MSCORE_UNSTABLE
#define MUSESCORE_NAME_VERSION "${MUSESCORE_NAME_VERSION}"
#define INSTALL_NAME "${Mscore_INSTALL_NAME}"
#define INSTPREFIX "${CMAKE_INSTALL_PREFIX}"
#define INSTSUFFIX "${MSCORE_INSTALL_SUFFIX}"
#define VERSION "${MUSESCORE_VERSION_FULL}"
#define VERSION_LABEL "${MUSESCORE_VERSION_LABEL}"
#define BUILD_NUMBER "${CMAKE_BUILD_NUMBER}"
#define SPARKLE_APPCAST_URL "${SPARKLE_APPCAST_URL}"
#endif /* MUSESCORE_CONFIG_H */

View File

@ -1,71 +0,0 @@
#=============================================================================
# MuseScore
# Linux Music Score Editor
#
# Copyright (C) 2002-2020 MuseScore BVBA and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2.
#
# 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, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
# The MuseScore version number.
SET(MUSESCORE_NAME "MuseScore")
SET(MUSESCORE_VERSION_MAJOR "4")
SET(MUSESCORE_VERSION_MINOR "1")
SET(MUSESCORE_VERSION_PATCH "0")
SET(MUSESCORE_VERSION_LABEL "")
message(STATUS "MUSESCORE_BUILD_MODE ${MUSESCORE_BUILD_MODE}")
if (NOT MUSESCORE_BUILD_MODE)
SET(MUSESCORE_BUILD_MODE "dev")
endif()
include(${CMAKE_CURRENT_LIST_DIR}/build/cmake/config/${MUSESCORE_BUILD_MODE}.cmake)
SET(MUSESCORE_VERSION "${MUSESCORE_VERSION_MAJOR}.${MUSESCORE_VERSION_MINOR}")
# Version schema x.x.x is hardcoded in source
SET(MUSESCORE_VERSION_FULL "${MUSESCORE_VERSION}.${MUSESCORE_VERSION_PATCH}")
if (MUSESCORE_LABEL)
set(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME_VERSION} ${MUSESCORE_LABEL}")
endif()
if (MSCORE_UNSTABLE)
set (MUSESCORE_NAME_VERSION "${MUSESCORE_NAME_VERSION} (${MUSESCORE_VERSION_FULL} unstable)")
endif()
# Set revision for local builds
# Before need run 'make revision' or 'msvc_build.bat revision'
include(${CMAKE_CURRENT_LIST_DIR}/build/cmake/TryUseLocalRevision.cmake)
# Print variables which are needed by CI build scripts.
# STATUS mode makes message() command use stdout for its output.
message(STATUS "MSCORE_UNSTABLE ${MSCORE_UNSTABLE}")
message(STATUS "MSCORE_RELEASE_CHANNEL ${MSCORE_RELEASE_CHANNEL}")
message(STATUS "MUSESCORE_VERSION_FULL ${MUSESCORE_VERSION_FULL}")
if (MSCORE_UNSTABLE)
message(STATUS "VERSION ${MUSESCORE_VERSION_MAJOR}.${MUSESCORE_VERSION_MINOR}b-${MUSESCORE_REVISION}")
else()
message(STATUS "VERSION ${MUSESCORE_VERSION_FULL}")
endif()
message(STATUS "MUSESCORE_REVISION: ${MUSESCORE_REVISION}")
if (APPLE)
SET(Mscore_INSTALL_NAME "Contents/Resources/")
SET(Mscore_SHARE_NAME "mscore.app/")
elseif (MSVC OR MINGW)
SET(Mscore_INSTALL_NAME "")
SET(Mscore_SHARE_NAME "./")
else()
SET(Mscore_INSTALL_NAME "mscore${MSCORE_INSTALL_SUFFIX}-${MUSESCORE_VERSION}/")
SET(Mscore_SHARE_NAME "share/")
endif()

View File

@ -78,7 +78,7 @@ ECHO "BUILD_WIN_PORTABLE: %BUILD_WIN_PORTABLE%"
IF "%BUILD_WIN_PORTABLE%"=="ON" ( IF "%BUILD_WIN_PORTABLE%"=="ON" (
SET "INSTALL_FOLDER=MuseScorePortable\App\MuseScore" SET "INSTALL_FOLDER=MuseScorePortable\App\MuseScore"
SET "BUILD_AUTOUPDATE=OFF" SET "BUILD_AUTOUPDATE=OFF"
SET "WIN_PORTABLE_OPT=-DMUSESCORE_BUILD_CONFIGURE="app-portable" SET "WIN_PORTABLE_OPT=-DMUSESCORE_BUILD_CONFIGURATION="app-portable"
) )
ECHO "INSTALL_FOLDER: %INSTALL_FOLDER%" ECHO "INSTALL_FOLDER: %INSTALL_FOLDER%"

View File

@ -23,8 +23,7 @@ TARGET=release
MUSESCORE_INSTALL_DIR=${MUSESCORE_INSTALL_DIR:-"../build.install"} MUSESCORE_INSTALL_DIR=${MUSESCORE_INSTALL_DIR:-"../build.install"}
MUSESCORE_INSTALL_SUFFIX=${MUSESCORE_INSTALL_SUFFIX:-""} MUSESCORE_INSTALL_SUFFIX=${MUSESCORE_INSTALL_SUFFIX:-""}
MUSESCORE_LABEL=${MUSESCORE_LABEL:-""} MUSESCORE_BUILD_CONFIGURATION=${DMUSESCORE_BUILD_CONFIGURATION:-"app"}
MUSESCORE_BUILD_CONFIGURE=${DMUSESCORE_BUILD_CONFIGURE:-"app"}
MUSESCORE_BUILD_MODE=${MUSESCORE_BUILD_MODE:-"dev"} MUSESCORE_BUILD_MODE=${MUSESCORE_BUILD_MODE:-"dev"}
MUSESCORE_BUILD_NUMBER=${MUSESCORE_BUILD_NUMBER:-"12345678"} MUSESCORE_BUILD_NUMBER=${MUSESCORE_BUILD_NUMBER:-"12345678"}
MUSESCORE_REVISION=${MUSESCORE_REVISION:-"abc123456"} MUSESCORE_REVISION=${MUSESCORE_REVISION:-"abc123456"}
@ -69,9 +68,8 @@ function do_build() {
cmake .. -GNinja \ cmake .. -GNinja \
-DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \ -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \
-DCMAKE_INSTALL_PREFIX="${MUSESCORE_INSTALL_DIR}" \ -DCMAKE_INSTALL_PREFIX="${MUSESCORE_INSTALL_DIR}" \
-DMSCORE_INSTALL_SUFFIX="${MUSESCORE_INSTALL_SUFFIX}" \ -DMUSESCORE_INSTALL_SUFFIX="${MUSESCORE_INSTALL_SUFFIX}" \
-DMUSESCORE_LABEL="${MUSESCORE_LABEL}" \ -DMUSESCORE_BUILD_CONFIGURATION="${MUSESCORE_BUILD_CONFIGURATION}" \
-DMUSESCORE_BUILD_CONFIGURE="${MUSESCORE_BUILD_CONFIGURE}" \
-DMUSESCORE_BUILD_MODE="${MUSESCORE_BUILD_MODE}" \ -DMUSESCORE_BUILD_MODE="${MUSESCORE_BUILD_MODE}" \
-DCMAKE_BUILD_NUMBER="${MUSESCORE_BUILD_NUMBER}" \ -DCMAKE_BUILD_NUMBER="${MUSESCORE_BUILD_NUMBER}" \
-DMUSESCORE_REVISION="${MUSESCORE_REVISION}" \ -DMUSESCORE_REVISION="${MUSESCORE_REVISION}" \
@ -145,7 +143,6 @@ case $TARGET in
appimage) appimage)
MUSESCORE_INSTALL_DIR=../MuseScore MUSESCORE_INSTALL_DIR=../MuseScore
MUSESCORE_INSTALL_SUFFIX="4portable${MUSESCORE_INSTALL_SUFFIX}" # e.g. "4portable" or "4portablenightly" MUSESCORE_INSTALL_SUFFIX="4portable${MUSESCORE_INSTALL_SUFFIX}" # e.g. "4portable" or "4portablenightly"
MUSESCORE_LABEL="Portable AppImage"
MUSESCORE_NO_RPATH=ON MUSESCORE_NO_RPATH=ON
mkdir -p build.release mkdir -p build.release

View File

@ -20,30 +20,7 @@
#ifndef MUSESCORE_CONFIG_H #ifndef MUSESCORE_CONFIG_H
#define MUSESCORE_CONFIG_H #define MUSESCORE_CONFIG_H
#define MSCORE_UNSTABLE
/* #undef HAS_MIDI */
/* #undef HAS_AUDIOFILE */
#define MUSESCORE_NAME_VERSION "MuseScore 4 (4.0.0 unstable)"
#define INSTALL_NAME "mscore-4.0/"
#define INSTPREFIX "/home/igor/Dev/MuseScore/build.debug/install"
#define VERSION "4.0.0" #define VERSION "4.0.0"
#define VERSION_LABEL "Development"
#define BUILD_NUMBER ""
#define SPARKLE_APPCAST_URL ""
/* #undef ENGRAVING_BUILD_ACCESSIBLE_TREE */
/* #undef OPENGL */
/* #undef Q_WS_UIKIT */
#define USE_BSP true
// does not work on windows/mac:
//#define USE_GLYPHS true
#endif /* MUSESCORE_CONFIG_H */ #endif /* MUSESCORE_CONFIG_H */

View File

@ -42,12 +42,12 @@ elseif(OS_IS_WIN)
elseif(OS_IS_LIN) elseif(OS_IS_LIN)
foreach(SIZE 16 24 32 48 64 96 128 512) foreach(SIZE 16 24 32 48 64 96 128 512)
install(FILES AppIcon/MS4_AppIcon_${SIZE}x${SIZE}.png RENAME mscore${MSCORE_INSTALL_SUFFIX}.png DESTINATION share/icons/hicolor/${SIZE}x${SIZE}/apps) install(FILES AppIcon/MS4_AppIcon_${SIZE}x${SIZE}.png RENAME mscore${MUSESCORE_INSTALL_SUFFIX}.png DESTINATION share/icons/hicolor/${SIZE}x${SIZE}/apps)
endforeach() endforeach()
install(FILES MsczIcon/MS4_MsczIcon.png RENAME application-x-musescore${MSCORE_INSTALL_SUFFIX}.png install(FILES MsczIcon/MS4_MsczIcon.png RENAME application-x-musescore${MUSESCORE_INSTALL_SUFFIX}.png
DESTINATION share/icons/hicolor/512x512/mimetypes) DESTINATION share/icons/hicolor/512x512/mimetypes)
install(FILES MscxIcon/MS4_MscxIcon.png RENAME application-x-musescore${MSCORE_INSTALL_SUFFIX}+xml.png install(FILES MscxIcon/MS4_MscxIcon.png RENAME application-x-musescore${MUSESCORE_INSTALL_SUFFIX}+xml.png
DESTINATION share/icons/hicolor/512x512/mimetypes) DESTINATION share/icons/hicolor/512x512/mimetypes)
# Note: Must now run "gtk-update-icon-cache" to set the new icons. # Note: Must now run "gtk-update-icon-cache" to set the new icons.

View File

@ -22,8 +22,6 @@
#include "appshell.h" #include "appshell.h"
#include "config.h"
#include <QApplication> #include <QApplication>
#include <QQmlApplicationEngine> #include <QQmlApplicationEngine>
#include <QQuickWindow> #include <QQuickWindow>
@ -112,7 +110,7 @@ int AppShell::run(int argc, char** argv)
#if !defined(Q_OS_WIN) && !defined(Q_OS_DARWIN) && !defined(Q_OS_WASM) #if !defined(Q_OS_WIN) && !defined(Q_OS_DARWIN) && !defined(Q_OS_WASM)
// Any OS that uses Freedesktop.org Desktop Entry Specification (e.g. Linux, BSD) // Any OS that uses Freedesktop.org Desktop Entry Specification (e.g. Linux, BSD)
QGuiApplication::setDesktopFileName("org.musescore.MuseScore" INSTSUFFIX ".desktop"); QGuiApplication::setDesktopFileName("org.musescore.MuseScore" MUSESCORE_INSTALL_SUFFIX ".desktop");
#endif #endif
// ==================================================== // ====================================================

View File

@ -23,7 +23,6 @@
#include "log.h" #include "log.h"
#include "global/muversion.h" #include "global/muversion.h"
#include "config.h"
using namespace mu::appshell; using namespace mu::appshell;
using namespace mu::framework; using namespace mu::framework;

View File

@ -24,7 +24,6 @@
#include <QJsonArray> #include <QJsonArray>
#include <QJsonDocument> #include <QJsonDocument>
#include "config.h"
#include "settings.h" #include "settings.h"
#include "multiinstances/resourcelockguard.h" #include "multiinstances/resourcelockguard.h"
@ -171,7 +170,7 @@ std::string AppShellConfiguration::musicXMLLicenseDeedUrl() const
std::string AppShellConfiguration::museScoreVersion() const std::string AppShellConfiguration::museScoreVersion() const
{ {
return VERSION + std::string(".") + BUILD_NUMBER; return MUSESCORE_VERSION + std::string(".") + MUSESCORE_BUILD_NUMBER;
} }
std::string AppShellConfiguration::museScoreRevision() const std::string AppShellConfiguration::museScoreRevision() const
@ -250,7 +249,7 @@ std::string AppShellConfiguration::utmParameters(const std::string& utmMedium) c
{ {
return "utm_source=desktop&utm_medium=" + utmMedium return "utm_source=desktop&utm_medium=" + utmMedium
+ "&utm_content=" + MUSESCORE_REVISION + "&utm_content=" + MUSESCORE_REVISION
+ "&utm_campaign=MuseScore" + VERSION; + "&utm_campaign=MuseScore" + MUSESCORE_VERSION;
} }
std::string AppShellConfiguration::sha() const std::string AppShellConfiguration::sha() const

View File

@ -23,7 +23,6 @@
#include "translation.h" #include "translation.h"
#include "muversion.h" #include "muversion.h"
#include "config.h"
#include <QApplication> #include <QApplication>
#include <QClipboard> #include <QClipboard>
@ -92,8 +91,8 @@ void AboutModel::copyRevisionToClipboard() const
.arg(QSysInfo::prettyProductName()) .arg(QSysInfo::prettyProductName())
.arg(QSysInfo::currentCpuArchitecture()) .arg(QSysInfo::currentCpuArchitecture())
.arg(QSysInfo::WordSize) .arg(QSysInfo::WordSize)
.arg(VERSION) .arg(MUSESCORE_VERSION)
.arg(BUILD_NUMBER) .arg(MUSESCORE_BUILD_NUMBER)
.arg(MUSESCORE_REVISION)); .arg(MUSESCORE_REVISION));
} }

View File

@ -23,7 +23,6 @@
#include "types/translatablestring.h" #include "types/translatablestring.h"
#include "config.h"
#include "log.h" #include "log.h"
using namespace mu::appshell; using namespace mu::appshell;

View File

@ -21,7 +21,6 @@
*/ */
#include "cloudconfiguration.h" #include "cloudconfiguration.h"
#include "config.h"
#include "settings.h" #include "settings.h"
#include <QRandomGenerator> #include <QRandomGenerator>
@ -66,8 +65,8 @@ static QString userAgent()
}; };
return QString("MS_EDITOR/%1.%2 (%3)") return QString("MS_EDITOR/%1.%2 (%3)")
.arg(VERSION) .arg(MUSESCORE_VERSION)
.arg(BUILD_NUMBER) .arg(MUSESCORE_BUILD_NUMBER)
.arg(systemInfo.join(' ')).toLatin1(); .arg(systemInfo.join(' ')).toLatin1();
} }

View File

@ -21,7 +21,6 @@
*/ */
#include "cloudservice.h" #include "cloudservice.h"
#include "config.h"
#include <QOAuth2AuthorizationCodeFlow> #include <QOAuth2AuthorizationCodeFlow>
#include <QJsonDocument> #include <QJsonDocument>
@ -53,7 +52,7 @@ static const QString REFRESH_TOKEN_KEY("refresh_token");
static const QString DEVICE_ID_KEY("device_id"); static const QString DEVICE_ID_KEY("device_id");
static const QString SCORE_ID_KEY("score_id"); static const QString SCORE_ID_KEY("score_id");
static const QString EDITOR_SOURCE_KEY("editor_source"); static const QString EDITOR_SOURCE_KEY("editor_source");
static const QString EDITOR_SOURCE_VALUE(QString("Musescore Editor %1").arg(VERSION)); static const QString EDITOR_SOURCE_VALUE(QString("Musescore Editor %1").arg(MUSESCORE_VERSION));
static const QString PLATFORM_KEY("platform"); static const QString PLATFORM_KEY("platform");
static const std::string CLOUD_ACCESS_TOKEN_RESOURCE_NAME("CLOUD_ACCESS_TOKEN"); static const std::string CLOUD_ACCESS_TOKEN_RESOURCE_NAME("CLOUD_ACCESS_TOKEN");

View File

@ -24,7 +24,6 @@
#include "diagnostics/diagnosticutils.h" #include "diagnostics/diagnosticutils.h"
#include "shortcutcontext.h" #include "shortcutcontext.h"
#include "config.h"
#include "log.h" #include "log.h"
using namespace mu::context; using namespace mu::context;

View File

@ -55,7 +55,6 @@
#include "devtools/crashhandlerdevtoolsmodel.h" #include "devtools/crashhandlerdevtoolsmodel.h"
#include "log.h" #include "log.h"
#include "config.h"
using namespace mu::diagnostics; using namespace mu::diagnostics;
using namespace mu::modularity; using namespace mu::modularity;

View File

@ -33,7 +33,6 @@
#include "engraving/rw/scorereader.h" #include "engraving/rw/scorereader.h"
#include "engraving/libmscore/masterscore.h" #include "engraving/libmscore/masterscore.h"
#include "config.h"
#ifdef MUE_BUILD_IMPORTEXPORT_MODULE #ifdef MUE_BUILD_IMPORTEXPORT_MODULE
#include "importexport/guitarpro/internal/guitarproreader.h" #include "importexport/guitarpro/internal/guitarproreader.h"
#endif #endif

View File

@ -29,7 +29,6 @@
#include "debugpaint.h" #include "debugpaint.h"
#include "log.h" #include "log.h"
#include "config.h"
using namespace mu::engraving; using namespace mu::engraving;

View File

@ -31,8 +31,6 @@
#include "stafftype.h" #include "stafftype.h"
#include "volta.h" #include "volta.h"
#include "config.h"
using namespace mu; using namespace mu;
namespace mu::engraving { namespace mu::engraving {

View File

@ -475,7 +475,7 @@ String Page::replaceTextMacros(const String& s) const
break; break;
case 'v': case 'v':
if (score()->dirty()) { if (score()->dirty()) {
d += String::fromAscii(VERSION); d += String::fromAscii(MUSESCORE_VERSION);
} else { } else {
d += score()->mscoreVersion(); d += score()->mscoreVersion();
} }

View File

@ -98,8 +98,6 @@
#include "accessibility/accessibleroot.h" #include "accessibility/accessibleroot.h"
#endif #endif
#include "config.h"
#include "log.h" #include "log.h"
using namespace mu; using namespace mu;

View File

@ -54,7 +54,6 @@
#include "utils.h" #include "utils.h"
#include "log.h" #include "log.h"
#include "config.h"
using namespace mu; using namespace mu;
using namespace mu::io; using namespace mu::io;
@ -375,7 +374,7 @@ bool Score::writeScore(io::IODevice* f, bool msczFormat, bool onlySelection, com
xml.startElement("museScore", { { "version", MSC_VERSION } }); xml.startElement("museScore", { { "version", MSC_VERSION } });
if (!MScore::testMode) { if (!MScore::testMode) {
xml.tag("programVersion", VERSION); xml.tag("programVersion", MUSESCORE_VERSION);
xml.tag("programRevision", MUSESCORE_REVISION); xml.tag("programRevision", MUSESCORE_REVISION);
} }
write(xml, onlySelection, hook); write(xml, onlySelection, hook);
@ -384,7 +383,7 @@ bool Score::writeScore(io::IODevice* f, bool msczFormat, bool onlySelection, com
if (!onlySelection) { if (!onlySelection) {
//update version values for i.e. plugin access //update version values for i.e. plugin access
_mscoreVersion = String::fromAscii(VERSION); _mscoreVersion = String::fromAscii(MUSESCORE_VERSION);
_mscoreRevision = AsciiStringView(MUSESCORE_REVISION).toInt(nullptr, 16); _mscoreRevision = AsciiStringView(MUSESCORE_REVISION).toInt(nullptr, 16);
_mscVersion = MSCVERSION; _mscVersion = MSCVERSION;
} }

View File

@ -30,7 +30,6 @@
#include "chord.h" #include "chord.h"
#include "chordrest.h" #include "chordrest.h"
#include "clef.h" #include "clef.h"
#include "config.h"
#include "measure.h" #include "measure.h"
#include "note.h" #include "note.h"
#include "page.h" #include "page.h"

View File

@ -29,7 +29,6 @@
#include "types/string.h" #include "types/string.h"
#include "types/propertyvalue.h" #include "types/propertyvalue.h"
#include "libmscore/property.h" #include "libmscore/property.h"
#include "config.h"
namespace mu::engraving { namespace mu::engraving {
// Needs to be duplicated here and in symid.h since moc doesn't handle macros from #include'd files // Needs to be duplicated here and in symid.h since moc doesn't handle macros from #include'd files

View File

@ -23,8 +23,6 @@
#include <QAccessible> #include <QAccessible>
#include "config.h"
using namespace mu::accessibility; using namespace mu::accessibility;
class AccessibilityActivationObserver : public QAccessible::ActivationObserver class AccessibilityActivationObserver : public QAccessible::ActivationObserver

View File

@ -22,8 +22,6 @@
#include "audiooutputhandler.h" #include "audiooutputhandler.h"
#include "config.h"
#include "async/async.h" #include "async/async.h"
#include "containers.h" #include "containers.h"

View File

@ -23,7 +23,6 @@
#include "utils/drawlogger.h" #include "utils/drawlogger.h"
#include "log.h" #include "log.h"
#include "config.h"
using namespace mu; using namespace mu;
using namespace mu::draw; using namespace mu::draw;

View File

@ -25,7 +25,6 @@
#include <list> #include <list>
#include <stack> #include <stack>
#include "config.h"
#include "ipaintprovider.h" #include "ipaintprovider.h"
#include "types/string.h" #include "types/string.h"

View File

@ -30,7 +30,7 @@
using namespace mu; using namespace mu;
int ObjectAllocator::__used = 0; int ObjectAllocator::s_used = 0;
size_t ObjectAllocator::DEFAULT_BLOCK_SIZE(1024 * 256); // 256 kB size_t ObjectAllocator::DEFAULT_BLOCK_SIZE(1024 * 256); // 256 kB
static inline size_t align(size_t n) static inline size_t align(size_t n)
@ -44,14 +44,14 @@ static inline size_t align(size_t n)
void ObjectAllocator::used() void ObjectAllocator::used()
{ {
#ifdef MUE_ENABLE_CUSTOM_ALLOCATOR #ifdef MUE_ENABLE_CUSTOM_ALLOCATOR
__used++; s_used++;
#endif #endif
} }
void ObjectAllocator::unused() void ObjectAllocator::unused()
{ {
#ifdef MUE_ENABLE_CUSTOM_ALLOCATOR #ifdef MUE_ENABLE_CUSTOM_ALLOCATOR
__used--; s_used--;
#endif #endif
} }

View File

@ -104,11 +104,11 @@ public:
Info stateInfo() const; Info stateInfo() const;
static bool enabled() { return __used; } static bool enabled() { return s_used; }
static void used(); static void used();
static void unused(); static void unused();
static int __used; static int s_used;
private: private:
struct Chunk { struct Chunk {

View File

@ -28,7 +28,6 @@
#include "logremover.h" #include "logremover.h"
#include "thirdparty/haw_logger/logger/logdefdest.h" #include "thirdparty/haw_logger/logger/logdefdest.h"
#include "muversion.h" #include "muversion.h"
#include "config.h"
#include "internal/application.h" #include "internal/application.h"
#include "internal/interactive.h" #include "internal/interactive.h"
@ -45,8 +44,6 @@
#include "diagnostics/idiagnosticspathsregister.h" #include "diagnostics/idiagnosticspathsregister.h"
#include "config.h"
using namespace mu::framework; using namespace mu::framework;
using namespace mu::modularity; using namespace mu::modularity;
using namespace mu::io; using namespace mu::io;
@ -112,7 +109,7 @@ void GlobalModule::onPreInit(const IApplication::RunMode& mode)
#endif #endif
LOGI() << "log path: " << logFile->filePath(); LOGI() << "log path: " << logFile->filePath();
LOGI() << "=== Started MuseScore " << framework::MUVersion::fullVersion() << ", build number " << BUILD_NUMBER << " ==="; LOGI() << "=== Started MuseScore " << framework::MUVersion::fullVersion() << ", build number " << MUSESCORE_BUILD_NUMBER << " ===";
//! --- Setup profiler --- //! --- Setup profiler ---
using namespace haw::profiler; using namespace haw::profiler;

View File

@ -26,7 +26,6 @@
#include <QDir> #include <QDir>
#include <QCoreApplication> #include <QCoreApplication>
#include "config.h"
#include "settings.h" #include "settings.h"
#include "muversion.h" #include "muversion.h"
#include "log.h" #include "log.h"
@ -61,7 +60,7 @@ io::path_t GlobalConfiguration::appDataPath() const
QString GlobalConfiguration::resolveAppDataPath() const QString GlobalConfiguration::resolveAppDataPath() const
{ {
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
QDir dir(QCoreApplication::applicationDirPath() + QString("/../" INSTALL_NAME)); QDir dir(QCoreApplication::applicationDirPath() + QString("/../" MUSESCORE_INSTALL_NAME));
return dir.absolutePath() + "/"; return dir.absolutePath() + "/";
#elif defined(Q_OS_MAC) #elif defined(Q_OS_MAC)
QDir dir(QCoreApplication::applicationDirPath() + QString("/../Resources")); QDir dir(QCoreApplication::applicationDirPath() + QString("/../Resources"));
@ -70,12 +69,12 @@ QString GlobalConfiguration::resolveAppDataPath() const
return "/files/share"; return "/files/share";
#else #else
// Try relative path (needed for portable AppImage and non-standard installations) // Try relative path (needed for portable AppImage and non-standard installations)
QDir dir(QCoreApplication::applicationDirPath() + QString("/../share/" INSTALL_NAME)); QDir dir(QCoreApplication::applicationDirPath() + QString("/../share/" MUSESCORE_INSTALL_NAME));
if (dir.exists()) { if (dir.exists()) {
return dir.absolutePath() + "/"; return dir.absolutePath() + "/";
} }
// Otherwise fall back to default location (e.g. if binary has moved relative to share) // Otherwise fall back to default location (e.g. if binary has moved relative to share)
return QString(INSTPREFIX "/share/" INSTALL_NAME); return QString(MUSESCORE_INSTALL_PREFIX "/share/" MUSESCORE_INSTALL_NAME);
#endif #endif
} }

View File

@ -23,14 +23,11 @@
#include "types/version.h" #include "types/version.h"
#include "config.h"
#include "log.h"
using namespace mu::framework; using namespace mu::framework;
bool MUVersion::unstable() bool MUVersion::unstable()
{ {
#ifdef MSCORE_UNSTABLE #ifdef MUSESCORE_UNSTABLE
return true; return true;
#else #else
return false; return false;
@ -39,14 +36,14 @@ bool MUVersion::unstable()
mu::String MUVersion::version() mu::String MUVersion::version()
{ {
return String::fromStdString(VERSION); return String::fromStdString(MUSESCORE_VERSION);
} }
mu::String MUVersion::fullVersion() mu::String MUVersion::fullVersion()
{ {
Version res(version()); Version res(version());
String versionLabel = String::fromStdString(VERSION_LABEL); String versionLabel = String::fromStdString(MUSESCORE_VERSION_LABEL);
if (!versionLabel.isEmpty()) { if (!versionLabel.isEmpty()) {
res.setSuffix(versionLabel); res.setSuffix(versionLabel);
} }

View File

@ -22,7 +22,7 @@
#ifndef MU_FRAMEWORK_MUVERSION_H #ifndef MU_FRAMEWORK_MUVERSION_H
#define MU_FRAMEWORK_MUVERSION_H #define MU_FRAMEWORK_MUVERSION_H
#include "types/version.h" #include "types/string.h"
namespace mu::framework { namespace mu::framework {
class MUVersion class MUVersion

View File

@ -21,7 +21,6 @@
*/ */
#include "settings.h" #include "settings.h"
#include "config.h"
#include "log.h" #include "log.h"
#include <QDateTime> #include <QDateTime>

View File

@ -82,7 +82,7 @@ public:
void SetUp() override void SetUp() override
{ {
ObjectAllocator::__used++; ObjectAllocator::s_used++;
} }
}; };

View File

@ -28,7 +28,7 @@
# After all the settings you need to do: # After all the settings you need to do:
# include(${PROJECT_SOURCE_DIR}/framework/testing/gtest.cmake) # include(${PROJECT_SOURCE_DIR}/framework/testing/gtest.cmake)
message(STATUS "Configuring ${MODULE_TEST} (gtest)") message(STATUS "Configuring ${MODULE_TEST}")
get_property(gmock_LIBS GLOBAL PROPERTY gmock_LIBS) get_property(gmock_LIBS GLOBAL PROPERTY gmock_LIBS)
get_property(gmock_INCLUDE_DIRS GLOBAL PROPERTY gmock_INCLUDE_DIRS) get_property(gmock_INCLUDE_DIRS GLOBAL PROPERTY gmock_INCLUDE_DIRS)

View File

@ -34,8 +34,6 @@
#include "defer.h" #include "defer.h"
#include "log.h" #include "log.h"
#include "config.h"
// #define NAVIGATION_LOGGING_ENABLED // #define NAVIGATION_LOGGING_ENABLED
#ifdef NAVIGATION_LOGGING_ENABLED #ifdef NAVIGATION_LOGGING_ENABLED

View File

@ -28,7 +28,6 @@
#include <QDir> #include <QDir>
#include <QQmlContext> #include <QQmlContext>
#include "config.h"
#include "log.h" #include "log.h"
using namespace mu::ui; using namespace mu::ui;

View File

@ -41,7 +41,6 @@
#endif #endif
#include "log.h" #include "log.h"
#include "config.h"
using namespace mu::uicomponents; using namespace mu::uicomponents;

View File

@ -22,7 +22,6 @@
#include "capellamodule.h" #include "capellamodule.h"
#include "log.h" #include "log.h"
#include "config.h"
#include "modularity/ioc.h" #include "modularity/ioc.h"
#include "project/inotationreadersregister.h" #include "project/inotationreadersregister.h"

View File

@ -120,7 +120,7 @@ mu::Ret PdfWriter::writeList(const INotationPtrList& notations, QIODevice& desti
void PdfWriter::preparePdfWriter(QPdfWriter& pdfWriter, const QString& title, const QSizeF& size) const void PdfWriter::preparePdfWriter(QPdfWriter& pdfWriter, const QString& title, const QSizeF& size) const
{ {
pdfWriter.setResolution(configuration()->exportPdfDpiResolution()); pdfWriter.setResolution(configuration()->exportPdfDpiResolution());
pdfWriter.setCreator("MuseScore Version: " VERSION); pdfWriter.setCreator("MuseScore Version: " MUSESCORE_VERSION);
pdfWriter.setTitle(title); pdfWriter.setTitle(title);
pdfWriter.setPageMargins(QMarginsF()); pdfWriter.setPageMargins(QMarginsF());
pdfWriter.setPageLayout(QPageLayout(QPageSize(size, QPageSize::Inch), QPageLayout::Orientation::Portrait, QMarginsF())); pdfWriter.setPageLayout(QPageLayout(QPageSize(size, QPageSize::Inch), QPageLayout::Orientation::Portrait, QMarginsF()));

View File

@ -157,7 +157,7 @@ public:
resolution = mu::engraving::DPI; resolution = mu::engraving::DPI;
attributes.title = QLatin1String("MuseScore SVG Document"); attributes.title = QLatin1String("MuseScore SVG Document");
attributes.description = QString("Generated by MuseScore %1").arg(VERSION); attributes.description = QString("Generated by MuseScore %1").arg(MUSESCORE_VERSION);
// UNUSED // UNUSED
// attributes.font_family = QLatin1String("serif"); // attributes.font_family = QLatin1String("serif");
// attributes.font_size = QLatin1String("10pt"); // attributes.font_size = QLatin1String("10pt");

View File

@ -129,7 +129,6 @@
#include "../../imusicxmlconfiguration.h" #include "../../imusicxmlconfiguration.h"
#include "engraving/iengravingconfiguration.h" #include "engraving/iengravingconfiguration.h"
#include "config.h"
#include "log.h" #include "log.h"
using namespace mu; using namespace mu;
@ -5978,7 +5977,7 @@ void ExportMusicXml::identification(XmlWriter& xml, Score const* const score)
xml.tag("software", QString("MuseScore 0.7.0")); xml.tag("software", QString("MuseScore 0.7.0"));
xml.tag("encoding-date", QString("2007-09-10")); xml.tag("encoding-date", QString("2007-09-10"));
} else { } else {
xml.tag("software", QString("MuseScore ") + QString(VERSION)); xml.tag("software", QString("MuseScore ") + QString(MUSESCORE_VERSION));
xml.tag("encoding-date", QDate::currentDate().toString(Qt::ISODate)); xml.tag("encoding-date", QDate::currentDate().toString(Qt::ISODate));
} }

View File

@ -22,7 +22,6 @@
#include "musicxmlmodule.h" #include "musicxmlmodule.h"
#include "log.h" #include "log.h"
#include "config.h"
#include "modularity/ioc.h" #include "modularity/ioc.h"
#include "project/inotationreadersregister.h" #include "project/inotationreadersregister.h"

View File

@ -23,8 +23,6 @@
#include <QString> #include <QString>
#include "config.h"
using namespace mu::learn; using namespace mu::learn;
using namespace mu::network; using namespace mu::network;

View File

@ -54,9 +54,9 @@ if (OS_IS_WIN)
elseif(OS_IS_LIN) elseif(OS_IS_LIN)
if (MSCORE_INSTALL_SUFFIX) if (MUSESCORE_INSTALL_SUFFIX)
set(MSCORE_OUTPUT_NAME "${EXECUTABLE_NAME}${MSCORE_INSTALL_SUFFIX}") set(MSCORE_OUTPUT_NAME "${EXECUTABLE_NAME}${MUSESCORE_INSTALL_SUFFIX}")
endif(MSCORE_INSTALL_SUFFIX) endif(MUSESCORE_INSTALL_SUFFIX)
set(CMAKE_INSTALL_RPATH "${QT_INSTALL_LIBS}") set(CMAKE_INSTALL_RPATH "${QT_INSTALL_LIBS}")
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)
@ -373,10 +373,10 @@ elseif(OS_IS_LIN)
if (LN_EXECUTABLE) if (LN_EXECUTABLE)
add_custom_target(mscore_alias ALL add_custom_target(mscore_alias ALL
COMMAND echo "Creating symlink alias for mscore executable." COMMAND echo "Creating symlink alias for mscore executable."
COMMAND ${LN_EXECUTABLE} -sf "mscore${MSCORE_INSTALL_SUFFIX}" "musescore${MSCORE_INSTALL_SUFFIX}" COMMAND ${LN_EXECUTABLE} -sf "mscore${MUSESCORE_INSTALL_SUFFIX}" "musescore${MUSESCORE_INSTALL_SUFFIX}"
COMMAND echo 'Symlink alias: musescore${MSCORE_INSTALL_SUFFIX} -> mscore${MSCORE_INSTALL_SUFFIX}' COMMAND echo 'Symlink alias: musescore${MUSESCORE_INSTALL_SUFFIX} -> mscore${MUSESCORE_INSTALL_SUFFIX}'
) )
install(FILES ${PROJECT_BINARY_DIR}/src/main/musescore${MSCORE_INSTALL_SUFFIX} DESTINATION bin) install(FILES ${PROJECT_BINARY_DIR}/src/main/musescore${MUSESCORE_INSTALL_SUFFIX} DESTINATION bin)
else (LN_EXECUTABLE) else (LN_EXECUTABLE)
add_custom_target(mscore_alias ALL COMMAND echo "No symlink aliases will be created." VERBATIM ) add_custom_target(mscore_alias ALL COMMAND echo "No symlink aliases will be created." VERBATIM )
endif (LN_EXECUTABLE) endif (LN_EXECUTABLE)

View File

@ -22,7 +22,6 @@
#include <QTextCodec> #include <QTextCodec>
#include "config.h"
#include "runtime.h" #include "runtime.h"
#include "log.h" #include "log.h"

View File

@ -1589,14 +1589,6 @@ bool NotationInteraction::applyPaletteElement(mu::engraving::EngravingItem* elem
return false; return false;
} }
//#ifdef MSCORE_UNSTABLE
// if (ScriptRecorder* rec = adapter()->getScriptRecorder()) {
// if (modifiers == 0) {
// rec->recordPaletteElement(element);
// }
// }
//#endif
startEdit(); startEdit();
if (sel.isList()) { if (sel.isList()) {

View File

@ -25,7 +25,6 @@
#include "log.h" #include "log.h"
#include "config.h"
#include "modularity/ioc.h" #include "modularity/ioc.h"
#include "ui/iuiengine.h" #include "ui/iuiengine.h"
#include "ui/iinteractiveuriregister.h" #include "ui/iinteractiveuriregister.h"

View File

@ -22,7 +22,6 @@
#include <QDateTime> #include <QDateTime>
#include "config.h"
#include "util.h" #include "util.h"
#include "score.h" #include "score.h"

View File

@ -30,8 +30,6 @@ if (NOT MUE_BUILD_SHORTCUTS_MODULE)
add_subdirectory(shortcuts) add_subdirectory(shortcuts)
endif() endif()
if (NOT MUE_BUILD_VST_MODULE)
if (NOT BUILD_VST_MODULE)
add_subdirectory(vst) add_subdirectory(vst)
endif (NOT BUILD_VST_MODULE) endif()

View File

@ -21,7 +21,6 @@
*/ */
#include "updateconfiguration.h" #include "updateconfiguration.h"
#include "config.h"
#include "settings.h" #include "settings.h"
using namespace mu::update; using namespace mu::update;
@ -50,7 +49,7 @@ static QString userAgent()
QString cpuArchitecture = QSysInfo::currentCpuArchitecture(); QString cpuArchitecture = QSysInfo::currentCpuArchitecture();
return QString("Musescore/%1 (%2 %3; %4)") return QString("Musescore/%1 (%2 %3; %4)")
.arg(VERSION, osName, osVersion, cpuArchitecture); .arg(MUSESCORE_VERSION, osName, osVersion, cpuArchitecture);
} }
void UpdateConfiguration::init() void UpdateConfiguration::init()

View File

@ -28,7 +28,6 @@
#include "updateerrors.h" #include "updateerrors.h"
#include "translation.h" #include "translation.h"
#include "config.h"
#include "defer.h" #include "defer.h"
#include "log.h" #include "log.h"

View File

@ -34,7 +34,6 @@
#include "muversion.h" #include "muversion.h"
#include "translation.h" #include "translation.h"
#include "config.h"
#include "log.h" #include "log.h"
using namespace mu::update; using namespace mu::update;

View File

@ -4,10 +4,6 @@ project(engraving_app LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_INCLUDE_CURRENT_DIR ON)
#set(CMAKE_AUTOUIC ON)
#set(CMAKE_AUTOMOC ON)
#set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
@ -23,18 +19,7 @@ set(CMAKE_MODULE_PATH
include(SetupBuildEnvironment) include(SetupBuildEnvironment)
include(GetPlatformInfo) include(GetPlatformInfo)
set(QT_MIN_VERSION "5.15.0")
#find_package(Qt5Core ${QT_MIN_VERSION} REQUIRED)
#find_package(Qt5Gui ${QT_MIN_VERSION} REQUIRED)
set(QT_LIBRARIES
# Qt5::Core
# Qt5::Gui
)
include_directories( include_directories(
# ${Qt5Core_INCLUDE_DIRS}
# ${Qt5Gui_INCLUDE_DIRS}
${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}
${MU_ROOT}/thirdparty/dtl ${MU_ROOT}/thirdparty/dtl
) )
@ -44,7 +29,14 @@ set(THIRDPARTY_DIR ${MU_ROOT}/thirdparty)
add_definitions( add_definitions(
-DNO_QT_SUPPORT -DNO_QT_SUPPORT
-DGLOBAL_NO_INTERNAL -DGLOBAL_NO_INTERNAL
#-DHAW_LOGGER_QT_SUPPORT
-DMUSESCORE_REVISION="abc123"
-DMUSESCORE_BUILD_NUMBER="123456"
-DMUSESCORE_VERSION="4.0.0"
-DMUSESCORE_VERSION_LABEL="dev"
-DMUSESCORE_INSTALL_SUFFIX=""
-DMUSESCORE_INSTALL_PREFIX=""
-DMUSESCORE_INSTALL_NAME=""
) )
set(GLOBAL_NO_INTERNAL ON) set(GLOBAL_NO_INTERNAL ON)

View File

@ -1,51 +0,0 @@
//=============================================================================
// MusE
// Linux Music Editor
//
// Copyright (C) 2002-2010 by Werner Schweer and others
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2.
//
// 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, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//=============================================================================
#ifndef MUSESCORE_CONFIG_H
#define MUSESCORE_CONFIG_H
#define MSCORE_UNSTABLE
/* #undef HAS_MIDI */
// #define SCRIPT_INTERFACE
/* #undef HAS_AUDIOFILE */
#define MUSESCORE_NAME_VERSION "MuseScore 4 (4.0.0 unstable)"
#define INSTALL_NAME "mscore-4.0/"
#define INSTPREFIX "/home/igor/Dev/MuseScore/build.debug/install"
#define VERSION "4.0.0"
#define VERSION_LABEL "Development"
#define BUILD_NUMBER ""
#define SPARKLE_APPCAST_URL ""
/* #undef ENGRAVING_BUILD_ACCESSIBLE_TREE */
/* #undef OPENGL */
/* #undef Q_WS_UIKIT */
#define USE_BSP true
// does not work on windows/mac:
//#define USE_GLYPHS true
#endif /* MUSESCORE_CONFIG_H */

43
version.cmake Normal file
View File

@ -0,0 +1,43 @@
#=============================================================================
# MuseScore
# Linux Music Score Editor
#
# Copyright (C) 2002-2020 MuseScore BVBA and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2.
#
# 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, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
set(MUSESCORE_NAME "MuseScore")
set(MUSESCORE_VERSION_MAJOR "4")
set(MUSESCORE_VERSION_MINOR "1")
set(MUSESCORE_VERSION_PATCH "0")
set(MUSESCORE_VERSION "${MUSESCORE_VERSION_MAJOR}.${MUSESCORE_VERSION_MINOR}")
set(MUSESCORE_VERSION_FULL "${MUSESCORE_VERSION}.${MUSESCORE_VERSION_PATCH}")
set(MUSESCORE_VERSION_LABEL "")
if(MUSESCORE_BUILD_MODE MATCHES "dev")
set(MUSESCORE_RELEASE_CHANNEL "devel")
endif()
if(MUSESCORE_BUILD_MODE MATCHES "testing")
set(MUSESCORE_RELEASE_CHANNEL "testing")
endif()
if(MUSESCORE_BUILD_MODE MATCHES "release")
set(MUSESCORE_RELEASE_CHANNEL "stable")
endif()
# Print variables which are needed by CI build scripts.
message(STATUS "MUSESCORE_RELEASE_CHANNEL ${MUSESCORE_RELEASE_CHANNEL}")
message(STATUS "MUSESCORE_VERSION_FULL ${MUSESCORE_VERSION_FULL}")

View File

@ -33,5 +33,5 @@ mkdir -p $INSTALL_DIR
bash $HERE/../ninja_build.sh -t clean bash $HERE/../ninja_build.sh -t clean
MUSESCORE_INSTALL_DIR=$INSTALL_DIR \ MUSESCORE_INSTALL_DIR=$INSTALL_DIR \
MUSESCORE_BUILD_CONFIGURE="vtest" \ MUSESCORE_BUILD_CONFIGURATION="vtest" \
bash ninja_build.sh -t installdebug bash ninja_build.sh -t installdebug