Skip to content

Commit

Permalink
Add Makefile and plugins.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kawa-sanmyaku committed Feb 18, 2024
1 parent fe05923 commit 4da234a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,11 @@ PLUGIN_FILES += $(filter-out cf/src/plugin.cpp,$(wildcard cf/src/*.cpp))
# modules/types which are present in other plugins
CF_CUSTOM = $(DRWAV)

# --------------------------------------------------------------
# Computerscare

PLUGIN_FILES += $(filter-out Computerscare/src/Computerscare.cpp,$(wildcard Computerscare/src/*.cpp))

# --------------------------------------------------------------
# dBiz

Expand Down Expand Up @@ -2202,6 +2207,13 @@ $(BUILD_DIR)/cf/src/%.cpp.o: cf/src/%.cpp
-DpluginInstance=pluginInstance__cf \
-Wno-misleading-indentation

$(BUILD_DIR)/Computerscare/src/%.cpp.o: Computerscare/src/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
$(foreach m,$(CF_CUSTOM),$(call custom_module_names,$(m),Computerscare)) \
-DpluginInstance=pluginInstance__Computerscare

$(BUILD_DIR)/ChowDSP/%.cpp.o: ChowDSP/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
Expand Down
33 changes: 33 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ extern Model* modelTestVCF;
#include "ChowDSP/src/plugin.cpp"
#undef init

// Computerscare
#include "Computerscare/src/Computerscare.hpp"

// dBiz
#define DarkDefaultItem dBizDarkDefaultItem
#define OrangeLight dBizOrangeLight
Expand Down Expand Up @@ -823,6 +826,7 @@ Plugin* pluginInstance__BogaudioModules;
Plugin* pluginInstance__CatroModulo;
Plugin* pluginInstance__cf;
Plugin* pluginInstance__ChowDSP;
Plugin* pluginInstance__Computerscare;
Plugin* pluginInstance__dBiz;
Plugin* pluginInstance__DHE;
extern Plugin* pluginInstance__DrumKit;
Expand Down Expand Up @@ -1785,6 +1789,34 @@ static void initStatic__ChowDSP()
}
}

static void initStatic__Computerscare()
{
Plugin* const p = new Plugin;
pluginInstance__Computerscare = p;

const StaticPluginLoader spl(p, "Computerscare");
if (spl.ok())
{
p->addModel(modelComputerscarePatchSequencer);
p->addModel(modelComputerscareDebug);
p->addModel(modelComputerscareLaundrySoup);
p->addModel(modelComputerscareILoveCookies);
p->addModel(modelComputerscareOhPeas);
p->addModel(modelComputerscareHorseADoodleDoo);
p->addModel(modelComputerscareKnolyPobs);
p->addModel(modelComputerscareBolyPuttons);
p->addModel(modelComputerscareRolyPouter);
p->addModel(modelComputerscareSolyPequencer);
p->addModel(modelComputerscareTolyPools);
p->addModel(modelComputerscareMolyPatrix);
p->addModel(modelComputerscareGolyPenerator);
p->addModel(modelComputerscareFolyPace);
p->addModel(modelComputerscareStolyFickPigure);
p->addModel(modelComputerscareBlank);
p->addModel(modelComputerscareBlankExpander);
}
}

static void initStatic__dBiz()
{
Plugin* const p = new Plugin;
Expand Down Expand Up @@ -3141,6 +3173,7 @@ void initStaticPlugins()
initStatic__CatroModulo();
initStatic__cf();
initStatic__ChowDSP();
initStatic__Computerscare();
initStatic__dBiz();
initStatic__DHE();
initStatic__DrumKit();
Expand Down

0 comments on commit 4da234a

Please sign in to comment.