From baa55aab18d9b05529b5286e91911e0e9777d9b1 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 10 May 2017 13:11:47 +0100 Subject: [PATCH 1/4] Add SKIP_STRIPPING Makefile option to disable stripping --- Makefile.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.mk b/Makefile.mk index 9100500..6759e24 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -35,7 +35,10 @@ ifeq ($(MACOS),true) LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip_dylibs else # Common linker flags -LINK_OPTS = -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed -Wl,--strip-all +LINK_OPTS = -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed +ifneq ($(SKIP_STRIPPING),true) +LINK_OPTS += -Wl,--strip-all +endif endif ifeq ($(RASPPI),true) From 319738de64708c8a520ce0ea8d75b96dc9b49316 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 12 May 2017 19:36:12 +0100 Subject: [PATCH 2/4] Allow to set which formats to build --- plugins/Makefile.mk | 11 +++++++++++ plugins/bitcrush/Makefile | 9 ++++++++- plugins/freeverb/Makefile | 9 ++++++++- plugins/gigaverb/Makefile | 9 ++++++++- plugins/pitchshift/Makefile | 9 ++++++++- 5 files changed, 43 insertions(+), 4 deletions(-) diff --git a/plugins/Makefile.mk b/plugins/Makefile.mk index 0eebb9b..1ff40d5 100644 --- a/plugins/Makefile.mk +++ b/plugins/Makefile.mk @@ -12,6 +12,17 @@ ifeq ($(OBJS_UI),) HAVE_DGL = false endif +# -------------------------------------------------------------- +# Set which plugin formats to build + +BUILD_JACK = true +ifeq ($(LINUX),true) +BUILD_LADSPA = true +BUILD_DSSI = true +endif +BUILD_LV2 = true +BUILD_VST2 = true + # -------------------------------------------------------------- # Basic setup diff --git a/plugins/bitcrush/Makefile b/plugins/bitcrush/Makefile index da5ea1f..535b08c 100644 --- a/plugins/bitcrush/Makefile +++ b/plugins/bitcrush/Makefile @@ -23,16 +23,23 @@ include ../Makefile.mk # -------------------------------------------------------------- # Enable all possible plugin types +ifeq ($(BUILD_JACK),true) ifeq ($(HAVE_JACK),true) TARGETS += jack endif +endif -ifeq ($(LINUX),true) +ifeq ($(BUILD_LADSPA),true) TARGETS += ladspa endif +ifeq ($(BUILD_LV2),true) TARGETS += lv2_dsp +endif + +ifeq ($(BUILD_VST),true) TARGETS += vst +endif all: $(TARGETS) diff --git a/plugins/freeverb/Makefile b/plugins/freeverb/Makefile index 5afac86..ebabf86 100644 --- a/plugins/freeverb/Makefile +++ b/plugins/freeverb/Makefile @@ -23,16 +23,23 @@ include ../Makefile.mk # -------------------------------------------------------------- # Enable all possible plugin types +ifeq ($(BUILD_JACK),true) ifeq ($(HAVE_JACK),true) TARGETS += jack endif +endif -ifeq ($(LINUX),true) +ifeq ($(BUILD_LADSPA),true) TARGETS += ladspa endif +ifeq ($(BUILD_LV2),true) TARGETS += lv2_dsp +endif + +ifeq ($(BUILD_VST),true) TARGETS += vst +endif all: $(TARGETS) diff --git a/plugins/gigaverb/Makefile b/plugins/gigaverb/Makefile index b4e290f..c506b5f 100644 --- a/plugins/gigaverb/Makefile +++ b/plugins/gigaverb/Makefile @@ -23,16 +23,23 @@ include ../Makefile.mk # -------------------------------------------------------------- # Enable all possible plugin types +ifeq ($(BUILD_JACK),true) ifeq ($(HAVE_JACK),true) TARGETS += jack endif +endif -ifeq ($(LINUX),true) +ifeq ($(BUILD_LADSPA),true) TARGETS += ladspa endif +ifeq ($(BUILD_LV2),true) TARGETS += lv2_dsp +endif + +ifeq ($(BUILD_VST),true) TARGETS += vst +endif all: $(TARGETS) diff --git a/plugins/pitchshift/Makefile b/plugins/pitchshift/Makefile index e043aca..fa93737 100644 --- a/plugins/pitchshift/Makefile +++ b/plugins/pitchshift/Makefile @@ -23,16 +23,23 @@ include ../Makefile.mk # -------------------------------------------------------------- # Enable all possible plugin types +ifeq ($(BUILD_JACK),true) ifeq ($(HAVE_JACK),true) TARGETS += jack endif +endif -ifeq ($(LINUX),true) +ifeq ($(BUILD_LADSPA),true) TARGETS += ladspa endif +ifeq ($(BUILD_LV2),true) TARGETS += lv2_dsp +endif + +ifeq ($(BUILD_VST),true) TARGETS += vst +endif all: $(TARGETS) From 0758e528b7795dad6e7af5e0e852c8450f80a6f5 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 15 May 2017 20:57:34 +0100 Subject: [PATCH 3/4] Fix typo --- plugins/bitcrush/Makefile | 2 +- plugins/freeverb/Makefile | 2 +- plugins/gigaverb/Makefile | 2 +- plugins/pitchshift/Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/bitcrush/Makefile b/plugins/bitcrush/Makefile index 535b08c..79d0d2a 100644 --- a/plugins/bitcrush/Makefile +++ b/plugins/bitcrush/Makefile @@ -37,7 +37,7 @@ ifeq ($(BUILD_LV2),true) TARGETS += lv2_dsp endif -ifeq ($(BUILD_VST),true) +ifeq ($(BUILD_VST2),true) TARGETS += vst endif diff --git a/plugins/freeverb/Makefile b/plugins/freeverb/Makefile index ebabf86..36377b3 100644 --- a/plugins/freeverb/Makefile +++ b/plugins/freeverb/Makefile @@ -37,7 +37,7 @@ ifeq ($(BUILD_LV2),true) TARGETS += lv2_dsp endif -ifeq ($(BUILD_VST),true) +ifeq ($(BUILD_VST2),true) TARGETS += vst endif diff --git a/plugins/gigaverb/Makefile b/plugins/gigaverb/Makefile index c506b5f..31eb7f5 100644 --- a/plugins/gigaverb/Makefile +++ b/plugins/gigaverb/Makefile @@ -37,7 +37,7 @@ ifeq ($(BUILD_LV2),true) TARGETS += lv2_dsp endif -ifeq ($(BUILD_VST),true) +ifeq ($(BUILD_VST2),true) TARGETS += vst endif diff --git a/plugins/pitchshift/Makefile b/plugins/pitchshift/Makefile index fa93737..d74a81b 100644 --- a/plugins/pitchshift/Makefile +++ b/plugins/pitchshift/Makefile @@ -37,7 +37,7 @@ ifeq ($(BUILD_LV2),true) TARGETS += lv2_dsp endif -ifeq ($(BUILD_VST),true) +ifeq ($(BUILD_VST2),true) TARGETS += vst endif From 32c2796b78396662fcc5bfce3bd6a02e8958a44a Mon Sep 17 00:00:00 2001 From: Filipe Coelho Date: Thu, 15 Jun 2017 11:36:03 +0200 Subject: [PATCH 4/4] Create README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a93f66d..9a97744 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,5 @@ An experiment with Max generated code and DPF. Based on https://github.com/Cycling74/gen-plugin-export. + +If you want to build your own plugins use https://github.com/moddevices/max-gen-skeleton instead, which provides a base skeleton and scripts to facilitate the creating of such plugins.