From: Peter Maydell <peter.maydell@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Programmingkid <programmingkidx@gmail.com>,
qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X
Date: Fri, 20 Feb 2015 21:18:16 +0900 [thread overview]
Message-ID: <CAFEAcA9iPCsuFcJReJkAeZMRQDijP-BqoFWAY2V9VC2fQWqisw@mail.gmail.com> (raw)
In-Reply-To: <54E5B33D.4000803@redhat.com>
On 19 February 2015 at 18:56, Paolo Bonzini <pbonzini@redhat.com> 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.
Why not just use the sips --out option to specify a different
output file? That way we automatically put the current icon
into the executable, and don't have to update a hand-created
qemu.rsrc file in git if we change the icon in future (and I
bet if we don't have the rules for doing this in the makefile
then nobody will remember how to do it).
As a bonus we don't have to keep that file full of ugly high-bit-set
characters in C comments in git :-)
-- PMM
next prev parent reply other threads:[~2015-02-20 12:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-18 21:09 [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X Programmingkid
2015-02-19 9:56 ` Paolo Bonzini
2015-02-19 19:34 ` Programmingkid
2015-02-20 12:18 ` Peter Maydell [this message]
2015-02-20 12:36 ` Paolo Bonzini
2015-02-20 13:15 ` François Revol
2015-02-20 16:54 ` Programmingkid
2015-02-20 17:05 ` Paolo Bonzini
2015-02-20 17:32 ` Programmingkid
2015-02-20 17:56 ` Paolo Bonzini
2015-02-20 21:30 ` Programmingkid
2015-02-21 10:05 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFEAcA9iPCsuFcJReJkAeZMRQDijP-BqoFWAY2V9VC2fQWqisw@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=pbonzini@redhat.com \
--cc=programmingkidx@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).