Skip to content

Commit

Permalink
Only build JACK binaries for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwillis committed Mar 5, 2021
1 parent 0bba53a commit e2b5002
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/dragonfly-early-reflections/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ endif
# --------------------------------------------------------------
# Enable all possible plugin types

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

ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
Expand Down
77 changes: 77 additions & 0 deletions plugins/dragonfly-hall-reverb/#Makefile#
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#!/usr/bin/make -f
# Makefile for DISTRHO Plugins #
# ---------------------------- #
# Created by falkTX
#

# --------------------------------------------------------------
# Project name, used for binaries

NAME = DragonflyHallReverb

# --------------------------------------------------------------
# Files to build

FILES_DSP = \
Plugin.cpp \
DSP.cpp

FILES_UI = \
UI.cpp \
Artwork.cpp \
DSP.cpp \
../../common/AbstractUI.cpp \
../../common/LabelledKnob.cpp \
../../common/Spectrogram.cpp \
../../common/Bitstream_Vera_Sans_Regular.cpp

# --------------------------------------------------------------
# Do some magic

include ../../dpf/Makefile.plugins.mk

PKG_CONFIG ?= pkg-config

BUILD_CXX_FLAGS := -I../../common $(BUILD_CXX_FLAGS)
BUILD_CXX_FLAGS := ../../common/kiss_fft/*.c.o $(BUILD_CXX_FLAGS)
ifneq ($(SYSTEM_FREEVERB3),true)
BUILD_CXX_FLAGS := ../../common/freeverb/*.cpp.o $(BUILD_CXX_FLAGS)
else
BUILD_CXX_FLAGS := $(shell $PKG_CONFIG --cflags freeverb3-3) $(BUILD_CXX_FLAGS)
endif

# --------------------------------------------------------------
# Link dependencies

ifneq ($(SYSTEM_FREEVERB3),true)
LINK_OPTS += -lm
else
LINK_OPTS += -lm $(shell $PKG_CONFIG --libs freeverb3-3) -lsamplerate
BUILD_CXX_FLAGS := -DLIBSRATE1 $(BUILD_CXX_FLAGS)
endif

ifeq ($(WIN32),true)
LINK_OPTS += -static -static-libgcc -static-libstdc++
endif


# --------------------------------------------------------------
# Enable all possible plugin types

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

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

TARGETS += vst

all: $(TARGETS)

# --------------------------------------------------------------
2 changes: 2 additions & 0 deletions plugins/dragonfly-hall-reverb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ endif
# --------------------------------------------------------------
# Enable all possible plugin types

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

ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
Expand Down
2 changes: 2 additions & 0 deletions plugins/dragonfly-plate-reverb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ endif
# --------------------------------------------------------------
# Enable all possible plugin types

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

ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
Expand Down
2 changes: 2 additions & 0 deletions plugins/dragonfly-room-reverb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ endif
# --------------------------------------------------------------
# Enable all possible plugin types

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

ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
Expand Down

0 comments on commit e2b5002

Please sign in to comment.