[FFmpeg-devel] [PATCH] Add versioning information to dlls

Jeremy Kolb jkolb
Fri May 30 16:54:58 CEST 2008



Diego Biurrun wrote:
> On Thu, May 29, 2008 at 04:31:26PM -0400, Jeremy Kolb wrote:
>   
>> Diego Biurrun wrote:
>>     
>>> On Thu, May 29, 2008 at 09:49:29AM -0400, Jeremy Kolb wrote:
>>>
>>> What stops you from compiling the .rc file into a standard .o file and
>>> adding that to OBJS?  We do that in MPlayer, it seems to work fine.
>>>   
>>>       
>> So you are suggesting editing each Makefile and adding the .o file to 
>> objs?
>>     
>
> In MPlayer I have
>
> OBJS_MPLAYER-$(PE_EXECUTABLE) += osdep/mplayer-rc.o
>
> osdep/mplayer-rc.o: osdep/mplayer.rc version.h
> 	$(WINDRES) -I. -o $@ $<
>
> Does that explain my idea?
>
>   
I wasn't aware that you could do += in a makefile.  The version.h thing 
is still biting me when I run make from a sublevel directory (libavutil 
for example).
>> Will that work for each platform though?
>>     
>
> I don't see why it should not...
>
>   
But then I would have to generate the rc file for ever platform right?  
That has a platform specific #include file in it so it won't work.

Jeremy





More information about the ffmpeg-devel mailing list