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

Gianluigi Tiesi mplayer at netfarm.it
Sat Mar 24 15:52:41 CET 2007


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.
old way using OBJS_MPLAYER-$(TARGET_WIN32) doesn't work anymore for me.

> > --- 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?

Regards

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/



More information about the MPlayer-dev-eng mailing list