[sword-devel] SWORD_VERSION

Jaak Ristioja jaak at ristioja.ee
Tue Oct 25 14:00:31 MST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

On 25.10.2011 17:37, Troy A. Griffitts wrote:
> I can see how this is useful, though I believe the standard way to
> handle this with any package is to define what you need with, e.g.,
> 
> pkg-config --atleast-version=1.6.2 sword

This alone does not provide a good full solution in case I want to have
support for building against different versions of Sword, but when I
need to compile slightly different code depending on the version of
Sword used.

> You can define what you want, like INCLUDES_WLC_VERSIFICATION, or
> whatever you need to have special code for, based on the SWORD library
> version.  Unless you change the whole world of package versioning
> formats, I'm not sure it helps much for just us to add a new format.  If
> you still want to use the comparable version number in your code, you
> could currently do something like
> 
> SWORD_VERSION := $(shell pkg-config --modversion sword | awk -F.
> '{printf("%0.2x%0.2x%0.2x\n",$$1,$$2,$$3)}')
> CFLAGS += -DSWORD_VERSION=0x$(SWORD_VERSION)
> 
> which would also work for you with any package.

Yes, this is closest to what I would like to have. However, it were
still nice if Sword provided such macros itself in the future, so that
all this non-portable magic would not be needed.

> Hope this helps.  If you still think we should define a special hex
> version number in future releases, please let me know.

I think it were good and would slightly help downstream. Thanks!

Blessings!
Jaak
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQgcBAEBAgAGBQJOpyNrAAoJELeXyoqzFNdNFChAAKybTC2L/Xp3XEuxWFpdaM+n
H3xpPGSltw/Yk22RNw7N92x3qhD75/jrRODRwkP5wuGAw58VjXqiVDXW/0eG60MH
iiTZea4fYOIEWxCBPFo9GdSfl8jQL7FIXtg2Ea7r/dluu+mzSuqwbrX+SEU/ZoDe
znRzJV0VB0P0Y6VeViH5lWbtnrmIbSW8jdqMT0mqHgRls1YkPWJx+OvTSj2uUnkU
kduBoj3a0wpuBF+eXdhEGI0OLRfCQqpMxqV7ADLbK1bKMG86yOvfwoxtsMx/lJP8
5sfQ/31SdUVf5zJ9VUrXhEn5pKVmHeLSS3UG0m0x3Uly3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