Further MIDI build option fixes

- Properly disable lib-note-track when MIDI is disabled
- Fix includes of NoteTrack.h when MIDI is disabled.

Signed-off-by: Avery King <avery98@pm.me>
This commit is contained in:
Avery King
2025-01-03 18:22:36 -08:00
parent 02b8181b0e
commit ea35af8ea1
4 changed files with 11 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ set( LIBRARIES
lib-dynamic-range-processor-interface
lib-wave-track-fft-interface
lib-label-track-interface
lib-note-track-interface
$<$<BOOL:${USE_MIDI}>:lib-note-track-interface>
$<$<BOOL:${USE_SBSMS}>:sbsms::sbsms>
$<$<BOOL:${USE_SOUNDTOUCH}>:SoundTouch::SoundTouch>
)

View File

@@ -24,9 +24,12 @@ effect that uses SoundTouch to do its processing (ChangeTempo
#include "SyncLock.h"
#include "WaveClip.h"
#include "WaveTrack.h"
#include "NoteTrack.h"
#include "TimeWarper.h"
#ifdef USE_MIDI
#include "NoteTrack.h"
#endif
// Soundtouch defines these as well, which are also in generated configmac.h
// and configunix.h, so get rid of them before including,
// to avoid compiler warnings, and be sure to do this

View File

@@ -11,11 +11,12 @@ set( SOURCES
set( LIBRARIES
lib-effects-interface
lib-label-track-interface
lib-note-track-interface
$<$<BOOL:${USE_MIDI}>:lib-note-track-interface>
lib-time-track-interface
lib-wave-track-settings
nyquist
)
tenacity_library( lib-nyquist-effects "${SOURCES}" "${LIBRARIES}"
"" ""
)

View File

@@ -14,7 +14,6 @@
#include "FileNames.h"
#include "LabelTrack.h"
#include "Languages.h"
#include "NoteTrack.h"
#include "PlatformCompatibility.h"
#include "PluginManager.h"
#include "Prefs.h"
@@ -32,6 +31,10 @@
#include "WaveTrack.h"
#include "wxFileNameWrapper.h"
#ifdef USE_MIDI
#include "NoteTrack.h"
#endif
#include "nyquist/xlisp/xlisp.h"
#include "nyx.h"