tSkip plugin builds if not configured - vaccinewars - be a doctor and try to va… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit ea8800fdfb949fb2b4516d11daac56e4e9a16adc | |
parent f62a14eaa3bee89cd73cefbaba018443efda20af | |
Author: Ben Webb <[email protected]> | |
Date: Sat, 7 Nov 2020 21:00:32 -0800 | |
Skip plugin builds if not configured | |
Don't even try to compile the plugins if the | |
associated configure tests failed, as the cocoa | |
plugin will fail hard if we don't have an | |
Objective C compiler. | |
Diffstat: | |
M src/plugins/Makefile.am | 11 ++++++++++- | |
1 file changed, 10 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am | |
t@@ -1,4 +1,13 @@ | |
-noinst_LTLIBRARIES = libsound_esd.la libsound_sdl.la libsound_winmm.la libsoun… | |
+noinst_LTLIBRARIES = libsound_winmm.la | |
+if ESD | |
+noinst_LTLIBRARIES += libsound_esd.la | |
+endif | |
+if SDL | |
+noinst_LTLIBRARIES += libsound_sdl.la | |
+endif | |
+if COCOA | |
+noinst_LTLIBRARIES += libsound_cocoa.la | |
+endif | |
libsound_esd_la_SOURCES = sound_esd.c sound_esd.h | |
libsound_esd_la_LDFLAGS = @ESD_LIBS@ | |
libsound_sdl_la_SOURCES = sound_sdl.c sound_sdl.h |