[MPlayer-dev-eng] [PATCH] fix resources in mingw build

Diego Biurrun diego at biurrun.de
Sat Mar 24 15:57:50 CET 2007


On Sat, Mar 24, 2007 at 03:52:41PM +0100, Gianluigi Tiesi wrote:
> On Sat, Mar 24, 2007 at 02:05:31PM +0100, Diego Biurrun wrote:
> > On Sat, Mar 24, 2007 at 02:05:09AM +0100, Gianluigi Tiesi wrote:
> > > 
> > > OBJS_MPLAYER-$(TARGET_WIN32) += osdep/mplayer-rc.o
> > > 
> > > doesn't work anymore for me,
> > > Also resource file is a bit outdated.
> > > 
> > > The patch adds resources to mplayer/mencoder by using ifeq
> > > and also updates a bit the resource file (rc).
> > > 
> > > --- Makefile	(revision 22787)
> > > +++ Makefile	(working copy)
> > > @@ -129,7 +129,10 @@
> > >  
> > >  # Having this in libosdep.a is not enough.
> > > -OBJS_MPLAYER-$(TARGET_WIN32) += osdep/mplayer-rc.o
> > > +ifeq ($(TARGET_WIN32),yes)
> > > +	OBJS_MPLAYER += osdep/mplayer-rc.o
> > > +	OBJS_MENCODER += osdep/mplayer-rc.o
> > > +endif
> > 
> > That's the wrong fix.  Also, why do you wish to use it for MEncoder as
> > well?  Note that I'm not fully sure what this file is used for in the
> > Windows build.
> > 
> Because I want to use the resource both on mplayer and mencoder.

Why?  What is it good for?

> old way using OBJS_MPLAYER-$(TARGET_WIN32) doesn't work anymore for me.

Try moving it from line 132 to line 120.

> > > --- osdep/mplayer.rc	(revision 22787)
> > > +++ osdep/mplayer.rc	(working copy)
> > > @@ -18,15 +18,14 @@
> > > -            VALUE "LegalCopyright", " (C) 2000-2004 MPlayer Team\000"
> > > -            //VALUE "LegalTrademarks"," \000";
> > > +            VALUE "LegalCopyright", " (C) 2000-2007 MPlayer Team\000"
> > 
> > Why remove LegalTrademarks?
> e.g. because it's commented out, it's even empty and it will not be in the resource file.
> 
> > > -            //VALUE "SpecialBuild","\000"
> > > +            VALUE "SpecialBuild","\000"
> my suggestion, anyway if not used why don't remove it?

What is it good for?

I'm not against removing or using those values, I'm just curious.

Diego




More information about the MPlayer-dev-eng mailing list