[MPlayer-dev-eng] Customizing binary names via configure
Diego Biurrun
diego at biurrun.de
Tue Dec 13 01:50:47 CET 2005
On Sun, Dec 11, 2005 at 10:39:15PM -0500, The Wanderer wrote:
> Corey Hickey wrote:
>
> >The Wanderer wrote:
>
> >>(In any case, there is still the problem of 'gmplayer', since I
> >>haven't been able to work out where that name is set; if it's
> >>generated by prepending 'g' to _prg, then things should still work
> >>reasonably well - albeit with a few hiccups for some names people
> >>might specify - but if it's hardcoded, then that would have to be
> >>taken into account as well.)
> >
> >It's in mplayer.c at line 1378. See below (I've rewrapped it so it
> >fits within 72 characters and is readable in this email).
> >
> >if ( argv[0] )
> > if(!strcmp(argv[0],"gmplayer") ||
> > (strrchr(argv[0],'/') &&
> > !strcmp(strrchr(argv[0],'/'),"/gmplayer") ) )
> > use_gui=1;
>
> Hmm. That's where the functionality is determined, yes, but where is the
> binary name itself set? The binary has to be given its name sometime
> during the compile process, and that can't be done from a source file...
config.mak:
PRG = mplayer
Makefile:
$(PRG): $(MPLAYER_DEP)
$(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(LIBS_MPLAYER)
Diego
More information about the MPlayer-dev-eng
mailing list