[Scummvm-cvs-logs] scummvm master -> 7bad8f780e7f0bf89a80d6b1bdaa9be34787eca2

lordhoto lordhoto at gmail.com
Tue Jan 12 22:52:51 CET 2016


This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
90354bf8e1 CONFIGURE: Make FluidSynth detection more reliable.
7bad8f780e BUILD: Fix iphonebundle/ios7bundle targets when FluidSynth is enabled.


Commit: 90354bf8e1aad6b06c41cb38b5f73e4ff2d6afbf
    https://github.com/scummvm/scummvm/commit/90354bf8e1aad6b06c41cb38b5f73e4ff2d6afbf
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2016-01-12T22:45:41+01:00

Commit Message:
CONFIGURE: Make FluidSynth detection more reliable.

1. We use actual FluidSynth symbols in our test program now. This assures
that linking actually checks for presence of symbols. Which in turn checks
that the library linked can be used with our link configuration.
2. Add simple hardcoded list of FluidSynth dependencies. This helps detection
of statically built FluidSynth.

Changed paths:
    configure



diff --git a/configure b/configure
index 3ad30fe..fe2db02 100755
--- a/configure
+++ b/configure
@@ -3892,26 +3892,52 @@ fi
 echo "$_sparkle"
 
 #
-# Check for libfluidsynth
+# Check for FluidSynth 
 #
-echocheck "libfluidsynth"
-if test "$_fluidsynth" = auto ; then
+echocheck "FluidSynth"
+
+append_var FLUIDSYNTH_LIBS "-lfluidsynth"
+case $_host_os in
+	mingw*)
+		# TODO: Modern FluidSynth requires glib. Our buildbot uses an older
+		# FluidSynth version which does not require glib. Additionally, it
+		# does not contain any glib libraries. We hack the libraries
+		# required for static linking here to make it work with buildbot.
+		# Once we upgraded to a new version, glib and its dependencies
+		# should be added.
+		FLUIDSYNTH_STATIC_LIBS="$FLUIDSYNTH_LIBS -ldsound -lwinmm"
+	;;
+
+	darwin*)
+		# TODO: Check actual requirements for static FluidSynth and
+		# dependencies linking. This is currently based on iOS dependencies
+		# which might be different due to less features enabled for iOS.
+		FLUIDSYNTH_STATIC_LIBS="$FLUIDSYNTH_LIBS -framework Foundation -framework CoreMIDI -lglib-2.0 -lintl -liconv"
+	;;
+
+	iphone)
+		FLUIDSYNTH_STATIC_LIBS="$FLUIDSYNTH_LIBS -framework Foundation -framework CoreMIDI -lglib-2.0 -lintl -liconv"
+	;;
+
+	*)
+		FLUIDSYNTH_STATIC_LIBS="$FLUIDSYNTH_LIBS -lglib-2.0 -lintl -liconv"
+	;;
+esac
+
+if test "$_fluidsynth" = auto; then
 	_fluidsynth=no
 	cat > $TMPC << EOF
 #include <fluidsynth.h>
-int main(void) { return 0; }
+int main(void) { delete_fluid_settings(new_fluid_settings()); return 0; }
 EOF
-	cc_check $FLUIDSYNTH_CFLAGS $FLUIDSYNTH_LIBS -lfluidsynth && _fluidsynth=yes
+	cc_check_no_clean $FLUIDSYNTH_CFLAGS $FLUIDSYNTH_LIBS && _fluidsynth=yes
+	if test "$_fluidsynth" != yes; then
+		FLUIDSYNTH_LIBS="$FLUIDSYNTH_STATIC_LIBS"
+		cc_check_no_clean $FLUIDSYNTH_CFLAGS $FLUIDSYNTH_LIBS && _fluidsynth=yes
+	fi
 fi
-if test "$_fluidsynth" = yes ; then
-	case $_host_os in
-		mingw*)
-			append_var LIBS "$FLUIDSYNTH_LIBS -lfluidsynth -ldsound -lwinmm"
-		;;
-		*)
-			append_var LIBS "$FLUIDSYNTH_LIBS -lfluidsynth"
-		;;
-	esac
+if test "$_fluidsynth" = yes; then
+	append_var LIBS "$FLUIDSYNTH_LIBS"
 	append_var INCLUDES "$FLUIDSYNTH_CFLAGS"
 fi
 define_in_config_if_yes "$_fluidsynth" 'USE_FLUIDSYNTH'


Commit: 7bad8f780e7f0bf89a80d6b1bdaa9be34787eca2
    https://github.com/scummvm/scummvm/commit/7bad8f780e7f0bf89a80d6b1bdaa9be34787eca2
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2016-01-12T22:45:41+01:00

Commit Message:
BUILD: Fix iphonebundle/ios7bundle targets when FluidSynth is enabled.

Changed paths:
    ports.mk



diff --git a/ports.mk b/ports.mk
index 03dbffe..df0f3cf 100644
--- a/ports.mk
+++ b/ports.mk
@@ -247,8 +247,10 @@ endif
 
 ifdef USE_FLUIDSYNTH
 OSX_STATIC_LIBS += \
-                -framework CoreAudio \
-                $(STATICLIBPATH)/lib/libfluidsynth.a
+                -liconv -framework CoreMIDI \
+                $(STATICLIBPATH)/lib/libfluidsynth.a \
+                $(STATICLIBPATH)/lib/libglib-2.0.a \
+                $(STATICLIBPATH)/lib/libintl.a
 endif
 
 ifdef USE_MAD






More information about the Scummvm-git-logs mailing list