diff --git a/modules/Default/Default.cpp b/modules/Default/Default.cpp index 5f37a70..e941eb4 100644 --- a/modules/Default/Default.cpp +++ b/modules/Default/Default.cpp @@ -1,4 +1,5 @@ #include "Default.hpp" +#include #include class Default : public ScreensaverPlugin { diff --git a/modules/Default/premake.make b/modules/Default/premake.make index ec5846f..1307317 100644 --- a/modules/Default/premake.make +++ b/modules/Default/premake.make @@ -1,4 +1,6 @@ -LDLIBS := -lcairo -lscscreensaver +LDLIBS := -lcairo -lscscreensaver -lscgui +LDLIBS += $(shell pkg-config sdl2 --libs) +CXXFLAGS += $(shell pkg-config sdl2 --cflags) UNAME_S := $(shell uname -s) PROJ := $(shell basename $$(pwd)) PLUGIN := $(PROJ).saver diff --git a/modules/FadingRects/FadingRects.cpp b/modules/FadingRects/FadingRects.cpp index 160a3f0..0867afd 100644 --- a/modules/FadingRects/FadingRects.cpp +++ b/modules/FadingRects/FadingRects.cpp @@ -1,5 +1,6 @@ #include "FadingRects.hpp" #include +#include #include #include #include diff --git a/modules/FadingRects/premake.make b/modules/FadingRects/premake.make index 36e4b85..376a780 100644 --- a/modules/FadingRects/premake.make +++ b/modules/FadingRects/premake.make @@ -1,4 +1,6 @@ -LDLIBS := -lcairo -lscscreensaver -lscnumerics +LDLIBS := -lcairo -lscscreensaver -lscnumerics -lscgui +LDLIBS += $(shell pkg-config sdl2 --libs) +CXXFLAGS += $(shell pkg-config sdl2 --cflags) UNAME_S := $(shell uname -s) PROJ := $(shell basename $$(pwd)) PLUGIN := $(PROJ).saver diff --git a/modules/Grid/Grid.cpp b/modules/Grid/Grid.cpp index 1d4a59f..73bb9d1 100644 --- a/modules/Grid/Grid.cpp +++ b/modules/Grid/Grid.cpp @@ -1,4 +1,5 @@ #include "Grid.hpp" +#include #include #include #include diff --git a/modules/Grid/premake.make b/modules/Grid/premake.make index 33ab926..0efb04d 100644 --- a/modules/Grid/premake.make +++ b/modules/Grid/premake.make @@ -1,4 +1,6 @@ -LDLIBS := -lcairo -lscscreensaver -lscnumerics +LDLIBS := -lcairo -lscscreensaver -lscnumerics -lscgui +LDLIBS += $(shell pkg-config sdl2 --libs) +CXXFLAGS += $(shell pkg-config sdl2 --cflags) UNAME_S := $(shell uname -s) PROJ := $(shell basename $$(pwd)) PLUGIN := $(PROJ).saver diff --git a/modules/Huey/Huey.cpp b/modules/Huey/Huey.cpp index 4e19485..76a0bb6 100644 --- a/modules/Huey/Huey.cpp +++ b/modules/Huey/Huey.cpp @@ -1,4 +1,5 @@ #include "Huey.hpp" +#include #include #include #include diff --git a/modules/Huey/premake.make b/modules/Huey/premake.make index ec5846f..1307317 100644 --- a/modules/Huey/premake.make +++ b/modules/Huey/premake.make @@ -1,4 +1,6 @@ -LDLIBS := -lcairo -lscscreensaver +LDLIBS := -lcairo -lscscreensaver -lscgui +LDLIBS += $(shell pkg-config sdl2 --libs) +CXXFLAGS += $(shell pkg-config sdl2 --cflags) UNAME_S := $(shell uname -s) PROJ := $(shell basename $$(pwd)) PLUGIN := $(PROJ).saver diff --git a/modules/Whirling/Whirling.cpp b/modules/Whirling/Whirling.cpp index b9dfbb7..528677a 100644 --- a/modules/Whirling/Whirling.cpp +++ b/modules/Whirling/Whirling.cpp @@ -1,4 +1,5 @@ #include "Whirling.hpp" +#include #include #include #include diff --git a/modules/Whirling/premake.make b/modules/Whirling/premake.make index 24b9222..10ee47a 100644 --- a/modules/Whirling/premake.make +++ b/modules/Whirling/premake.make @@ -1,4 +1,6 @@ -LDLIBS := -lcairo -lscscreensaver +LDLIBS := -lcairo -lscscreensaver -lscgui +LDLIBS += $(shell pkg-config sdl2 --libs) +CXXFLAGS += $(shell pkg-config sdl2 --cflags) UNAME_S := $(shell uname -s) PROJ := $(shell basename $$(pwd)) PLUGIN := $(PROJ).saver diff --git a/skeleton/premake.make b/skeleton/premake.make index ec5846f..1307317 100644 --- a/skeleton/premake.make +++ b/skeleton/premake.make @@ -1,4 +1,6 @@ -LDLIBS := -lcairo -lscscreensaver +LDLIBS := -lcairo -lscscreensaver -lscgui +LDLIBS += $(shell pkg-config sdl2 --libs) +CXXFLAGS += $(shell pkg-config sdl2 --cflags) UNAME_S := $(shell uname -s) PROJ := $(shell basename $$(pwd)) PLUGIN := $(PROJ).saver