aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorThierry Crozat2016-05-29 18:09:23 +0100
committerThierry Crozat2016-05-30 16:00:22 +0100
commit2674bfad198c1233445db41acb29bd57b58f3641 (patch)
treed78ae09153cb70d08e5c2f35c88ea0da9c9d8e28 /configure
parentde78651a5d327ade8febe6f0585b841f1f0eff43 (diff)
downloadscummvm-rg350-2674bfad198c1233445db41acb29bd57b58f3641.tar.gz
scummvm-rg350-2674bfad198c1233445db41acb29bd57b58f3641.tar.bz2
scummvm-rg350-2674bfad198c1233445db41acb29bd57b58f3641.zip
CONFIGURE: Add support for building with WinSparkle
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure29
1 files changed, 27 insertions, 2 deletions
diff --git a/configure b/configure
index 482c940124..8b8894d892 100755
--- a/configure
+++ b/configure
@@ -992,8 +992,8 @@ Optional Libraries:
installed (optional)
--disable-fluidsynth disable fluidsynth MIDI driver [autodetect]
- --with-sparkle-prefix=DIR Prefix where sparkle is installed (Mac OS X only - optional)
- --disable-sparkle disable sparkle automatic update support [Mac OS X only - autodetect]
+ --with-sparkle-prefix=DIR Prefix where sparkle is installed (OS X/Windows only - optional)
+ --disable-sparkle disable sparkle automatic update support [OS X/Windows only - autodetect]
--disable-osx-dock-plugin disable the NSDockTilePlugin support [Mac OS X only - autodetect]
@@ -4038,6 +4038,31 @@ EOF
fi
echo "$_sparkle"
;;
+ mingw*)
+ echocheck "Sparkle"
+ if test "$_updates" = no; then
+ _sparkle=no
+ else
+ if test ! -z $_sparklepath ; then
+ SPARKLE_CFLAGS="-I$_sparklepath/include"
+ SPARKLE_LIBS="-L$_sparklepath/Release -L$_sparklepath/x64/Release"
+ fi
+ if test "$_sparkle" = auto ; then
+ _sparkle=no
+ cat > $TMPC << EOF
+#include <winsparkle.h>
+int main(void) { win_sparkle_get_update_check_interval(); return 0; }
+EOF
+ cc_check $SPARKLE_CFLAGS $SPARKLE_LIBS -lWinSparkle && _sparkle=yes
+ fi
+ if test "$_sparkle" = yes ; then
+ append_var LIBS "$SPARKLE_LIBS -lWinSparkle"
+ append_var INCLUDES "$SPARKLE_CFLAGS"
+ fi
+ define_in_config_if_yes "$_sparkle" 'USE_SPARKLE'
+ fi
+ echo "$_sparkle"
+ ;;
*)
_sparkle=no
;;