From 9dc9254da25b784fe32ec6bedfc258efe2254ba5 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 14 Jan 2014 08:18:05 +0100 Subject: cocoa: add application icon to the Dock when run from CLI Application icon was added to the Dock only when run inside of a bundle. That was handled automatically by OS X using the Info.plist definition. To add the Application icon when run as a CLI program, I used the samme approach in the X11 code and loaded the icon as a static binary blob inside of mpv's binary. This is the simplest approach as it avoid headackes when relocating the binary and such. --- old-makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'old-makefile') diff --git a/old-makefile b/old-makefile index 05f1f7d4a7..ab793febf7 100644 --- a/old-makefile +++ b/old-makefile @@ -420,6 +420,10 @@ video/out/gl_video.c: video/out/gl_video_shaders.h video/out/gl_video_shaders.h: TOOLS/file2string.pl video/out/gl_video_shaders.glsl ./$^ >$@ +osdep/macosx_application.m: osdep/macosx_icon.inc +osdep/macosx_icon.inc: TOOLS/file2string.pl TOOLS/osxbundle/mpv.app/Contents/Resources/icon.icns + ./$^ >$@ + video/out/x11_common.c: video/out/x11_icon.inc video/out/x11_icon.inc: TOOLS/file2string.pl video/out/x11_icon.bin ./$^ >$@ @@ -541,6 +545,7 @@ clean: -$(RM) demux/ebml_types.h demux/ebml_defs.c -$(RM) video/out/gl_video_shaders.h -$(RM) video/out/x11_icon.inc + -$(RM) osdep/macosx_icon.inc -$(RM) sub/osd_font.h -$(RM) player/lua/defaults.inc -$(RM) player/lua/assdraw.inc -- cgit v1.2.3