@@ -142,11 +142,12 @@ | |||||
// ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
// Enable full state if plugin exports presets | // Enable full state if plugin exports presets | ||||
#if DISTRHO_PLUGIN_WANT_PROGRAMS && DISTRHO_PLUGIN_WANT_STATE && ! DISTRHO_PLUGIN_WANT_FULL_STATE | |||||
# warning Plugins with programs and state need to implement full state API | |||||
# undef DISTRHO_PLUGIN_WANT_FULL_STATE | |||||
# define DISTRHO_PLUGIN_WANT_FULL_STATE 1 | |||||
#endif | |||||
// FIXME | |||||
// #if DISTRHO_PLUGIN_WANT_PROGRAMS && DISTRHO_PLUGIN_WANT_STATE && ! DISTRHO_PLUGIN_WANT_FULL_STATE | |||||
// # warning Plugins with programs and state need to implement full state API | |||||
// # undef DISTRHO_PLUGIN_WANT_FULL_STATE | |||||
// # define DISTRHO_PLUGIN_WANT_FULL_STATE 1 | |||||
// #endif | |||||
// ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
// Disable UI if DGL or External UI is not available | // Disable UI if DGL or External UI is not available | ||||
@@ -29,28 +29,23 @@ include ../../Makefile.plugins.mk | |||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
# Enable all possible plugin types | # Enable all possible plugin types | ||||
ifeq ($(HAVE_JACK),true) | |||||
ifeq ($(HAVE_CAIRO),true) | ifeq ($(HAVE_CAIRO),true) | ||||
ifeq ($(HAVE_JACK),true) | |||||
TARGETS += jack | TARGETS += jack | ||||
endif | |||||
endif | |||||
endif # HAVE_JACK | |||||
ifneq ($(MACOS_OR_WINDOWS),true) | ifneq ($(MACOS_OR_WINDOWS),true) | ||||
ifeq ($(HAVE_CAIRO),true) | |||||
ifeq ($(HAVE_LIBLO),true) | ifeq ($(HAVE_LIBLO),true) | ||||
TARGETS += dssi | TARGETS += dssi | ||||
endif | |||||
endif | |||||
endif | |||||
endif # HAVE_LIBLO | |||||
endif # MACOS_OR_WINDOWS | |||||
ifeq ($(HAVE_CAIRO),true) | |||||
TARGETS += lv2_sep | TARGETS += lv2_sep | ||||
else | |||||
TARGETS += lv2_dsp | |||||
endif | |||||
TARGETS += vst | TARGETS += vst | ||||
endif # HAVE_CAIRO | |||||
all: $(TARGETS) | all: $(TARGETS) | ||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- |
@@ -32,20 +32,23 @@ LINK_FLAGS += $(shell $(PKG_CONFIG) glew --libs) | |||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
# Enable all selected plugin types | # Enable all selected plugin types | ||||
ifeq ($(HAVE_JACK),true) | |||||
ifeq ($(HAVE_OPENGL),true) | ifeq ($(HAVE_OPENGL),true) | ||||
ifeq ($(HAVE_JACK),true) | |||||
TARGETS += jack | TARGETS += jack | ||||
endif | |||||
endif | |||||
endif # HAVE_JACK | |||||
ifeq ($(HAVE_OPENGL),true) | |||||
TARGETS += lv2_sep | |||||
else | |||||
TARGETS += lv2_dsp | |||||
endif | |||||
ifneq ($(MACOS_OR_WINDOWS),true) | |||||
ifeq ($(HAVE_LIBLO),true) | |||||
TARGETS += dssi | |||||
endif # HAVE_LIBLO | |||||
endif # MACOS_OR_WINDOWS | |||||
TARGETS += lv2_sep | |||||
TARGETS += vst | TARGETS += vst | ||||
endif # HAVE_OPENGL | |||||
all: $(TARGETS) | all: $(TARGETS) | ||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- |
@@ -29,8 +29,8 @@ include ../../Makefile.plugins.mk | |||||
ifeq ($(HAVE_JACK),true) | ifeq ($(HAVE_JACK),true) | ||||
ifeq ($(HAVE_OPENGL),true) | ifeq ($(HAVE_OPENGL),true) | ||||
TARGETS += jack | TARGETS += jack | ||||
endif | |||||
endif | |||||
endif # HAVE_OPENGL | |||||
endif # HAVE_JACK | |||||
ifeq ($(HAVE_OPENGL),true) | ifeq ($(HAVE_OPENGL),true) | ||||
TARGETS += lv2_sep | TARGETS += lv2_sep | ||||
@@ -23,11 +23,7 @@ include ../../Makefile.plugins.mk | |||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
# Enable all possible plugin types | # Enable all possible plugin types | ||||
ifneq ($(MACOS_OR_WINDOWS),true) | |||||
TARGETS += ladspa | TARGETS += ladspa | ||||
TARGETS += dssi | |||||
endif | |||||
TARGETS += lv2_dsp | TARGETS += lv2_dsp | ||||
TARGETS += vst | TARGETS += vst | ||||
@@ -26,28 +26,23 @@ include ../../Makefile.plugins.mk | |||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
# Enable all possible plugin types | # Enable all possible plugin types | ||||
ifeq ($(HAVE_JACK),true) | |||||
ifeq ($(HAVE_OPENGL),true) | ifeq ($(HAVE_OPENGL),true) | ||||
ifeq ($(HAVE_JACK),true) | |||||
TARGETS += jack | TARGETS += jack | ||||
endif | |||||
endif | |||||
endif # HAVE_JACK | |||||
ifneq ($(MACOS_OR_WINDOWS),true) | ifneq ($(MACOS_OR_WINDOWS),true) | ||||
ifeq ($(HAVE_LIBLO),true) | ifeq ($(HAVE_LIBLO),true) | ||||
ifeq ($(HAVE_OPENGL),true) | |||||
TARGETS += dssi | TARGETS += dssi | ||||
endif | |||||
endif | |||||
endif | |||||
endif # HAVE_LIBLO | |||||
endif # MACOS_OR_WINDOWS | |||||
ifeq ($(HAVE_OPENGL),true) | |||||
TARGETS += lv2_sep | TARGETS += lv2_sep | ||||
else | |||||
TARGETS += lv2_dsp | |||||
endif | |||||
TARGETS += vst | TARGETS += vst | ||||
endif # HAVE_OPENGL | |||||
all: $(TARGETS) | all: $(TARGETS) | ||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- |
@@ -23,10 +23,9 @@ include ../../Makefile.plugins.mk | |||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
# Enable all possible plugin types | # Enable all possible plugin types | ||||
ifeq ($(LINUX),true) | |||||
ifeq ($(HAVE_JACK),true) | |||||
TARGETS += jack | TARGETS += jack | ||||
endif | endif | ||||
TARGETS += lv2_dsp | TARGETS += lv2_dsp | ||||
TARGETS += vst | TARGETS += vst | ||||
@@ -29,17 +29,17 @@ include ../../Makefile.plugins.mk | |||||
ifeq ($(HAVE_JACK),true) | ifeq ($(HAVE_JACK),true) | ||||
ifeq ($(HAVE_OPENGL),true) | ifeq ($(HAVE_OPENGL),true) | ||||
TARGETS += jack | TARGETS += jack | ||||
endif | |||||
endif | |||||
endif # HAVE_OPENGL | |||||
endif # HAVE_JACK | |||||
ifneq ($(MACOS_OR_WINDOWS),true) | ifneq ($(MACOS_OR_WINDOWS),true) | ||||
TARGETS += ladspa | |||||
ifeq ($(HAVE_LIBLO),true) | ifeq ($(HAVE_LIBLO),true) | ||||
ifeq ($(HAVE_OPENGL),true) | ifeq ($(HAVE_OPENGL),true) | ||||
TARGETS += ladspa | |||||
TARGETS += dssi | TARGETS += dssi | ||||
endif | |||||
endif | |||||
endif | |||||
endif # HAVE_OPENGL | |||||
endif # HAVE_LIBLO | |||||
endif # MACOS_OR_WINDOWS | |||||
ifeq ($(HAVE_OPENGL),true) | ifeq ($(HAVE_OPENGL),true) | ||||
TARGETS += lv2_sep | TARGETS += lv2_sep | ||||
@@ -27,7 +27,6 @@ | |||||
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2 | #define DISTRHO_PLUGIN_NUM_OUTPUTS 2 | ||||
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1 | #define DISTRHO_PLUGIN_WANT_PROGRAMS 1 | ||||
#define DISTRHO_PLUGIN_WANT_STATE 1 | #define DISTRHO_PLUGIN_WANT_STATE 1 | ||||
#define DISTRHO_PLUGIN_WANT_FULL_STATE 1 | |||||
#define DISTRHO_UI_USER_RESIZABLE 1 | #define DISTRHO_UI_USER_RESIZABLE 1 | ||||
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED | #endif // DISTRHO_PLUGIN_INFO_H_INCLUDED |
@@ -208,6 +208,7 @@ The plugin will be treated as an effect, but it will not change the host audio." | |||||
} | } | ||||
} | } | ||||
#if DISTRHO_PLUGIN_WANT_FULL_STATE /* FIXME */ | |||||
/** | /** | ||||
Get the value of an internal state. | Get the value of an internal state. | ||||
The host may call this function from any non-realtime context. | The host may call this function from any non-realtime context. | ||||
@@ -239,6 +240,7 @@ The plugin will be treated as an effect, but it will not change the host audio." | |||||
return sFalse; | return sFalse; | ||||
} | } | ||||
#endif | |||||
/** | /** | ||||
Change an internal state. | Change an internal state. | ||||
@@ -296,7 +298,6 @@ private: | |||||
*/ | */ | ||||
bool fParamGrid[9]; | bool fParamGrid[9]; | ||||
/** | /** | ||||
Set our plugin class as non-copyable and add a leak detector just in case. | Set our plugin class as non-copyable and add a leak detector just in case. | ||||
*/ | */ | ||||
@@ -29,8 +29,12 @@ include ../../Makefile.plugins.mk | |||||
ifeq ($(HAVE_JACK),true) | ifeq ($(HAVE_JACK),true) | ||||
ifeq ($(HAVE_OPENGL),true) | ifeq ($(HAVE_OPENGL),true) | ||||
TARGETS += jack | TARGETS += jack | ||||
endif | |||||
endif | |||||
endif # HAVE_OPENGL | |||||
endif # HAVE_JACK | |||||
ifneq ($(MACOS_OR_WINDOWS),true) | |||||
TARGETS += dssi | |||||
endif # MACOS_OR_WINDOWS | |||||
ifeq ($(HAVE_OPENGL),true) | ifeq ($(HAVE_OPENGL),true) | ||||
TARGETS += lv2_sep | TARGETS += lv2_sep | ||||