From d519dd8ec3ee7258ed3657821990553a84960e2a Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sun, 20 Mar 2016 21:27:47 +0000 Subject: 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. --- configure | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'configure') 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 ;; @@ -3953,6 +3958,24 @@ define_in_config_if_yes "$_sparkle" 'USE_SPARKLE' 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 +@interface ScummVMDockTilePlugIn : NSObject { +} +@end +EOF + cc_check -c -ObjC++ && _osxdockplugin=yes +fi +define_in_config_if_yes "$_osxdockplugin" 'USE_DOCKTILEPLUGIN' +echo "$_osxdockplugin" + # # Check for FluidSynth # -- cgit v1.2.3