You're right, it wouldn't work well in Visual Studio for example.
Another way to do it is to AC_DEFINE the version numbers so they are defined by 
the compiler with -D.  The visual studio projects could also do this.
version.h would then remain as is, but without the #defines for the version
numbers.

The goal is to avoid having 5 places where version numbers need to be updated,
because we will inevitably forget one or more of those places :)

Reed

On Thu, May 11, 2006 at 03:07:13PM +0200, Andreas Beckermann wrote:
> On Thursday 11 May 2006 14:39, Reed Hedges wrote:
> > How about if we generate version.h with configure, since
> > the version number is given in configure.in, which then defines
> > PACKAGE_VERSION and also does an AC_SUBST for each component of the
> > Lib3DS version number anyway.
> >
> > Just rename version.h to version.h.in, add it to configure's output file
> > list, and use @LIB3DS_MAJOR_VERSION@, @LIB3DS_MINOR_VERSION@,
> > @LIB3DS_MICRO_VERSION@ for the version numbers.  (We could rename MICRO
> > to RELEASE if you want.)
> >
> > Reed
> 
> Hi
> well, I think the one who does the work gets to decide, and since I'm not 
> gonna convert this to version.h.in anyway, I guess my opinion is kinda void 
> here.
> 
> However anyway: by using a version.h.in file, we use a very autotools 
> specific 
> feature and thus make any possible conversion to a different configure system 
> more difficult. And well - since autotools sucks, I think we should try to 
> minimize usage of it and thus not use version.h.in :-)
> 
> CU
> Andi
> 
> 
> 
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> lib3ds-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lib3ds-devel


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
lib3ds-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel

Reply via email to