Browse Source

Reorganize the example plugin targets

pull/272/head
falkTX 4 years ago
parent
commit
e46dd357b6
11 changed files with 48 additions and 55 deletions
  1. +6
    -5
      distrho/src/DistrhoPluginChecks.h
  2. +7
    -12
      examples/CairoUI/Makefile
  3. +11
    -8
      examples/ImguiSimpleGain/Makefile
  4. +2
    -2
      examples/Info/Makefile
  5. +0
    -4
      examples/Latency/Makefile
  6. +7
    -12
      examples/Meters/Makefile
  7. +1
    -2
      examples/MidiThrough/Makefile
  8. +6
    -6
      examples/Parameters/Makefile
  9. +0
    -1
      examples/States/DistrhoPluginInfo.h
  10. +2
    -1
      examples/States/ExamplePluginStates.cpp
  11. +6
    -2
      examples/States/Makefile

+ 6
- 5
distrho/src/DistrhoPluginChecks.h View File

@@ -142,11 +142,12 @@
// -----------------------------------------------------------------------
// 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


+ 7
- 12
examples/CairoUI/Makefile View File

@@ -29,28 +29,23 @@ include ../../Makefile.plugins.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(HAVE_JACK),true)
ifeq ($(HAVE_CAIRO),true)

ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif
endif # HAVE_JACK

ifneq ($(MACOS_OR_WINDOWS),true)
ifeq ($(HAVE_CAIRO),true)
ifeq ($(HAVE_LIBLO),true)
TARGETS += dssi
endif
endif
endif
endif # HAVE_LIBLO
endif # MACOS_OR_WINDOWS

ifeq ($(HAVE_CAIRO),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif

TARGETS += vst

endif # HAVE_CAIRO

all: $(TARGETS)

# --------------------------------------------------------------

+ 11
- 8
examples/ImguiSimpleGain/Makefile View File

@@ -32,20 +32,23 @@ LINK_FLAGS += $(shell $(PKG_CONFIG) glew --libs)
# --------------------------------------------------------------
# Enable all selected plugin types

ifeq ($(HAVE_JACK),true)
ifeq ($(HAVE_OPENGL),true)

ifeq ($(HAVE_JACK),true)
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

endif # HAVE_OPENGL

all: $(TARGETS)

# --------------------------------------------------------------

+ 2
- 2
examples/Info/Makefile View File

@@ -29,8 +29,8 @@ include ../../Makefile.plugins.mk
ifeq ($(HAVE_JACK),true)
ifeq ($(HAVE_OPENGL),true)
TARGETS += jack
endif
endif
endif # HAVE_OPENGL
endif # HAVE_JACK

ifeq ($(HAVE_OPENGL),true)
TARGETS += lv2_sep


+ 0
- 4
examples/Latency/Makefile View File

@@ -23,11 +23,7 @@ include ../../Makefile.plugins.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifneq ($(MACOS_OR_WINDOWS),true)
TARGETS += ladspa
TARGETS += dssi
endif

TARGETS += lv2_dsp
TARGETS += vst



+ 7
- 12
examples/Meters/Makefile View File

@@ -26,28 +26,23 @@ include ../../Makefile.plugins.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(HAVE_JACK),true)
ifeq ($(HAVE_OPENGL),true)

ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif
endif # HAVE_JACK

ifneq ($(MACOS_OR_WINDOWS),true)
ifeq ($(HAVE_LIBLO),true)
ifeq ($(HAVE_OPENGL),true)
TARGETS += dssi
endif
endif
endif
endif # HAVE_LIBLO
endif # MACOS_OR_WINDOWS

ifeq ($(HAVE_OPENGL),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif

TARGETS += vst

endif # HAVE_OPENGL

all: $(TARGETS)

# --------------------------------------------------------------

+ 1
- 2
examples/MidiThrough/Makefile View File

@@ -23,10 +23,9 @@ include ../../Makefile.plugins.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(LINUX),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif

TARGETS += lv2_dsp
TARGETS += vst



+ 6
- 6
examples/Parameters/Makefile View File

@@ -29,17 +29,17 @@ include ../../Makefile.plugins.mk
ifeq ($(HAVE_JACK),true)
ifeq ($(HAVE_OPENGL),true)
TARGETS += jack
endif
endif
endif # HAVE_OPENGL
endif # HAVE_JACK

ifneq ($(MACOS_OR_WINDOWS),true)
TARGETS += ladspa
ifeq ($(HAVE_LIBLO),true)
ifeq ($(HAVE_OPENGL),true)
TARGETS += ladspa
TARGETS += dssi
endif
endif
endif
endif # HAVE_OPENGL
endif # HAVE_LIBLO
endif # MACOS_OR_WINDOWS

ifeq ($(HAVE_OPENGL),true)
TARGETS += lv2_sep


+ 0
- 1
examples/States/DistrhoPluginInfo.h View File

@@ -27,7 +27,6 @@
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1
#define DISTRHO_PLUGIN_WANT_STATE 1
#define DISTRHO_PLUGIN_WANT_FULL_STATE 1
#define DISTRHO_UI_USER_RESIZABLE 1

#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED

+ 2
- 1
examples/States/ExamplePluginStates.cpp View File

@@ -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.
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;
}
#endif
/**
Change an internal state.
@@ -296,7 +298,6 @@ private:
*/
bool fParamGrid[9];
/**
Set our plugin class as non-copyable and add a leak detector just in case.
*/


+ 6
- 2
examples/States/Makefile View File

@@ -29,8 +29,12 @@ include ../../Makefile.plugins.mk
ifeq ($(HAVE_JACK),true)
ifeq ($(HAVE_OPENGL),true)
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)
TARGETS += lv2_sep


Loading…
Cancel
Save