diff --git a/plugins/Cardinal/GL/glew.h b/plugins/Cardinal/GL/glew.h new file mode 100644 index 0000000..416b573 --- /dev/null +++ b/plugins/Cardinal/GL/glew.h @@ -0,0 +1,3 @@ +#pragma once +#undef DEBUG +#include "OpenGL.hpp" diff --git a/plugins/Cardinal/Makefile b/plugins/Cardinal/Makefile index 7dca47e..7910393 100644 --- a/plugins/Cardinal/Makefile +++ b/plugins/Cardinal/Makefile @@ -57,10 +57,8 @@ EXTRA_LIBS += Rack/dep/lib/libspeexdsp.a ifeq ($(WINDOWS),true) EXTRA_LIBS += Rack/dep/lib/libarchive_static.a -EXTRA_LIBS += Rack/dep/lib/libglew32.a else EXTRA_LIBS += Rack/dep/lib/libarchive.a -EXTRA_LIBS += Rack/dep/lib/libGLEW.a endif EXTRA_LIBS += Rack/dep/lib/libzstd.a diff --git a/plugins/Cardinal/dep.cpp b/plugins/Cardinal/dep.cpp new file mode 100644 index 0000000..8c105dc --- /dev/null +++ b/plugins/Cardinal/dep.cpp @@ -0,0 +1,12 @@ +// This source file compiles those nice implementation-in-header little libraries + +#include // for fopen_u8 + +#include "OpenGL.hpp" + +#define BLENDISH_IMPLEMENTATION +#include + +#define NANOSVG_IMPLEMENTATION +#define NANOSVG_ALL_COLOR_KEYWORDS +#include