[FFmpeg-devel] [PATCH] Add versioning information to dlls
Ramiro Polla
ramiro.polla
Tue Feb 10 03:20:29 CET 2009
Hi,
On Mon, Feb 9, 2009 at 9:05 PM, Ramiro Polla <ramiro.polla at gmail.com> wrote:
> On Mon, Feb 9, 2009 at 7:42 PM, Diego Biurrun <diego at biurrun.de> wrote:
>> On Mon, Feb 09, 2009 at 06:04:09PM -0200, Ramiro Polla wrote:
>>> [...]
>>>
>>> New patch attached.
>>>
>>> Changes:
>>> - I couldn't get the CFLAGS += thing to work for DEPEND_CMD for .d
>>> files out of .rc files, so I just renamed dllinfo.rc to dllinfo.c.
>>> This way the current DEPEND_CMD catches it just fine. Then added a
>>> special rule for dllinfo.c instead of generic %.rc in common.mak
>>
>> Elaborate.
>
> This bit on the old patch:
>
> +%.d: %.rc CFLAGS += -DRC_INVOKED -xc-header
> + $(DEPEND_CMD) > $@
>
> doesn't work as expected. make doesn't seem to like the rule to make
> .d from .rc, and it just doesn't create the .d file.
>
> I see in Makefile there is:
>
> ffplay_g$(EXESUF): FF_EXTRALIBS += $(SDL_LIBS)
>
> I don't know why it works here, but not on the .d rule...
I changed DEPEND_CMD so that it's only the actual sed command, so that
we're free to add CFLAGS in between $(CC) and | sed...
>>> --- configure (revision 17100)
>>> +++ configure (working copy)
>>> @@ -2519,3 +2525,65 @@
>>> +
>>> +dllinfo_generate() {
>>> + name=$1
>>> + description=$2
>>> + version=$3
>>> + major=${version%%.*}
>>> + version_commas=`echo $version | tr . ,`,0
>>
>> Use $() instead of ``.
>
> Consider it done.
I took a different approach this time. Now the .rc files are no longer
generated by configure, but rather a master dllinfo.rc is included
from a dllinfo.rc in each subfolder. I've also added a ffmpegrc.rc
that embeds information (and the icon I sent in the prevous e-mail)
into ffmpeg_g.exe.
Known and open issues: the ffmpeg description in ffmpegrc.rc. The
FFmpeg version number. How/where will it be defined? (I mean the
"0.5", and "Bike Shed").
Please comment.
Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpegrc_2.diff
Type: text/x-patch
Size: 12758 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090210/7474ac2b/attachment.bin>
More information about the ffmpeg-devel
mailing list