tSkip plugin builds if not configured - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ea8800fdfb949fb2b4516d11daac56e4e9a16adc
(DIR) parent f62a14eaa3bee89cd73cefbaba018443efda20af
(HTM) Author: Ben Webb <ben@salilab.org>
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(-)
---
(DIR) 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 libsound_cocoa.la
+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