Mercurial > pidgin
diff libpurple/win32/global.mak @ 16583:ce049678a67b
soname versioning of libpurple. Should help resolve debian bug 421282
All version control is within configure.ac now
Adjust the define for purple_version_suffix as appropriate:
[devel] - normal development periods
[betaN] - for beta releases
[] - for releases
Follow the instructions in configure.ac to set the version number depending on
how the API has changed (ie. following our normal version numbering!)
version.h is auto-generated now
Added purple_version_check(), purple_major_version, purple_minor_version,
& purple_micro_version for run-time version comparisons in addition to the
existing compile time macros.
libpurple Plugins moved again, this time to:
$(libdir)/purple-$PURPLE_MAJOR_VERSION
This will allow parallel installations of different major libpurple versions
in the future should someone wish to.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 28 Apr 2007 16:55:31 +0000 |
parents | ded8da3de5f8 |
children | 56c61eb40850 |
line wrap: on
line diff
--- a/libpurple/win32/global.mak Sat Apr 28 12:58:16 2007 +0000 +++ b/libpurple/win32/global.mak Sat Apr 28 16:55:31 2007 +0000 @@ -57,10 +57,13 @@ GCCWARNINGS := -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef # parse the version number from the configure.ac file if it is newer -#AC_INIT([pidgin], [2.0.0dev], [devel@pidgin.im]) +#m4_define([purple_major_version], [2]) +#m4_define([purple_minor_version], [0]) +#m4_define([purple_micro_version], [0]) +#m4_define([purple_version_suffix], [devel]) PIDGIN_VERSION := $(shell \ if [ ! $(PIDGIN_TREE_TOP)/VERSION -nt $(PIDGIN_TREE_TOP)/configure.ac ]; then \ - awk 'BEGIN {FS="\\] *, *\\["} /^AC_INIT\(.+\)/ {printf("%s",$$2); exit}' \ + awk 'BEGIN {FS="[\\(\\)\\[\\]]"} /^m4_define..purple_(major|minor)_version/ {printf("%s.",$$5);} /^m4_define..purple_micro_version/ {printf("%s",$$5);} /^m4_define..purple_version_suffix/ {printf("%s",$$5); exit}' \ $(PIDGIN_TREE_TOP)/configure.ac > $(PIDGIN_TREE_TOP)/VERSION; \ fi; \ cat $(PIDGIN_TREE_TOP)/VERSION \