From d3e4caea62e55db710e3fe47fbec4f219ca09fc4 Mon Sep 17 00:00:00 2001 From: bsp2 Date: Fri, 26 Oct 2018 12:24:57 +0200 Subject: [PATCH] add RACK_STATIC_MODULES build option (setenv_linux.sh) --- makefile_lib.linux | 5 ++++- setenv_linux.sh | 5 +++++ vst2_common_linux.mk | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/makefile_lib.linux b/makefile_lib.linux index d2914e51..e3006dfd 100644 --- a/makefile_lib.linux +++ b/makefile_lib.linux @@ -8,7 +8,10 @@ include dep/yac/install_linux.mk TARGET_BASENAME=Rack EXTRAFLAGS= -DVERSION=0.6.1 -DARCH_LIN -D_USE_MATH_DEFINES -DRACK_HOST -DUSE_VST2 -Iinclude/ -Idep/include -Idep/ -#EXTRAFLAGS+= -DSKIP_STATIC_MODULES + +ifneq ($(RACK_STATIC_MODULES),y) +EXTRAFLAGS+= -DSKIP_STATIC_MODULES +endif # for osdialog: EXTRAFLAGS+= `pkg-config gtk+-2.0 --cflags` diff --git a/setenv_linux.sh b/setenv_linux.sh index 3fd3538d..91c2bf6d 100644 --- a/setenv_linux.sh +++ b/setenv_linux.sh @@ -3,3 +3,8 @@ export VSVR_BASE_DIR=`pwd` # this must point to the directory which contains the 'aeffect.h' and 'aeffectx.h' files export VST2_SDK_DIR=/mnt/dev/vstsdk2.4/pluginterfaces/vst2.x/ + +# 'n' = build the plugin w/o 3rd party modules +#export RACK_STATIC_MODULES=y +export RACK_STATIC_MODULES=n + diff --git a/vst2_common_linux.mk b/vst2_common_linux.mk index 3a5a6919..aa8844ce 100644 --- a/vst2_common_linux.mk +++ b/vst2_common_linux.mk @@ -7,8 +7,10 @@ EXTRAFLAGS+= -DVERSION=0.6.1 -D_USE_MATH_DEFINES -Iinclude/ -Idep/include -Idep/ EXTRALIBS+= src/plugin_static.o -## note: remove -DSKIP_STATIC_MODULES in makefile_lib.linux and uncomment the following line to link the add-on modules +## See setenv_linux.sh (export RACK_STATIC_MODULES=y/n) +ifeq ($(RACK_STATIC_MODULES),y) include vst2_common_staticlibs.mk +endif ##EXTRALIBS+= $(call plugin_lib,Template) EXTRALIBS+= Rack.a