All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Cc: Robert Riebisch <rr@bttr-software.de>, computers57@hotmail.com
Subject: Re: [Qemu-devel] Makefile question
Date: Fri, 26 Sep 2008 09:54:37 -0500	[thread overview]
Message-ID: <48DCF7AD.5040301@codemonkey.ws> (raw)
In-Reply-To: <BAY110-DAV7DCCB8DD408B1FC661D3CB9470@phx.gbl>

C.W. Betts wrote:
> I have made
> On Sep 25, 2008, at 2:53 PM, Robert Riebisch wrote:
>
>> Anthony Liguori wrote:
>>
>>> Where does the object file come from?
>>
>> Generated from .rc by `windres'.
> I have made a patch that uses windres to identify the version number 
> of the app.  The patch is in the attachments.  Perhaps you can get 
> some pointers from it.
>
> Index: Makefile.target
> ===================================================================
> --- Makefile.target    (revision 5321)
> +++ Makefile.target    (working copy)
> @@ -661,6 +665,7 @@
>  
>  ifdef CONFIG_WIN32
>  SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
> +OBJS+=version.o
>  endif
>  
>  # profiling code
> @@ -676,6 +681,9 @@
>  
>  %.o: %.c
>      $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
> +   
> +%.o: %.rc
> +    windres -I. -DORIGINAL_FILENAME=\"$(QEMU_PROG)\" -c -o $< $@

This needs to be ${cross_prefix}windres

>  %.o: %.S
>      $(CC) $(CPPFLAGS) -c -o $@ $<
> Index: configure
> ===================================================================
> --- configure    (revision 5321)
> +++ configure    (working copy)
> @@ -1319,6 +1319,10 @@
>  echo "# Automatically generated by configure - do not modify" > 
> $config_mak
>  echo "/* Automatically generated by configure - do not modify */" > 
> $config_h
>  
> +if test "$mingw32" = "yes" ; then
> +echo "#define QEMU_FILEVERSION $(tr . , < $source_path/VERSION),0" >> 
> $config_h
> +echo "#define QEMU_PRODUCTVERSION $(tr . , < $source_path/VERSION),0" 
> >> $config_h
> +fi
>

You could just use QEMU_VERSION in the .rc file

I think it's a good idea to include a default .rc file for the QEMU 
Windows build.  If you update the patch, I'd be happy to apply it.

Regards,

Anthony Liguori

  parent reply	other threads:[~2008-09-26 14:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-25 20:42 [Qemu-devel] Makefile question Robert Riebisch
2008-09-25 20:47 ` Anthony Liguori
2008-09-25 20:53   ` Robert Riebisch
2008-09-26 14:26     ` C.W. Betts
2008-09-26 14:26       ` C.W. Betts
2008-09-26 14:50         ` Robert Riebisch
2008-09-26 14:55           ` Anthony Liguori
2008-09-26 15:06             ` Robert Riebisch
2008-09-26 14:53         ` Robert Riebisch
2008-09-26 14:54         ` Anthony Liguori [this message]
2008-09-26 15:30           ` Robert Riebisch
2008-09-26 15:38             ` Anthony Liguori
2008-09-26 16:00               ` Robert Riebisch
2008-09-26 16:16                 ` Anthony Liguori
2008-09-26 16:32                   ` Robert Riebisch
2008-09-26 16:52                     ` Anthony Liguori
2008-09-26 19:16                       ` Robert Riebisch
2008-09-26 16:26                 ` Robert Riebisch
2008-09-26 16:23           ` [Qemu-devel] " Consul
2008-09-26 16:45             ` Robert Riebisch
2008-09-26 18:38               ` Anthony Liguori
2008-09-26 16:28           ` [Qemu-devel] " Robert Riebisch

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=48DCF7AD.5040301@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=computers57@hotmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rr@bttr-software.de \
    /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.