Skip to content

Commit 350cde0

Browse files
committed
vtest config for small screens
1 parent 95bb830 commit 350cde0

File tree

12 files changed

+1993
-1
lines changed

12 files changed

+1993
-1
lines changed

.github/workflows/check_visual_tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ jobs:
181181
run: |
182182
echo "VTEST_DIFF_FOUND=false" >> $GITHUB_ENV
183183
./vtest/vtest-compare-pngs.sh --ci 1
184+
- name: Compare PNGs small
185+
run: |
186+
./vtest/vtest-compare-pngs.sh --ci 1 -c ./current_pngs_small -r ./reference_pngs_small
187+
# - name: Compare PNGs gp
188+
# run: |
189+
# ./vtest/vtest-compare-pngs.sh --ci 1 -c ./current_pngs_gp_small -r ./reference_pngs_gp_small
184190
- name: Upload comparison
185191
if: env.VTEST_DIFF_FOUND == 'true'
186192
uses: actions/upload-artifact@v4

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ option(MUE_BUILD_ENGRAVING_TESTS "Build engraving tests" ON)
6969
option(MUE_BUILD_ENGRAVING_DEVTOOLS "Build engraving devtools" ON)
7070
option(MUE_BUILD_ENGRAVING_PLAYBACK "Build engraving playback" ON)
7171
option(MUE_BUILD_IMPORTEXPORT_MODULE "Build importexport module" ON)
72+
option(MUE_BUILD_GP_MODULE "Build guitar pro module without import export module" OFF)
7273
option(MUE_BUILD_IMPORTEXPORT_TESTS "Build importexport tests" ON)
7374
option(MUE_BUILD_VIDEOEXPORT_MODULE "Build videoexport module" OFF)
7475
option(MUE_BUILD_IMAGESEXPORT_MODULE "Build imagesexport module" ON)

SetupConfigure.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ if(BUILD_CONFIGURATION MATCHES "VTEST")
200200

201201
set(MUE_BUILD_IMPORTEXPORT_MODULE OFF)
202202
set(MUE_BUILD_VIDEOEXPORT_MODULE OFF)
203+
set(MUE_BUILD_GP_MODULE ON)
203204

204205
set(MUE_INSTALL_SOUNDFONT OFF)
205206

@@ -328,6 +329,7 @@ def_opt(MUE_BUILD_PALETTE_MODULE ${MUE_BUILD_PALETTE_MODULE})
328329
def_opt(MUE_BUILD_PLAYBACK_MODULE ${MUE_BUILD_PLAYBACK_MODULE})
329330
def_opt(MUE_BUILD_PROJECT_MODULE ${MUE_BUILD_PROJECT_MODULE})
330331
def_opt(MUE_BUILD_IMPORTEXPORT_MODULE ${MUE_BUILD_IMPORTEXPORT_MODULE})
332+
def_opt(MUE_BUILD_GP_MODULE ${MUE_BUILD_GP_MODULE})
331333
def_opt(MUE_BUILD_VIDEOEXPORT_MODULE ${MUE_BUILD_VIDEOEXPORT_MODULE})
332334
def_opt(MUE_BUILD_IMAGESEXPORT_MODULE ${MUE_BUILD_IMAGESEXPORT_MODULE})
333335

buildscripts/ci/vtests/generate_pngs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ echo =======================
4242

4343
echo Generate reference pngs:
4444
./vtest/vtest-generate-pngs.sh -o ./reference_pngs -m $REF_BIN
45+
./vtest/vtest-generate-pngs.sh -o ./reference_pngs_small -m $REF_BIN -s ./vtest/scores_small -d 460 -S ./vtest/small.mss
46+
#./vtest/vtest-generate-pngs.sh -o ./reference_pngs_gp_small -m $REF_BIN -s ./vtest/gp_small -d 460 -S ./vtest/small.mss --gp-linked
4547

4648
echo Generate current pngs:
4749
./vtest/vtest-generate-pngs.sh -o ./current_pngs -m $CUR_BIN
50+
./vtest/vtest-generate-pngs.sh -o ./current_pngs_small -m $REF_BIN -s ./vtest/scores_small -d 460 -S ./vtest/small.mss
51+
#./vtest/vtest-generate-pngs.sh -o ./current_pngs_gp_small -m $REF_BIN -s ./vtest/gp_small -d 460 -S ./vtest/small.mss --gp-linked

src/app/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ if (MUE_BUILD_IMPORTEXPORT_MODULE)
171171
list(APPEND LINK_LIB iex_videoexport)
172172
endif()
173173
else()
174+
if (MUE_BUILD_GP_MODULE)
175+
list(APPEND LINK_LIB iex_guitarpro)
176+
endif()
174177
if (MUE_BUILD_IMAGESEXPORT_MODULE)
175178
list(APPEND LINK_LIB iex_imagesexport)
176179
endif()

src/app/appfactory.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@
152152
#include "importexport/videoexport/videoexportmodule.h"
153153
#endif
154154
#else
155+
#ifdef MUE_BUILD_GP_MODULE
156+
#include "importexport/guitarpro/guitarpromodule.h"
157+
#endif
155158
#ifdef MUE_BUILD_IMAGESEXPORT_MODULE
156159
#include "importexport/imagesexport/imagesexportmodule.h"
157160
#endif
@@ -300,6 +303,9 @@ std::shared_ptr<muse::IApplication> AppFactory::newGuiApp(const CmdOptions& opti
300303
app->addModule(new mu::iex::videoexport::VideoExportModule());
301304
#endif
302305
#else
306+
#ifdef MUE_BUILD_GP_MODULE
307+
app->addModule(new mu::iex::guitarpro::GuitarProModule());
308+
#endif
303309
#ifdef MUE_BUILD_IMAGESEXPORT_MODULE
304310
app->addModule(new mu::iex::imagesexport::ImagesExportModule());
305311
#endif
@@ -417,6 +423,9 @@ std::shared_ptr<muse::IApplication> AppFactory::newConsoleApp(const CmdOptions&
417423
app->addModule(new mu::iex::videoexport::VideoExportModule());
418424
#endif
419425
#else
426+
#ifdef MUE_BUILD_GP_MODULE
427+
app->addModule(new mu::iex::guitarpro::GuitarProModule());
428+
#endif
420429
#ifdef MUE_BUILD_IMAGESEXPORT_MODULE
421430
app->addModule(new mu::iex::imagesexport::ImagesExportModule());
422431
#endif

src/app/internal/consoleapp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ void ConsoleApp::applyCommandLineOptions(const CmdOptions& options, IApplication
252252
musicXmlConfiguration()->setNeedUseDefaultFontOverride(options.importMusicXml.useDefaultFont);
253253
musicXmlConfiguration()->setInferTextTypeOverride(options.importMusicXml.inferTextType);
254254
#endif
255+
#ifdef MUE_BUILD_GP_MODULE
256+
guitarProConfiguration()->setLinkedTabStaffCreated(options.guitarPro.linkedTabStaffCreated);
257+
guitarProConfiguration()->setExperimental(options.guitarPro.experimental);
258+
#endif
255259

256260
if (options.app.revertToFactorySettings) {
257261
appshellConfiguration()->revertToFactorySettings(options.app.revertToFactorySettings.value());

src/importexport/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ if (MUE_BUILD_IMPORTEXPORT_MODULE)
3636
add_subdirectory(videoexport)
3737
endif()
3838
else()
39+
if (MUE_BUILD_GP_MODULE)
40+
add_subdirectory(guitarpro)
41+
endif()
3942
if (MUE_BUILD_IMAGESEXPORT_MODULE)
4043
add_subdirectory(imagesexport)
4144
endif()

vtest/gp_small/test.gp

8.59 KB
Binary file not shown.

0 commit comments

Comments
 (0)