Fixup substation

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-02-22 20:46:34 +00:00
parent dd661db6b8
commit 86c5d6ed7a
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
4 changed files with 20 additions and 35 deletions

View file

@ -627,10 +627,8 @@ PLUGIN_FILES += $(filter-out sonusmodular/src/sonusmodular,$(wildcard sonusmodul
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
PLUGIN_FILES += $(filter-out substation-opensource/src/_plugin.cpp substation-opensource/src/Settings.cpp,$(wildcard substation-opensource/src/*.cpp))
PLUGIN_FILES += substation-settings/Settings.cpp
# --------------------------------------------------------------
# ValleyAudio
@ -1410,14 +1408,13 @@ $(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
$(BUILD_DIR)/substation-%.cpp.o: substation-%.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