Build fixes

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-12-30 14:49:50 +00:00
parent 5b7e5336c6
commit fec9aef939
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
11 changed files with 36 additions and 57 deletions

View file

@ -20,22 +20,16 @@
#include "plugin.hpp"
#include "DistrhoUtils.hpp"
#ifndef HEADLESS
# include "../dgl/Base.hpp"
#else
# include "extra/LeakDetector.hpp"
#endif
#include "../dgl/Base.hpp"
// -----------------------------------------------------------------------------------------------------------
// from PluginContext.hpp
#ifndef HEADLESS
START_NAMESPACE_DGL
class TopLevelWidget;
template <class BaseWidget> class NanoBaseWidget;
typedef NanoBaseWidget<TopLevelWidget> NanoTopLevelWidget;
END_NAMESPACE_DGL
#endif
START_NAMESPACE_DISTRHO
@ -76,10 +70,8 @@ struct CardinalPluginContext : rack::Context {
const MidiEvent* midiEvents;
uint32_t midiEventCount;
Plugin* const plugin;
#ifndef HEADLESS
DGL_NAMESPACE::NanoTopLevelWidget* tlw;
UI* ui;
#endif
CardinalPluginContext(Plugin* const p);
void writeMidiMessage(const rack::midi::Message& message, uint8_t channel);
#ifndef HEADLESS

View file

@ -301,7 +301,7 @@ endif
ifeq ($(shell $(PKG_CONFIG) --exists fftw3f && echo true),true)
PLUGIN_FILES += Cardinal/src/AudioToCVPitch.cpp
MINIPLUGIN_FILES += Cardinal/src/AudioToCVPitch.cpp
# MINIPLUGIN_FILES += Cardinal/src/AudioToCVPitch.cpp
BASE_FLAGS += -DHAVE_FFTW3F
endif

View file

@ -171,15 +171,18 @@ static void initStatic__Cardinal()
p->addModel(modelHostParametersMap);
p->addModel(modelHostTime);
p->addModel(modelTextEditor);
/* TODO
#ifdef HAVE_FFTW3F
p->addModel(modelAudioToCVPitch);
#else
*/
spl.removeModule("AudioToCVPitch");
/*
#endif
*/
spl.removeModule("AudioFile");
spl.removeModule("Blank");
spl.removeModule("Carla");
spl.removeModule("ExpanderInputMIDI");
spl.removeModule("ExpanderOutputMIDI");
spl.removeModule("HostAudio8");
spl.removeModule("Ildaeil");