Received: from eggs.gnu.org ([2001:4830:134:3::10]:60130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOqqD-0004Z2-8P for qemu-devel@nongnu.org; Fri, 20 Feb 2015 11:54:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOqq9-0000tv-Rg for qemu-devel@nongnu.org; Fri, 20 Feb 2015 11:54:13 -0500 Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:51742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOqq9-0000to-Nr for qemu-devel@nongnu.org; Fri, 20 Feb 2015 11:54:09 -0500 Received: by mail-qg0-f54.google.com with SMTP id z60so14902463qgd.13 for ; Fri, 20 Feb 2015 08:54:08 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <54E72A54.9040807@redhat.com> Date: Fri, 20 Feb 2015 11:54:06 -0500 Content-Transfer-Encoding: 7bit Message-Id: <4F2700DA-D7EC-4329-9DA6-CCEA27F0E56E@gmail.com> References: <24F20DD4-DD6D-4071-B45F-3CFF81AB419C@gmail.com> <54E5B33D.4000803@redhat.com> <54E72A54.9040807@redhat.com> Subject: Re: [Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , qemu-devel qemu-devel On Feb 20, 2015, at 7:36 AM, Paolo Bonzini wrote: > > > On 20/02/2015 13:18, Peter Maydell wrote: >> 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). > > I suspect the Windows icon is not a great match for Mac OS X which likes > to have big sizes (48x48 or 128x128). Definitely true. > If you want to generate the .rsrc > file automatically, the right source probably would be the .svg file, > and doing the conversion in the Makefile probably isn't entirely > feasible. It would need extra build dependency and rounding errors > would make it harder to achieve reproducible builds. Plus the sips command doesn't work with svg files.