Received: from eggs.gnu.org ([2001:4830:134:3::10]:40113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEl9j-0005Q2-1D for qemu-devel@nongnu.org; Fri, 23 Jan 2015 15:48:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEl9e-0005m9-Vv for qemu-devel@nongnu.org; Fri, 23 Jan 2015 15:48:38 -0500 Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:42296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEl9e-0005m5-PE for qemu-devel@nongnu.org; Fri, 23 Jan 2015 15:48:34 -0500 Received: by mail-qg0-f47.google.com with SMTP id z60so7930237qgd.6 for ; Fri, 23 Jan 2015 12:48:34 -0800 (PST) Received: from [192.168.0.2] (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by mx.google.com with ESMTPSA id n18sm2480816qae.27.2015.01.23.12.48.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Jan 2015 12:48:33 -0800 (PST) From: Programmingkid Content-Type: multipart/alternative; boundary=Apple-Mail-1--790203511 Date: Fri, 23 Jan 2015 15:48:31 -0500 Message-Id: Mime-Version: 1.0 (Apple Message framework v1084) Subject: [Qemu-devel] makefile help: giving QEMU an icon List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel qemu-devel --Apple-Mail-1--790203511 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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.=20= --Apple-Mail-1--790203511 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii 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

# 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

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. 
= --Apple-Mail-1--790203511--