Commit graph

65 commits

Author SHA1 Message Date
Casper Jeukendrup
78ac1cb933
Add /share/locale/*.qm back to .gitignore for convenience 2023-10-16 11:55:09 +02:00
Casper Jeukendrup
b17a960449
CMake: fix running lrelease during build
Generate qm files in the build folder, so that they don't need to be in the .gitignore file
2023-10-16 11:53:39 +02:00
+merlan #flirora
1d8fbff540 Add support for additional tools
This adds the following:

* A `compile_commands` target for the ninja_build.sh script.
  This generates a `compile_commands.json` file, which is used
  by tools such as clangd, in a new target directory called
  `build.tooldata`. Unity builds must be disabled for the database
  to be complete; see [this Discord comment by Casper Jeukendrup](https://discord.com/channels/818804595450445834/939880479887327302/1001483416753143818)
  for more info.
* Additionally, a configuration file for clangd has been created
  to tell it to find the file in the `build.tooldata` directory.
* Add a one-line change to the workspace settings for VSCode,
  telling it where to find the Uncrustify config.
2023-07-24 11:30:22 +03:00
Mike Kirin
d10912d14c Fix #15576: Properties panel doesn't update when new elements are added
to a range selection
2023-05-10 14:36:25 +02:00
Igor Korsukov
74bff907ed added required modules for vtest (old) configuration 2023-03-14 06:59:23 -05:00
Igor Korsukov
ca41a6ce48 added vtest ref data and rewrite vtest logic 2023-02-09 18:11:01 +02:00
pereverzev_v
2f1f25c562 Updated git ignore file 2022-10-06 10:01:58 +01:00
Peter Jonas
b612e18d96 Generate placeholder translations
Add placeholder_translations.py script to generate fake translations.
Run the script on GitHub Actions to add the translations to nightly
and development builds.

Fake translations are displayed in the UI like this:

    Source text:    Choose instruments
    Translation: ᵗʳ«Choose instruments»

This enables developers to see which strings have been correctly marked
for translation without having to wait for a proper translation to be
made available.

Special markup is used to identify plural translations:

    Source text:                       %n measure(s)
    Translation (1st plural form): ᵗʳ¹«%n measure(s)»
    Translation (2nd plural form): ᵗʳ²«%n measure(s)»
    Etc.

See the second page of the New Score dialog for an example of plurals.

Replacement markers %1, %2, etc. for QString arg() are also identified:

    Source text:     Add %1 to chord
    Translation: ᵗʳ«Add ⌜%1⌝ to chord»

Arguments must be translated separately to the main string:

    Non-translated argument:    ᵗʳ«Add ⌜D⌝ to chord»
    Translated argument:     ᵗʳ«Add ⌜ᵗʳ«D»⌝ to chord»

The Python script could be modified to display more information in the
translated strings such as context, disambiguation, comments or file
name and line number of the string in the code or in the .ts file.
2022-07-27 09:48:31 +00:00
Rahul Garg
66612717d2 Add missing shortcuts to Preferences
Fix #11060 by populating the Preferences > Shortcuts list from UiAction
definitions in the C++ code instead of from the shortcuts*.xml files.
Also makes shortcut context a property of the action rather than the
shortcut. This has the advantage that all actions are guaranteed to be
present in Preferences and the shortcut context is guaranteed to be the
same regardless of platform and keyboard layout.

The action name displayed in Preferences > Shortcuts is now based on
the action's description rather than its title. This is because titles
are used in menus so they must be as short as possible, but more
information is needed in Preferences. For example:

Title:       "Composer"           (used in menu Add > Text > Composer)
Description: "Add text: composer" (used in Preferences > Shortcuts)

Actions with no description will not be displayed in Preferences.

This commit changes algorithmic code and updates a few descriptions and
shortcut contexts that are not automatable. The remaining contexts and
descriptions will be updated by a script in the next commit.
2022-07-22 17:48:34 +05:30
vpereverzev
f006936b5e Excluded unnecessary files via gitignore 2022-04-21 20:11:43 +02:00
Joachim Schmitz
4bd3a27226 Get git to ignore thirdparty/lame/config.h 2022-04-15 14:15:58 +03:00
vpereverzev
0ed661863a Fixed a check for the actual sound-font 2022-03-09 18:15:12 +02:00
vpereverzev
9d1b974cae Actualized soundfont 2022-03-03 21:41:18 +02:00
Peter Jonas
6874de7046 Create script to update instruments.xml from online spreadsheet
Spreadsheet is available at https://docs.google.com/spreadsheets/d/1SwqZb8lq5rfv5regPSA10drWjUAoi65EuMoYtG-4k5s
2021-06-08 11:21:18 +00:00
Peter Jonas
18f8578810 ONE BUILD SCRIPT TO RULE THEM ALL!
Adds a cross-platform script that automates the process of creating a
build directory and compiling MuseScore. Run the script like this:

    $ cmake -P build.cmake [args...]

This works in all shells on all platforms. Developers with a Unix-like
environment (including Git Bash on Windows) can also use:

    $ ./build.cmake [args...]

Build step arguments:

    clean       Delete the build directory.
    configure   Create a build directory and run CMake inside it.
    build       Compile code using the native build tool.
    install     Copy compiled files to final destinations.
    run         Run the installed program.

Each step implies all previous steps except 'clean' and 'run', which
are only performed when explictly requested. If no steps are given then
the configure, build, and install steps are performed by default.

All other arguments are passed to CMake during configuration.

Example command:

    $ cmake -P build.cmake -GNinja -DCMAKE_BUILD_TYPE=Debug
    $ cmake -P build.cmake -GNinja -DCMAKE_BUILD_TYPE=Debug run -F

This creates and installs a Debug build using the Ninja generator, and
then runs the compiled program with the -F option to perform a factory
reset, thereby ensuring it is in the initial state.

Overrides:

If you frequently need to build with non-default settings then you can
create a file build_overrides.cmake with all your personal settings to
avoid having to pass them in on the command line each time.

    # build_overrides.cmake example file

    set(ENV{QTDIR} "$ENV{HOME}/Qt/5.15.2/gcc_64")
    list(APPEND CONFIGURE_ARGS -GNinja -DCMAKE_BUILD_TYPE=Debug)

This file is ignored by Git to prevent it being shared with other
developers, but you could always copy another file into its place
(e.g. during a CI build on GitHub Actions).
2021-03-05 12:30:31 +02:00
Igor Korsukov
075d78a254 added ninja build for Linux on CI 2021-01-11 16:22:50 +02:00
Igor Korsukov
fa1ae3c2db rework vtest 2020-12-29 17:10:40 +03:00
Pavel Smokotnin
6fdcf30b23 experimental WASM build 2020-12-24 22:26:00 +02:00
Igor Korsukov
82b269aba5 added gen dump symbols for windows 2020-11-25 17:14:51 +02:00
Igor Korsukov
2fc4932e3c added cpad sandbox project 2020-11-21 13:50:58 +02:00
Igor Korsukov
bfd8228344 sync CI build scripts with 3.x 2020-11-17 10:10:22 +00:00
Igor Korsukov
cffade8f21 sync CI scripts from 3.x to master 2020-11-09 09:19:54 +02:00
Igor Korsukov
cbd51267d5 removed revision h file 2020-10-30 14:01:14 +02:00
Igor Korsukov
85e4b87a78 porting win portable build from 3x to master 2020-10-15 14:13:17 +02:00
Igor Korsukov
5c5560375d added build.artifacts to gitignore 2020-10-02 11:25:50 +02:00
AntonioBL
b63eb79610 Run vtests on PRs and commits to master branch and compare to parent commit vtest results; output a comment and upload a report when differences are found 2020-02-27 09:34:13 +01:00
Peter Jonas
74deb437fc
Add .jsc (compiled JavaScript) to .gitignore 2019-11-23 23:46:00 +00:00
James Thistlewood
a873ff5c00 add musescore-specific vscode editor settings for linux 2019-08-18 20:41:57 +01:00
James Thistlewood
40cef95299 Refactor fret diagrams
fix #284966
fix #283759
fix #283678
fix #283676
fix #283674
fix #283452
fix #275658
fix #265324
fix #285616
fix #285613
fix #280575
fix #283762
fix #283679
2019-05-02 19:05:01 +01:00
anatoly-os
90ac531179 update soundfont to v0.1.5 on ftp
Miscellaneous file names were changed, so adapted gitignore and install script
2019-04-11 12:19:59 +02:00
Joachim Schmitz
b79faef060 Allow build with Qt 5.12 and its 64bit MinGW 2018-10-31 12:59:23 +01:00
anatoly-os
f90018b857 Support 64-bit compilation
Update cmake files to support 64-bit compilation.
Add variables to easily switch between 32-bit and 64-bit compilation
Update msvc_build.bat to support both 32-bit and 64-bit compilation
Optimize msvc_build.bat to avoi excessive output
Update AppVeyor build scripts so that default compilation is 64-bit now
Make default configuration built from opening MuseScore directory 64-bit
RelWithDebInfo. All other configurations are up to msvc_build.bat
script.
Qt libs which are used for building are placed in msvc2017_64 folder.

These changes require new structure of the dependencies folder.
2018-08-23 10:48:56 +02:00
Joachim Schmitz
bfded68c29 tell git to ignore msvc.build.relwithdebinfo 2018-08-08 15:04:28 +02:00
alexandr
df114f189c Compile under MSVC: this commit caontais all changes to run MSVC build
1) fix some bugs which appear in runtime:  replace QString::tostdstring() to Foo.toUtf8().constData().

2) Enable start center online community. To use it you need download webengine in your QT lib. see instruction https://musescore.org/en/handbook/developers-handbook/compilation/compile-instructions-windows-visual-studio-2017-wip

3) update install steps. Add additional dlls for webEngine. Add copying dlls and musescore.exe to /msvc.install/bin folder. Run project will work with the "$(ProjectDir)\..\..\msvc.install\bin\MuseScore.exe" specified in Debugging field in mscore project

4) Moving AppVeyor from MinGW to MSVC. Exclude ALL MSVC project from INSTALL project. Exclude ALL from PACKAGE. Remove migw-cmake in script build, add .bat instead. Remove xcopy from 7z archive step

5) Fix warning : Warning C4703 potentially uninitialized local pointer variable '' used; Warning C4456 declaration of '' hides previous local declaration; Warning C4458 declaration of '' hides class member

6) Change path to 11 version wix toolset which created .msi installer package
2018-08-04 12:17:31 +02:00
Andres Fernandez de Prado
188386ba2e 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-08-03 09:15:42 +02:00
Anatoly-os
71c31da370 Update name for the new SoundFont
Adapt cmake, gitignore and code to work with the new SoundFont name: MS_General -> MuseScore_General.
2018-03-24 08:13:32 +01:00
lasconic
1d7280c694 Replace FluidR3Mono_GM by MS_General and don't store SoundFont on git anymore 2018-03-14 15:02:31 +01:00
ws
647aa6a117 new attempt in automatic slur layout 2018-03-07 10:47:15 +01:00
Joachim Schmitz
bd0a4fd27b Ignore project files created by Qt-Creator
see
https://musescore.org/de/node/98621/revisions/387414/view#Qt-Creator-IDE---method-2
2018-02-01 12:00:12 +01:00
lasconic
c02a142f6e fix mtest 2017-11-27 18:01:34 +01:00
ws
6af7e51d84 update mtest 2016-04-13 12:08:41 +02:00
ws
1960bbbff7 use AUTOMOC in cmake files 2015-01-27 15:23:20 +01:00
Joachim Schmitz
79da6a90c5 ignore some backup- and temp. files
created by vim and QtCreator
2014-05-16 13:58:12 +02:00
Joachim Schmitz
ad9bb6c111 update .gitignore
to match
http://musescore.org/en/developers-handbook/compilation/compile-instructions-windows-mingw-git
when using QtCreator
2014-01-14 17:44:53 +01:00
ws
fbb23617a2 add fmrest-1 to vtest 2013-09-17 14:50:35 +02:00
Andrey M. Tokarev
c9b9a15254 Permutation method for tuplet search 2013-07-13 14:48:44 +04:00
lasconic
027a964f94 ignore .DS_Store files 2013-04-08 15:25:44 +02:00
lasconic
61f0abe22c clean up icons 2013-04-03 12:19:06 +02:00
Tony Mountifield
84b134087e Improved handling of mscore/revision.h
Add mscore/revision.h to .gitignore, since it is a generated file.
Remove mscore/revision.h from the git index.
In Makefile, add "revision" as a dependency of "debug", as it
already is of "release".
2013-01-19 22:15:39 +00:00
Dénes Harmath
82efc112d3 Ignored Eclipse metadata 2012-10-17 00:52:56 +02:00