Skip to content

Commit

Permalink
moved learn to framework
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkorsukov committed Apr 3, 2024
1 parent 3073ae7 commit b21e4df
Show file tree
Hide file tree
Showing 29 changed files with 14 additions and 10 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ option(MUE_BUILD_VIDEOEXPORT_MODULE "Build videoexport module" OFF)
option(MUE_BUILD_IMAGESEXPORT_MODULE "Build imagesexport module" ON)
option(MUE_BUILD_INSPECTOR_MODULE "Build inspector module" ON)
option(MUE_BUILD_INSTRUMENTSSCENE_MODULE "Build instruments scene module" ON)
option(MUE_BUILD_LEARN_MODULE "Build learn module" ON)
option(MUE_BUILD_NOTATION_MODULE "Build notation module" ON)
option(MUE_BUILD_NOTATION_TESTS "Build notation tests" ON)
option(MUE_BUILD_PALETTE_MODULE "Build palette module" ON)
Expand Down
5 changes: 2 additions & 3 deletions SetupConfigure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ if(BUILD_CONFIGURE MATCHES "VTEST")
set(MUE_BUILD_INSPECTOR_MODULE OFF)
set(MUE_BUILD_INSTRUMENTSSCENE_MODULE OFF)
set(MUSE_MODULE_LANGUAGES OFF)
set(MUE_BUILD_LEARN_MODULE OFF)
set(MUSE_MODULE_LEARN OFF)
set(MUSE_MODULE_MULTIINSTANCES OFF)
set(MUE_BUILD_PALETTE_MODULE OFF)
set(MUE_BUILD_PLAYBACK_MODULE OFF)
Expand Down Expand Up @@ -176,7 +176,7 @@ if(BUILD_CONFIGURE MATCHES "UTEST")
set(MUE_BUILD_INSPECTOR_MODULE OFF)
set(MUE_BUILD_INSTRUMENTSSCENE_MODULE OFF)
set(MUSE_MODULE_LANGUAGES OFF)
set(MUE_BUILD_LEARN_MODULE OFF)
set(MUSE_MODULE_LEARN OFF)
set(MUSE_MODULE_MULTIINSTANCES OFF)
set(MUE_BUILD_PALETTE_MODULE OFF)
set(MUE_BUILD_PLAYBACK_MODULE OFF)
Expand Down Expand Up @@ -270,7 +270,6 @@ def_opt(MUE_BUILD_CONVERTER_MODULE ${MUE_BUILD_CONVERTER_MODULE})
def_opt(MUE_BUILD_DIAGNOSTICS_MODULE ${MUE_BUILD_DIAGNOSTICS_MODULE})
def_opt(MUE_BUILD_INSPECTOR_MODULE ${MUE_BUILD_INSPECTOR_MODULE})
def_opt(MUE_BUILD_INSTRUMENTSSCENE_MODULE ${MUE_BUILD_INSTRUMENTSSCENE_MODULE})
def_opt(MUE_BUILD_LEARN_MODULE ${MUE_BUILD_LEARN_MODULE})
def_opt(MUE_BUILD_NOTATION_MODULE ${MUE_BUILD_NOTATION_MODULE})
def_opt(MUE_BUILD_PALETTE_MODULE ${MUE_BUILD_PALETTE_MODULE})
def_opt(MUE_BUILD_PLAYBACK_MODULE ${MUE_BUILD_PLAYBACK_MODULE})
Expand Down
1 change: 1 addition & 0 deletions build/cmake/muse_framework/DeclareOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ declare_muse_module_opt(DRAW ON)
declare_muse_module_opt(EXTENSIONS ON)
declare_muse_module_opt(GLOBAL ON)
declare_muse_module_opt(LANGUAGES ON)
declare_muse_module_opt(LEARN ON)
declare_muse_module_opt(MIDI ON)
declare_muse_module_opt(MPE ON)
declare_muse_module_opt(MULTIINSTANCES ON)
Expand Down
1 change: 1 addition & 0 deletions build/cmake/muse_framework/Modules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set(MUSE_FRAMEWORK_MODULES
EXTENSIONS
GLOBAL
LANGUAGES
LEARN
MIDI
MPE
MULTIINSTANCES
Expand Down
4 changes: 4 additions & 0 deletions build/cmake/muse_framework/muse_framework_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
#cmakedefine MUSE_MODULE_LANGUAGES_TESTS 1
#cmakedefine MUSE_MODULE_LANGUAGES_API 1

#cmakedefine MUSE_MODULE_LEARN 1
#cmakedefine MUSE_MODULE_LEARN_TESTS 1
#cmakedefine MUSE_MODULE_LEARN_API 1

#cmakedefine MUSE_MODULE_MIDI 1
#cmakedefine MUSE_MODULE_MIDI_TESTS 1
#cmakedefine MUSE_MODULE_MIDI_API 1
Expand Down
4 changes: 0 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ if (MUE_BUILD_INSTRUMENTSSCENE_MODULE)
add_subdirectory(instrumentsscene)
endif()

if (MUE_BUILD_LEARN_MODULE)
add_subdirectory(learn)
endif()

if (MUE_BUILD_NOTATION_MODULE)
add_subdirectory(notation)
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
#include "stubs/languages/languagesstubmodule.h"
#endif

#ifdef MUE_BUILD_LEARN_MODULE
#ifdef MUSE_MODULE_LEARN
#include "learn/learnmodule.h"
#else
#include "stubs/learn/learnmodule.h"
Expand Down
4 changes: 4 additions & 0 deletions src/framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ if (MUSE_MODULE_LANGUAGES)
add_subdirectory(languages)
endif()

if (MUSE_MODULE_LEARN)
add_subdirectory(learn)
endif()

if (MUSE_MODULE_EXTENSIONS)
add_subdirectory(extensions)
endif()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/stubs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if (NOT MUSE_MODULE_LANGUAGES)
add_subdirectory(languages)
endif()

if (NOT MUE_BUILD_LEARN_MODULE)
if (NOT MUSE_MODULE_LEARN)
add_subdirectory(learn)
endif()

Expand Down

0 comments on commit b21e4df

Please sign in to comment.