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. --- wscript_build.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index 5cdbd5a4f7..5b46c4fa60 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -34,6 +34,10 @@ def build(ctx): ctx.load('waf_customizations') ctx.load('generators.sources') + ctx.file2string( + source = "TOOLS/osxbundle/mpv.app/Contents/Resources/icon.icns", + target = "osdep/macosx_icon.inc") + ctx.file2string( source = "video/out/x11_icon.bin", target = "video/out/x11_icon.inc") -- cgit v1.2.3