qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] makefile help: giving QEMU an icon
@ 2015-01-23 20:48 Programmingkid
  2015-01-26  9:07 ` Thomas Huth
  0 siblings, 1 reply; 2+ messages in thread
From: Programmingkid @ 2015-01-23 20:48 UTC (permalink / raw)
  To: qemu-devel qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

I'm trying to make QEMU have an icon instead of the standard gray box icon it is given on Mac OS X. I figured out where to put the code in the makefile, but this location isn't useful. git is trained not to use it. The location is ./ppc-softmmu/makefile. My question is where do I put my icon setting code?

It currently works in ./ppc-softmmu/makefile after this line: all: $(PROGS) stap

all: $(PROGS) stap

# Set the icon for QEMU on Macintosh
ifdef CONFIG_DARWIN
	# 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

	# 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)

	# clean up.
	rm tmpicns.rsrc
endif

What I'm trying to do is have all targets receive the icon. For now I am trying the code out on the PowerPC target. Any hints would be appreciated. 

[-- Attachment #2: Type: text/html, Size: 5247 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-26  9:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-23 20:48 [Qemu-devel] makefile help: giving QEMU an icon Programmingkid
2015-01-26  9:07 ` Thomas Huth

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).