[Ffmpeg-devel] [PATCH] change the way version numbers are defined

Diego Biurrun diego
Fri Dec 22 06:22:00 CET 2006


On Thu, Dec 21, 2006 at 08:35:23PM -0200, ramiro at lisha.ufsc.br wrote:
> 
> While making the dllinfo.rc files for Windows in a way that didn't
> hardcode version info inside it, I found it best to dismember version
> numbers into major, minor and revision, and regroup them where necessary.
> *.rc files need version info with four fields, and separated by commas. So
> what I did in all .h files that defined versions:
> 
> - dismember *_VERSION into *_MAJOR, *_MINOR, and *_REVISION
> - changed *_VERSION to *_MAJOR.*_MINOR.*_REVISION
> - changed *_VERSION_INT to use the new defines too
> - changed configure to read each part of version and regroup them
> 
> It somewhat bloats configure, but that can probably be made smaller.
> It will be simpler this way to change version numbers when needed, since
> there's only one define to change. (does not duplicate version numbers in
> *_VERSION and *_VERSION_INT)

I'm not fundamentally opposed to this if you come up with a patch that
uses it, but I'm sure there is a way to implement this more elegantly
with less code bloat.

Diego




More information about the ffmpeg-devel mailing list