Add substation-opensource (#163)

* WIP: Add Substation Open Source release (broken)

* Update upstream

Co-authored-by: Simon-L <lumis@xulepth.fr>
This commit is contained in:
FergusL 2022-02-22 21:13:34 +01:00 committed by GitHub
parent 0040434178
commit dd661db6b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 79 additions and 0 deletions

View file

@ -622,6 +622,16 @@ REPELZEN_CUSTOM = Blank Mixer Werner tanh_pade
PLUGIN_FILES += $(filter-out sonusmodular/src/sonusmodular,$(wildcard sonusmodular/src/*.cpp))
# --------------------------------------------------------------
# Substation (Open source release)
PLUGIN_FILES += $(wildcard substation-opensource/dep/slime4rack/src/slime/*.cpp)
PLUGIN_FILES += $(wildcard substation-opensource/dep/slime4rack/src/slime/**/*.cpp)
PLUGIN_FILES += $(filter-out substation-opensource/src/_plugin.cpp,$(wildcard substation-opensource/src/*.cpp))
# modules/types which are present in other plugins
SUBSTATION_CUSTOM = Clock Mixer Quantizer VCA init
# --------------------------------------------------------------
# ValleyAudio
@ -1400,6 +1410,16 @@ $(BUILD_DIR)/sonusmodular/%.cpp.o: sonusmodular/%.cpp
$(foreach m,$(SONUSMODULAR_CUSTOM),$(call custom_module_names,$(m),sonusmodular)) \
-DpluginInstance=pluginInstance__sonusmodular
$(BUILD_DIR)/substation-opensource/%.cpp.o: substation-opensource/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
$(foreach m,$(SUBSTATION_CUSTOM),$(call custom_module_names,$(m),substation)) \
-DpluginInstance=pluginInstance__substation \
-D'PRIVATE=__attribute__((error("Using internal Rack function or symbol")))' \
-Werror \
-Isubstation-opensource/dep/slime4rack/include
$(BUILD_DIR)/ValleyAudio/%.cpp.o: ValleyAudio/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"