From: Paolo Bonzini <pbonzini@redhat.com>
To: Programmingkid <programmingkidx@gmail.com>,
qemu-devel qemu-devel <qemu-devel@nongnu.org>
Cc: Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X
Date: Thu, 19 Feb 2015 10:56:13 +0100 [thread overview]
Message-ID: <54E5B33D.4000803@redhat.com> (raw)
In-Reply-To: <24F20DD4-DD6D-4071-B45F-3CFF81AB419C@gmail.com>
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
next prev parent reply other threads:[~2015-02-19 9:56 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 [this message]
2015-02-19 19:34 ` Programmingkid
2015-02-20 12:18 ` Peter Maydell
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=54E5B33D.4000803@redhat.com \
--to=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.