Add Befaco plugins, so we can test more than 1 set
This commit is contained in:
parent
2a5769a6ca
commit
718e3707cc
4 changed files with 22 additions and 1 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -13,3 +13,6 @@
|
||||||
[submodule "plugins/Fundamental"]
|
[submodule "plugins/Fundamental"]
|
||||||
path = plugins/Fundamental
|
path = plugins/Fundamental
|
||||||
url = https://github.com/VCVRack/Fundamental.git
|
url = https://github.com/VCVRack/Fundamental.git
|
||||||
|
[submodule "plugins/Befaco"]
|
||||||
|
path = plugins/Befaco
|
||||||
|
url = https://github.com/VCVRack/Befaco.git
|
||||||
|
|
|
||||||
1
plugins/Befaco
Submodule
1
plugins/Befaco
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 5141e4ce45cb9084702fdee856c44543b235cb77
|
||||||
|
|
@ -18,6 +18,9 @@ include ../dpf/Makefile.base.mk
|
||||||
|
|
||||||
PLUGIN_FILES = plugins.cpp
|
PLUGIN_FILES = plugins.cpp
|
||||||
|
|
||||||
|
# Befaco
|
||||||
|
PLUGIN_FILES += $(filter-out Befaco/src/plugin.cpp,$(wildcard Befaco/src/*.cpp))
|
||||||
|
|
||||||
# Fundamental
|
# Fundamental
|
||||||
PLUGIN_FILES += $(filter-out Fundamental/src/plugin.cpp,$(wildcard Fundamental/src/*.cpp))
|
PLUGIN_FILES += $(filter-out Fundamental/src/plugin.cpp,$(wildcard Fundamental/src/*.cpp))
|
||||||
|
|
||||||
|
|
@ -85,7 +88,12 @@ $(TARGET): $(PLUGIN_OBJS)
|
||||||
$(BUILD_DIR)/plugins.cpp.o: plugins.cpp
|
$(BUILD_DIR)/plugins.cpp.o: plugins.cpp
|
||||||
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
|
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
|
||||||
@echo "Compiling $<"
|
@echo "Compiling $<"
|
||||||
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -DpluginInstance=pluginInstance__Fundamental -c -o $@
|
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
|
||||||
|
|
||||||
|
$(BUILD_DIR)/Befaco/%.cpp.o: Befaco/%.cpp
|
||||||
|
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
|
||||||
|
@echo "Compiling $<"
|
||||||
|
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -DpluginInstance=pluginInstance__Befaco -c -o $@
|
||||||
|
|
||||||
$(BUILD_DIR)/Fundamental/%.cpp.o: Fundamental/%.cpp
|
$(BUILD_DIR)/Fundamental/%.cpp.o: Fundamental/%.cpp
|
||||||
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
|
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,19 @@
|
||||||
|
|
||||||
#include "Fundamental/src/plugin.hpp"
|
#include "Fundamental/src/plugin.hpp"
|
||||||
|
|
||||||
|
Plugin* pluginInstance__Befaco;
|
||||||
Plugin* pluginInstance__Fundamental;
|
Plugin* pluginInstance__Fundamental;
|
||||||
|
|
||||||
namespace rack {
|
namespace rack {
|
||||||
namespace plugin {
|
namespace plugin {
|
||||||
|
|
||||||
|
static void initStatic__Befaco()
|
||||||
|
{
|
||||||
|
Plugin* p = new Plugin;
|
||||||
|
pluginInstance__Befaco = p;
|
||||||
|
plugins.push_back(p);
|
||||||
|
}
|
||||||
|
|
||||||
static void initStatic__Fundamental()
|
static void initStatic__Fundamental()
|
||||||
{
|
{
|
||||||
Plugin* p = new Plugin;
|
Plugin* p = new Plugin;
|
||||||
|
|
@ -60,6 +68,7 @@ static void initStatic__Fundamental()
|
||||||
|
|
||||||
void initStaticPlugins()
|
void initStaticPlugins()
|
||||||
{
|
{
|
||||||
|
initStatic__Befaco();
|
||||||
initStatic__Fundamental();
|
initStatic__Fundamental();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue