2012-05-26 14:49:10 +02:00
|
|
|
#=============================================================================
|
|
|
|
# MuseScore
|
|
|
|
# Linux Music Score Editor
|
|
|
|
#
|
2016-06-10 10:37:53 +02:00
|
|
|
# Copyright (C) 2002-2016 by Werner Schweer and others
|
2012-05-26 14:49:10 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#=============================================================================
|
|
|
|
|
2019-01-06 02:53:21 +01:00
|
|
|
function(prepend_to_list_items # prepend a string to each item in list
|
|
|
|
LIST_INV # input list variable
|
|
|
|
STRING # the string to prepend to each list item
|
|
|
|
LIST_OUTV # input list variable
|
|
|
|
)
|
|
|
|
set(LIST_IN "${${LIST_INV}}")
|
|
|
|
set(LIST_OUT "") # empty list
|
|
|
|
foreach(ITEM IN LISTS LIST_IN)
|
|
|
|
list(APPEND LIST_OUT "${STRING}${ITEM}")
|
|
|
|
endforeach(ITEM)
|
|
|
|
set("${LIST_OUTV}" "${LIST_OUT}" PARENT_SCOPE)
|
|
|
|
endfunction(prepend_to_list_items)
|
|
|
|
|
|
|
|
add_subdirectory(widgets)
|
|
|
|
prepend_to_list_items(WIDGETS_SOURCE_FILES "widgets/" WIDGETS_SOURCE_FILES)
|
|
|
|
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
# This is not needed for MSVC compilation
|
|
|
|
if (NOT MSVC)
|
|
|
|
include (${PROJECT_SOURCE_DIR}/build/gch.cmake)
|
|
|
|
endif (NOT MSVC)
|
|
|
|
include (${PROJECT_SOURCE_DIR}/build/CopyFilesMacros.cmake)
|
2012-05-26 14:49:10 +02:00
|
|
|
|
|
|
|
SET_SOURCE_FILES_PROPERTIES(revision.h PROPERTIES GENERATED TRUE)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${PROJECT_SOURCE_DIR}
|
|
|
|
${PROJECT_SOURCE_DIR}/thirdparty
|
2015-11-16 14:24:47 +01:00
|
|
|
${QTSINGLEAPPLICATION_INCLUDE_DIRS}
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
|
2012-07-09 14:16:27 +02:00
|
|
|
if (SCRIPT_INTERFACE)
|
2019-01-15 08:43:55 +01:00
|
|
|
set (SCRIPT_FILES
|
2019-01-22 10:03:40 +01:00
|
|
|
plugin/pluginCreator.h plugin/pluginManager.h plugin/qmledit.h
|
|
|
|
plugin/qmlplugin.h plugin/qmlpluginengine.h
|
|
|
|
plugin/api/qmlpluginapi.h plugin/api/cursor.h plugin/api/scoreelement.h plugin/api/elements.h
|
2019-02-06 10:58:19 +01:00
|
|
|
plugin/api/part.h
|
2019-01-22 10:03:40 +01:00
|
|
|
plugin/api/score.h
|
|
|
|
plugin/api/fraction.h
|
2019-02-06 10:58:19 +01:00
|
|
|
plugin/api/excerpt.h
|
2019-01-15 08:43:55 +01:00
|
|
|
|
2019-01-24 09:41:18 +01:00
|
|
|
plugin/api/enums.cpp
|
2019-01-22 10:03:40 +01:00
|
|
|
plugin/mscorePlugins.cpp plugin/pluginCreator.cpp plugin/pluginManager.cpp plugin/qmledit.cpp
|
|
|
|
plugin/qmlplugin.cpp plugin/qmlpluginengine.cpp
|
|
|
|
plugin/api/qmlpluginapi.cpp plugin/api/cursor.cpp plugin/api/scoreelement.cpp plugin/api/elements.cpp
|
|
|
|
plugin/api/score.cpp
|
2019-02-06 10:58:19 +01:00
|
|
|
plugin/api/excerpt.cpp
|
2019-01-15 08:43:55 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set (SCRIPT_UI
|
|
|
|
plugin/pluginCreator.ui plugin/pluginManager.ui
|
|
|
|
)
|
2012-07-09 14:16:27 +02:00
|
|
|
endif (SCRIPT_INTERFACE)
|
|
|
|
|
2015-01-27 14:22:03 +01:00
|
|
|
QT5_WRAP_UI (ui_headers
|
2014-08-15 16:42:21 +02:00
|
|
|
insertmeasuresdialog.ui editinstrument.ui editstyle.ui instrdialog.ui instrwidget.ui
|
fix #275313: rework mixer ui 2
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Setting color in collapsed mode now affects all channels.
Using shared_ptr to track MixerTrackItem. Part changes now affect
all instruments.
Creating new track UI object to handle parts.
Using shard_ptr to track MixerTrackItem objects.
setting port and channel data now.
Changing to horizontal layout.
Fixing knob display. Chaning track control appearance.
Setting init slider window size.
Switchong back to vertical orientation. Fixing a few UI bugs in
the slider.
Tracks now left aligned.
Moving details panel above mixer. Now changing track selection when
user clicks on sliders.
Pan and volume controls now reflect track color.
Showing volume and pan values in tooltips.
Creating a new slider control for mixer.
Switching Channel's volume, pan, reverb and chorus and chaning them
to doubles with a decimal range.
No longer writing out vol, pan, chor, reverb when at default values.
Nolonger writing vol, pan, chorus, reverb as controler values in
output file.
Now testing against default values on write.
More export fixes.
Manually editing test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
More test changes to make Travis happy.
More test changes to make Travis happy.
Importing MusicXML now matches new volume, pan ranges.
Changing range of pan. Fixing a few bugs with calculating MIDI.
Altering test files for Travis.
fix #275313: rework-mixer-ui-2
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Setting color in collapsed mode now affects all channels.
Using shared_ptr to track MixerTrackItem. Part changes now affect
all instruments.
Creating new track UI object to handle parts.
Using shard_ptr to track MixerTrackItem objects.
setting port and channel data now.
Changing to horizontal layout.
Fixing knob display. Chaning track control appearance.
Setting init slider window size.
Switchong back to vertical orientation. Fixing a few UI bugs in
the slider.
Tracks now left aligned.
Moving details panel above mixer. Now changing track selection when
user clicks on sliders.
Pan and volume controls now reflect track color.
Showing volume and pan values in tooltips.
Creating a new slider control for mixer.
Switching Channel's volume, pan, reverb and chorus and chaning them
to doubles with a decimal range.
No longer writing out vol, pan, chor, reverb when at default values.
Nolonger writing vol, pan, chorus, reverb as controler values in
output file.
Now testing against default values on write.
More export fixes.
Manually editing test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
More test changes to make Travis happy.
More test changes to make Travis happy.
Importing MusicXML now matches new volume, pan ranges.
Changing range of pan. Fixing a few bugs with calculating MIDI.
Altering test files for Travis.
Restoring the volume, pan, chorus, reverb to original char data type
& range. UI now shows different 'user friendly' ranges.
Overwriting tests with versions from master.
mtest/libmscore/compat114/clef_missing_first-ref.mscx
mtest/libmscore/compat114/hor_frame_and_mmrest-ref.mscx
mtest/musicxml/io/testInstrumentChangeMIDIportExport_ref.xml
mtest/musicxml/io/testUninitializedDivisions_ref.xml
Restoring test files to original state.
Restoring test files to original state.
Restoring old values for importing files.
Restoring part methods.
mtest/importmidi/simplify_8th_dotted_no_staccato.mscx
mtest/libmscore/compat114/clef_missing_first-ref.mscx
mtest/libmscore/compat114/hor_frame_and_mmrest-ref.mscx
mtest/musicxml/io/testInstrumentChangeMIDIportExport_ref.xml
mtest/musicxml/io/testUninitializedDivisions_ref.xml
Rearranging UI components for better feel.
Improving UI. Fixed crash when changing part name.
Adding support for two lighting modes. Showing part name over
channel expansion.
Adding master gain control to mixer.
Changing color of gain slider.
Adapting to latest source in main.
Changing master gain slider to use decibel calculation.
CSS now set on tracks whenever a Paint event received.
Restoring mixer slider values to refect MIDI ranges. Fixing crash when drumkit checked.
Fixing crash when closing score.
Fixing alignment in mixer details.
Tweaking UI for better appearance.
2018-11-13 18:43:19 +01:00
|
|
|
measuresdialog.ui pagesettings.ui mixer.ui mixertrackchannel.ui mixertrackpart.ui mixerdetails.ui parteditbase.ui
|
|
|
|
playpanel.ui prefsdialog.ui measureproperties.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
textpalette.ui timedialog.ui symboldialog.ui shortcutcapturedialog.ui editdrumset.ui
|
2016-07-15 15:03:03 +02:00
|
|
|
editstaff.ui timesigproperties.ui
|
2012-05-26 14:49:10 +02:00
|
|
|
instrwizard.ui timesigwizard.ui newwizard.ui aboutbox.ui aboutmusicxmlbox.ui
|
2017-02-07 18:48:23 +01:00
|
|
|
transposedialog.ui excerptsdialog.ui stafftext.ui tupletdialog.ui
|
2016-09-22 16:07:47 +02:00
|
|
|
articulation.ui metaedit.ui palette.ui selectdialog.ui selectnotedialog.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
synthcontrol.ui splitstaff.ui cellproperties.ui keyedit.ui selectinstr.ui
|
2017-01-16 20:51:12 +01:00
|
|
|
fretdprops.ui editstafftype.ui sectionbreak.ui bend.ui tremolobar.ui
|
|
|
|
editpitch.ui editstringdata.ui editraster.ui mediadialog.ui albummanager.ui layer.ui
|
2016-11-07 14:20:50 +01:00
|
|
|
omrpanel.ui masterpalette.ui harmonyedit.ui pathlistdialog.ui
|
2014-11-11 20:48:57 +01:00
|
|
|
note_groups.ui resourceManager.ui stafftypetemplates.ui
|
2019-01-06 02:53:21 +01:00
|
|
|
startcenter.ui scorePreview.ui scoreBrowser.ui templateBrowser.ui
|
2014-11-21 08:11:30 +01:00
|
|
|
logindialog.ui uploadscoredialog.ui breaksdialog.ui
|
2018-06-18 21:20:00 +02:00
|
|
|
toolbarEditor.ui workspacedialog.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
|
2014-11-11 20:48:57 +01:00
|
|
|
importmidi/importmidi_panel.ui
|
|
|
|
|
2018-09-26 13:07:55 +02:00
|
|
|
scorecmp/scorecmp_tool.ui
|
2018-11-12 13:43:45 +01:00
|
|
|
script/script_recorder.ui
|
2018-09-26 13:07:55 +02:00
|
|
|
|
2013-06-10 11:03:34 +02:00
|
|
|
debugger/barline.ui
|
|
|
|
debugger/harmony.ui
|
|
|
|
debugger/box.ui
|
|
|
|
debugger/keysig.ui
|
|
|
|
debugger/rest.ui
|
|
|
|
debugger/articulationbase.ui
|
|
|
|
debugger/accidental.ui
|
|
|
|
debugger/clef.ui
|
|
|
|
debugger/slursegment.ui
|
2016-12-03 20:27:21 +01:00
|
|
|
debugger/tiesegment.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
debugger/spanner.ui
|
|
|
|
debugger/tremolo.ui
|
|
|
|
debugger/beam.ui
|
|
|
|
debugger/lyrics.ui
|
|
|
|
debugger/linesegment.ui
|
|
|
|
debugger/textline.ui
|
|
|
|
debugger/line.ui
|
|
|
|
debugger/slurtie.ui
|
2013-06-28 10:55:25 +02:00
|
|
|
debugger/tie.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
debugger/tuplet.ui
|
|
|
|
debugger/dynamic.ui
|
|
|
|
debugger/hairpin.ui
|
|
|
|
debugger/chord.ui
|
|
|
|
debugger/chordrest.ui
|
|
|
|
debugger/segment.ui
|
|
|
|
debugger/measure.ui
|
|
|
|
debugger/element.ui
|
|
|
|
debugger/debugger.ui
|
|
|
|
debugger/note.ui
|
|
|
|
debugger/page.ui
|
|
|
|
debugger/text.ui
|
|
|
|
debugger/stem.ui
|
|
|
|
debugger/system.ui
|
2015-02-16 12:12:23 +01:00
|
|
|
debugger/timesig.ui
|
2018-05-04 14:14:34 +02:00
|
|
|
debugger/bracket.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
|
|
|
|
inspector/inspector_element.ui
|
|
|
|
inspector/inspector_vbox.ui
|
2015-06-17 14:19:47 +02:00
|
|
|
inspector/inspector_tbox.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
inspector/inspector_articulation.ui
|
|
|
|
inspector/inspector_spacer.ui
|
|
|
|
inspector/inspector_hbox.ui
|
|
|
|
inspector/inspector_segment.ui
|
|
|
|
inspector/inspector_beam.ui
|
|
|
|
inspector/inspector_note.ui
|
2018-08-09 13:12:34 +02:00
|
|
|
inspector/inspector_notedot.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
inspector/inspector_rest.ui
|
|
|
|
inspector/inspector_chord.ui
|
|
|
|
inspector/inspector_group_element.ui
|
|
|
|
inspector/inspector_image.ui
|
2018-07-12 10:15:56 +02:00
|
|
|
inspector/inspector_harmony.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
inspector/inspector_lasso.ui
|
|
|
|
inspector/inspector_volta.ui
|
|
|
|
inspector/inspector_ottava.ui
|
|
|
|
inspector/inspector_trill.ui
|
2018-08-08 14:16:17 +02:00
|
|
|
inspector/inspector_vibrato.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
inspector/inspector_hairpin.ui
|
|
|
|
inspector/inspector_jump.ui
|
|
|
|
inspector/inspector_marker.ui
|
|
|
|
inspector/inspector_glissando.ui
|
|
|
|
inspector/inspector_clef.ui
|
|
|
|
inspector/inspector_timesig.ui
|
|
|
|
inspector/inspector_keysig.ui
|
|
|
|
inspector/inspector_barline.ui
|
|
|
|
inspector/inspector_tuplet.ui
|
|
|
|
inspector/inspector_accidental.ui
|
|
|
|
inspector/inspector_tempotext.ui
|
|
|
|
inspector/inspector_dynamic.ui
|
2018-09-21 13:45:12 +02:00
|
|
|
inspector/inspector_instrchange.ui
|
2016-08-24 14:49:34 +02:00
|
|
|
inspector/inspector_lyric.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
inspector/inspector_line.ui
|
|
|
|
inspector/inspector_textline.ui
|
2018-08-08 14:16:17 +02:00
|
|
|
inspector/inspector_letring.ui
|
|
|
|
inspector/inspector_palmmute.ui
|
|
|
|
inspector/inspector_pedal.ui
|
2018-08-06 10:37:51 +02:00
|
|
|
inspector/inspector_textlinebase.ui
|
2013-07-01 16:57:44 +02:00
|
|
|
inspector/inspector_slur.ui
|
2013-07-22 16:21:19 +02:00
|
|
|
inspector/inspector_text.ui
|
2016-08-25 17:34:25 +02:00
|
|
|
inspector/inspector_stafftext.ui
|
2013-11-25 12:17:12 +01:00
|
|
|
inspector/inspector_ambitus.ui
|
2014-10-30 10:05:07 +01:00
|
|
|
inspector/inspector_empty.ui
|
2015-01-15 14:50:50 +01:00
|
|
|
inspector/inspector_fret.ui
|
2015-02-25 10:48:39 +01:00
|
|
|
inspector/inspector_break.ui
|
2016-12-18 14:31:13 +01:00
|
|
|
inspector/inspector_stafftypechange.ui
|
2015-06-15 17:02:35 +02:00
|
|
|
inspector/inspector_bend.ui
|
2015-07-06 18:16:52 +02:00
|
|
|
inspector/inspector_arpeggio.ui
|
2015-11-04 13:22:17 +01:00
|
|
|
inspector/inspector_tremolo.ui
|
2016-03-27 14:41:33 +02:00
|
|
|
inspector/inspector_caesura.ui
|
2016-12-29 19:46:40 +01:00
|
|
|
inspector/inspector_bracket.ui
|
2016-12-30 10:58:53 +01:00
|
|
|
inspector/inspector_iname.ui
|
2017-01-05 14:53:21 +01:00
|
|
|
inspector/inspector_fingering.ui
|
2017-01-18 14:16:33 +01:00
|
|
|
inspector/inspector_frametext.ui
|
2018-01-23 13:19:34 +01:00
|
|
|
inspector/inspector_fermata.ui
|
2017-01-16 20:51:12 +01:00
|
|
|
inspector/align_select.ui
|
2018-11-26 21:09:20 +01:00
|
|
|
inspector/font_style_select.ui
|
2017-02-13 08:22:12 +01:00
|
|
|
inspector/offset_select.ui
|
2017-03-09 13:37:40 +01:00
|
|
|
inspector/scale_select.ui
|
2017-03-10 17:12:38 +01:00
|
|
|
inspector/size_select.ui
|
2018-05-07 19:05:34 +02:00
|
|
|
inspector/inspector_stem.ui
|
2012-07-09 14:16:27 +02:00
|
|
|
${SCRIPT_UI}
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if (APPLE)
|
2017-07-06 13:22:22 +02:00
|
|
|
QT5_ADD_RESOURCES (qrc_files musescore.qrc musescorefonts-Mac.qrc shortcut-Mac.qrc)
|
2012-05-26 14:49:10 +02:00
|
|
|
else (APPLE)
|
2014-08-15 16:42:21 +02:00
|
|
|
QT5_ADD_RESOURCES (qrc_files musescore.qrc
|
|
|
|
musescorefonts-MScore.qrc
|
2014-12-19 17:26:41 +01:00
|
|
|
musescorefonts-Gootville.qrc
|
2014-08-15 16:42:21 +02:00
|
|
|
musescorefonts-Bravura.qrc
|
|
|
|
musescorefonts-MuseJazz.qrc
|
2014-10-27 12:12:31 +01:00
|
|
|
musescorefonts-FreeSerif.qrc
|
2017-07-06 13:22:22 +02:00
|
|
|
musescorefonts-Free.qrc
|
|
|
|
shortcut.qrc)
|
2012-05-26 14:49:10 +02:00
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
|
|
|
|
set (AUDIO "")
|
|
|
|
if (MINGW)
|
|
|
|
set (resource_file ${PROJECT_BINARY_DIR}/resfile.o)
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
endif (MINGW)
|
|
|
|
if (MSVC)
|
|
|
|
# MSVC recognizes a *.rc file and will invoke the resource compiler to link it
|
|
|
|
set (resource_file ${PROJECT_SOURCE_DIR}/mscore/data/mscore.rc)
|
|
|
|
endif ( MSVC )
|
|
|
|
if ( NOT MINGW AND NOT MSVC )
|
2012-05-26 14:49:10 +02:00
|
|
|
if (USE_ALSA)
|
2016-08-09 00:25:42 +02:00
|
|
|
set (AUDIO ${AUDIO} alsa.cpp)
|
2012-05-26 14:49:10 +02:00
|
|
|
endif (USE_ALSA)
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
endif ( NOT MINGW AND NOT MSVC )
|
2012-05-26 14:49:10 +02:00
|
|
|
|
|
|
|
if (USE_PORTAUDIO)
|
|
|
|
set (AUDIO ${AUDIO} pa.cpp)
|
|
|
|
endif (USE_PORTAUDIO)
|
|
|
|
|
|
|
|
if (USE_PULSEAUDIO)
|
|
|
|
set (AUDIO ${AUDIO} pulseaudio.cpp)
|
|
|
|
endif (USE_PULSEAUDIO)
|
|
|
|
|
|
|
|
if (USE_PORTMIDI)
|
|
|
|
set (AUDIO ${AUDIO} pm.cpp)
|
|
|
|
endif (USE_PORTMIDI)
|
|
|
|
|
2015-06-01 18:09:55 +02:00
|
|
|
if (USE_LAME)
|
|
|
|
set (AUDIO ${AUDIO} exportmp3.cpp)
|
|
|
|
endif (USE_LAME)
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
if (USE_JACK)
|
|
|
|
set (AUDIO ${AUDIO} jackaudio.cpp jackweakapi.cpp)
|
|
|
|
endif (USE_JACK)
|
|
|
|
|
2016-08-09 00:25:42 +02:00
|
|
|
if (USE_ALSA OR USE_PORTMIDI)
|
|
|
|
set (AUDIO ${AUDIO} mididriver.cpp)
|
|
|
|
endif (USE_ALSA OR USE_PORTMIDI)
|
|
|
|
|
2014-11-09 21:03:56 +01:00
|
|
|
if (${CMAKE_SYSTEM} MATCHES "GNU-0.3")
|
2016-06-10 10:37:53 +02:00
|
|
|
# Include some cmake support file
|
2014-11-09 21:03:56 +01:00
|
|
|
INCLUDE (Platform/GNU)
|
|
|
|
set ( USE_ALSA 0 )
|
|
|
|
set ( USE_PORTMIDI 0 )
|
|
|
|
endif (${CMAKE_SYSTEM} MATCHES "GNU-0.3")
|
|
|
|
|
|
|
|
if (${CMAKE_SYSTEM} MATCHES "kFreeBSD")
|
2016-06-10 10:37:53 +02:00
|
|
|
# Include some cmake support file
|
2014-11-10 12:30:53 +01:00
|
|
|
INCLUDE (Platform/kFreeBSD)
|
2014-11-09 21:03:56 +01:00
|
|
|
set ( USE_ALSA 0 )
|
|
|
|
set ( USE_PORTMIDI 0 )
|
|
|
|
endif (${CMAKE_SYSTEM} MATCHES "kFreeBSD")
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
if (APPLE)
|
2014-07-22 16:43:29 +02:00
|
|
|
set (ExecutableName mscore MACOSX_BUNDLE)
|
|
|
|
set (MACOSX_BUNDLE_ICON_FILE mscore.icns)
|
|
|
|
set (MACOSX_BUNDLE_GUI_IDENTIFIER org.musescore.MuseScore)
|
|
|
|
set (MACOSX_BUNDLE_LONG_VERSION_STRING ${MUSESCORE_VERSION_FULL})
|
|
|
|
set (MACOSX_BUNDLE_BUNDLE_NAME MuseScore)
|
|
|
|
set (MACOSX_BUNDLE_SHORT_VERSION_STRING ${MUSESCORE_VERSION})
|
|
|
|
set (MACOSX_BUNDLE_BUNDLE_VERSION ${MUSESCORE_VERSION_FULL})
|
2018-09-25 11:24:37 +02:00
|
|
|
if(CMAKE_BUILD_NUMBER)
|
|
|
|
set (MACOSX_BUNDLE_SHORT_VERSION_STRING ${MUSESCORE_VERSION_FULL}.${CMAKE_BUILD_NUMBER})
|
|
|
|
set (MACOSX_BUNDLE_BUNDLE_VERSION ${MUSESCORE_VERSION_FULL}.${CMAKE_BUILD_NUMBER})
|
|
|
|
endif(CMAKE_BUILD_NUMBER)
|
2014-07-22 16:43:29 +02:00
|
|
|
set (MACOSX_BUNDLE_COPYRIGHT musescore.org)
|
2012-05-26 14:49:10 +02:00
|
|
|
else (APPLE)
|
2014-07-22 16:43:29 +02:00
|
|
|
set (ExecutableName mscore)
|
2012-05-26 14:49:10 +02:00
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
if (OMR)
|
|
|
|
set(OMR_FILES omrpanel.cpp)
|
|
|
|
endif (OMR)
|
|
|
|
|
2012-08-13 13:50:07 +02:00
|
|
|
if (APPLE)
|
2014-07-22 16:43:29 +02:00
|
|
|
file(GLOB_RECURSE INCS "*.h")
|
2018-02-12 11:34:54 +01:00
|
|
|
set(COCOABRIDGE "macos/cocoabridge.mm")
|
2018-09-25 11:24:37 +02:00
|
|
|
if (SPARKLE_FOUND)
|
|
|
|
set(MAC_SPARKLE_FILES "macos/SparkleAutoUpdater.mm")
|
|
|
|
endif(SPARKLE_FOUND)
|
2012-08-13 13:50:07 +02:00
|
|
|
else (APPLE)
|
2014-07-22 16:43:29 +02:00
|
|
|
set(INCS "")
|
2018-02-12 11:34:54 +01:00
|
|
|
set(COCOABRIDGE "")
|
2018-09-25 11:24:37 +02:00
|
|
|
set(MAC_SPARKLE_FILES "")
|
2012-08-13 13:50:07 +02:00
|
|
|
endif (APPLE)
|
|
|
|
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
if (NOT MSVC)
|
|
|
|
set(_all_h_file "${PROJECT_BINARY_DIR}/all.h")
|
|
|
|
else (NOT MSVC)
|
|
|
|
set(_all_h_file "${PROJECT_SOURCE_DIR}/all.h")
|
|
|
|
endif (NOT MSVC)
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
add_executable ( ${ExecutableName}
|
|
|
|
${qrc_files}
|
|
|
|
${ui_headers}
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
${_all_h_file}
|
2012-05-26 14:49:10 +02:00
|
|
|
${PCH}
|
|
|
|
${resource_file}
|
2012-08-13 13:50:07 +02:00
|
|
|
${INCS}
|
2012-05-26 14:49:10 +02:00
|
|
|
|
2018-07-10 14:57:05 +02:00
|
|
|
abstractdialog.h accessibletoolbutton.h albummanager.h
|
|
|
|
alsa.h alsamidi.h analyse.h articulationprop.h bb.h
|
|
|
|
bendcanvas.h bendproperties.h breaksdialog.h capella.h
|
2018-08-08 14:16:17 +02:00
|
|
|
chordview.h click.h continuouspanel.h downloadUtils.h
|
2018-07-10 14:57:05 +02:00
|
|
|
driver.h drumroll.h drumtools.h drumview.h editdrumset.h
|
2018-08-08 14:16:17 +02:00
|
|
|
editinstrument.h editpitch.h editraster.h editstaff.h
|
2018-07-10 14:57:05 +02:00
|
|
|
editstafftype.h editstringdata.h editstyle.h enableplayforwidget.h
|
2018-08-08 14:16:17 +02:00
|
|
|
exampleview.h excerptsdialog.h exportmidi.h exportmp3.h extension.h
|
|
|
|
file.h fotomode.h fretcanvas.h fretproperties.h globals.h greendotbutton.h
|
2018-07-10 14:57:05 +02:00
|
|
|
harmonycanvas.h harmonyedit.h help.h helpBrowser.h icons.h importgtp.h importmxml.h
|
|
|
|
importmxmllogger.h importmxmlnoteduration.h importmxmlnotepitch.h importmxmlpass1.h
|
|
|
|
importmxmlpass2.h importptb.h importxmlfirstpass.h instrdialog.h instrwidget.h jackaudio.h
|
2019-01-26 09:58:52 +01:00
|
|
|
keycanvas.h keyedit.h layer.h licence.h
|
|
|
|
logindialog.h network/loginmanager.h network/loginmanager_p.h
|
|
|
|
magbox.h masterpalette.h
|
fix #275313: rework mixer ui 2
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Setting color in collapsed mode now affects all channels.
Using shared_ptr to track MixerTrackItem. Part changes now affect
all instruments.
Creating new track UI object to handle parts.
Using shard_ptr to track MixerTrackItem objects.
setting port and channel data now.
Changing to horizontal layout.
Fixing knob display. Chaning track control appearance.
Setting init slider window size.
Switchong back to vertical orientation. Fixing a few UI bugs in
the slider.
Tracks now left aligned.
Moving details panel above mixer. Now changing track selection when
user clicks on sliders.
Pan and volume controls now reflect track color.
Showing volume and pan values in tooltips.
Creating a new slider control for mixer.
Switching Channel's volume, pan, reverb and chorus and chaning them
to doubles with a decimal range.
No longer writing out vol, pan, chor, reverb when at default values.
Nolonger writing vol, pan, chorus, reverb as controler values in
output file.
Now testing against default values on write.
More export fixes.
Manually editing test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
More test changes to make Travis happy.
More test changes to make Travis happy.
Importing MusicXML now matches new volume, pan ranges.
Changing range of pan. Fixing a few bugs with calculating MIDI.
Altering test files for Travis.
fix #275313: rework-mixer-ui-2
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Setting color in collapsed mode now affects all channels.
Using shared_ptr to track MixerTrackItem. Part changes now affect
all instruments.
Creating new track UI object to handle parts.
Using shard_ptr to track MixerTrackItem objects.
setting port and channel data now.
Changing to horizontal layout.
Fixing knob display. Chaning track control appearance.
Setting init slider window size.
Switchong back to vertical orientation. Fixing a few UI bugs in
the slider.
Tracks now left aligned.
Moving details panel above mixer. Now changing track selection when
user clicks on sliders.
Pan and volume controls now reflect track color.
Showing volume and pan values in tooltips.
Creating a new slider control for mixer.
Switching Channel's volume, pan, reverb and chorus and chaning them
to doubles with a decimal range.
No longer writing out vol, pan, chor, reverb when at default values.
Nolonger writing vol, pan, chorus, reverb as controler values in
output file.
Now testing against default values on write.
More export fixes.
Manually editing test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
More test changes to make Travis happy.
More test changes to make Travis happy.
Importing MusicXML now matches new volume, pan ranges.
Changing range of pan. Fixing a few bugs with calculating MIDI.
Altering test files for Travis.
Restoring the volume, pan, chorus, reverb to original char data type
& range. UI now shows different 'user friendly' ranges.
Overwriting tests with versions from master.
mtest/libmscore/compat114/clef_missing_first-ref.mscx
mtest/libmscore/compat114/hor_frame_and_mmrest-ref.mscx
mtest/musicxml/io/testInstrumentChangeMIDIportExport_ref.xml
mtest/musicxml/io/testUninitializedDivisions_ref.xml
Restoring test files to original state.
Restoring test files to original state.
Restoring old values for importing files.
Restoring part methods.
mtest/importmidi/simplify_8th_dotted_no_staccato.mscx
mtest/libmscore/compat114/clef_missing_first-ref.mscx
mtest/libmscore/compat114/hor_frame_and_mmrest-ref.mscx
mtest/musicxml/io/testInstrumentChangeMIDIportExport_ref.xml
mtest/musicxml/io/testUninitializedDivisions_ref.xml
Rearranging UI components for better feel.
Improving UI. Fixed crash when changing part name.
Adding support for two lighting modes. Showing part name over
channel expansion.
Adding master gain control to mixer.
Changing color of gain slider.
Adapting to latest source in main.
Changing master gain slider to use decibel calculation.
CSS now set on tracks whenever a Paint event received.
Restoring mixer slider values to refect MIDI ranges. Fixing crash when drumkit checked.
Fixing crash when closing score.
Fixing alignment in mixer details.
Tweaking UI for better appearance.
2018-11-13 18:43:19 +01:00
|
|
|
measureproperties.h mediadialog.h metaedit.h miconengine.h mididriver.h
|
|
|
|
mixer.h mixertrack.h mixertrackchannel.h mixertrackgroup.h mixertrackitem.h mixertrackpart.h mixerdetails.h musedata.h
|
2018-07-10 14:57:05 +02:00
|
|
|
musescore.h musicxml.h musicxmlfonthandler.h musicxmlsupport.h navigator.h newwizard.h noteGroups.h
|
fix #275313: rework mixer ui 2
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Setting color in collapsed mode now affects all channels.
Using shared_ptr to track MixerTrackItem. Part changes now affect
all instruments.
Creating new track UI object to handle parts.
Using shard_ptr to track MixerTrackItem objects.
setting port and channel data now.
Changing to horizontal layout.
Fixing knob display. Chaning track control appearance.
Setting init slider window size.
Switchong back to vertical orientation. Fixing a few UI bugs in
the slider.
Tracks now left aligned.
Moving details panel above mixer. Now changing track selection when
user clicks on sliders.
Pan and volume controls now reflect track color.
Showing volume and pan values in tooltips.
Creating a new slider control for mixer.
Switching Channel's volume, pan, reverb and chorus and chaning them
to doubles with a decimal range.
No longer writing out vol, pan, chor, reverb when at default values.
Nolonger writing vol, pan, chorus, reverb as controler values in
output file.
Now testing against default values on write.
More export fixes.
Manually editing test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
More test changes to make Travis happy.
More test changes to make Travis happy.
Importing MusicXML now matches new volume, pan ranges.
Changing range of pan. Fixing a few bugs with calculating MIDI.
Altering test files for Travis.
fix #275313: rework-mixer-ui-2
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Setting color in collapsed mode now affects all channels.
Using shared_ptr to track MixerTrackItem. Part changes now affect
all instruments.
Creating new track UI object to handle parts.
Using shard_ptr to track MixerTrackItem objects.
setting port and channel data now.
Changing to horizontal layout.
Fixing knob display. Chaning track control appearance.
Setting init slider window size.
Switchong back to vertical orientation. Fixing a few UI bugs in
the slider.
Tracks now left aligned.
Moving details panel above mixer. Now changing track selection when
user clicks on sliders.
Pan and volume controls now reflect track color.
Showing volume and pan values in tooltips.
Creating a new slider control for mixer.
Switching Channel's volume, pan, reverb and chorus and chaning them
to doubles with a decimal range.
No longer writing out vol, pan, chor, reverb when at default values.
Nolonger writing vol, pan, chorus, reverb as controler values in
output file.
Now testing against default values on write.
More export fixes.
Manually editing test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
More test changes to make Travis happy.
More test changes to make Travis happy.
Importing MusicXML now matches new volume, pan ranges.
Changing range of pan. Fixing a few bugs with calculating MIDI.
Altering test files for Travis.
Restoring the volume, pan, chorus, reverb to original char data type
& range. UI now shows different 'user friendly' ranges.
Overwriting tests with versions from master.
mtest/libmscore/compat114/clef_missing_first-ref.mscx
mtest/libmscore/compat114/hor_frame_and_mmrest-ref.mscx
mtest/musicxml/io/testInstrumentChangeMIDIportExport_ref.xml
mtest/musicxml/io/testUninitializedDivisions_ref.xml
Restoring test files to original state.
Restoring test files to original state.
Restoring old values for importing files.
Restoring part methods.
mtest/importmidi/simplify_8th_dotted_no_staccato.mscx
mtest/libmscore/compat114/clef_missing_first-ref.mscx
mtest/libmscore/compat114/hor_frame_and_mmrest-ref.mscx
mtest/musicxml/io/testInstrumentChangeMIDIportExport_ref.xml
mtest/musicxml/io/testUninitializedDivisions_ref.xml
Rearranging UI components for better feel.
Improving UI. Fixed crash when changing part name.
Adding support for two lighting modes. Showing part name over
channel expansion.
Adding master gain control to mixer.
Changing color of gain slider.
Adapting to latest source in main.
Changing master gain slider to use decibel calculation.
CSS now set on tracks whenever a Paint event received.
Restoring mixer slider values to refect MIDI ranges. Fixing crash when drumkit checked.
Fixing crash when closing score.
Fixing alignment in mixer details.
Tweaking UI for better appearance.
2018-11-13 18:43:19 +01:00
|
|
|
omrpanel.h ove.h pa.h pagesettings.h palette.h palettebox.h paletteBoxButton.h partedit.h parteditbase.h
|
2018-10-21 10:27:23 +02:00
|
|
|
pathlistdialog.h piano.h pianolevels.h pianolevelschooser.h pianolevelsfilter.h
|
|
|
|
pianokeyboard.h pianoroll.h pianoruler.h pianotools.h pianoview.h
|
2019-01-11 23:04:55 +01:00
|
|
|
playpanel.h pm.h preferences.h preferenceslistwidget.h prefsdialog.h
|
2019-01-15 08:43:55 +01:00
|
|
|
recordbutton.h resourceManager.h revision.h ruler.h scoreaccessibility.h
|
2018-07-10 14:57:05 +02:00
|
|
|
scoreBrowser.h scoreInfo.h scorePreview.h scoretab.h scoreview.h searchComboBox.h
|
2018-08-08 14:16:17 +02:00
|
|
|
sectionbreakprop.h selectdialog.h selectionwindow.h selectnotedialog.h selinstrument.h
|
2018-07-10 14:57:05 +02:00
|
|
|
seq.h shortcut.h shortcutcapturedialog.h simplebutton.h splitstaff.h stafftextproperties.h
|
|
|
|
startcenter.h startupWizard.h stringutils.h svggenerator.h symboldialog.h synthcontrol.h
|
2019-01-06 02:53:21 +01:00
|
|
|
templateBrowser.h textcursor.h textpalette.h texttools.h timedialog.h timeline.h timesigproperties.h
|
2018-07-10 14:57:05 +02:00
|
|
|
toolbarEditor.h toolbuttonmenu.h transposedialog.h tremolobarcanvas.h tremolobarprop.h
|
|
|
|
tupletdialog.h updatechecker.h uploadscoredialog.h waveview.h webpage.h workspace.h
|
|
|
|
|
2017-11-29 08:21:36 +01:00
|
|
|
recordbutton.h greendotbutton prefsdialog.h prefsdialog.cpp
|
2018-02-26 09:06:45 +01:00
|
|
|
stringutils.h stringutils.cpp
|
2017-07-11 18:00:17 +02:00
|
|
|
scoreview.cpp editharmony.cpp editfiguredbass.cpp events.cpp
|
2017-05-02 14:17:31 +02:00
|
|
|
editinstrument.cpp editstyle.cpp
|
2015-03-22 21:36:46 +01:00
|
|
|
icons.cpp importbww.cpp
|
2018-01-30 19:40:13 +01:00
|
|
|
importmxmllogger.cpp importmxmlnoteduration.cpp importmxmlnotepitch.cpp
|
|
|
|
importmxml.cpp importmxmlpass1.cpp importmxmlpass2.cpp
|
2015-03-22 21:36:46 +01:00
|
|
|
instrdialog.cpp instrwidget.cpp
|
2014-11-11 20:48:57 +01:00
|
|
|
debugger/debugger.cpp menus.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
musescore.cpp navigator.cpp pagesettings.cpp palette.cpp
|
2017-07-06 07:10:27 +02:00
|
|
|
timeline.cpp
|
fix #275313: rework mixer ui 2
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Setting color in collapsed mode now affects all channels.
Using shared_ptr to track MixerTrackItem. Part changes now affect
all instruments.
Creating new track UI object to handle parts.
Using shard_ptr to track MixerTrackItem objects.
setting port and channel data now.
Changing to horizontal layout.
Fixing knob display. Chaning track control appearance.
Setting init slider window size.
Switchong back to vertical orientation. Fixing a few UI bugs in
the slider.
Tracks now left aligned.
Moving details panel above mixer. Now changing track selection when
user clicks on sliders.
Pan and volume controls now reflect track color.
Showing volume and pan values in tooltips.
Creating a new slider control for mixer.
Switching Channel's volume, pan, reverb and chorus and chaning them
to doubles with a decimal range.
No longer writing out vol, pan, chor, reverb when at default values.
Nolonger writing vol, pan, chorus, reverb as controler values in
output file.
Now testing against default values on write.
More export fixes.
Manually editing test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
More test changes to make Travis happy.
More test changes to make Travis happy.
Importing MusicXML now matches new volume, pan ranges.
Changing range of pan. Fixing a few bugs with calculating MIDI.
Altering test files for Travis.
fix #275313: rework-mixer-ui-2
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Moving PartEditBase into separate file. Creating new files for
building mixer.
Creating art assets/UI design for new components.
Styling the track control.
Adding track area.
Separating out score from update.
Creating instances of mixer UI.
Creating part per voice now.
Can click on tracks to select them now.
Can now switch bwtewwn tracks.
Setting patch channel now.
Setting enabled off when no track selected.
Improving slider ui.
Turning Channel into a class and adding listener to it.
Somewhat stabalized sharing track objects between interfaces.
Can now apply volume changes to both expanded and collapsed tracks.
Pan knob is now working.
Encapsulating the rest of the fields in Channel.
Mute and solo now working.
Reverb and chorus now working.
Drumkit checkbox now working. Port and channel somewhat working.
Adding support for colors per track.
Part name change now working.
Separating out MixerTrackItem
Finishing moving MixerTrackItem to new file.
Cleaning up code.
Setting color in collapsed mode now affects all channels.
Using shared_ptr to track MixerTrackItem. Part changes now affect
all instruments.
Creating new track UI object to handle parts.
Using shard_ptr to track MixerTrackItem objects.
setting port and channel data now.
Changing to horizontal layout.
Fixing knob display. Chaning track control appearance.
Setting init slider window size.
Switchong back to vertical orientation. Fixing a few UI bugs in
the slider.
Tracks now left aligned.
Moving details panel above mixer. Now changing track selection when
user clicks on sliders.
Pan and volume controls now reflect track color.
Showing volume and pan values in tooltips.
Creating a new slider control for mixer.
Switching Channel's volume, pan, reverb and chorus and chaning them
to doubles with a decimal range.
No longer writing out vol, pan, chor, reverb when at default values.
Nolonger writing vol, pan, chorus, reverb as controler values in
output file.
Now testing against default values on write.
More export fixes.
Manually editing test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
Manually editing more test files to reflect new channel parameters.
More test changes to make Travis happy.
More test changes to make Travis happy.
Importing MusicXML now matches new volume, pan ranges.
Changing range of pan. Fixing a few bugs with calculating MIDI.
Altering test files for Travis.
Restoring the volume, pan, chorus, reverb to original char data type
& range. UI now shows different 'user friendly' ranges.
Overwriting tests with versions from master.
mtest/libmscore/compat114/clef_missing_first-ref.mscx
mtest/libmscore/compat114/hor_frame_and_mmrest-ref.mscx
mtest/musicxml/io/testInstrumentChangeMIDIportExport_ref.xml
mtest/musicxml/io/testUninitializedDivisions_ref.xml
Restoring test files to original state.
Restoring test files to original state.
Restoring old values for importing files.
Restoring part methods.
mtest/importmidi/simplify_8th_dotted_no_staccato.mscx
mtest/libmscore/compat114/clef_missing_first-ref.mscx
mtest/libmscore/compat114/hor_frame_and_mmrest-ref.mscx
mtest/musicxml/io/testInstrumentChangeMIDIportExport_ref.xml
mtest/musicxml/io/testUninitializedDivisions_ref.xml
Rearranging UI components for better feel.
Improving UI. Fixed crash when changing part name.
Adding support for two lighting modes. Showing part name over
channel expansion.
Adding master gain control to mixer.
Changing color of gain slider.
Adapting to latest source in main.
Changing master gain slider to use decibel calculation.
CSS now set on tracks whenever a Paint event received.
Restoring mixer slider values to refect MIDI ranges. Fixing crash when drumkit checked.
Fixing crash when closing score.
Fixing alignment in mixer details.
Tweaking UI for better appearance.
2018-11-13 18:43:19 +01:00
|
|
|
mixer.cpp mixertrackchannel.cpp mixertrackitem.cpp mixertrackpart.cpp mixerdetails.cpp
|
|
|
|
parteditbase.cpp playpanel.cpp selectionwindow.cpp
|
|
|
|
preferences.cpp measureproperties.cpp
|
2014-10-16 14:43:51 +02:00
|
|
|
seq.cpp textpalette.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
timedialog.cpp symboldialog.cpp shortcutcapturedialog.cpp
|
2013-06-12 14:23:57 +02:00
|
|
|
simplebutton.cpp musedata.cpp
|
2016-07-15 15:03:03 +02:00
|
|
|
editdrumset.cpp editstaff.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
timesigproperties.cpp newwizard.cpp transposedialog.cpp
|
2013-12-06 01:42:12 +01:00
|
|
|
excerptsdialog.cpp metaedit.cpp magbox.cpp
|
2013-05-31 17:48:47 +02:00
|
|
|
capella.cpp capxml.cpp exportaudio.cpp palettebox.cpp
|
2017-01-16 20:51:12 +01:00
|
|
|
synthcontrol.cpp drumroll.cpp pianoroll.cpp piano.cpp
|
2018-10-21 10:27:23 +02:00
|
|
|
pianokeyboard.cpp pianolevels.cpp pianolevelschooser.cpp pianolevelsfilter.cpp
|
|
|
|
pianoruler.cpp pianoview.cpp drumview.cpp scoretab.cpp keyedit.cpp harmonyedit.cpp
|
2017-01-16 20:51:12 +01:00
|
|
|
updatechecker.cpp
|
|
|
|
importove.cpp
|
|
|
|
ove.cpp
|
|
|
|
ruler.cpp
|
|
|
|
importgtp.cpp importgtp-gp4.cpp importgtp-gp5.cpp importgtp-gp6.cpp
|
2017-11-16 09:25:09 +01:00
|
|
|
importptb.cpp
|
2017-01-16 20:51:12 +01:00
|
|
|
fotomode.cpp drumtools.cpp
|
2016-11-07 14:20:50 +01:00
|
|
|
selinstrument.cpp editstafftype.cpp texttools.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
editpitch.cpp editstringdata.cpp editraster.cpp pianotools.cpp mediadialog.cpp
|
2018-06-18 21:20:00 +02:00
|
|
|
workspace.cpp workspacedialog.cpp chordview.cpp
|
2017-01-31 12:21:44 +01:00
|
|
|
albummanager.cpp
|
2017-02-07 18:48:23 +01:00
|
|
|
stafftextproperties.cpp splitstaff.cpp
|
2016-07-15 17:06:41 +02:00
|
|
|
tupletdialog.cpp
|
2017-01-16 20:51:12 +01:00
|
|
|
articulationprop.cpp
|
2013-03-27 17:52:26 +01:00
|
|
|
fretproperties.cpp sectionbreakprop.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
bendproperties.cpp tremolobarprop.cpp file.cpp keyb.cpp osc.cpp
|
2016-09-22 16:07:47 +02:00
|
|
|
layer.cpp selectdialog.cpp selectnotedialog.cpp propertymenu.cpp shortcut.cpp bb.cpp
|
2017-07-06 13:22:22 +02:00
|
|
|
dragelement.cpp startupWizard.cpp
|
2016-12-29 13:42:55 +01:00
|
|
|
svggenerator.cpp
|
|
|
|
masterpalette.cpp
|
|
|
|
dragdrop.cpp
|
|
|
|
waveview.cpp helpBrowser.cpp
|
|
|
|
inspector/inspector.cpp
|
|
|
|
inspector/inspectorBase.cpp
|
|
|
|
inspector/inspectorBeam.cpp
|
|
|
|
inspector/inspectorGroupElement.cpp
|
|
|
|
inspector/inspectorImage.cpp
|
2018-07-12 10:15:56 +02:00
|
|
|
inspector/inspectorHarmony.cpp
|
2015-01-15 14:50:50 +01:00
|
|
|
inspector/inspectorFret.cpp
|
2015-02-27 13:32:56 +01:00
|
|
|
inspector/inspectorText.cpp
|
2018-10-24 10:40:03 +02:00
|
|
|
inspector/inspectorMeasureNumber.cpp
|
2016-12-29 13:42:55 +01:00
|
|
|
inspector/inspectorLasso.cpp
|
|
|
|
inspector/inspectorBarline.cpp
|
2017-01-05 14:53:21 +01:00
|
|
|
inspector/inspectorVolta.cpp
|
|
|
|
inspector/inspectorOttava.cpp
|
2013-06-10 11:03:34 +02:00
|
|
|
inspector/inspectorTrill.cpp
|
2018-08-08 14:16:17 +02:00
|
|
|
inspector/inspectorVibrato.cpp
|
2017-01-05 14:53:21 +01:00
|
|
|
inspector/inspectorHairpin.cpp
|
|
|
|
inspector/inspectorJump.cpp
|
|
|
|
inspector/inspectorMarker.cpp
|
|
|
|
inspector/inspectorGlissando.cpp
|
|
|
|
inspector/inspectorNote.cpp
|
2018-08-09 13:12:34 +02:00
|
|
|
inspector/inspectorNoteDot.cpp
|
2017-01-05 14:53:21 +01:00
|
|
|
inspector/inspectorAmbitus.cpp
|
2015-07-06 18:16:52 +02:00
|
|
|
inspector/inspectorArpeggio.cpp
|
2017-01-05 14:53:21 +01:00
|
|
|
inspector/inspectorFingering.cpp
|
2017-01-16 20:51:12 +01:00
|
|
|
inspector/alignSelect.cpp
|
2018-11-26 21:09:20 +01:00
|
|
|
inspector/fontStyleSelect.cpp
|
2017-02-13 08:22:12 +01:00
|
|
|
inspector/offsetSelect.cpp
|
2017-03-09 13:37:40 +01:00
|
|
|
inspector/scaleSelect.cpp
|
2017-03-10 17:12:38 +01:00
|
|
|
inspector/sizeSelect.cpp
|
2017-02-08 11:12:43 +01:00
|
|
|
inspector/inspectorTextBase.cpp
|
2018-07-25 12:43:09 +02:00
|
|
|
inspector/inspectorTextLineBase.cpp
|
2018-08-06 10:37:51 +02:00
|
|
|
inspector/inspectorTextLine.cpp
|
2018-08-08 14:16:17 +02:00
|
|
|
inspector/inspectorLetRing.cpp
|
|
|
|
inspector/inspectorPalmMute.cpp
|
|
|
|
inspector/inspectorPedal.cpp
|
2017-02-08 11:12:43 +01:00
|
|
|
inspector/inspectorDynamic.cpp
|
2018-09-21 13:45:12 +02:00
|
|
|
inspector/inspectorInstrchange.cpp
|
2017-02-08 11:12:43 +01:00
|
|
|
inspector/inspectorElementBase.cpp
|
2018-11-12 17:06:56 +01:00
|
|
|
inspector/resetButton.cpp
|
2017-01-05 14:53:21 +01:00
|
|
|
enableplayforwidget.cpp
|
|
|
|
editelement.cpp
|
|
|
|
editlyrics.cpp
|
|
|
|
musicxmlfonthandler.cpp
|
|
|
|
musicxmlsupport.cpp
|
|
|
|
exportxml.cpp
|
|
|
|
importxml.cpp
|
|
|
|
importxmlfirstpass.cpp
|
|
|
|
savePositions.cpp
|
|
|
|
paletteBoxButton.cpp
|
|
|
|
driver.cpp
|
|
|
|
exportmidi.cpp
|
|
|
|
noteGroups.cpp
|
|
|
|
pathlistdialog.cpp
|
|
|
|
exampleview.cpp
|
|
|
|
miconengine.cpp
|
2014-11-11 20:48:57 +01:00
|
|
|
importmidi/importmidi.cpp
|
|
|
|
importmidi/importmidi_panel.cpp importmidi/importmidi_operations.cpp
|
|
|
|
importmidi/importmidi_model.cpp importmidi/importmidi_delegate.cpp
|
|
|
|
importmidi/importmidi_meter.cpp importmidi/importmidi_quant.cpp
|
|
|
|
importmidi/importmidi_tuplet.cpp importmidi/importmidi_chord.cpp
|
|
|
|
importmidi/importmidi_swing.cpp importmidi/importmidi_fraction.cpp
|
|
|
|
importmidi/importmidi_drum.cpp importmidi/importmidi_clef.cpp
|
|
|
|
importmidi/importmidi_lrhand.cpp importmidi/importmidi_lyrics.cpp
|
|
|
|
importmidi/importmidi_inner.cpp importmidi/importmidi_tie.cpp
|
|
|
|
importmidi/importmidi_tuplet_voice.cpp importmidi/importmidi_beat.cpp
|
|
|
|
importmidi/importmidi_tuplet_detect.cpp importmidi/importmidi_tuplet_filter.cpp
|
|
|
|
importmidi/importmidi_tuplet_tonotes.cpp importmidi/importmidi_simplify.cpp
|
|
|
|
importmidi/importmidi_voice.cpp importmidi/importmidi_view.cpp importmidi/importmidi_key.cpp
|
2015-01-29 10:52:29 +01:00
|
|
|
importmidi/importmidi_tempo.cpp importmidi/importmidi_instrument.cpp
|
2015-01-30 14:09:49 +01:00
|
|
|
importmidi/importmidi_chordname.cpp
|
2018-09-26 13:07:55 +02:00
|
|
|
scorecmp/scorecmp.cpp scorecmp/scorediffmodel.cpp scorecmp/scorelistmodel.cpp
|
2013-09-30 18:38:05 +02:00
|
|
|
resourceManager.cpp downloadUtils.cpp
|
2014-11-10 10:05:25 +01:00
|
|
|
textcursor.cpp continuouspanel.cpp accessibletoolbutton.cpp scoreaccessibility.cpp
|
2019-01-06 02:53:21 +01:00
|
|
|
startcenter.cpp scoreBrowser.cpp scorePreview.cpp scoreInfo.cpp templateBrowser.cpp
|
2019-01-26 09:58:52 +01:00
|
|
|
logindialog.cpp network/loginmanager.cpp uploadscoredialog.cpp
|
|
|
|
breaksdialog.cpp searchComboBox.cpp
|
2015-02-02 09:30:17 +01:00
|
|
|
help.cpp help.h
|
2016-05-31 17:44:39 +02:00
|
|
|
toolbarEditor.cpp toolbarEditor.h
|
2016-06-30 15:34:02 +02:00
|
|
|
abstractdialog.cpp abstractdialog.h
|
2016-07-04 00:46:37 +02:00
|
|
|
toolbuttonmenu.cpp
|
2018-02-15 11:33:44 +01:00
|
|
|
preferenceslistwidget.cpp preferenceslistwidget.h
|
2018-06-05 20:17:21 +02:00
|
|
|
extension.cpp extension.h
|
2018-07-17 17:18:55 +02:00
|
|
|
tourhandler.cpp
|
2018-11-12 13:43:45 +01:00
|
|
|
script/script.cpp script/scriptentry.cpp script/testscript.cpp script/recorderwidget.cpp
|
2015-11-12 16:20:17 +01:00
|
|
|
|
2019-01-06 02:53:21 +01:00
|
|
|
${WIDGETS_SOURCE_FILES}
|
2018-02-12 11:34:54 +01:00
|
|
|
${COCOABRIDGE}
|
2012-05-26 14:49:10 +02:00
|
|
|
${OMR_FILES}
|
|
|
|
${AUDIO}
|
2012-07-09 14:16:27 +02:00
|
|
|
${SCRIPT_FILES}
|
2018-09-25 11:24:37 +02:00
|
|
|
${MAC_SPARKLE_FILES}
|
2013-02-04 16:13:46 +01:00
|
|
|
driver.h
|
2015-01-27 11:56:08 +01:00
|
|
|
tremolobarcanvas.h bendcanvas.h fretcanvas.h keycanvas.h harmonycanvas.h
|
2018-10-27 08:13:15 +02:00
|
|
|
|
|
|
|
sparkle/autoUpdater.h sparkle/sparkleAutoUpdater.h sparkle/winSparkleAutoUpdater.h
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
|
2018-09-25 11:24:37 +02:00
|
|
|
|
|
|
|
|
2018-07-10 14:57:05 +02:00
|
|
|
if (MSVC)
|
2018-08-21 17:27:26 +02:00
|
|
|
target_link_libraries(mscore vorbisfiledll)
|
2018-07-10 14:57:05 +02:00
|
|
|
else (MSVC)
|
|
|
|
target_link_libraries(mscore vorbisfile)
|
|
|
|
endif (MSVC)
|
|
|
|
|
2013-04-02 20:46:07 +02:00
|
|
|
target_link_libraries(mscore
|
|
|
|
awl
|
|
|
|
bww
|
|
|
|
rtf2html
|
|
|
|
${QTSINGLEAPPLICATION_LIBRARIES}
|
|
|
|
synthesizer
|
2013-04-15 10:38:16 +02:00
|
|
|
midi
|
2013-04-02 20:46:07 +02:00
|
|
|
fluid
|
|
|
|
effects
|
2014-05-07 19:58:14 +02:00
|
|
|
libmscore
|
|
|
|
qzip
|
2014-01-07 19:42:45 +01:00
|
|
|
beatroot
|
2014-11-14 21:03:46 +01:00
|
|
|
kqoauth
|
2013-04-02 20:46:07 +02:00
|
|
|
)
|
2014-04-29 03:52:10 +02:00
|
|
|
|
2019-02-15 13:26:32 +01:00
|
|
|
if (BUILD_CRASH_REPORTER)
|
|
|
|
target_link_libraries(mscore crashreporter-handler)
|
|
|
|
endif (BUILD_CRASH_REPORTER)
|
|
|
|
|
2019-01-14 12:40:19 +01:00
|
|
|
add_dependencies(mscore workspaces)
|
|
|
|
|
2016-12-20 21:57:13 +01:00
|
|
|
if (USE_SYSTEM_FREETYPE)
|
|
|
|
target_link_libraries(mscore ${FREETYPE_LIBRARIES})
|
|
|
|
endif (USE_SYSTEM_FREETYPE)
|
|
|
|
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
if (MINGW OR MSVC)
|
2018-10-27 08:13:15 +02:00
|
|
|
set(MSCORE_OUTPUT_NAME ${MUSESCORE_NAME}${MUSESCORE_VERSION_MAJOR})
|
2015-07-25 01:26:54 +02:00
|
|
|
elseif (MSCORE_INSTALL_SUFFIX)
|
|
|
|
set(MSCORE_OUTPUT_NAME "${ExecutableName}${MSCORE_INSTALL_SUFFIX}")
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
endif (MINGW OR MSVC)
|
2014-12-08 10:30:06 +01:00
|
|
|
|
2016-06-10 10:37:53 +02:00
|
|
|
# If MSCORE_OUTPUT_NAME is set (e.g, when cmake is called by the user), the output executable will be
|
|
|
|
# called MSCORE_OUTPUT_NAME instead of 'mscore'. This can be used to have MuseScore stable and unstable
|
|
|
|
# both installed in the same prefix on a Linux system.
|
2014-04-29 03:52:10 +02:00
|
|
|
if (MSCORE_OUTPUT_NAME)
|
2014-07-22 16:43:29 +02:00
|
|
|
set_target_properties(
|
|
|
|
${ExecutableName}
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME ${MSCORE_OUTPUT_NAME}
|
|
|
|
)
|
2014-04-29 03:52:10 +02:00
|
|
|
endif (MSCORE_OUTPUT_NAME)
|
|
|
|
|
2013-04-02 20:46:07 +02:00
|
|
|
if (ZERBERUS)
|
|
|
|
target_link_libraries(mscore zerberus synthesizer)
|
2016-12-20 21:57:13 +01:00
|
|
|
endif (ZERBERUS)
|
2013-04-02 20:46:07 +02:00
|
|
|
if (AEOLUS)
|
|
|
|
target_link_libraries(mscore aeolus)
|
2016-12-20 21:57:13 +01:00
|
|
|
endif (AEOLUS)
|
2013-04-02 20:46:07 +02:00
|
|
|
if (SOUNDFONT3)
|
2018-07-10 14:57:05 +02:00
|
|
|
if (MSVC)
|
2018-08-21 17:27:26 +02:00
|
|
|
target_link_libraries(mscore vorbisdll oggdll)
|
2018-07-10 14:57:05 +02:00
|
|
|
else (MSVC)
|
|
|
|
target_link_libraries(mscore ${VORBIS_LIB} ${OGG_LIB})
|
|
|
|
endif (MSVC)
|
2016-12-20 21:57:13 +01:00
|
|
|
endif (SOUNDFONT3)
|
2013-04-02 20:46:07 +02:00
|
|
|
|
2013-05-21 17:53:14 +02:00
|
|
|
if (HAS_AUDIOFILE)
|
2018-07-10 14:57:05 +02:00
|
|
|
if (MSVC)
|
2018-08-21 17:27:26 +02:00
|
|
|
target_link_libraries(mscore audiofile sndfiledll)
|
2018-08-08 14:16:17 +02:00
|
|
|
else (MSVC)
|
2018-07-10 14:57:05 +02:00
|
|
|
target_link_libraries(mscore audiofile ${SNDFILE_LIB})
|
|
|
|
endif (MSVC)
|
2013-05-21 17:53:14 +02:00
|
|
|
endif (HAS_AUDIOFILE)
|
2013-04-02 20:46:07 +02:00
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
if (APPLE)
|
|
|
|
set_target_properties (mscore
|
2014-07-22 16:43:29 +02:00
|
|
|
PROPERTIES
|
|
|
|
MACOSX_BUNDLE_INFO_PLIST ${PROJECT_SOURCE_DIR}/build/MacOSXBundleInfo.plist.in)
|
2016-06-10 10:37:53 +02:00
|
|
|
# Enable dSym generation
|
2012-07-28 09:47:21 +02:00
|
|
|
#set_target_properties (mscore
|
2016-06-10 10:37:53 +02:00
|
|
|
# PROPERTIES
|
|
|
|
# XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT "dwarf-with-dsym")
|
2016-12-20 21:57:13 +01:00
|
|
|
endif (APPLE)
|
2012-05-26 14:49:10 +02:00
|
|
|
|
|
|
|
if (OSC)
|
2014-07-22 16:43:29 +02:00
|
|
|
target_link_libraries(mscore ofqf)
|
2012-05-26 14:49:10 +02:00
|
|
|
endif (OSC)
|
|
|
|
|
|
|
|
if (MINGW)
|
2017-06-19 11:55:54 +02:00
|
|
|
set (QT_WRC_EXECUTABLE ${PROJECT_SOURCE_DIR}/build/wrc.bat)
|
|
|
|
set (QT_WINE_EXECUTABLE ${PROJECT_SOURCE_DIR}/build/wine.bat)
|
2012-05-26 14:49:10 +02:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${PROJECT_BINARY_DIR}/resfile.o
|
|
|
|
COMMAND ${QT_WRC_EXECUTABLE} -i mscore.rc -o ${PROJECT_BINARY_DIR}/mscore.res
|
|
|
|
COMMAND ${QT_WINE_EXECUTABLE} /home/ws/.wine/drive_c/MingW/bin/windres.exe ${PROJECT_BINARY_DIR}/mscore.res -o ${PROJECT_BINARY_DIR}/resfile.o
|
|
|
|
DEPENDS ${PROJECT_SOURCE_DIR}/mscore/data/mscore.rc
|
|
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/mscore/data
|
|
|
|
)
|
|
|
|
set_source_files_properties(
|
|
|
|
${PROJECT_BINARY_DIR}/resfile.o
|
|
|
|
PROPERTIES generated true
|
|
|
|
)
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)
|
2016-06-10 10:37:53 +02:00
|
|
|
# Windows: Add -mconsole to LINK_FLAGS to get a console window for debug output
|
2012-05-26 14:49:10 +02:00
|
|
|
if(CMAKE_BUILD_TYPE MATCHES "DEBUG")
|
|
|
|
set_target_properties( mscore
|
|
|
|
PROPERTIES
|
2013-03-14 16:00:06 +01:00
|
|
|
COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch ${QT_DEFINITIONS} -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB"
|
2018-11-26 13:24:31 +01:00
|
|
|
LINK_FLAGS "-mwindows -mconsole -L ${QT_INSTALL_LIBS}"
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
else(CMAKE_BUILD_TYPE MATCHES "DEBUG")
|
|
|
|
set_target_properties( mscore
|
|
|
|
PROPERTIES
|
2013-03-14 16:00:06 +01:00
|
|
|
COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch ${QT_DEFINITIONS} -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB"
|
2018-11-26 13:24:31 +01:00
|
|
|
LINK_FLAGS "-Wl,-S -mwindows -L ${QT_INSTALL_LIBS}"
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
endif(CMAKE_BUILD_TYPE MATCHES "DEBUG")
|
|
|
|
|
|
|
|
target_link_libraries(mscore
|
|
|
|
portaudio
|
|
|
|
portmidi
|
|
|
|
winmm
|
2015-11-16 18:44:31 +01:00
|
|
|
mscore_freetype
|
2013-07-26 15:39:46 +02:00
|
|
|
z
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
|
2012-12-16 17:38:15 +01:00
|
|
|
if (OMR)
|
2018-11-30 15:56:35 +01:00
|
|
|
target_link_libraries(mscore omr poppler-qt5)
|
2012-05-26 14:49:10 +02:00
|
|
|
if (OCR)
|
|
|
|
target_link_libraries(mscore tesseract_api)
|
|
|
|
endif (OCR)
|
|
|
|
endif (OMR)
|
|
|
|
|
2016-01-04 02:36:36 +01:00
|
|
|
# Keep dependencies in alphabetical order. Changes made to this list
|
|
|
|
# might need to be made in "build/Linux+BSD/portable/copy-libs" too.
|
2017-06-19 11:55:54 +02:00
|
|
|
get_filename_component(COMPILER_DIR ${CMAKE_CXX_COMPILER} DIRECTORY)
|
|
|
|
get_filename_component (MINGW_ROOT ${COMPILER_DIR} DIRECTORY)
|
2017-08-01 22:47:04 +02:00
|
|
|
foreach (QtLibrary ${QT_LIBRARIES})
|
2018-01-05 00:26:31 +01:00
|
|
|
message("Library ${QtLibrary}")
|
|
|
|
# always use release libs
|
|
|
|
set_target_properties(${QtLibrary} PROPERTIES MAP_IMPORTED_CONFIG_DEBUG "RELEASE")
|
|
|
|
get_target_property(QtSharedLibrary ${QtLibrary} LOCATION_RELEASE)
|
2017-08-01 22:47:04 +02:00
|
|
|
if (EXISTS ${QtSharedLibrary})
|
|
|
|
list (APPEND QtInstallLibraries ${QtSharedLibrary})
|
|
|
|
endif (EXISTS ${QtSharedLibrary})
|
|
|
|
endforeach (QtLibrary ${QT_LIBRARIES})
|
|
|
|
list(REMOVE_DUPLICATES QtInstallLibraries)
|
2018-01-05 00:26:31 +01:00
|
|
|
|
|
|
|
target_link_libraries(mscore ${QT_LIBRARIES})
|
|
|
|
|
|
|
|
install( TARGETS mscore RUNTIME DESTINATION bin )
|
|
|
|
|
2018-10-14 23:14:23 +02:00
|
|
|
if (BUILD_64)
|
|
|
|
install( FILES
|
|
|
|
${MINGW_ROOT}/bin/libgcc_s_seh-1.dll
|
|
|
|
DESTINATION bin)
|
|
|
|
install( FILES
|
|
|
|
${MINGW_ROOT}/lib/portaudio.dll RENAME libportaudio-x86_64-w64-mingw32.static.dll
|
|
|
|
DESTINATION bin)
|
|
|
|
else (BUILD_64)
|
|
|
|
install( FILES
|
|
|
|
${MINGW_ROOT}/bin/libgcc_s_dw2-1.dll
|
|
|
|
${MINGW_ROOT}/lib/portaudio.dll
|
|
|
|
DESTINATION bin)
|
|
|
|
endif (BUILD_64)
|
|
|
|
|
2013-07-13 12:20:34 +02:00
|
|
|
install( FILES
|
2017-06-19 11:55:54 +02:00
|
|
|
${MINGW_ROOT}/bin/libstdc++-6.dll
|
|
|
|
${MINGW_ROOT}/bin/libwinpthread-1.dll
|
|
|
|
${MINGW_ROOT}/lib/libogg.dll
|
|
|
|
${MINGW_ROOT}/lib/libsndfile-1.dll
|
|
|
|
${MINGW_ROOT}/opt/bin/libeay32.dll
|
2018-07-10 14:57:05 +02:00
|
|
|
${MINGW_ROOT}/lib/libvorbis.dll
|
|
|
|
${MINGW_ROOT}/lib/libvorbisfile.dll
|
2017-06-19 11:55:54 +02:00
|
|
|
${MINGW_ROOT}/opt/bin/ssleay32.dll
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_BINS}/libEGL.dll
|
|
|
|
${QT_INSTALL_BINS}/libGLESv2.dll
|
2017-08-01 22:47:04 +02:00
|
|
|
${QtInstallLibraries}
|
2014-07-15 14:36:55 +02:00
|
|
|
${PROJECT_SOURCE_DIR}/build/qt.conf
|
2013-07-13 12:20:34 +02:00
|
|
|
DESTINATION bin)
|
|
|
|
|
2018-02-27 17:35:11 +01:00
|
|
|
install (FILES
|
|
|
|
${MINGW_ROOT}/lib/lame_enc.dll
|
|
|
|
DESTINATION bin
|
|
|
|
OPTIONAL)
|
|
|
|
|
2013-07-13 12:20:34 +02:00
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_PLUGINS}/iconengines/qsvgicon.dll
|
2013-07-13 12:20:34 +02:00
|
|
|
DESTINATION bin/iconengines)
|
|
|
|
|
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_PLUGINS}/imageformats/qjpeg.dll
|
|
|
|
${QT_INSTALL_PLUGINS}/imageformats/qsvg.dll
|
|
|
|
${QT_INSTALL_PLUGINS}/imageformats/qtiff.dll
|
2013-07-13 12:20:34 +02:00
|
|
|
DESTINATION bin/imageformats)
|
|
|
|
|
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_PLUGINS}/platforms/qwindows.dll
|
2013-07-13 12:20:34 +02:00
|
|
|
DESTINATION bin/platforms)
|
|
|
|
|
2013-07-17 10:02:21 +02:00
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_PLUGINS}/printsupport/windowsprintersupport.dll
|
2013-07-17 10:02:21 +02:00
|
|
|
DESTINATION bin/printsupport)
|
|
|
|
|
2015-02-06 18:59:57 +01:00
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_PLUGINS}/sqldrivers/qsqlite.dll
|
2015-02-06 18:59:57 +01:00
|
|
|
DESTINATION bin/sqldrivers)
|
|
|
|
|
2013-07-13 12:20:34 +02:00
|
|
|
install(DIRECTORY
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_QML}
|
2013-07-13 12:20:34 +02:00
|
|
|
DESTINATION .
|
2016-01-04 02:36:36 +01:00
|
|
|
REGEX ".*d\\.dll" EXCLUDE
|
2013-07-13 12:20:34 +02:00
|
|
|
REGEX ".*QtGraphicalEffects.*" EXCLUDE
|
2013-07-15 18:48:57 +02:00
|
|
|
REGEX ".*QtMultimedia.*" EXCLUDE
|
2016-01-04 02:36:36 +01:00
|
|
|
REGEX ".*QtSensors.*" EXCLUDE
|
|
|
|
REGEX ".*QtTest.*" EXCLUDE
|
|
|
|
REGEX ".*QtWebkit.*" EXCLUDE)
|
2012-05-26 14:49:10 +02:00
|
|
|
|
|
|
|
else (MINGW)
|
2018-07-10 14:57:05 +02:00
|
|
|
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
if ( NOT MSVC )
|
2018-07-10 14:57:05 +02:00
|
|
|
## install qwebengine core
|
2018-08-20 14:37:14 +02:00
|
|
|
if (NOT APPLE AND USE_WEBENGINE)
|
2018-07-10 14:57:05 +02:00
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_LIBEXECS}/QtWebEngineProcess
|
2018-07-10 14:57:05 +02:00
|
|
|
DESTINATION bin
|
|
|
|
)
|
|
|
|
install(DIRECTORY
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_DATA}/resources
|
2018-08-08 09:42:12 +02:00
|
|
|
DESTINATION lib/qt5
|
2018-07-10 14:57:05 +02:00
|
|
|
)
|
|
|
|
install(DIRECTORY
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_TRANSLATIONS}/qtwebengine_locales
|
2018-08-08 09:42:12 +02:00
|
|
|
DESTINATION lib/qt5/translations
|
2018-07-10 14:57:05 +02:00
|
|
|
)
|
2018-08-20 14:37:14 +02:00
|
|
|
endif(NOT APPLE AND USE_WEBENGINE)
|
2018-07-10 14:57:05 +02:00
|
|
|
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
target_link_libraries(mscore
|
|
|
|
${ALSA_LIB}
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
z
|
|
|
|
${CMAKE_DL_LIBS}
|
|
|
|
pthread
|
|
|
|
)
|
|
|
|
|
|
|
|
if (USE_SYSTEM_FREETYPE)
|
|
|
|
target_link_libraries(mscore freetype)
|
|
|
|
else (USE_SYSTEM_FREETYPE)
|
|
|
|
target_link_libraries(mscore mscore_freetype)
|
|
|
|
endif (USE_SYSTEM_FREETYPE)
|
|
|
|
|
|
|
|
if (USE_PORTAUDIO)
|
|
|
|
target_link_libraries(mscore ${PORTAUDIO_LIB})
|
|
|
|
endif (USE_PORTAUDIO)
|
|
|
|
|
|
|
|
if (USE_PORTMIDI)
|
|
|
|
if (APPLE)
|
|
|
|
set(PORTMIDI_LIB portmidi)
|
|
|
|
else (APPLE)
|
|
|
|
set(PORTMIDI_LIB -lportmidi -lporttime) # Remove -lporttime on RPM-based systems where PortTime is part of PortMidi.
|
|
|
|
endif (APPLE)
|
|
|
|
target_link_libraries(mscore ${PORTMIDI_LIB})
|
|
|
|
endif (USE_PORTMIDI)
|
|
|
|
|
|
|
|
if (USE_PULSEAUDIO)
|
|
|
|
target_link_libraries(mscore ${PULSEAUDIO_LIBRARY})
|
|
|
|
endif (USE_PULSEAUDIO)
|
|
|
|
|
|
|
|
set_target_properties (
|
|
|
|
mscore
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wno-overloaded-virtual -Winvalid-pch"
|
|
|
|
)
|
|
|
|
|
|
|
|
if (OMR)
|
2018-11-30 15:56:35 +01:00
|
|
|
target_link_libraries(mscore omr poppler-qt5)
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
if (OCR)
|
|
|
|
target_link_libraries(mscore tesseract_api)
|
|
|
|
endif (OCR)
|
|
|
|
endif (OMR)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
target_link_libraries(mscore ${OsxFrameworks})
|
|
|
|
else (APPLE)
|
|
|
|
target_link_libraries(mscore rt)
|
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
# 'gold' does not use indirect shared libraries for symbol resolution, Linux only
|
|
|
|
if (NOT APPLE)
|
|
|
|
if(USE_JACK)
|
|
|
|
target_link_libraries(mscore ${CMAKE_DL_LIBS})
|
|
|
|
endif(USE_JACK)
|
|
|
|
target_link_libraries(mscore rt)
|
|
|
|
endif (NOT APPLE)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
set_target_properties(mscore
|
|
|
|
PROPERTIES
|
|
|
|
LINK_FLAGS "-stdlib=libc++"
|
|
|
|
)
|
|
|
|
xcode_pch(mscore all)
|
|
|
|
install (TARGETS mscore BUNDLE DESTINATION ${CMAKE_INSTALL_PREFIX})
|
|
|
|
install (FILES data/mscore.icns DESTINATION ${Mscore_SHARE_NAME}${Mscore_INSTALL_NAME})
|
|
|
|
install (FILES data/musescoreDocument.icns DESTINATION ${Mscore_SHARE_NAME}${Mscore_INSTALL_NAME})
|
|
|
|
else (APPLE)
|
|
|
|
#### PACKAGING for Linux and BSD based systems (more in top-level CMakeLists.txt) ####
|
|
|
|
# Install mscore executable (package maintainers may add "MuseScore" and/or "musescore" aliases that symlink to mscore)
|
|
|
|
install( TARGETS mscore RUNTIME DESTINATION bin )
|
|
|
|
if (LN_EXECUTABLE)
|
|
|
|
add_custom_target(mscore_alias ALL
|
|
|
|
COMMAND echo "Creating symlink alias for mscore executable."
|
|
|
|
COMMAND ${LN_EXECUTABLE} -sf "mscore${MSCORE_INSTALL_SUFFIX}" "musescore${MSCORE_INSTALL_SUFFIX}"
|
|
|
|
COMMAND echo 'Symlink alias: musescore${MSCORE_INSTALL_SUFFIX} -> mscore${MSCORE_INSTALL_SUFFIX}'
|
|
|
|
)
|
|
|
|
install( FILES ${PROJECT_BINARY_DIR}/mscore/musescore${MSCORE_INSTALL_SUFFIX} DESTINATION bin)
|
|
|
|
else (LN_EXECUTABLE)
|
|
|
|
add_custom_target(mscore_alias ALL
|
|
|
|
COMMAND echo "No symlink aliases will be created."
|
|
|
|
VERBATIM
|
|
|
|
)
|
|
|
|
endif (LN_EXECUTABLE)
|
|
|
|
# Install MuseScore icons (use SVGs where possible, but install PNGs as backup for systems that don't support SVG)
|
2018-12-20 19:45:02 +01:00
|
|
|
set(MSCORE_ICON_BASE ../assets/musescore-icon-round)
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
install(FILES ${MSCORE_ICON_BASE}.svg RENAME mscore${MSCORE_INSTALL_SUFFIX}.svg DESTINATION share/icons/hicolor/scalable/apps)
|
|
|
|
install(FILES ${MSCORE_ICON_BASE}-16.png RENAME mscore${MSCORE_INSTALL_SUFFIX}.png DESTINATION share/icons/hicolor/16x16/apps)
|
|
|
|
install(FILES ${MSCORE_ICON_BASE}-24.png RENAME mscore${MSCORE_INSTALL_SUFFIX}.png DESTINATION share/icons/hicolor/24x24/apps)
|
|
|
|
install(FILES ${MSCORE_ICON_BASE}-32.png RENAME mscore${MSCORE_INSTALL_SUFFIX}.png DESTINATION share/icons/hicolor/32x32/apps)
|
|
|
|
install(FILES ${MSCORE_ICON_BASE}-48.png RENAME mscore${MSCORE_INSTALL_SUFFIX}.png DESTINATION share/icons/hicolor/48x48/apps)
|
|
|
|
install(FILES ${MSCORE_ICON_BASE}-64.png RENAME mscore${MSCORE_INSTALL_SUFFIX}.png DESTINATION share/icons/hicolor/64x64/apps)
|
|
|
|
install(FILES ${MSCORE_ICON_BASE}-96.png RENAME mscore${MSCORE_INSTALL_SUFFIX}.png DESTINATION share/icons/hicolor/96x96/apps)
|
|
|
|
install(FILES ${MSCORE_ICON_BASE}-128.png RENAME mscore${MSCORE_INSTALL_SUFFIX}.png DESTINATION share/icons/hicolor/128x128/apps)
|
|
|
|
install(FILES ${MSCORE_ICON_BASE}-512.png RENAME mscore${MSCORE_INSTALL_SUFFIX}.png DESTINATION share/icons/hicolor/512x512/apps)
|
|
|
|
# Install MIME (filetype) icons for each mimetype on Linux
|
|
|
|
install( FILES ../assets/mscz-icon.svg RENAME application-x-musescore${MSCORE_INSTALL_SUFFIX}.svg
|
|
|
|
DESTINATION share/icons/hicolor/scalable/mimetypes) # SVG icon for .MSCZ files
|
|
|
|
install( FILES ../assets/mscz-icon-48.png RENAME application-x-musescore${MSCORE_INSTALL_SUFFIX}.png
|
|
|
|
DESTINATION share/icons/hicolor/48x48/mimetypes) # PNG icon for .MSCZ files
|
|
|
|
install( FILES ../assets/mscx-icon.svg RENAME application-x-musescore${MSCORE_INSTALL_SUFFIX}+xml.svg
|
|
|
|
DESTINATION share/icons/hicolor/scalable/mimetypes) # SVG icon for .MSCX files
|
|
|
|
install( FILES ../assets/mscx-icon-48.png RENAME application-x-musescore${MSCORE_INSTALL_SUFFIX}+xml.png
|
|
|
|
DESTINATION share/icons/hicolor/48x48/mimetypes) # PNG icon for .MSCX files
|
|
|
|
# use a custom icon for MusicXML files (there isn't a standard icon for MusicXML files)
|
|
|
|
install( FILES ../assets/mxl-icon.svg RENAME application-vnd.recordare.musicxml${MSCORE_INSTALL_SUFFIX}.svg
|
|
|
|
DESTINATION share/icons/hicolor/scalable/mimetypes) # SVG icon for .MXL (compressed MusicXML) files
|
|
|
|
install( FILES ../assets/mxl-icon-48.png RENAME application-vnd.recordare.musicxml${MSCORE_INSTALL_SUFFIX}.png
|
|
|
|
DESTINATION share/icons/hicolor/48x48/mimetypes) # PNG icon for .MXL (compressed MusicXML) files
|
|
|
|
install( FILES ../assets/xml-icon.svg RENAME application-vnd.recordare.musicxml${MSCORE_INSTALL_SUFFIX}+xml.svg
|
|
|
|
DESTINATION share/icons/hicolor/scalable/mimetypes) # SVG icon for .XML (MusicXML) files
|
|
|
|
install( FILES ../assets/xml-icon-48.png RENAME application-vnd.recordare.musicxml${MSCORE_INSTALL_SUFFIX}+xml.png
|
|
|
|
DESTINATION share/icons/hicolor/48x48/mimetypes) # PNG icon for .XML (MusicXML) files
|
|
|
|
# Note: Must now run "gtk-update-icon-cache" to set the new icons. This is done in the Makefile.
|
|
|
|
endif (APPLE)
|
|
|
|
else ( NOT MSVC )
|
|
|
|
# Microsoft Visual Studio-specific starts here!
|
|
|
|
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)
|
|
|
|
|
|
|
|
# Create list of directories to search for libraries
|
|
|
|
foreach (item ${CMAKE_LIBRARY_PATH})
|
|
|
|
string( APPEND all_library_paths " /LIBPATH:${item}" )
|
|
|
|
endforeach()
|
|
|
|
|
2018-08-29 10:10:45 +02:00
|
|
|
# Windows: Add /SUBSYSTEM:WINDOWS to LINK_FLAGS to avoid a console window in release
|
2019-02-26 10:27:28 +01:00
|
|
|
if(CMAKE_BUILD_TYPE MATCHES "REL*")
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
set_target_properties( mscore
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS "${PCH_INCLUDE} ${QT_DEFINITIONS} -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB"
|
2018-11-26 13:24:31 +01:00
|
|
|
LINK_FLAGS "/LIBPATH:${QT_INSTALL_LIBS} ${all_library_paths}"
|
2018-08-29 10:10:45 +02:00
|
|
|
LINK_FLAGS "/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup"
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
)
|
2019-02-26 10:27:28 +01:00
|
|
|
else(CMAKE_BUILD_TYPE MATCHES "REL*")
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
set_target_properties( mscore
|
|
|
|
PROPERTIES
|
2018-08-29 10:10:45 +02:00
|
|
|
COMPILE_FLAGS "${PCH_INCLUDE} ${QT_DEFINITIONS} /DQT_SVG_LIB /DQT_GUI_LIB /DQT_XML_LIB /DQT_CORE_LIB"
|
2018-11-26 13:24:31 +01:00
|
|
|
LINK_FLAGS "/LIBPATH:${QT_INSTALL_LIBS} ${all_library_paths}"
|
2018-08-29 10:10:45 +02:00
|
|
|
LINK_FLAGS "/SUBSYSTEM:CONSOLE"
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
)
|
2019-02-26 10:27:28 +01:00
|
|
|
endif(CMAKE_BUILD_TYPE MATCHES "REL*")
|
2018-07-10 14:57:05 +02:00
|
|
|
|
|
|
|
include(FindStaticLibrary)
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
target_link_libraries(mscore
|
2018-08-21 17:27:26 +02:00
|
|
|
portaudiodll
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
portmidi
|
|
|
|
winmm
|
|
|
|
mscore_freetype
|
|
|
|
zlibstat
|
|
|
|
)
|
|
|
|
|
|
|
|
if (OMR)
|
2018-11-30 15:56:35 +01:00
|
|
|
target_link_libraries(mscore omr poppler-qt5)
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
if (OCR)
|
|
|
|
target_link_libraries(mscore tesseract_api)
|
|
|
|
endif (OCR)
|
|
|
|
endif (OMR)
|
|
|
|
|
|
|
|
# Use pre-compiled headers
|
|
|
|
vstudio_pch( mscore )
|
|
|
|
|
|
|
|
# Copy DLL dependencies to .EXE DIRECTORY
|
2018-08-08 14:16:17 +02:00
|
|
|
list(APPEND dlls_to_copy
|
2018-11-26 13:24:31 +01:00
|
|
|
"${QT_INSTALL_BINS}/Qt5Core.dll" "${QT_INSTALL_BINS}/Qt5Gui.dll" "${QT_INSTALL_BINS}/Qt5Help.dll"
|
|
|
|
"${QT_INSTALL_BINS}/Qt5Network.dll" "${QT_INSTALL_BINS}/Qt5PrintSupport.dll"
|
|
|
|
"${QT_INSTALL_BINS}/Qt5Qml.dll" "${QT_INSTALL_BINS}/Qt5Quick.dll" "${QT_INSTALL_BINS}/Qt5Sql.dll"
|
|
|
|
"${QT_INSTALL_BINS}/Qt5Svg.dll" "${QT_INSTALL_BINS}/Qt5Widgets.dll" "${QT_INSTALL_BINS}/Qt5Xml.dll"
|
|
|
|
"${QT_INSTALL_BINS}/Qt5XmlPatterns.dll"
|
|
|
|
"${QT_INSTALL_BINS}/Qt5WebChannel.dll"
|
|
|
|
"${QT_INSTALL_BINS}/Qt5QuickWidgets.dll" "${QT_INSTALL_BINS}/Qt5Positioning.dll"
|
|
|
|
"${QT_INSTALL_BINS}/libEGL.dll" "${QT_INSTALL_BINS}/libGLESv2.dll"
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
)
|
2018-08-20 14:37:14 +02:00
|
|
|
if (USE_WEBENGINE)
|
2018-11-26 13:24:31 +01:00
|
|
|
list(APPEND dlls_to_copy "${QT_INSTALL_BINS}/Qt5WebEngineWidgets.dll" "${QT_INSTALL_BINS}/Qt5WebEngineCore.dll")
|
2018-08-20 14:37:14 +02:00
|
|
|
endif(USE_WEBENGINE)
|
2018-11-26 21:09:20 +01:00
|
|
|
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
set(CMAKE_FIND_LIBRARY_PREFIX "")
|
|
|
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll")
|
2018-10-27 08:13:15 +02:00
|
|
|
|
|
|
|
if (WIN_SPARKLE_ENABLED)
|
|
|
|
target_link_libraries(mscore winsparkledll)
|
|
|
|
find_library( dll_winsparkle NAMES "WinSparkle" PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
|
|
|
|
list(APPEND dlls_to_copy ${dll_winsparkle})
|
|
|
|
endif (WIN_SPARKLE_ENABLED)
|
|
|
|
|
2018-08-23 16:50:57 +02:00
|
|
|
find_library( dll_lame NAMES "lame_enc" PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
|
|
|
|
find_library( dll_ogg NAMES "libogg" PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
|
|
|
|
find_library( dll_sndfile NAMES "libsndfile-1" PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
|
|
|
|
find_library( dll_vorbis NAMES "libvorbis" PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
|
|
|
|
find_library( dll_vorbisfile NAMES "libvorbisfile" PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
|
|
|
|
find_library( dll_portaudio NAMES "portaudio" PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
|
2018-12-04 13:47:28 +01:00
|
|
|
find_library( dll_ssl1 NAMES "libeay32" PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
|
|
|
|
find_library( dll_ssl2 NAMES "ssleay32" PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
|
2018-12-04 13:47:28 +01:00
|
|
|
list(APPEND dlls_to_copy ${dll_lame} ${dll_ogg} ${dll_sndfile} ${dll_vorbis} ${dll_vorbisfile} ${dll_portaudio} ${dll_ssl1} ${dll_ssl2} "$<TARGET_FILE_DIR:mscore>/${MSCORE_OUTPUT_NAME}.exe")
|
2018-08-21 17:27:26 +02:00
|
|
|
set( output_dir_for_dlls "${PROJECT_BINARY_DIR}/../msvc.install${ARCH_TYPE}/bin")
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
|
|
|
|
COPY_FILES_INTO_DIRECTORY_IF_CHANGED( "${dlls_to_copy}" ${output_dir_for_dlls} mscore)
|
|
|
|
|
2018-07-10 14:57:05 +02:00
|
|
|
add_dependencies(mscore pluginDocumentation)
|
2018-08-08 14:16:17 +02:00
|
|
|
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
# Keep dependencies in alphabetical order. Changes made to this list
|
|
|
|
# might need to be made in "build/Linux+BSD/portable/copy-libs" too.
|
|
|
|
get_filename_component(COMPILER_DIR ${CMAKE_CXX_COMPILER} DIRECTORY)
|
|
|
|
get_filename_component (MINGW_ROOT ${COMPILER_DIR} DIRECTORY)
|
2018-07-10 14:57:05 +02:00
|
|
|
|
2018-10-27 08:13:15 +02:00
|
|
|
foreach (QtLibrary ${QT_LIBRARIES})
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
message("Library ${QtLibrary}")
|
|
|
|
# always use release libs
|
|
|
|
set_target_properties(${QtLibrary} PROPERTIES MAP_IMPORTED_CONFIG_DEBUG "RELEASE")
|
|
|
|
get_target_property(QtSharedLibrary ${QtLibrary} LOCATION_RELEASE)
|
|
|
|
if (EXISTS ${QtSharedLibrary})
|
|
|
|
list (APPEND QtInstallLibraries ${QtSharedLibrary})
|
|
|
|
endif (EXISTS ${QtSharedLibrary})
|
|
|
|
endforeach (QtLibrary ${QT_LIBRARIES})
|
|
|
|
list(REMOVE_DUPLICATES QtInstallLibraries)
|
2018-08-08 14:16:17 +02:00
|
|
|
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
target_link_libraries(mscore ${QT_LIBRARIES})
|
2018-08-08 10:47:01 +02:00
|
|
|
add_dependencies(mscore lrelease)
|
2018-07-10 14:57:05 +02:00
|
|
|
|
|
|
|
install( FILES
|
2018-10-27 08:13:15 +02:00
|
|
|
${dll_ogg}
|
|
|
|
${dll_lame}
|
|
|
|
${dll_sndfile}
|
|
|
|
${dll_portaudio}
|
|
|
|
${dll_vorbis}
|
|
|
|
${dll_vorbisfile}
|
2018-12-04 13:47:28 +01:00
|
|
|
${dll_ssl1}
|
|
|
|
${dll_ssl2}
|
2018-10-27 08:13:15 +02:00
|
|
|
${dll_winsparkle}
|
|
|
|
${QtInstallLibraries}
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_BINS}/libEGL.dll
|
|
|
|
${QT_INSTALL_BINS}/libGLESv2.dll
|
|
|
|
${QT_INSTALL_BINS}/Qt5Positioning.dll
|
|
|
|
${QT_INSTALL_BINS}/Qt5WebChannel.dll
|
2018-10-27 08:13:15 +02:00
|
|
|
${PROJECT_SOURCE_DIR}/build/qt.conf
|
|
|
|
DESTINATION bin)
|
2018-07-10 14:57:05 +02:00
|
|
|
|
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_PLUGINS}/iconengines/qsvgicon.dll
|
2018-07-10 14:57:05 +02:00
|
|
|
DESTINATION bin/iconengines)
|
|
|
|
|
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_PLUGINS}/imageformats/qjpeg.dll
|
|
|
|
${QT_INSTALL_PLUGINS}/imageformats/qsvg.dll
|
|
|
|
${QT_INSTALL_PLUGINS}/imageformats/qtiff.dll
|
2018-07-10 14:57:05 +02:00
|
|
|
DESTINATION bin/imageformats)
|
|
|
|
|
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_PLUGINS}/platforms/qwindows.dll
|
2018-07-10 14:57:05 +02:00
|
|
|
DESTINATION bin/platforms)
|
|
|
|
|
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_PLUGINS}/printsupport/windowsprintersupport.dll
|
2018-07-10 14:57:05 +02:00
|
|
|
DESTINATION bin/printsupport)
|
|
|
|
|
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_PLUGINS}/sqldrivers/qsqlite.dll
|
2018-07-10 14:57:05 +02:00
|
|
|
DESTINATION bin/sqldrivers)
|
2018-08-08 14:16:17 +02:00
|
|
|
|
2018-08-20 14:37:14 +02:00
|
|
|
install( TARGETS mscore RUNTIME DESTINATION bin ) # this duplicate due to the correctly package step
|
2018-07-10 14:57:05 +02:00
|
|
|
|
2018-08-20 14:37:14 +02:00
|
|
|
if (USE_WEBENGINE)
|
|
|
|
install(FILES
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_LIBEXECS}/QtWebEngineProcess.exe
|
2018-08-20 14:37:14 +02:00
|
|
|
DESTINATION bin
|
|
|
|
)
|
|
|
|
install(DIRECTORY
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_DATA}/resources
|
2018-08-20 14:37:14 +02:00
|
|
|
DESTINATION bin/webengineresources
|
|
|
|
)
|
|
|
|
install(DIRECTORY
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_TRANSLATIONS}/qtwebengine_locales
|
2018-08-20 14:37:14 +02:00
|
|
|
DESTINATION bin/webengineresources/translations
|
|
|
|
)
|
|
|
|
endif (USE_WEBENGINE)
|
2018-09-21 13:45:12 +02:00
|
|
|
|
2018-07-10 14:57:05 +02:00
|
|
|
install(DIRECTORY
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_QML}
|
2018-07-10 14:57:05 +02:00
|
|
|
DESTINATION .
|
|
|
|
REGEX ".*d\\.dll" EXCLUDE
|
2018-08-20 14:37:14 +02:00
|
|
|
REGEX ".pdb" EXCLUDE
|
2018-07-10 14:57:05 +02:00
|
|
|
REGEX ".*QtGraphicalEffects.*" EXCLUDE
|
|
|
|
REGEX ".*QtMultimedia.*" EXCLUDE
|
|
|
|
REGEX ".*QtSensors.*" EXCLUDE
|
|
|
|
REGEX ".*QtTest.*" EXCLUDE
|
2018-08-20 14:37:14 +02:00
|
|
|
REGEX ".*QtWebkit.*" EXCLUDE
|
|
|
|
)
|
2018-08-08 14:16:17 +02:00
|
|
|
|
|
|
|
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
endif ( NOT MSVC )
|
2012-05-26 14:49:10 +02:00
|
|
|
endif (MINGW)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
install (FILES
|
2014-12-19 17:26:41 +01:00
|
|
|
../fonts/gootville/GootvilleText.otf
|
2014-07-23 17:51:00 +02:00
|
|
|
../fonts/mscore/MScoreText.ttf
|
2016-10-26 20:36:47 +02:00
|
|
|
../fonts/musejazz/MuseJazzText.otf
|
2014-01-22 16:19:54 +01:00
|
|
|
../fonts/FreeSerif.ttf
|
2014-03-04 10:08:00 +01:00
|
|
|
../fonts/FreeSerifBold.ttf
|
2015-04-15 14:10:07 +02:00
|
|
|
../fonts/FreeSerifItalic.ttf
|
|
|
|
../fonts/FreeSerifBoldItalic.ttf
|
2012-05-26 14:49:10 +02:00
|
|
|
../fonts/FreeSans.ttf
|
2012-08-16 12:12:55 +02:00
|
|
|
../fonts/mscoreTab.ttf
|
2012-05-26 14:49:10 +02:00
|
|
|
../fonts/mscore-BC.ttf
|
2014-07-23 15:32:34 +02:00
|
|
|
../fonts/bravura/BravuraText.otf
|
2012-05-26 14:49:10 +02:00
|
|
|
DESTINATION ${Mscore_SHARE_NAME}${Mscore_INSTALL_NAME}fonts
|
|
|
|
)
|
2013-07-20 11:15:56 +02:00
|
|
|
install(DIRECTORY
|
2018-11-26 13:24:31 +01:00
|
|
|
${QT_INSTALL_QML}
|
2013-07-20 11:15:56 +02:00
|
|
|
DESTINATION ${Mscore_SHARE_NAME}${Mscore_INSTALL_NAME}
|
|
|
|
REGEX ".*QtWebkit.*" EXCLUDE
|
|
|
|
REGEX ".*QtTest.*" EXCLUDE
|
|
|
|
REGEX ".*QtSensors.*" EXCLUDE
|
|
|
|
REGEX ".*QtGraphicalEffects.*" EXCLUDE
|
|
|
|
REGEX ".*QtMultimedia.*" EXCLUDE
|
|
|
|
REGEX ".*QtAudioEngine.*" EXCLUDE
|
|
|
|
REGEX ".*_debug\\.dylib" EXCLUDE)
|
2012-05-26 14:49:10 +02:00
|
|
|
endif (APPLE)
|
|
|
|
|
This commit contains all the changes to the CMake build system required to generate a valid Visual Studio 2017 solution and projects for MuseScore.
In detail, changes are as follows:
- Changed .gitignore to ignore VS-specific files and directories.
- VS uses a global settings file for the CMake build process: CMakeSettings.json. This is a text file, which is conceptually equivalent to the Makefile used to invoke CMake through Make. This file might need to be changed on an individual user basis, if dependencies are not installed in default paths.
- New cmake macros to copy files in build\CopyFilesMacros.cmake. The code is from https://cmake.org/pipermail/cmake/2009-March/027892.html
- Pre-compiled headers: Visual Studio requires to create pre-compiled headers per-project (a general per-solution PCH file, although possible, is extremely problematic and not recommended). Therefore, the new macro vstudio_pch in CreatePrecompiledHeader.cmake was created to add the pre-compiled header creation step to an existing target (similar to what is done for XCode). The existing macro precompiled_header was modified to set the values for a group of variables. As part of this, the empty file all.cpp was added to the root of the source tree, as VS requires a source file to create pre-compiled headers (the header file alone can not be compiled).
- all.h is not copied to binary dir for MSVC, as I could determine no need to do this. Because of this, and the differences in PCH handling, the pseudo-targets mops1 and mops2 are not created for MSVC.
- Revised all steps conditional on toolchain, and added MSVC paths as needed. In many instances, the MSVC path is the same as the MINGW path, but not always.
- The manual (genManual) target used the getopt() functionality defined in POSIX libraries, which is not available on Windows. An LGPL'd port of getopt() for Windows was added in manual\getopt. The original source is in GitHub: nanoporetech/getopt-win32, based on a CodeProject article: https://www.codeproject.com/KB/cpp/getopt4win.aspx?msg=3987371. The corresponding CMakeLists.txt file was modified to include this files when compiling with MSVC.
- Changes in CMakeLists.txt files to create valid MSVC targets. The changes, always conditional on the MSVC toolchain, consist of:
x Setting target properties for MSVC
x Using all.h in source dir
x Adding pre-compiled headers to target
x Removing dependency from mops1 and mops2
Notes:
- The INSTALL target has NOT BEEN UPDATED for MSVC.
2018-05-01 17:48:42 +02:00
|
|
|
# MSVC does not depend on mops1 & mops2 for PCH
|
|
|
|
if (NOT MSVC)
|
|
|
|
ADD_DEPENDENCIES(${ExecutableName} mops1)
|
|
|
|
ADD_DEPENDENCIES(${ExecutableName} mops2)
|
|
|
|
endif (NOT MSVC)
|
2018-11-27 12:58:35 +01:00
|
|
|
|
|
|
|
add_library(
|
|
|
|
inspectorplugin SHARED
|
|
|
|
inspector/inspectorplugin.cpp
|
|
|
|
inspector/inspectorplugin.h
|
|
|
|
# inspector/alignSelect.cpp
|
|
|
|
inspector/fontStyleSelect.cpp
|
|
|
|
# inspector/offsetSelect.cpp
|
|
|
|
# inspector/scaleSelect.cpp
|
|
|
|
# inspector/sizeSelect.cpp
|
|
|
|
inspector/resetButton.cpp
|
|
|
|
icons.cpp
|
|
|
|
miconengine.cpp
|
|
|
|
${qrc_files}
|
|
|
|
)
|
|
|
|
|
2018-11-30 00:30:42 +01:00
|
|
|
if (APPLE)
|
|
|
|
set_property(SOURCE inspector/inspectorplugin.cpp inspector/inspectorplugin.h PROPERTY SKIP_AUTOGEN ON)
|
|
|
|
endif (APPLE)
|
|
|
|
|
2018-11-27 12:58:35 +01:00
|
|
|
if (NOT MSVC)
|
|
|
|
set_target_properties(inspectorplugin
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS
|
|
|
|
"-fPIC -D_GNU_SOURCE -D_REENTRANT -DHAVE_CONFIG_H -DQT_PLUGIN -DQT_SVG_LIB -DQT_SHARED -DQT_NO_DEBUG -include ${PROJECT_SOURCE_DIR}/all.h"
|
|
|
|
)
|
|
|
|
else (NOT MSVC)
|
|
|
|
# x86 archictecture does not support position-independent code, the -fPIC option is not relevant for this processor.
|
|
|
|
set_target_properties (
|
|
|
|
inspectorplugin
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS "${PCH_INCLUDE} -D_GNU_SOURCE -D_REENTRANT -DHAVE_CONFIG_H -DQT_PLUGIN -DQT_SVG_LIB -DQT_SHARED -DQT_NO_DEBUG"
|
|
|
|
)
|
|
|
|
endif (NOT MSVC)
|
|
|
|
|
|
|
|
# Don't install awlplugin on default
|
|
|
|
#install( TARGETS inspectorplugin DESTINATION ${designerPlugins}/plugins/designer/ )
|
|
|
|
|
2018-11-27 13:50:09 +01:00
|
|
|
# add_executable(itest inspector/itest.cpp)
|
|
|
|
# target_link_libraries (itest inspectorplugin ${QT_LIBRARIES})
|
2018-11-27 13:53:51 +01:00
|
|
|
# set_target_properties(itest PROPERTIES EXCLUDE_FROM_ALL 1)
|
2018-11-27 12:58:35 +01:00
|
|
|
|
|
|
|
target_link_libraries (inspectorplugin ${QT_LIBRARIES})
|
|
|
|
set_target_properties(inspectorplugin PROPERTIES EXCLUDE_FROM_ALL 1)
|
2019-02-15 13:26:32 +01:00
|
|
|
|
|
|
|
if (MSCORE_OUTPUT_NAME)
|
|
|
|
set (MSCORE_EXECUTABLE_NAME ${MSCORE_OUTPUT_NAME})
|
|
|
|
else (MSCORE_OUTPUT_NAME)
|
|
|
|
set (MSCORE_EXECUTABLE_NAME ${ExecutableName})
|
|
|
|
endif (MSCORE_OUTPUT_NAME)
|
|
|
|
# Export the executable name to the global context
|
|
|
|
set (MSCORE_EXECUTABLE_NAME "${MSCORE_EXECUTABLE_NAME}" PARENT_SCOPE)
|