Skip to content

Commit

Permalink
Fixed plugin loading by dropping reference to GLFW.
Browse files Browse the repository at this point in the history
  • Loading branch information
IohannRabeson committed Nov 22, 2017
1 parent e2e67e3 commit 5abce55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
14 changes: 1 addition & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SOURCES = src/Simple.cpp \
utils/WavWriter.cpp \
utils/StateMachine.cpp \
utils/Path.cpp \
utils/TextDisplay.cpp \
utils/TextDisplay.cpp \
utils/VuMeter.cpp \
utils/write_wav.c

Expand All @@ -20,18 +20,6 @@ FLAGS += -I"."

include ../../plugin.mk

ifeq ($(ARCH), lin)
LDFLAGS += -L../../dep/lib -lglfw
endif

ifeq ($(ARCH), mac)
LDFLAGS += -L../../dep/lib -lglfw
endif

ifeq ($(ARCH), win)
LDFLAGS += -L../../dep/lib -lglfw3dll
endif

dist: all
ifndef VERSION
$(error VERSION must be defined when making distributables)
Expand Down
1 change: 0 additions & 1 deletion src/Recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ bool RecorderWidget::selectOutputFile()
{
setOutputFilePath(Recorder::NoneLabel);
}
glfwFocusWindow(rack::gWindow);
return result;
}

Expand Down
4 changes: 3 additions & 1 deletion src/Simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ rack::Plugin* plugin;
void init(rack::Plugin *p)
{
plugin = p;
plugin->slug = "IO-Simple";
p->slug = "IO-Simple";

#ifdef VERSION
p->version = TOSTRING(VERSION);
#endif
p->website = "https://iohannrabeson.github.io/VCVRack-Simple/";

p->addModel(rack::createModel<ButtonTriggerWidget>("Simple", "IO-ButtonTrigger", "Button Trigger", rack::UTILITY_TAG));
p->addModel(rack::createModel<ClockDividerWidget>("Simple", "IO-ClockDivider", "Clock Divider", rack::CLOCK_TAG));
p->addModel(rack::createModel<RecorderWidget>("Simple", "IO-Recorder", "Recorder", rack::UTILITY_TAG));
Expand Down

0 comments on commit 5abce55

Please sign in to comment.