Make PrismFilterSetting per-file macro

This commit is contained in:
falkTX 2021-12-11 12:04:08 +00:00
parent c1409a4633
commit 47350ab538

View file

@ -529,7 +529,8 @@ PLUGIN_FILES += $(filter-out Prism/src/plugin.cpp, $(wildcard Prism/src/*.cpp))
PLUGIN_FILES += $(wildcard Prism/src/scales/*.cpp)
# modules/types which are present in other plugins
PRISM_CUSTOM = bogaudio Scale FilterSetting
PRISM_CUSTOM = bogaudio FilterSetting Scale
PRISM_CUSTOM_PER_FILE = PrismFilterSetting
# --------------------------------------------------------------
# rackwindows
@ -1149,6 +1150,7 @@ $(BUILD_DIR)/Prism/%.cpp.o: Prism/%.cpp
@echo "Compiling $<"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
$(foreach m,$(PRISM_CUSTOM),$(call custom_module_names,$(m),Prism)) \
$(foreach m,$(PRISM_CUSTOM_PER_FILE),$(call custom_per_file_names,$(m),Prism_$(shell basename $*))) \
-DpluginInstance=pluginInstance__Prism \
$(BUILD_DIR)/rackwindows/%.cpp.o: rackwindows/%.cpp