@@ -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) | ||||
@@ -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 | ||||
@@ -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) | ||||
@@ -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) | ||||
@@ -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) | ||||
@@ -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 | ||||
@@ -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 | ||||
@@ -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) | ||||
@@ -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 | ||||
@@ -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) | ||||
@@ -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) | ||||
@@ -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 | ||||
@@ -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 | ||||
@@ -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 | ||||
@@ -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 | ||||