qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Ma


From: Programmingkid
Subject: Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X
Date: Thu, 19 Feb 2015 14:34:41 -0500

On Feb 19, 2015, at 4:56 AM, Paolo Bonzini wrote:

> 
> 
> On 18/02/2015 22:09, Programmingkid wrote:
>> +    # Take an image and make the image its own icon:
>> +    sips -i ../pc-bios/qemu-nsis.ico
>> +    # Extract the icon to its own resource file:
>> +    DeRez -only icns ../pc-bios/qemu-nsis.ico > tmpicns.rsrc
> 
> IIUC sips modifies ../pc-bios/qemu-nsis.ico (adding a resource fork?),
> so it's not possible to put it in Makefile.target.  If "sips" is invoked
> twice by two different recursive invocations of Makefile.target, bad
> things can happen.
> 
> I think we can simply distribute tmpicns.rsrc as pc-bios/qemu.rsrc instead.
> 
>> +    # append this resource to the file you want to icon-ize.
>> +    Rez -append tmpicns.rsrc -o $(QEMU_PROG)
>> +
>> +    # Use the resource to set the icon.
>> +    SetFile -a C $(QEMU_PROG)
> 
> These two commands can be added after
> 
> $(QEMU_PROG_BUILD): $(all-obj-y) ../libqemuutil.a ../libqemustub.a
>        $(call LINK,$^)
> 
> instead of adding a new rule.  There is no need for the comments.
> 
> Paolo

Ok. Will implement your suggested changes. Thank you.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]