aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorThierry Crozat2016-03-20 21:27:47 +0000
committerThierry Crozat2016-03-25 15:37:13 +0000
commitd519dd8ec3ee7258ed3657821990553a84960e2a (patch)
tree7bf099f9fef3e2621e3a27f035f766c7f6a4fc04 /configure
parent2671918c92d68733e651fa870ee0e1de167ed128 (diff)
downloadscummvm-rg350-d519dd8ec3ee7258ed3657821990553a84960e2a.tar.gz
scummvm-rg350-d519dd8ec3ee7258ed3657821990553a84960e2a.tar.bz2
scummvm-rg350-d519dd8ec3ee7258ed3657821990553a84960e2a.zip
OS X: Implement a Dock Tile Plugin to display recent games menu in dock
This allows to start a recently played game directly from the dock. The ScummVM.app application should have been permanently added to the dock and the menu is only present when ScummVM is not running. The list of recently played game is written by the taskbar code in ScummVM. The Dock Tile Plugin only reads that list to populate the menu.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure23
1 files changed, 23 insertions, 0 deletions
diff --git a/configure b/configure
index 1a873b213a..f919d862e7 100755
--- a/configure
+++ b/configure
@@ -128,6 +128,7 @@ _timidity=auto
_zlib=auto
_mpeg2=auto
_sparkle=auto
+_osxdockplugin=auto
_jpeg=auto
_png=auto
_theoradec=auto
@@ -991,6 +992,8 @@ Optional Libraries:
--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]
+ --disable-osx-dock-plugin disable the NSDockTilePlugin support [Mac OS X only - autodetect]
+
--with-sdl-prefix=DIR Prefix where the sdl-config script is
installed (optional)
@@ -1053,6 +1056,8 @@ for ac_option in $@; do
--disable-zlib) _zlib=no ;;
--enable-sparkle) _sparkle=yes ;;
--disable-sparkle) _sparkle=no ;;
+ --enable-osx-dock-plugin) _osxdockplugin=yes;;
+ --disable-osx-dock-plugin) _osxdockplugin=no;;
--enable-nasm) _nasm=yes ;;
--disable-nasm) _nasm=no ;;
--enable-mpeg2) _mpeg2=yes ;;
@@ -3954,6 +3959,24 @@ fi
echo "$_sparkle"
#
+# Check is NSDockTilePlugIn protocol is supported
+#
+# NSDockTilePlugIn was added in OS X 10.6, so will not be available when compiling on older OS X versions.
+echocheck "DockTilePlugin"
+if test "$_osxdockplugin" = auto ; then
+ _osxdockplugin=no
+ cat > $TMPC << EOF
+#include <Cocoa/Cocoa.h>
+@interface ScummVMDockTilePlugIn : NSObject <NSDockTilePlugIn> {
+}
+@end
+EOF
+ cc_check -c -ObjC++ && _osxdockplugin=yes
+fi
+define_in_config_if_yes "$_osxdockplugin" 'USE_DOCKTILEPLUGIN'
+echo "$_osxdockplugin"
+
+#
# Check for FluidSynth
#
echocheck "FluidSynth"