Browse Source

Always have JACK enabled for example plugins

pull/287/head
falkTX 3 years ago
parent
commit
5202889b0e
15 changed files with 14 additions and 59 deletions
  1. +3
    -6
      Makefile.base.mk
  2. +5
    -6
      Makefile.plugins.mk
  3. +5
    -5
      distrho/src/DistrhoPluginJACK.cpp
  4. +0
    -3
      examples/CVPort/Makefile
  5. +0
    -2
      examples/CairoUI/Makefile
  6. +0
    -3
      examples/ExternalUI/Makefile
  7. +0
    -5
      examples/FileHandling/Makefile
  8. +0
    -2
      examples/ImguiSimpleGain/Makefile
  9. +1
    -4
      examples/Info/Makefile
  10. +0
    -2
      examples/Meters/Makefile
  11. +0
    -10
      examples/Metronome/Makefile
  12. +0
    -2
      examples/MidiThrough/Makefile
  13. +0
    -2
      examples/Parameters/Makefile
  14. +0
    -5
      examples/SendNote/Makefile
  15. +0
    -2
      examples/States/Makefile

+ 3
- 6
Makefile.base.mk View File

@@ -245,9 +245,11 @@ endif
# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# Check for optional libraries # Check for optional libraries


HAVE_JACK = $(shell $(PKG_CONFIG) --exists jack && echo true)
HAVE_LIBLO = $(shell $(PKG_CONFIG) --exists liblo && echo true) HAVE_LIBLO = $(shell $(PKG_CONFIG) --exists liblo && echo true)


# backwards compat
HAVE_JACK = true

# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# Set Generic DGL stuff # Set Generic DGL stuff


@@ -355,11 +357,6 @@ endif
# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# Set optional libraries specific stuff # Set optional libraries specific stuff


ifeq ($(HAVE_JACK),true)
JACK_FLAGS = $(shell $(PKG_CONFIG) --cflags jack)
JACK_LIBS = $(shell $(PKG_CONFIG) --libs jack)
endif

ifeq ($(HAVE_LIBLO),true) ifeq ($(HAVE_LIBLO),true)
LIBLO_FLAGS = $(shell $(PKG_CONFIG) --cflags liblo) LIBLO_FLAGS = $(shell $(PKG_CONFIG) --cflags liblo)
LIBLO_LIBS = $(shell $(PKG_CONFIG) --libs liblo) LIBLO_LIBS = $(shell $(PKG_CONFIG) --libs liblo)


+ 5
- 6
Makefile.plugins.mk View File

@@ -41,14 +41,13 @@ endif
BUILD_C_FLAGS += -I. BUILD_C_FLAGS += -I.
BUILD_CXX_FLAGS += -I. -I$(DPF_PATH)/distrho -I$(DPF_PATH)/dgl BUILD_CXX_FLAGS += -I. -I$(DPF_PATH)/distrho -I$(DPF_PATH)/dgl


ifeq ($(HAVE_JACK),true)
BASE_FLAGS += -DHAVE_JACK
endif

ifeq ($(HAVE_LIBLO),true) ifeq ($(HAVE_LIBLO),true)
BASE_FLAGS += -DHAVE_LIBLO BASE_FLAGS += -DHAVE_LIBLO
endif endif


# backwards compat
BASE_FLAGS += -DHAVE_JACK

# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# Set files to build # Set files to build


@@ -214,7 +213,7 @@ $(BUILD_DIR)/DistrhoUI_macOS_%.mm.o: $(DPF_PATH)/distrho/DistrhoUI_macOS.mm
$(BUILD_DIR)/DistrhoPluginMain_JACK.cpp.o: $(DPF_PATH)/distrho/DistrhoPluginMain.cpp $(BUILD_DIR)/DistrhoPluginMain_JACK.cpp.o: $(DPF_PATH)/distrho/DistrhoPluginMain.cpp
-@mkdir -p $(BUILD_DIR) -@mkdir -p $(BUILD_DIR)
@echo "Compiling DistrhoPluginMain.cpp (JACK)" @echo "Compiling DistrhoPluginMain.cpp (JACK)"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(JACK_FLAGS) -DDISTRHO_PLUGIN_TARGET_JACK -c -o $@
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_PLUGIN_TARGET_JACK -c -o $@


$(BUILD_DIR)/DistrhoUIMain_DSSI.cpp.o: $(DPF_PATH)/distrho/DistrhoUIMain.cpp $(BUILD_DIR)/DistrhoUIMain_DSSI.cpp.o: $(DPF_PATH)/distrho/DistrhoUIMain.cpp
-@mkdir -p $(BUILD_DIR) -@mkdir -p $(BUILD_DIR)
@@ -233,7 +232,7 @@ $(jack): $(OBJS_DSP) $(BUILD_DIR)/DistrhoPluginMain_JACK.cpp.o
endif endif
-@mkdir -p $(shell dirname $@) -@mkdir -p $(shell dirname $@)
@echo "Creating JACK standalone for $(NAME)" @echo "Creating JACK standalone for $(NAME)"
$(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) $(JACK_LIBS) -o $@
$(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) -o $@


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# LADSPA # LADSPA


+ 5
- 5
distrho/src/DistrhoPluginJACK.cpp View File

@@ -23,7 +23,7 @@
# include "../extra/Sleep.hpp" # include "../extra/Sleep.hpp"
#endif #endif


#include "jackbridge/JackBridge1.cpp"
#include "jackbridge/JackBridge.cpp"
#include "lv2/lv2.h" #include "lv2/lv2.h"


#ifndef DISTRHO_OS_WINDOWS #ifndef DISTRHO_OS_WINDOWS
@@ -714,10 +714,10 @@ private:
{ {
DISTRHO_SAFE_ASSERT_RETURN(fPortMidiOutBuffer != nullptr, false); DISTRHO_SAFE_ASSERT_RETURN(fPortMidiOutBuffer != nullptr, false);


return jack_midi_event_write(fPortMidiOutBuffer,
midiEvent.frame,
midiEvent.size > MidiEvent::kDataSize ? midiEvent.dataExt : midiEvent.data,
midiEvent.size) == 0;
return jackbridge_midi_event_write(fPortMidiOutBuffer,
midiEvent.frame,
midiEvent.size > MidiEvent::kDataSize ? midiEvent.dataExt : midiEvent.data,
midiEvent.size) == 0;
} }


static bool writeMidiCallback(void* ptr, const MidiEvent& midiEvent) static bool writeMidiCallback(void* ptr, const MidiEvent& midiEvent)


+ 0
- 3
examples/CVPort/Makefile View File

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


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

TARGETS += lv2_dsp TARGETS += lv2_dsp


all: $(TARGETS) all: $(TARGETS)


+ 0
- 2
examples/CairoUI/Makefile View File

@@ -32,9 +32,7 @@ include ../../Makefile.plugins.mk


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


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


ifneq ($(MACOS_OR_WINDOWS),true) ifneq ($(MACOS_OR_WINDOWS),true)
ifeq ($(HAVE_LIBLO),true) ifeq ($(HAVE_LIBLO),true)


+ 0
- 3
examples/ExternalUI/Makefile View File

@@ -31,10 +31,7 @@ endif
# -------------------------------------------------------------- # --------------------------------------------------------------
# Enable all possible plugin types # Enable all possible plugin types


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

TARGETS += dssi TARGETS += dssi
TARGETS += lv2_sep TARGETS += lv2_sep




+ 0
- 5
examples/FileHandling/Makefile View File

@@ -27,13 +27,8 @@ 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)
TARGETS += jack TARGETS += jack
endif
endif

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


+ 0
- 2
examples/ImguiSimpleGain/Makefile View File

@@ -34,9 +34,7 @@ LINK_FLAGS += $(shell $(PKG_CONFIG) glew --libs)


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


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


ifneq ($(MACOS_OR_WINDOWS),true) ifneq ($(MACOS_OR_WINDOWS),true)
ifeq ($(HAVE_LIBLO),true) ifeq ($(HAVE_LIBLO),true)


+ 1
- 4
examples/Info/Makefile View File

@@ -28,13 +28,10 @@ include ../../Makefile.plugins.mk


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

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


TARGETS += vst TARGETS += vst




+ 0
- 2
examples/Meters/Makefile View File

@@ -28,9 +28,7 @@ include ../../Makefile.plugins.mk


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


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


ifneq ($(MACOS_OR_WINDOWS),true) ifneq ($(MACOS_OR_WINDOWS),true)
ifeq ($(HAVE_LIBLO),true) ifeq ($(HAVE_LIBLO),true)


+ 0
- 10
examples/Metronome/Makefile View File

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


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

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

TARGETS += vst TARGETS += vst


all: $(TARGETS) all: $(TARGETS)


+ 0
- 2
examples/MidiThrough/Makefile View File

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


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




+ 0
- 2
examples/Parameters/Makefile View File

@@ -26,11 +26,9 @@ 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)
TARGETS += jack TARGETS += jack
endif # HAVE_OPENGL endif # HAVE_OPENGL
endif # HAVE_JACK


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


+ 0
- 5
examples/SendNote/Makefile View File

@@ -27,13 +27,8 @@ 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)
TARGETS += jack TARGETS += jack
endif
endif

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


+ 0
- 2
examples/States/Makefile View File

@@ -26,11 +26,9 @@ 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)
TARGETS += jack TARGETS += jack
endif # HAVE_OPENGL endif # HAVE_OPENGL
endif # HAVE_JACK


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


Loading…
Cancel
Save